From 25fe10d3dd6ea6048a960ae6990f486d5b600515 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Fri, 18 Oct 2024 20:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shims-uni.d.ts | 12 +++-- src/components/tab-view/index.vue | 74 +++++++++++++++++++++++++++++++ src/pages/commodity/commodity.vue | 39 +++++++++++----- 3 files changed, 111 insertions(+), 14 deletions(-) create mode 100644 src/components/tab-view/index.vue diff --git a/shims-uni.d.ts b/shims-uni.d.ts index ed4adcf..e5d909a 100644 --- a/shims-uni.d.ts +++ b/shims-uni.d.ts @@ -1,10 +1,14 @@ /// import 'vue' - +import TabView from "@/components/tab-view/index.vue"; declare module '@vue/runtime-core' { - type Hooks = App.AppInstance & Page.PageInstance; + type Hooks = App.AppInstance & Page.PageInstance; - interface ComponentCustomOptions extends Hooks { + interface ComponentCustomOptions extends Hooks { - } + } + + export interface GlobalComponents { + TabView: typeof TabView + } } diff --git a/src/components/tab-view/index.vue b/src/components/tab-view/index.vue new file mode 100644 index 0000000..68cb732 --- /dev/null +++ b/src/components/tab-view/index.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/pages/commodity/commodity.vue b/src/pages/commodity/commodity.vue index dd556af..5fe4654 100644 --- a/src/pages/commodity/commodity.vue +++ b/src/pages/commodity/commodity.vue @@ -1,27 +1,46 @@ -