feat(Circle): size、rate、speed can be string type

This commit is contained in:
陈嘉涵
2020-01-29 10:03:32 +08:00
parent 128769be1c
commit ef70384cdb
5 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -113,14 +113,14 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| v-model | Current rate | *number* | - |
| rate | Target rate | *number* | `100` |
| rate | Target rate | *string \| number* | `100` |
| size | Circle size | *string \| number* | `100px` |
| color `v2.1.4` | Progress color, passing object to render gradient | *string \| object* | `#1989fa` |
| layer-color | Layer color | *string* | `#fff` |
| fill | Fill color | *string* | `none` |
| speed | Animate speedrate/s| *number* | `0` |
| speed | Animate speedrate/s| *string \| number* | `0` |
| text | Text | *string* | - |
| stroke-width | Stroke width | *number* | `40` |
| stroke-width | Stroke width | *string \| number* | `40` |
| stroke-linecap `v2.2.15` | Stroke linecapcan be set to `sqaure` `butt` | *string* | `round` |
| clockwise | Whether to be clockwise | *boolean* | `true` |