From f90eb2159fc4aa79d7cd28e0f30b7e82a2cea779 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期一, 26 五月 2025 13:47:20 +0800 Subject: [PATCH] 中试报告 --- laboratory/src/components/Table/index.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/laboratory/src/components/Table/index.vue b/laboratory/src/components/Table/index.vue index ddc06cf..848e5a4 100644 --- a/laboratory/src/components/Table/index.vue +++ b/laboratory/src/components/Table/index.vue @@ -1,6 +1,6 @@ <template> <div class="table-container"> - <el-table border v-bind="$attrs" v-on="$listeners" :height="height"> + <el-table ref="elTable" border v-bind="$attrs" v-on="$listeners" :height="height"> <slot></slot> </el-table> <div v-if="total > 0"> @@ -42,6 +42,14 @@ } }, methods: { + // toggleRowSelection(row, selected) { + // this.$refs.elTable.toggleRowSelection(row, selected) + // this.$forceUpdate() + // }, + // clearSelection() { + // this.$refs.elTable.clearSelection() + // this.$forceUpdate() + // }, handleCurrentChange(page) { this.$emit('handleCurrentChange', page) }, -- Gitblit v1.7.1