this.$nextTick(() => {
          for (let i = 0; i < this.searchTable.length; i++) {
            this.$refs.defalutTable.toggleRowSelection(
              this.searchTable[i],
              true
            );
          }
        });
这个 this.searchTable 是我的表格数据。
这是官方网站给出的选中状态。

vue+elemnet table默认全部选中

 

相关文章:

  • 2022-03-02
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案