diff --git a/src/components/u-table-view.vue/__tests__/__snapshots__/demo.test.js.snap b/src/components/u-table-view.vue/__tests__/__snapshots__/demo.test.js.snap
index 7349ada3f..7839db7ed 100644
--- a/src/components/u-table-view.vue/__tests__/__snapshots__/demo.test.js.snap
+++ b/src/components/u-table-view.vue/__tests__/__snapshots__/demo.test.js.snap
@@ -40393,6 +40393,303 @@ exports[`u-table-view.vue Demo-表头文字省略显示 1`] = `
`;
+exports[`u-table-view.vue Demo-表格有border 1`] = `
+
diff --git a/src/components/u-table-view.vue/docs/cases.md b/src/components/u-table-view.vue/docs/cases.md
index eea65f7b6..2f03f4f93 100644
--- a/src/components/u-table-view.vue/docs/cases.md
+++ b/src/components/u-table-view.vue/docs/cases.md
@@ -2726,4 +2726,39 @@ export default {
},
};
+```
+
+### 表格有border
+
+``` vue
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```
\ No newline at end of file
diff --git a/src/components/u-table-view.vue/index.vue b/src/components/u-table-view.vue/index.vue
index 60ba5d5bb..a59806b01 100644
--- a/src/components/u-table-view.vue/index.vue
+++ b/src/components/u-table-view.vue/index.vue
@@ -9,7 +9,7 @@
{{ title }}
-
@@ -1084,7 +1084,12 @@ export default {
this.timer = setTimeout(() => {
this.timer = undefined;
+ // 当最外层加了border后,会导致内部的宽度大于tablewrap的宽度,会出滚动条:Bug-2792431057259520
let rootWidth = this.$el.offsetWidth;
+ const tablewrapWidth = this.$refs.tablewrap[0] && this.$refs.tablewrap[0].offsetWidth;
+ if (tablewrapWidth) {
+ rootWidth = tablewrapWidth;
+ }
if (!rootWidth) {
// 初始表格隐藏时,上面的值为0,需要特殊处理
let parentEl = this.$el && this.$el.parentElement;