1
0
mirror of synced 2025-12-08 06:38:39 +08:00

优化滚动逻辑

This commit is contained in:
xuliangzhan
2024-07-04 18:04:04 +08:00
parent 409265b89f
commit 0f5a689c80
2 changed files with 3 additions and 1 deletions

View File

@@ -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",

View File

@@ -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()
},
/**