Commit 2d18c6bf47edc3210475b45cbfd866c313adab46
1 parent
af10f422
Exists in
master
and in
1 other branch
修复清除选中项逻辑
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
packages/scheme/index.vue
| ... | ... | @@ -874,6 +874,11 @@ export default { |
| 874 | 874 | this.tableSelection = selection; |
| 875 | 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 | 883 | closeDialog() { |
| 879 | 884 | this.dialogVisible = false; |
| ... | ... | @@ -882,7 +887,6 @@ export default { |
| 882 | 887 | onDialogClose() { |
| 883 | 888 | this.dialogType = 'none'; |
| 884 | 889 | this.dialogRender = false; |
| 885 | - this.tableSelection = []; | |
| 886 | 890 | this.tableLoading = false; |
| 887 | 891 | this.tableCurrentRow = null; |
| 888 | 892 | this.dialogTitle = ''; | ... | ... |