Checklist
Install

Install

从 v2.6.2 开始,max=1即为单选模式,不会要求先取消上一个选中的才能选中下一个值。


API

Props

nametypedefaultdescriptionrequired version
valuearray[]form value--
titlestringtitle--
requiredbooleanfalseif required--
optionsarray[]options list--
maxnumbermax selected number--
minnumbermin selected number--
random-orderbooleanfalseif place options in a random order--
check-disabledbooleantrueif disabled item when selectedItems.length === total.length, by using this prop:max no longer worksv2.2.1-rc.1
label-positionstringrightlabel position, can be set to left or rightv2.2.1-rc.4
disabledstringif disable user from selectingv2.3.8

Events

nameparamsdescriptionrequired version
@on-change(value, label)emits when value changes, param:label is supported after v2.5.7--

Functions

nameparamsdescriptionrequired version
getFullValueget current value with labelv2.6.4
Variables

Variables

namedefaultdescriptioninherited name
@checklist-icon-active-color #09BB07 --


Contributors

Contributors

Total commits quantity: 31,Total contributors quantity: 4

airylandQiongrong Jiang万刚greedying

Changelog

Releases

  • v2.7.0 [fix] fix default selected item missing issue #2122
  • v2.6.5 [fix] fix missing icon style when using checklist along #2041
  • v2.6.5 [fix] initializing the tempValue when created #2059
  • v2.6.4 [feature] support method:getFullValue #2022
  • v2.6.3 [fix] now on-change params has labels as second param #2018
  • v2.6.2 [feature] Support radio mode(max = 1) #1996
  • v2.5.7 [feature] Support `label` param for on-change event #1783
  • v2.3.8 [feature] Add prop:disabled #1254
  • v2.2.1-rc.4 [feature] Support prop:label-position
  • v2.2.1-rc.1 [feature] Support prop:check-disabled
  • v2.0.0 [change] it does not show errors by default, handle errors by on-error events
  • v2.0.0 [feature] add slot:footer slot:after-title
  • v2.0.0 [change] if value.length === max, the left items will be disabled
  • v2.0.0 [change] default required value is false
  • v2.5.2 [fix] emit event `input` before `on-change`
  • v2.5.2 [feature] add attribute `inlineDesc` to `options`