Skip to content

ProgressCircle 环形进度条

介绍

用于展示数据的进度百分比。

基础用法

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

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

进度条宽度

通过 width 属性来设置进度条宽度。

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

进度条尺寸

通过 size 属性来设置进度条尺寸。

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

进度条起始角度

通过 start-angle 属性来设置进度条起始角度。

html
<vd-progress-circle value="50" size="50" start-angle="90" />

进度条颜色

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

html
<vd-progress-circle value="50" color="#ee0a24" />
<vd-progress-circle value="50" color="#ff976a" />
<vd-progress-circle value="50" color="#07c160" />

进度条状态

通过 status 属性来设置进度条状态,可选值为 success warning error

html
<vd-progress-circle value="50" status="success" />
<vd-progress-circle value="50" status="warning" />
<vd-progress-circle value="50" status="error" />

API

Props

参数说明类型默认值
value百分比进度值string | number0
width进度条宽度string | number5
size进度条尺寸string | number-
color进度条颜色string-
track-color进度条轨道颜色string-
status进度条状态,可选值为 success warning errorProgressCircleStatus-
duration动画时长,单位 msstring | number600
easing动画过渡方法EasingTimeline'ease'

代替原始 Props

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

Events

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

Slots

名称说明
text中间进度文本
status中间状态图标

赣ICP备2025061025号-1