Commit ca02cb9c authored by syn-zeta's avatar syn-zeta Committed by 杨奕

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
parent 575e2d13
......@@ -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 } />;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment