Skip to content

Commit

Permalink
fix: table update height error #33
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 11, 2018
1 parent 17e0962 commit 97b86bd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/vc-table/src/BodyTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ export default {
},
methods: {
updateTableRef () {
this.$nextTick(() => {
this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft)
this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight)
this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable)
})
this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft)
this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight)
this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable)
},
},
render () {
Expand Down

0 comments on commit 97b86bd

Please sign in to comment.