Skip to content

Progress 进度条

展示操作或任务的当前进度,支持条形、内嵌文字、环形和仪表盘四种样式。

基础用法

30%
60%
70%

环形 / 仪表盘

65%
65%

内嵌文字

0%
30%
70%
100%

API

Props

属性类型默认值说明
percentnumber0进度百分比(0–100)
typeProgressType'line'样式:line | line-inner | circle | dashboard
statusProgressStatus'normal'状态颜色
strokeWidthnumber进度条粗细(px),line 默认随 size;circle 默认 6
showInfobooleantrue是否显示百分比/状态图标
format(p: number) => string自定义显示文字
sizeProgressSize'md'line 尺寸:sm(4px) | md(8px) | lg(12px)
classNamestring自定义 class
styleobject自定义样式

类型

ts
type ProgressType = "line" | "line-inner" | "circle" | "dashboard";
type ProgressStatus = "normal" | "success" | "error" | "warning" | "active";
type ProgressSize = "sm" | "md" | "lg";

AUI Vue Components — Built with Vue 3 & VitePress