ant-design Table fixed 定位导致高度不一致(解决方案)
<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) }