elementui 表格 selection 默认选中

<el-table  :data="workList"   ref="table1"
请求数据后全选
this.$refs.table1.toggleAllSelection(true)
只选一项
this.$refs.table1.toggleRowSelection(row, true)
posted @ 2022-09-16 10:17  jqynr  阅读(494)  评论(0)    收藏  举报