Single selection among multiple options
Set data
attribute will automatic generate options
Set the disabled
attribute in prop data
Set config
attribute. value
- v-model bind key; label
- display key; disabled
- Disabled key; name
- name key
use pro-checkbox-button
then checkbox with button styles
Name | Description | Type | Options | Default |
---|---|---|---|---|
v-model | binding value | array | - | - |
data | binding data | array | - | - |
config | config the key of data | object | - | { value: ‘value’, label: ‘label’, disabled: ‘disabled’, name: ‘name’ } |
size | component size | string | large / default /small | - |
disabled | whether disabled | boolean | - | false |
min | minimum number of checkbox checked | number | - | - |
max | maximum number of checkbox checked | number | - | - |
text-color | font color when button is active | string | - | #ffffff |
fill | border and background color when button is active | string | - | #409EFF |
validate-event | whether to trigger form validation | boolean | - | true |
Name | Description | Parameters |
---|---|---|
change | triggers when the binding value changes | the updated value |
Checkbox with button styles
Name | Description | Type | Options | Default |
---|---|---|---|---|
v-model | binding value | array | - | - |
data | binding data | array | - | - |
config | config the key of data | object | - | { value: ‘value’, label: ‘label’, disabled: ‘disabled’, name: ‘name’ } |
size | component size | string | large / default /small | - |
disabled | whether disabled | boolean | - | false |
min | minimum number of checkbox checked | number | - | - |
max | maximum number of checkbox checked | number | - | - |
text-color | font color when button is active | string | - | #ffffff |
fill | border and background color when button is active | string | - | #409EFF |
validate-event | whether to trigger form validation | boolean | - | true |
Name | Description | Parameters |
---|---|---|
change | triggers when the binding value changes | the updated value |