easy-circular-progress
easy circular progress component with counting effect.
Install
npm install easy-circular-progress --save
Quick Start
Prop Types
Property | Type | Required? | Description |
---|---|---|---|
strokeWidth | Number | default is 4, the width of the progress circle, the bigger the bolder | |
radius | Number | the inner circle radius, default is 38 | |
transitionDuration | Number | default is 1000, transitionDuration for the animation | |
strokeColors | String | default is "#aaff00" | |
value | Number | String | default is 0.0, should be less or equal then 100 |
Slot
Slot Name | Description |
---|---|
footer | we can add a footer for the circle |
default | the content displayed in the circle |
if default slot provided, the coutdown effect will be ignored.
Advance Guide
Customized Theme
- In your customized scss file (demo.scss)
- import the scss to override the default theme in main.js (entry file) before you import the Draw component
variables
We split the number into two parts (int, dec)
We can define the font-size for each part
- $--circular-progress-int-fz: 28px;
- $--circular-progress-dec-fz: 12px;