Progress / 进度条

展示事件或与之相关的任务进展。

基础的

最大值

自定义进度条的最大数值。

动态色彩

你可以指定进度条在任何范围内的颜色。

类型

我们预置了一些不同风格的进度条。

APIs / 接口文档

Progress.Props

属性描述类型推荐值默认
value进度条当前数值number-0
max最大值number-100
fixedTop固定进度条在顶部boolean-false
fixedBottom固定进度条在底部boolean-false
colors在范围内自定义颜色{ [key: number]: string }--
type预定义的状体类型ProgressTypesProgressTypesdefault
...原生属性ProgressHTMLAttributes'aria-busy', 'className', ...-

ProgressTypes

type ProgressTypes = 'default' | 'secondary' | 'success' | 'warning' | 'error'