# 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)//所有行

    }

posted @ 2021-12-28 15:45  成强  阅读(778)  评论(0)    收藏  举报