Skip to content
反馈与浮层

NnProgress 进度条

线性进度与业务状态。

示例

API

Props

名称类型默认值说明
percentnumber0百分比;有限数字四舍五入并限制在 0..100,非有限值按 0。
statusstring'normal'normalactivesuccesswarningerror;其他值回退 normal
strokeWidthnumber | string4轨道高度;数字或纯数字字符串按非负 px,其他字符串作为 CSS 值,空值回退 4px
showInfobooleanfalse是否显示右侧百分比或 format 插槽。
ariaLabelstring'进度'role="progressbar" 根节点的无障碍标签。

Slots

名称作用域参数说明
format{ percent: number, status: string }替换右侧信息,默认显示规范化百分比。

Released under the MIT License.