Merge branch 'virtual-scrolling-2.0' into shigusegubu-themes3
This commit is contained in:
commit
02e0a0f1b9
2 changed files with 5 additions and 6 deletions
|
|
@ -230,9 +230,9 @@ export default {
|
|||
changeSuspendStateLinear(e)
|
||||
const { id, suspend } = e
|
||||
if (suspend) {
|
||||
unsuspendableIds.value.add(id)
|
||||
} else {
|
||||
unsuspendableIds.value.delete(id)
|
||||
} else {
|
||||
unsuspendableIds.value.add(id)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -266,7 +266,6 @@ export default {
|
|||
changeSuspendState: changeSuspendStateAncestors,
|
||||
updateVirtualHeight: updateVirtualHeightAncestors,
|
||||
reset: resetTreeScrollVirtualization,
|
||||
scrollTo: treeScrollTo,
|
||||
} = useVirtualScrolling({
|
||||
name: 'Ancestors',
|
||||
enabled: treeScrollCompensation,
|
||||
|
|
@ -315,9 +314,7 @@ export default {
|
|||
|
||||
// # Scrolling
|
||||
const scrollTo = (ids) => {
|
||||
if (isTreeView.value) {
|
||||
return treeScrollTo(ids)
|
||||
} else {
|
||||
if (isLinearView.value) {
|
||||
return linearScrollTo(ids)
|
||||
}
|
||||
}
|
||||
|
|
@ -384,6 +381,7 @@ export default {
|
|||
// # Scrolling
|
||||
diveToTopLevel,
|
||||
diveIntoStatus,
|
||||
unsuspendableIds,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@
|
|||
:data-status-id="element.id"
|
||||
:data-vs-height="element.height"
|
||||
:data-vs-top="element.top"
|
||||
:data-vs-suspend="element.suspendable"
|
||||
|
||||
@goto="setFocused"
|
||||
@dive="diveIntoStatus(element.id)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue