From a22113efacb2629bafe29162a5a6aa13e770f49c Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 31 Jan 2024 18:26:35 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=20easycom=20?= =?UTF-8?q?=E4=BB=85=E5=BC=95=E7=94=A8=E7=B1=BB=E5=9E=8B=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=BB=84=E4=BB=B6=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/test-type/test-type.uvue | 20 ++++++++++++++++++ components/test-type1/test-type1.uvue | 20 ++++++++++++++++++ main.uts | 5 +++-- pages.json | 8 +++++++ pages/type/type.uvue | 30 +++++++++++++++++++++++++++ 5 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 components/test-type/test-type.uvue create mode 100644 components/test-type1/test-type1.uvue create mode 100644 pages/type/type.uvue diff --git a/components/test-type/test-type.uvue b/components/test-type/test-type.uvue new file mode 100644 index 0000000..110260e --- /dev/null +++ b/components/test-type/test-type.uvue @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/components/test-type1/test-type1.uvue b/components/test-type1/test-type1.uvue new file mode 100644 index 0000000..c6eb281 --- /dev/null +++ b/components/test-type1/test-type1.uvue @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/main.uts b/main.uts index 194fccd..5625b2b 100644 --- a/main.uts +++ b/main.uts @@ -14,10 +14,11 @@ import plugin2 from '@/plugins/plugin2.uts' import plugin3 from '@/plugins/plugin3.uts' import plugin4 from '@/plugins/plugin4.uts' import CompForPlugin from '@/components/CompForPlugin.uvue' - +// 仅引用类型,模板中不使用,也要保证不报错 +let testType1 : TestType1ComponentPublicInstance | null = null export function createApp() { const app = createSSRApp(App) - + console.log(testType1) app.component('CompForAppComponent', CompForAppComponent) app.provide('globalProvideMsg', 'global provide message') diff --git a/pages.json b/pages.json index 19d448e..6fe9413 100644 --- a/pages.json +++ b/pages.json @@ -645,6 +645,14 @@ "navigationBarTitleText": "webview 截图测试", "navigationStyle": "custom" } + }, + { + "path" : "pages/type/type", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } ], "tabBar": { diff --git a/pages/type/type.uvue b/pages/type/type.uvue new file mode 100644 index 0000000..69a39ef --- /dev/null +++ b/pages/type/type.uvue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file -- GitLab