调整 #2448 逻辑

This commit is contained in:
xuliangzhan
2024-07-04 18:08:35 +08:00
parent 00564dfaf5
commit 5541691f2f
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "3.8.10-beta.0",
"version": "3.8.10-beta.1",
"description": "一个基于 vue 的 PC 端表单/表格组件支持增删改查、虚拟树、列拖拽懒加载、快捷菜单、数据校验、树形结构、打印导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",

View File

@@ -990,7 +990,7 @@ export default {
this.preventEvent(null, 'mounted')
},
activated () {
this.recalculate().then(() => this.refreshScroll(false))
this.recalculate().then(() => this.refreshScroll())
this.preventEvent(null, 'activated')
},
deactivated () {

View File

@@ -72,8 +72,8 @@ const lineOffsetSizes = {
medium: 1
}
export function restoreScrollLocation (_vm, scrollLeft, scrollTop, clearVirtualScroll = true) {
return _vm.clearScroll(clearVirtualScroll).then(() => {
export function restoreScrollLocation (_vm, scrollLeft, scrollTop) {
return _vm.clearScroll().then(() => {
if (scrollLeft || scrollTop) {
// 重置最后滚动状态
_vm.lastScrollLeft = 0