Commit 4c91ac11e25d96b2f79e38037a5c92a795528d57

Authored by superlollipop
Committed by GitHub
1 parent ce480c5d

fix: 修复异步加载表格列时,表格设置显示列为空 (#2599)

src/components/Table/src/BasicTable.vue
... ... @@ -75,7 +75,7 @@
75 75 import { warn } from '/@/utils/log';
76 76  
77 77 export default defineComponent({
78   - name:'BasicTable',
  78 + name: 'BasicTable',
79 79 components: {
80 80 Table,
81 81 BasicForm,
... ...
src/components/Table/src/components/settings/ColumnSetting.vue
... ... @@ -183,8 +183,8 @@
183 183 });
184 184  
185 185 watchEffect(() => {
  186 + const columns = table.getColumns();
186 187 setTimeout(() => {
187   - const columns = table.getColumns();
188 188 if (columns.length && !state.isInit) {
189 189 init();
190 190 }
... ...