Explorar o código

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

Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
cn.shperry %!s(int64=2) %!d(string=hai) anos
pai
achega
8a7d9bcd4d

+ 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(() => {