Skip to content

Commit a17adac

Browse files
authored
Update Table.vue
修复隐藏toolbar时计算高度错误bug,
1 parent 2ede7f9 commit a17adac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/grid/Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export default {
302302
this.$nextTick(() => {
303303
this.topViewHeight = this.$refs.topView.offsetHeight;
304304
305-
this.toolbarsViewHeight = this.$refs.toolbarsView.offsetHeight;
305+
this.toolbarsViewHeight = this.$refs.toolbarsView? this.$refs.toolbarsView.offsetHeight:0;
306306
307307
this.pageViewHeight = this.$refs.pageView ? this.$refs.pageView.offsetHeight : 0;
308308

0 commit comments

Comments
 (0)