您的当前位置:首页正文

ElementUI表格点击行选中复选框

2024-11-23 来源:个人技术集锦
<el-table
          :data="tableData"
          ref="tableDom"
          :height="'100%'"
          style="width: 100%;"
          border
          @selection-change="handleSelectionChange"
          @row-click="toggleSelection"
        >
 toggleSelection(row) {
      this.$refs.tableDom.toggleRowSelection(row);
    },
显示全文