clena up
This commit is contained in:
parent
37f78378d5
commit
1056380733
1 changed files with 0 additions and 5 deletions
|
@ -117,8 +117,6 @@ const {
|
||||||
enableInfiniteScroll
|
enableInfiniteScroll
|
||||||
} = defaultStore.reactiveState;
|
} = defaultStore.reactiveState;
|
||||||
|
|
||||||
let mounted = $ref(false);
|
|
||||||
|
|
||||||
const contentEl = $computed(() => props.pagination.pageEl || rootEl);
|
const contentEl = $computed(() => props.pagination.pageEl || rootEl);
|
||||||
const scrollableElement = $computed(() => getScrollContainer(contentEl));
|
const scrollableElement = $computed(() => getScrollContainer(contentEl));
|
||||||
|
|
||||||
|
@ -136,7 +134,6 @@ watch(items, observeLatestElement, { deep: true });
|
||||||
function observeLatestElement() {
|
function observeLatestElement() {
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (!mounted) return;
|
|
||||||
const latestEl = (itemsContainer || rootEl)?.children.item(0);
|
const latestEl = (itemsContainer || rootEl)?.children.item(0);
|
||||||
if (latestEl) observer.observe(latestEl);
|
if (latestEl) observer.observe(latestEl);
|
||||||
});
|
});
|
||||||
|
@ -348,8 +345,6 @@ function toBottom() {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
mounted = true;
|
|
||||||
|
|
||||||
inited.then(() => {
|
inited.then(() => {
|
||||||
if (props.pagination.reversed) {
|
if (props.pagination.reversed) {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue