Commit 8a7d9bcd4de19dd4c06142bb1938705a8c70aa62
Committed by
GitHub
1 parent
934ccd34
fix: 修复表格列设置下拉框中偶现列数据区域空白 (#1958) (#1981)
Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
Showing
1 changed file
with
6 additions
and
4 deletions
src/components/Table/src/components/settings/ColumnSetting.vue
... | ... | @@ -182,10 +182,12 @@ |
182 | 182 | }); |
183 | 183 | |
184 | 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 | 193 | watchEffect(() => { | ... | ... |