Skip to content

Commit

Permalink
fix: 修复 固定表格高度时,首次渲染 reflow 的问题 & 横向宽度计算问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-front committed Oct 23, 2019
1 parent fe50239 commit 7251b17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ export default {
},
sum: function() {
this.calHeight();
},
showScrollBar() {
this.resize();
}
},
updated() {},
Expand Down Expand Up @@ -369,7 +372,7 @@ export default {
doLayout: debounce(function() {
this.resize();
this.calHeight();
}, 50),
}, 50, {leading: true}),
computedFixedLeft: function() {
return this.tableColumns.some(item => item.fixed === 'left');
},
Expand Down

0 comments on commit 7251b17

Please sign in to comment.