mirror of
https://github.com/youzan/vant.git
synced 2026-05-06 01:00:26 +08:00
docs: add version tip in en docs (#4262)
This commit is contained in:
+13
-13
@@ -57,19 +57,19 @@ use `loading` property to keep component in loading state
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | on-off state of the switch | `any` | `false` |
|
||||
| title | the left side title | `string` | `''` |
|
||||
| border | whether to show cell border | `boolean` | `true` |
|
||||
| cell-size | Cell size,can be set to `large` | `string` | - |
|
||||
| loading | whether switch is loading | `boolean` | `false` |
|
||||
| disabled | whether to disable switch | `boolean` | `false` |
|
||||
| size | Size of switch | `string` | `24px` |
|
||||
| active-color | Background of switch color when active | `string` | `#1989fa` |
|
||||
| inactive-color | Background of switch color when inactive | `string` | `#fff` |
|
||||
| active-value | Value when active | `any` | `true` |
|
||||
| inactive-value | Value when inactive | `any` | `false` |
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| v-model | on-off state of the switch | `any` | `false` | - |
|
||||
| title | the left side title | `string` | `''` | - |
|
||||
| border | whether to show cell border | `boolean` | `true` | - |
|
||||
| cell-size | Cell size,can be set to `large` | `string` | - | - |
|
||||
| loading | whether switch is loading | `boolean` | `false` | - |
|
||||
| disabled | whether to disable switch | `boolean` | `false` | - |
|
||||
| size | Size of switch | `string` | `24px` | - |
|
||||
| active-color | Background of switch color when active | `string` | `#1989fa` | - |
|
||||
| inactive-color | Background of switch color when inactive | `string` | `#fff` | - |
|
||||
| active-value | Value when active | `any` | `true` | - |
|
||||
| inactive-value | Value when inactive | `any` | `false` | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -61,8 +61,8 @@ export default {
|
||||
|------|------|------|------|------|
|
||||
| v-model | 开关状态 | `any` | `false` | - |
|
||||
| title | 左侧标题 | `string` | `''` | - |
|
||||
| border | 是否展示单元格内边框 | `boolean` | `true` | 2.0.0 |
|
||||
| cell-size | 单元格大小,可选值为 `large` | `string` | 2.0.0 |
|
||||
| border | 是否展示单元格内边框 | `boolean` | `true` | - |
|
||||
| cell-size | 单元格大小,可选值为 `large` | `string` | - |
|
||||
| loading | 是否为加载状态 | `boolean` | `false` | - |
|
||||
| disabled | 是否为禁用状态 | `boolean` | `false` | - |
|
||||
| size | 开关尺寸 | `string` | `24px` | - |
|
||||
|
||||
Reference in New Issue
Block a user