WXL
2024-07-16 cc73ea5320fed8a39e00bfc0fa02810199559122
src/components/SFtable/index.vue
@@ -1,6 +1,7 @@
<!-- 表格组件封装 -->
<template>
  <el-table
    ref="multipleTableson"
    :data="currentList"
    @selection-change="handleSelectionChange"
    :header-cell-style="{
@@ -158,6 +159,13 @@
    handleSelectionChange(selection) {
      this.$emit("handleSelectionChange", selection);
    },
    toggleRowSelection(row, selected) {
      this.$refs.multipleTableson.toggleRowSelection(row, selected);
    },
    clearSelection() {
      // 在这里编写清除选择的逻辑
      this.$refs.multipleTableson.clearSelection();
    },
  },
};
</script>