Checker
Install

Install

Checker is a more flexible component than Radio and Checklist.


checker

checker

Props

nametypedefaultdescriptionrequired version
default-item-classstringdefault checker-item classname--
selected-item-classstringselected check-item classname--
disabled-item-classstringdisabled check-item classname--
typestringradiochecker type, should be raido or checkbox--
valuestring
array
selected value, use v-model for binding--
maxnumbermax selected number when type = checkbox--
radio-requiredbooleanfalsewhether value is required in radio mode. if true, current selected item will always be selected even after clickingv2.6.3

Events

nameparamsdescriptionrequired version
@on-change(value)emits when value is changed--
checker-item

checker-item

Props

nametypedefaultdescriptionrequired version
valuestringvalue of current checker-item--
disabledbooleanfalseif current item is disabled--

Events

nameparamsdescriptionrequired version
@on-item-click(itemValue, itemDisabled)emits when current checker-item is clicked--


Contributors

Contributors

Total commits quantity: 16,Total contributors quantity: 2

airylandQiongrong Jiang

Changelog

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