Browse Source

fix: 修复表格列设置下拉框中偶现列数据区域空白 (#1958) (#1981)

Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
cn.shperry 2 years ago
parent
commit
8a7d9bcd4d
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/components/Table/src/components/settings/ColumnSetting.vue

+ 6 - 4
src/components/Table/src/components/settings/ColumnSetting.vue

@@ -182,10 +182,12 @@
       });
 
       watchEffect(() => {
-        const columns = table.getColumns();
-        if (columns.length && !state.isInit) {
-          init();
-        }
+        setTimeout(() => {
+          const columns = table.getColumns();
+          if (columns.length && !state.isInit) {
+            init();
+          }
+        }, 0);
       });
 
       watchEffect(() => {