parent
f35bafb88a
commit
7665cbea01
|
@ -145,6 +145,7 @@ const List = defineComponent({
|
||||||
watch(
|
watch(
|
||||||
[inVirtual, useVirtual, () => state.scrollTop, mergedData, heights, () => props.height],
|
[inVirtual, useVirtual, () => state.scrollTop, mergedData, heights, () => props.height],
|
||||||
() => {
|
() => {
|
||||||
|
nextTick(() => {
|
||||||
if (!useVirtual.value) {
|
if (!useVirtual.value) {
|
||||||
calRes.value = {
|
calRes.value = {
|
||||||
scrollHeight: undefined,
|
scrollHeight: undefined,
|
||||||
|
@ -211,8 +212,9 @@ const List = defineComponent({
|
||||||
end: endIndex,
|
end: endIndex,
|
||||||
offset: startOffset,
|
offset: startOffset,
|
||||||
};
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true, flush: 'post' },
|
||||||
);
|
);
|
||||||
|
|
||||||
// =============================== In Range ===============================
|
// =============================== In Range ===============================
|
||||||
|
|
Loading…
Reference in New Issue