vue elementui table 复选框

1.el-table  中加入事件@selection-change="handleSelectionChange"

<el-table-column type="selection" width="55"></el-table-column>这样就是复选框了

handleSelectionChange(val) {

this.multipleSelection = val

},

this.multipleSelection是一个数组,然后对数组进行自己需要的操作

猜你喜欢

转载自blog.csdn.net/weixin_43173924/article/details/89639155