WXL
2024-05-31 49fcdb7178dffc69769e2fb8cb6a03e204cb1e68
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>