@@ -166,6 +166,7 @@
tagselectedRowKeys: [],
selectedRowData: [],
tagselectedRowData: [],
+ tableScrollY:0,
}
},
mounted() {
@@ -175,12 +176,6 @@
getRowKey(record) {
return `${record.schemaName}_${record.tableName}`
},
- dynamicHeight() {
- const totalOffset = this.headerHeight + this.footerHeight;
- return {
- height: `calc(100vh - 324px)`
- }
- },
rowSelection() {
return {
selectedRowKeys: this.selectedRowKeys,
@@ -214,6 +209,12 @@
},
methods: {
+ updateScrollY() {
+ const container = this.$refs.tableWrapper;
+ const paginationHeight = 64; // 分页栏高度
+ const tableHeaderHeight = 55; // 表头高度
+ this.tableScrollY = container.clientHeight - paginationHeight - tableHeaderHeight;
+ },
handleSelectChange(selectedRowKeys,row) {
this.selectedRowKeys = selectedRowKeys
this.selectedRowData = row