废话少说,直接上代码
<template>
<el-table
ref="tableData"
:data="tableData"
stripe
tooltip-effect="dark"
:header-cell-style="{background:'#eef1f6',color:'#606266'}"
border
@selection-change="(selections)=>{handSelectionRules(selections,'参数')}"
>
<el-table-column type="selection" width="50"></el-table-column>
</el-table>
</template>
methods:{
handSelectionRules(selections,param){
console.log(selections,param) //[],参数
}
}
网友评论