拿官网示例来说,如图:
多选代码:
<el-table-column type="selection" width="55"></el-table-column>
tableData3: [{
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}]
假如在tableData3
中每条数据加一个字段check
,如何用这个字段控制每行的选择与否?
不用
selection