feat(Checkbox): max can be string type

This commit is contained in:
陈嘉涵
2020-01-28 22:12:12 +08:00
parent 44072e8c3f
commit 128769be1c
3 changed files with 3 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| v-model | Names of all checked checkboxes | *any[]* | - |
| max | Maximum amount of checked options | *number* | `0`(Unlimited) |
| max | Maximum amount of checked options | *string \| number* | `0`(Unlimited) |
| disabled | Disable all checkboxes | *boolean* | `false` |
| icon-size `v2.2.3` | Icon size of all checkboxes | *string \| number* | `20px` |
| checked-color `v2.2.3` | Checked color of all checkboxes | *string* | `#1989fa` | - |

View File

@@ -219,7 +219,7 @@ export default {
|------|------|------|------|
| v-model | 所有选中项的标识符 | *any[]* | - |
| disabled | 是否禁用所有复选框 | *boolean* | `false` |
| max | 最大可选数0 为无限制 | *number* | `0` |
| max | 最大可选数0 为无限制 | *string \| number* | `0` |
| icon-size `v2.2.3` | 所有复选框的图标大小,默认单位为`px` | *string \| number* | `20px` |
| checked-color `v2.2.3` | 所有复选框的选中状态颜色 | *string* | `#1989fa` |