Skip to content

Commit

Permalink
优化滚动逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jul 4, 2024
1 parent 409265b commit 0f5a689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.7.43",
"version": "4.7.44",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
2 changes: 2 additions & 0 deletions packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4429,7 +4429,9 @@ export default defineComponent({
tableBodyElem.scrollLeft = 0
}
scrollXStore.startIndex = 0
scrollXStore.endIndex = scrollXStore.visibleSize
scrollYStore.startIndex = 0
scrollYStore.endIndex = scrollYStore.visibleSize
return nextTick()
},
/**
Expand Down

0 comments on commit 0f5a689

Please sign in to comment.