From a21ef1ebcc68d0837308c17c72d506685f01940e Mon Sep 17 00:00:00 2001 From: Seven Date: Thu, 22 Jan 2026 19:33:44 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E9=97=BB?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E6=9B=B4=E6=96=B0=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=92=8C=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BC=98=E5=8C=96=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E5=88=97=E8=A1=A8=E5=92=8C=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 - components.d.ts | 4 + src/components/divider.vue | 31 +++++ src/components/layout/default.vue | 2 +- src/router/index.ts | 10 +- src/views/home/index.vue | 8 +- src/views/news/detail.vue | 187 ++++++++++++++++++++++++++ src/views/{service => news}/index.vue | 4 +- 8 files changed, 237 insertions(+), 10 deletions(-) create mode 100644 src/components/divider.vue create mode 100644 src/views/news/detail.vue rename src/views/{service => news}/index.vue (98%) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 778a2fb..d2b2d2f 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -451,7 +451,6 @@ declare module 'vue' { readonly shallowReactive: UnwrapRef readonly shallowReadonly: UnwrapRef readonly shallowRef: UnwrapRef - readonly showSuccessToast: UnwrapRef readonly showToast: UnwrapRef readonly storeToRefs: UnwrapRef readonly syncRef: UnwrapRef diff --git a/components.d.ts b/components.d.ts index 1281261..1e9871d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -13,6 +13,7 @@ export {} declare module 'vue' { export interface GlobalComponents { BackButton: typeof import('./src/components/back-button.vue')['default'] + Divider: typeof import('./src/components/divider.vue')['default'] Empty: typeof import('./src/components/empty.vue')['default'] IonApp: typeof import('@ionic/vue')['IonApp'] IonAvatar: typeof import('@ionic/vue')['IonAvatar'] @@ -39,6 +40,7 @@ declare module 'vue' { IonTabBar: typeof import('@ionic/vue')['IonTabBar'] IonTabButton: typeof import('@ionic/vue')['IonTabButton'] IonTabs: typeof import('@ionic/vue')['IonTabs'] + IonText: typeof import('@ionic/vue')['IonText'] IonTextarea: typeof import('@ionic/vue')['IonTextarea'] IonTitle: typeof import('@ionic/vue')['IonTitle'] IonToggle: typeof import('@ionic/vue')['IonToggle'] @@ -52,6 +54,7 @@ declare module 'vue' { // For TSX support declare global { const BackButton: typeof import('./src/components/back-button.vue')['default'] + const Divider: typeof import('./src/components/divider.vue')['default'] const Empty: typeof import('./src/components/empty.vue')['default'] const IonApp: typeof import('@ionic/vue')['IonApp'] const IonAvatar: typeof import('@ionic/vue')['IonAvatar'] @@ -78,6 +81,7 @@ declare global { const IonTabBar: typeof import('@ionic/vue')['IonTabBar'] const IonTabButton: typeof import('@ionic/vue')['IonTabButton'] const IonTabs: typeof import('@ionic/vue')['IonTabs'] + const IonText: typeof import('@ionic/vue')['IonText'] const IonTextarea: typeof import('@ionic/vue')['IonTextarea'] const IonTitle: typeof import('@ionic/vue')['IonTitle'] const IonToggle: typeof import('@ionic/vue')['IonToggle'] diff --git a/src/components/divider.vue b/src/components/divider.vue new file mode 100644 index 0000000..c6bf314 --- /dev/null +++ b/src/components/divider.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/src/components/layout/default.vue b/src/components/layout/default.vue index 548a344..8f86f99 100644 --- a/src/components/layout/default.vue +++ b/src/components/layout/default.vue @@ -16,7 +16,7 @@ const { t } = useI18n(); - +