Skip to content

进度 Progress

基本的线性进度条

多个选项用来配置进度条的外观

内置多种主题

和 Slider 结合使用示例

基本的进度环

API

ProgressLinear Props

参数名说明类型可选值默认值是否必填
percent已完成的进度(百分比)numbertrue
theme进度条的主题(内置四种主题)stringcustom/primary/success/danger/warningcustom
trackWidth进度条线条的宽度string6px
trackColor轨道的背景色string#e5e6eb
doneTrackColor已完成进度的背景色stringrgba(0, 160, 255, 1)
showLabel是否显示 labelbooleantrue
formatLabel自定义 label 的显示文本functionnull
width进度条的宽度string100%
animation是否开启进度条的阴影动画booleantrue
round是否开启圆角booleantrue
roundLength圆角大小string100px

ProgressCircular Props

参数名说明类型可选值默认值是否必填
percent已完成的进度(百分比)numbertrue
theme进度条的主题(内置四种主题)stringcustom/primary/success/danger/warningcustom
trackWidth进度条线条的宽度number6
trackColor轨道的背景色string#e5e6eb
doneTrackColor已完成进度的背景色stringrgba(0, 160, 255, 1)
showLabel是否显示 labelbooleantrue
formatLabel自定义 label 的显示文本functionnull
radius进度环半径number50
rotate进度环摆放的角度number-90