Commit 4c91ac11e25d96b2f79e38037a5c92a795528d57
Committed by
GitHub
1 parent
ce480c5d
fix: 修复异步加载表格列时,表格设置显示列为空 (#2599)
Showing
2 changed files
with
2 additions
and
2 deletions
src/components/Table/src/BasicTable.vue
@@ -75,7 +75,7 @@ | @@ -75,7 +75,7 @@ | ||
75 | import { warn } from '/@/utils/log'; | 75 | import { warn } from '/@/utils/log'; |
76 | 76 | ||
77 | export default defineComponent({ | 77 | export default defineComponent({ |
78 | - name:'BasicTable', | 78 | + name: 'BasicTable', |
79 | components: { | 79 | components: { |
80 | Table, | 80 | Table, |
81 | BasicForm, | 81 | BasicForm, |
src/components/Table/src/components/settings/ColumnSetting.vue
@@ -183,8 +183,8 @@ | @@ -183,8 +183,8 @@ | ||
183 | }); | 183 | }); |
184 | 184 | ||
185 | watchEffect(() => { | 185 | watchEffect(() => { |
186 | + const columns = table.getColumns(); | ||
186 | setTimeout(() => { | 187 | setTimeout(() => { |
187 | - const columns = table.getColumns(); | ||
188 | if (columns.length && !state.isInit) { | 188 | if (columns.length && !state.isInit) { |
189 | init(); | 189 | init(); |
190 | } | 190 | } |