Skip to content

Progress 进度条

用于展示操作进度,告知用户当前状态和预期。

线形进度条

最基础的线形进度条。

50%
100%
70%
30%

百分比内显

设置 text-inside 属性将百分比显示在进度条内部。

80%
100%
50%

环形进度条

通过设置 type 属性为 circledashboard 使用环形进度条。

75%
100%
60%

条纹动画

通过 stripedstriped-flow 属性启用条纹动画效果。

30%
60%
100%

Progress API

Props

参数说明类型默认值
type进度条类型'line' | 'circle' | 'dashboard''line'
percentage百分比(0-100)number0
status进度条状态'primary' | 'success' | 'warning' | 'exception' | 'info''primary'
strokeWidth进度条宽度(px)number6
textInside进度条显示文字内置booleanfalse
showText是否显示进度文字booleantrue
width环形进度条画布宽度number126
color自定义颜色(覆盖 status 颜色)string''
striped是否启用条纹booleanfalse
stripedFlow是否启用条纹动画booleanfalse
duration动画时长(秒)number3

Slots

插槽名说明
default自定义内容(仅 circle/dashboard),作用域参数: { percentage }

基于 MIT 许可发布