feat(Circle): add startPosition prop (#9305)
* feat(Circle): add startPosition prop * docs(Circle): add start-position demo
This commit is contained in:
@@ -119,6 +119,29 @@ export default {
|
||||
/>
|
||||
```
|
||||
|
||||
### Start Position
|
||||
|
||||
```html
|
||||
<van-circle
|
||||
v-model:current-rate="currentRate"
|
||||
:rate="rate"
|
||||
:text="Left"
|
||||
start-position="left"
|
||||
/>
|
||||
<van-circle
|
||||
v-model:current-rate="currentRate"
|
||||
:rate="rate"
|
||||
text="Right"
|
||||
start-position="right"
|
||||
/>
|
||||
<van-circle
|
||||
v-model:current-rate="currentRate"
|
||||
:rate="rate"
|
||||
text="Bottom"
|
||||
start-position="bottom"
|
||||
/>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
@@ -136,6 +159,7 @@ export default {
|
||||
| stroke-width | Stroke width | _number \| string_ | `40` |
|
||||
| stroke-linecap | Stroke linecap,can be set to `square` `butt` | _string_ | `round` |
|
||||
| clockwise | Whether to be clockwise | _boolean_ | `true` |
|
||||
| start-position `v3.2.1` | Progress start position,can be set to `left`、`right`、`bottom` | _CircleStartPosition_ | `top` |
|
||||
|
||||
### Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user