easy-circular-progress
Install
npm install easy-circular-progress --save |
Quick Start
<template> |
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 |
Advance Guide
Customized Theme
- In your customized scss file (demo.scss)
$--circular-progress-int-fz: 28px; |
- import the scss to override the default theme in main.js (entry file) before you import the Draw component
import "./demo.scss" |
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;
Possibly Polyfill
Number.isNaN = |