动态表格组件里加入文本框组件,操作列会出现高度错位
Closed this issue · 1 comments
blacktea704 commented
blacktea704 commented
是and design vue table fixed 的问题,我使用了 ResizeObserver 监听 .ant-table-fixed 来解决monitorHeight(){ const resizeObserver = new ResizeObserver((entries) => { for (const entry of entries) { this.dynamicValidateForm.domains.splice(0, 1, this.dynamicValidateForm.domains[0]) } }); const tableWrap = document.getElementById('batchTable') if (tableWrap) { resizeObserver.observe(tableWrap.querySelector('.ant-table-fixed')); } },