# el-table @expand-change 自定义传参
点击展开每行表格时,展开,主动获取数据
<el-table :data="supplierList" border stripe @expand-change="((row,expandedRows)=>{toExpand(row,expandedRows,id)})" >
<el-table-column type="expand" >
关键用法
@expand-change="((row,expandedRows)=>{toExpand(row,expandedRows,id)})
toExpand(row,expandedRows){
console.log(row.Name) //当前行
console.log(expandedRows)//所有行
}

浙公网安备 33010602011771号