mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[Improvement] Switch: support custom size (#723)
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
||||
#### Advanced usage
|
||||
|
||||
```html
|
||||
<van-switch :value="checked" @input="onInput" />
|
||||
<van-switch :value="checked" size="36px" @input="onInput" />
|
||||
```
|
||||
|
||||
```js
|
||||
@@ -71,7 +71,8 @@ export default {
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Check status of Switch | `Boolean` | `false` | - |
|
||||
| loading | Whether to show loading icon | `Boolean` | `false` | - |
|
||||
| disabled | Disable switch | `Boolean` | `false` | - |
|
||||
| disabled | Whether to disable switch | `Boolean` | `false` | - |
|
||||
| size | Size of switch | `String` | `30px` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
Reference in New Issue
Block a user