从 v2.6.2 开始,max=1即为单选模式,不会要求先取消上一个选中的才能选中下一个值。
API
Variables
Props
name | type | default | description | required version |
value | array | [] | form value | -- |
title | string | title | -- | |
required | boolean | false | if required | -- |
options | array | [] | options list | -- |
max | number | max selected number | -- | |
min | number | min selected number | -- | |
random-order | boolean | false | if place options in a random order | -- |
check-disabled | boolean | true | if disabled item when selectedItems.length === total.length, by using this prop:max no longer works | v2.2.1-rc.1 |
label-position | string | right | label position, can be set to left or right | v2.2.1-rc.4 |
disabled | string | if disable user from selecting | v2.3.8 |
Events
name | params | description | required version |
@on-change | (value, label) | emits when value changes, param:label is supported after v2.5.7 | -- |
Functions
name | params | description | required version |
getFullValue | get current value with label | v2.6.4 |
Variables
name | default | description | inherited name |
@checklist-icon-active-color | #09BB07 | -- |
Contributors
Contributors
Total commits quantity: 31,Total contributors quantity: 4
airylandQiongrong Jiang万刚greedyingChangelog
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`