From 2b991ad26a913d4948992f2d72eaae33aa38aff6 Mon Sep 17 00:00:00 2001 From: Seven Date: Tue, 20 Jan 2026 03:32:01 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0IonDatetime=E3=80=81I?= =?UTF-8?q?onList=E3=80=81IonSelect=E5=92=8CIonSelectOption=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=94=AF=E6=8C=81=EF=BC=9B=E4=BC=98=E5=8C=96=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 8 ++++++++ src/views/home/index.vue | 13 ++++++++++--- src/views/service/index.vue | 10 +++++----- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/components.d.ts b/components.d.ts index 3ebabaf..22b8917 100644 --- a/components.d.ts +++ b/components.d.ts @@ -21,6 +21,7 @@ declare module 'vue' { IonButtons: typeof import('@ionic/vue')['IonButtons'] IonCheckbox: typeof import('@ionic/vue')['IonCheckbox'] IonContent: typeof import('@ionic/vue')['IonContent'] + IonDatetime: typeof import('@ionic/vue')['IonDatetime'] IonHeader: typeof import('@ionic/vue')['IonHeader'] IonIcon: typeof import('@ionic/vue')['IonIcon'] IonInfiniteScroll: typeof import('@ionic/vue')['IonInfiniteScroll'] @@ -28,12 +29,15 @@ declare module 'vue' { IonInput: typeof import('@ionic/vue')['IonInput'] IonItem: typeof import('@ionic/vue')['IonItem'] IonLabel: typeof import('@ionic/vue')['IonLabel'] + IonList: typeof import('@ionic/vue')['IonList'] IonPage: typeof import('@ionic/vue')['IonPage'] IonRefresher: typeof import('@ionic/vue')['IonRefresher'] IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent'] IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] IonSegment: typeof import('@ionic/vue')['IonSegment'] IonSegmentButton: typeof import('@ionic/vue')['IonSegmentButton'] + IonSelect: typeof import('@ionic/vue')['IonSelect'] + IonSelectOption: typeof import('@ionic/vue')['IonSelectOption'] IonSpinner: typeof import('@ionic/vue')['IonSpinner'] IonTabBar: typeof import('@ionic/vue')['IonTabBar'] IonTabButton: typeof import('@ionic/vue')['IonTabButton'] @@ -59,6 +63,7 @@ declare global { const IonButtons: typeof import('@ionic/vue')['IonButtons'] const IonCheckbox: typeof import('@ionic/vue')['IonCheckbox'] const IonContent: typeof import('@ionic/vue')['IonContent'] + const IonDatetime: typeof import('@ionic/vue')['IonDatetime'] const IonHeader: typeof import('@ionic/vue')['IonHeader'] const IonIcon: typeof import('@ionic/vue')['IonIcon'] const IonInfiniteScroll: typeof import('@ionic/vue')['IonInfiniteScroll'] @@ -66,12 +71,15 @@ declare global { const IonInput: typeof import('@ionic/vue')['IonInput'] const IonItem: typeof import('@ionic/vue')['IonItem'] const IonLabel: typeof import('@ionic/vue')['IonLabel'] + const IonList: typeof import('@ionic/vue')['IonList'] const IonPage: typeof import('@ionic/vue')['IonPage'] const IonRefresher: typeof import('@ionic/vue')['IonRefresher'] const IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent'] const IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] const IonSegment: typeof import('@ionic/vue')['IonSegment'] const IonSegmentButton: typeof import('@ionic/vue')['IonSegmentButton'] + const IonSelect: typeof import('@ionic/vue')['IonSelect'] + const IonSelectOption: typeof import('@ionic/vue')['IonSelectOption'] const IonSpinner: typeof import('@ionic/vue')['IonSpinner'] const IonTabBar: typeof import('@ionic/vue')['IonTabBar'] const IonTabButton: typeof import('@ionic/vue')['IonTabButton'] diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 7d0040a..b87df15 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -105,6 +105,10 @@ function handleQuickAction(action: Action) { function handleNewsClick(news: NewsItem) { console.log("查看新闻:", news.title); } + +onMounted(() => { + fetchNews(); +});