Element 和 Vue使用总结
1.table 表格方法
1.1 @select:手动勾选数据行的checkbox复选框时触发 参数 【selection(所有选中的行), row(当前行)】
使用方法:
`<el-table :row-key="(row) => { return row.id }" :data="table2List" @select="onTableSelect"></el-table>`
selected == true 代表选中 false或0代表没选中
1.2 @row-click:点击列表行时触发 参数【row, column, event】
1.3 @selection-change:选择项发生变化时触发 参数【selection(所有选中的行)】
1.4 列表复选框使用以及获取复选框选中行
selection 用法
<el-table-column type="selection" width="40" align="center"></el-table-column>