vue+elemnet table默认全部选中

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

原文地址:https://www.cnblogs.com/houBlogs/p/13641622.html