support indeterminate checkbox state
This commit is contained in:
parent
3f5e798de7
commit
ecff6acf2d
3 changed files with 15 additions and 3 deletions
|
@ -24,6 +24,12 @@ const SelectableList = {
|
|||
computed: {
|
||||
allSelected () {
|
||||
return !this.items.find(item => !this.isSelected(item))
|
||||
},
|
||||
noneSelected () {
|
||||
return !this.items.find(item => this.isSelected(item))
|
||||
},
|
||||
someSelected () {
|
||||
return !this.allSelected && !this.noneSelected
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue