Animated Circular Progress Bar
Animated Circular Progress Bar is a component that displays a circular gauge with a percentage value.
通过 CLI 安装
手动安装
复制并粘贴以下代码:
AnimatedCircularProgressBar.vue
API
Prop 名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
class | string | - | The class to be applied to the component. |
max | number | 100 | The maximum value of the gauge. |
min | number | 0 | The minimum value of the gauge. |
value | number | 0 | The current value of the gauge. |
gaugePrimaryColor | string | rgb(79 70 229) | The primary color of the gauge. |
gaugeSecondaryColor | string | rgba(0, 0, 0, 0.1) | The secondary color of the gauge. |
circleStrokeWidth | number | 10 | The width of the circle progress bar. |
showPercentage | boolean | true | Show the value inside the circle |
duration | number | 1 | The duration of the animation (in seconds). |
感谢
- Credits to Magic UI.
- Credits to SivaReddy Uppathi for porting this component.