Commit 2d18c6bf47edc3210475b45cbfd866c313adab46

Authored by 刘汉宸
1 parent af10f422
Exists in master and in 1 other branch legacy

修复清除选中项逻辑

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
packages/scheme/index.vue
@@ -874,6 +874,11 @@ export default { @@ -874,6 +874,11 @@ export default {
874 this.tableSelection = selection; 874 this.tableSelection = selection;
875 this.$emit('selection', selection); 875 this.$emit('selection', selection);
876 }, 876 },
  877 + // 清空选中项
  878 + clearSelection() {
  879 + this.tableSelection = [];
  880 + this.$refs['eagle-table'] && this.$refs['eagle-table'].$refs.table && this.$refs['eagle-table'].$refs.table.clearSelection();
  881 + },
877 // 隐藏弹出框 882 // 隐藏弹出框
878 closeDialog() { 883 closeDialog() {
879 this.dialogVisible = false; 884 this.dialogVisible = false;
@@ -882,7 +887,6 @@ export default { @@ -882,7 +887,6 @@ export default {
882 onDialogClose() { 887 onDialogClose() {
883 this.dialogType = 'none'; 888 this.dialogType = 'none';
884 this.dialogRender = false; 889 this.dialogRender = false;
885 - this.tableSelection = [];  
886 this.tableLoading = false; 890 this.tableLoading = false;
887 this.tableCurrentRow = null; 891 this.tableCurrentRow = null;
888 this.dialogTitle = ''; 892 this.dialogTitle = '';