From 5f98fe12bae8bae15ea9f382f54b197c69149446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Sun, 8 Dec 2024 00:04:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=97=A0=E9=99=90?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...UseIntersectionObserverInfiniteLoading.vue | 65 ++++++++--- ...ing.page.vue => infinite-loading.page.vue} | 10 +- .../useIntersectionObserverList.page.vue | 104 ------------------ typed-router.d.ts | 3 +- 4 files changed, 55 insertions(+), 127 deletions(-) rename src/pages/{InfiniteLoading.page.vue => infinite-loading.page.vue} (80%) delete mode 100644 src/pages/useIntersectionObserverList.page.vue diff --git a/src/components/UseIntersectionObserverInfiniteLoading.vue b/src/components/UseIntersectionObserverInfiniteLoading.vue index f0cadf5..c3a109d 100644 --- a/src/components/UseIntersectionObserverInfiniteLoading.vue +++ b/src/components/UseIntersectionObserverInfiniteLoading.vue @@ -17,15 +17,22 @@ function checkIsVisible(el: Element, root: Element | null = null) { - - - - {{ item.name }} - - {{ item.email }} - {{ item.body }} - - - - - - - - - - - isSupported: {{ isSupported }} - - Enable - - - Element - - {{ isVisible ? 'inside' : 'outside' }} - - the viewport - - - diff --git a/typed-router.d.ts b/typed-router.d.ts index cbe21e7..f2760cb 100644 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -25,10 +25,9 @@ declare module 'vue-router/auto-routes' { 'Api': RouteRecordInfo<'Api', '/api', Record, Record>, 'DataLoadersId': RouteRecordInfo<'DataLoadersId', '/data-loaders/:id', { id: ParamValue }, { id: ParamValue }>, 'IndexPage': RouteRecordInfo<'IndexPage', '/index-page', Record, Record>, - 'InfiniteLoading': RouteRecordInfo<'InfiniteLoading', '/InfiniteLoading', Record, Record>, + 'InfiniteLoading': RouteRecordInfo<'InfiniteLoading', '/infinite-loading', Record, Record>, 'MdPage': RouteRecordInfo<'MdPage', '/md-page', Record, Record>, 'SomePage': RouteRecordInfo<'SomePage', '/some-page', Record, Record>, 'TsEnumUtil': RouteRecordInfo<'TsEnumUtil', '/ts-enum-util', Record, Record>, - 'UseIntersectionObserverList': RouteRecordInfo<'UseIntersectionObserverList', '/useIntersectionObserverList', Record, Record>, } }
{{ item.email }}
{{ item.body }}