Checker
is a more flexible component than Radio
and Checklist
.
checker
checker
Props
name | type | default | description | required version |
default-item-class | string | default checker-item classname | -- | |
selected-item-class | string | selected check-item classname | -- | |
disabled-item-class | string | disabled check-item classname | -- | |
type | string | radio | checker type, should be raido or checkbox | -- |
value | string array | selected value, use v-model for binding | -- | |
max | number | max selected number when type = checkbox | -- | |
radio-required | boolean | false | whether value is required in radio mode. if true, current selected item will always be selected even after clicking | v2.6.3 |
Events
name | params | description | required version |
@on-change | (value) | emits when value is changed | -- |
checker-item
checker-item
Props
name | type | default | description | required version |
value | string | value of current checker-item | -- | |
disabled | boolean | false | if current item is disabled | -- |
Events
name | params | description | required version |
@on-item-click | (itemValue, itemDisabled) | emits when current checker-item is clicked | -- |
Contributors
Contributors
Total commits quantity: 16,Total contributors quantity: 2
airylandQiongrong JiangChangelog
Releases
- v2.6.3 [feature] support prop:radio-required #2004
- v2.6.0 [fix] Fix event:on-change do not fire when using :value binding instead of v-model #1945
- v2.3.8 [enhance] clear value when selected item is disabled #1479
- v2.3.2 [enhance] Support unselecting current item when clicking again in radio mode #1468
- v2.1.1-rc.14 [enhance] Now disabled item also emits event:on-item-click #1144
- v2.0.0 [feature] Support Object value #705