mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 12:18:46 +08:00
Table: add indeterminate state to multiple selection header checkbox (#9363)
* Table: Add indeterminate and disabled state to multiple selection header checkbox * Remove disabled state handling of select-all checkbox
This commit is contained in:
parent
575e2d1307
commit
ca02cb9cd3
@ -32,8 +32,9 @@ const defaults = {
|
||||
|
||||
const forced = {
|
||||
selection: {
|
||||
renderHeader: function(h) {
|
||||
renderHeader: function(h, { store }) {
|
||||
return <el-checkbox
|
||||
indeterminate={ store.states.selection.length > 0 && !this.isAllSelected }
|
||||
nativeOn-click={ this.toggleAllSelection }
|
||||
value={ this.isAllSelected } />;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user