提交 a22113ef 编写于 作者: fxy060608's avatar fxy060608

test: 增加 easycom 仅引用类型,不使用组件的测试例

上级 d9dd0b80
<template>
<view>
test-type
</view>
</template>
<script>
export default {
name:"test-type",
data() {
return {
};
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<view>
test-type1
</view>
</template>
<script>
export default {
name:"test-type1",
data() {
return {
};
}
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -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')
......
......@@ -645,6 +645,14 @@
"navigationBarTitleText": "webview 截图测试",
"navigationStyle": "custom"
}
},
{
"path" : "pages/type/type",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
}
],
"tabBar": {
......
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<script>
// 仅引用类型,模板中不使用,也要保证不报错
let testType : TestTypeComponentPublicInstance | null = null
export default {
data() {
return {
}
},
onLoad() {
console.log(testType)
},
methods: {
}
}
</script>
<style>
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册