mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
feat(Checkbox): max can be string type
This commit is contained in:
parent
44072e8c3f
commit
128769be1c
src
@ -7,7 +7,7 @@ export default createComponent({
|
||||
mixins: [ParentMixin('vanCheckbox')],
|
||||
|
||||
props: {
|
||||
max: Number,
|
||||
max: [Number, String],
|
||||
disabled: Boolean,
|
||||
iconSize: [Number, String],
|
||||
checkedColor: String,
|
||||
|
@ -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` | - |
|
||||
|
@ -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` |
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user