Skip to content

Commit 97b86bd

Browse files
committed
fix: table update height error #33
1 parent 17e0962 commit 97b86bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/vc-table/src/BodyTable.jsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ export default {
2727
},
2828
methods: {
2929
updateTableRef () {
30-
this.$nextTick(() => {
31-
this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft)
32-
this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight)
33-
this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable)
34-
})
30+
this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft)
31+
this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight)
32+
this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable)
3533
},
3634
},
3735
render () {

0 commit comments

Comments
 (0)