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;