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