Skip to content

Commit

Permalink
fix: 修复网络卡顿时固定列错位问题 @0.8.7-4
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 5, 2021
1 parent 06b33e1 commit 82db330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.8.7-3",
"version": "0.8.7-4",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
13 changes: 6 additions & 7 deletions src/component/pro-table/src/ProTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,12 @@ export default defineComponent({
if (tableRefs.value) {
tableRefs.value.clearSelection();
}
nextTick(() => {
// 初始化表格高度
setTimeout(() => {
setMaxHeight();
}, 0);
});

setTimeout(() => {
setMaxHeight();
nextTick(() => {
tableRefs.value!.doLayout();
});
}, 300);
emit('done', {
total: count,
data,
Expand Down

0 comments on commit 82db330

Please sign in to comment.