mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Doc] use ts-style type
This commit is contained in:
@@ -144,21 +144,21 @@ export default {
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| name | Checkbox name | `any` | - |
|
||||
| shape | Can be set to `square` | `String` | `round` |
|
||||
| v-model | Check status | `Boolean` | `false` |
|
||||
| disabled | Diable checkbox | `Boolean` | `false` |
|
||||
| icon-size | Icon size | `String | Number` | `20px` |
|
||||
| label-disabled | Whether to disable label click | `Boolean` | `false` |
|
||||
| label-position | Can be set to `left` | `String` | `right` |
|
||||
| checked-color | Checked color | `String` | `#1989fa` | - |
|
||||
| shape | Can be set to `square` | `string` | `round` |
|
||||
| v-model | Check status | `boolean` | `false` |
|
||||
| disabled | Diable checkbox | `boolean` | `false` |
|
||||
| icon-size | Icon size | `string | number` | `20px` |
|
||||
| label-disabled | Whether to disable label click | `boolean` | `false` |
|
||||
| label-position | Can be set to `left` | `string` | `right` |
|
||||
| checked-color | Checked color | `string` | `#1989fa` | - |
|
||||
|
||||
### CheckboxGroup Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Names of all checked checkboxes | `Array` | - |
|
||||
| disabled | Disable all checkboxes | `Boolean` | `false` |
|
||||
| max | Maximum amount of checked options | `Number` | `0`(Unlimited) |
|
||||
| disabled | Disable all checkboxes | `boolean` | `false` |
|
||||
| max | Maximum amount of checked options | `number` | `0`(Unlimited) |
|
||||
|
||||
### Checkbox Events
|
||||
|
||||
|
@@ -148,21 +148,21 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| name | 标识符 | `any` | - | - |
|
||||
| shape | 形状,可选值为 `square` | `String` | `round` | - |
|
||||
| v-model | 是否为选中状态 | `Boolean` | `false` | - |
|
||||
| disabled | 是否禁用复选框 | `Boolean` | `false` | - |
|
||||
| icon-size | 图标大小,默认单位为`px` | `String | Number` | `20px` | 2.0.0 |
|
||||
| label-disabled | 是否禁用复选框文本点击 | `Boolean` | `false` | - |
|
||||
| label-position | 文本位置,可选值为 `left` | `String` | `right` | - |
|
||||
| checked-color | 选中状态颜色 | `String` | `#1989fa` | - |
|
||||
| shape | 形状,可选值为 `square` | `string` | `round` | - |
|
||||
| v-model | 是否为选中状态 | `boolean` | `false` | - |
|
||||
| disabled | 是否禁用复选框 | `boolean` | `false` | - |
|
||||
| icon-size | 图标大小,默认单位为`px` | `string | number` | `20px` | 2.0.0 |
|
||||
| label-disabled | 是否禁用复选框文本点击 | `boolean` | `false` | - |
|
||||
| label-position | 文本位置,可选值为 `left` | `string` | `right` | - |
|
||||
| checked-color | 选中状态颜色 | `string` | `#1989fa` | - |
|
||||
|
||||
### CheckboxGroup Props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 所有选中项的标识符 | `Array` | - | - |
|
||||
| disabled | 是否禁用所有复选框 | `Boolean` | `false` | - |
|
||||
| max | 设置最大可选数,0 为无限制 | `Number` | `0` | - |
|
||||
| disabled | 是否禁用所有复选框 | `boolean` | `false` | - |
|
||||
| max | 设置最大可选数,0 为无限制 | `number` | `0` | - |
|
||||
|
||||
### Checkbox Events
|
||||
|
||||
|
Reference in New Issue
Block a user