热门

最新

红包

立Flag

投票

同城

我的

发布
qq_36056683
内心起波澜
3 年前
trueqq_36056683

element-ui设置选中的table的行的多选框toggleRowSelection方法不起作用
this.$nextTick(() => {
//要选择的选项,必须从tableData中取出,否则无效
const arr = this.tableData.filter(e => e.group === '001')
arr.forEach(e => this.$ref.leftTable.toggleRowSelection(e))
})

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
立即登录