From 5007d6a6e51ff451593f2c06db919edd130c5a2d Mon Sep 17 00:00:00 2001 From: RenCheng Date: Sun, 9 Mar 2025 16:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=93=E9=A2=98=E5=BA=93?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/dataCataloguing.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/data/dataCataloguing.vue b/src/views/data/dataCataloguing.vue index 883a68b..2777eeb 100644 --- a/src/views/data/dataCataloguing.vue +++ b/src/views/data/dataCataloguing.vue @@ -176,12 +176,6 @@ this.calculateScrollY(); }, computed: { - calculateScrollY() { - // 获取父容器高度(需减去表格内其他元素的高度,如分页栏) - const container = this.$refs.tableContainer; - const paginationHeight = 64; // 根据实际分页栏高度调整 - this.tableScrollY = container.clientHeight - paginationHeight; - }, getRowKey(record) { return `${record.schemaName}_${record.tableName}` }, @@ -218,6 +212,12 @@ }, methods: { + calculateScrollY() { + // 获取父容器高度(需减去表格内其他元素的高度,如分页栏) + const container = this.$refs.tableContainer; + const paginationHeight = 64; // 根据实际分页栏高度调整 + this.tableScrollY = container.clientHeight - paginationHeight; + }, handleSelectChange(selectedRowKeys,row) { this.selectedRowKeys = selectedRowKeys this.selectedRowData = row