给el-table添加属性row-key
并且给type=”selection”的列添加属性:reserve-selection=”true”
<el-table :row-key="rowKey">
<el-table-column type="selection" :reserve-selection="true"/>
</el-table>
function rowKey(row) {
return return row.id
}
给el-table添加属性row-key
并且给type=”selection”的列添加属性:reserve-selection=”true”
<el-table :row-key="rowKey">
<el-table-column type="selection" :reserve-selection="true"/>
</el-table>
function rowKey(row) {
return return row.id
}