Progress
进度条
示例
默认用法
<nut-progress
percent='15'
height='10px' />
15%
设置高度和颜色
<nut-progress
height='18px'
color='#33C3F0' />
23%
内联显示进度数
<nut-progress
height='0.25rem'
percent='20'
showText='in' />
20%
Props
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
percent | 百分比 | String, Number | 0 | — |
color | 背景色 | String | #f23030 | — |
height | 高度 | String | .06rem | — |
showText | 显示百分比的位置 | String | out | — |