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 @@ -