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-radio-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 |
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 bound value changes | the label value of the chosen radio |
Single selection among multiple options
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 |
text-color | font color when button is active | string | - | #ffffff |
fill | border and background color when button is active | string | - | #409EFF |
Name | Description | Parameters |
---|---|---|
change | triggers when the bound value changes | the label value of the chosen radio |