vue Antd 组件使用 a-table表格 内置表格展开问题
vue Antd 组件使用 a-table表格 内置表格展开时 右侧固定操作栏无法一起被展开显示问题
<a-table> 上 添加 @expand="expandedOneRows" :row-key="record => record.id"
// 展开
const expandedOneRows = (expanded, record)=>{
nextTick(() => {
setTimeout(() => {
const elementa = document.querySelectorAll(`[data-row-key='${record.id}-extra-row']`) //左边
const heightb = elementa[0].getBoundingClientRect().height;
elementa[1].firstChild.nextSibling.style.height = heightb+'px';
}, 0)
})
}