Skip to content

Progress 进度条

介绍

用于展示操作的当前进度。

基础用法

通过 value 属性来设置进度条百分比。

html
<vd-progress value="50" />

进度条高度

通过 height 属性来设置进度条高度。

html
<vd-progress value="50" height="8" />

进度条类型

通过 type 属性来设置进度条类型,可选值为 defaultpivotinner

html
<vd-progress value="50" />
<vd-progress value="50" type="pivot" />
<vd-progress value="50" type="inner" />

进度条颜色

通过 color 属性来设置进度条颜色。

html
<vd-progress value="20" color="#ee0a24" type="pivot" />
<vd-progress value="50" color="#ff976a" type="pivot" />
<vd-progress value="70" color="#07c160" type="pivot" />

API

Props

参数说明类型默认值
value百分比进度值string | number-
type类型,可选值为 default pivot innerProgressTypedefault
height进度条高度string | number-
color进度条颜色string-
label-show是否展示标签booleantrue

代替原始 Props

参数说明类型默认值
custom-id根节点idstring-
custom-class根节点类名ClassValue-
custom-style根节点样式StyleValue-

Events

事件名说明回调参数
click点击时触发MouseEvent

Slots

名称说明
label进度条标签

赣ICP备2025061025号-1