element-ui
el-table
@select-all @selection-change带参数
<template>
<el-table
ref="tableData"
:data="tableData"
@selection-change="(selections)=>{handSelectionChange(selections,'参数')}"
@select-all="(selections)=>{handSelectionAll(selections,'参数')}"
>
<el-table-column type="selection" width="50"></el-table-column>
</el-table>
</template>
methods:{
handSelectionChange(selections,param){
console.log(selections,param) //[],参数
},
handSelectionAll(selections,param){
console.log(selections,param) //[],参数
},
}