|
@@ -1,5 +1,4 @@
|
|
import Vue from 'vue';
|
|
import Vue from 'vue';
|
|
-import debounce from 'throttle-debounce/debounce';
|
|
|
|
import merge from 'element-ui/src/utils/merge';
|
|
import merge from 'element-ui/src/utils/merge';
|
|
import { getKeysMap, getRowIdentity, getColumnById, getColumnByKey, orderBy, toggleRowStatus } from '../util';
|
|
import { getKeysMap, getRowIdentity, getColumnById, getColumnByKey, orderBy, toggleRowStatus } from '../util';
|
|
import expand from './expand';
|
|
import expand from './expand';
|
|
@@ -168,7 +167,7 @@ export default Vue.extend({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- toggleAllSelection: debounce(10, function() {
|
|
|
|
|
|
+ _toggleAllSelection() {
|
|
const states = this.states;
|
|
const states = this.states;
|
|
const { data = [], selection } = states;
|
|
const { data = [], selection } = states;
|
|
// when only some rows are selected (but not all), select or deselect all of them
|
|
// when only some rows are selected (but not all), select or deselect all of them
|
|
@@ -195,7 +194,7 @@ export default Vue.extend({
|
|
this.table.$emit('selection-change', selection ? selection.slice() : []);
|
|
this.table.$emit('selection-change', selection ? selection.slice() : []);
|
|
}
|
|
}
|
|
this.table.$emit('select-all', selection);
|
|
this.table.$emit('select-all', selection);
|
|
- }),
|
|
|
|
|
|
+ },
|
|
|
|
|
|
updateSelectionByRowKey() {
|
|
updateSelectionByRowKey() {
|
|
const states = this.states;
|
|
const states = this.states;
|