经常用到记录一下,到时候直接复制,不用费劲自己记住
效果图
<el-table
:data="dataList"
border
@selection-change="selectionChangeHandle"
:max-height="listHeight"
style="width: 100%;">
<el-table-column
show-overflow-tooltip
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
</<el-table>
// 多选
selectionChangeHandle(val) {
console.log(val)
this.dataListSelections = val
},