Commit 8a7d9bcd4de19dd4c06142bb1938705a8c70aa62

Authored by cn.shperry
Committed by GitHub
1 parent 934ccd34

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

Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
src/components/Table/src/components/settings/ColumnSetting.vue
@@ -182,10 +182,12 @@ @@ -182,10 +182,12 @@
182 }); 182 });
183 183
184 watchEffect(() => { 184 watchEffect(() => {
185 - const columns = table.getColumns();  
186 - if (columns.length && !state.isInit) {  
187 - init();  
188 - } 185 + setTimeout(() => {
  186 + const columns = table.getColumns();
  187 + if (columns.length && !state.isInit) {
  188 + init();
  189 + }
  190 + }, 0);
189 }); 191 });
190 192
191 watchEffect(() => { 193 watchEffect(() => {