From 9851f23e6ca77fc36ecbb8f02e7259ecb904ec22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E6=99=A8?= <>
Date: Wed, 10 Sep 2025 10:51:42 +0800
Subject: [PATCH] Fix #412
---
src/components/table/table.vue | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/components/table/table.vue b/src/components/table/table.vue
index 2afbb43fe..add5f0040 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -53,7 +53,7 @@
-
+
{
@@ -492,6 +492,20 @@
style.right = `${this.showVerticalScrollBar?this.scrollBarWidth:0}px`;
return style;
},
+ fixedRightTableStyle () {
+ let style = {}
+ if (this.tableWidth !== 0) {
+ let width = '';
+ if (this.bodyHeight === 0) {
+ width = this.tableWidth;
+ } else {
+ width = this.tableWidth - (this.showVerticalScrollBar?this.scrollBarWidth:0);
+ }
+ style.width = `${width}px`;
+ }
+ style.right = `${this.showVerticalScrollBar?this.scrollBarWidth:0}px`;
+ return style;
+ },
fixedRightHeaderStyle () {
let style = {};
let width = 0;