<a-table :columns="columns" :rowKey="record=>record.rowId" :data-source="data" :scroll="{x:true}" :pagination='false'
当点击按钮编辑table里面的内容时导致,高度变化,需要手动触发 windows resize事件,重新计算高度
export function triggerWindowResizeEvent() { let event = document.createEvent('HTMLEvents') event.initEvent('resize', true, true) event.eventType = 'message' window.dispatchEvent(event) }
标签:data,高度,ant,design,Table,true,event From: https://www.cnblogs.com/cs122/p/16969612.html