提交 62271135 编写于 作者: 雪洛's avatar 雪洛

feat: 移除web端不支持的特性

上级 e384fe92
......@@ -399,6 +399,7 @@
"navigationBarTitleText": "defineExpose"
}
},
// #ifdef APP
{
"path": "pages/composition-api/basic/define-model/define-model",
"style": {
......@@ -411,6 +412,7 @@
"navigationBarTitleText": "defineOptions"
}
},
// #endif
{
"path": "pages/composition-api/basic/define-slots/define-slots",
"style": {
......
const PAGE_PATH = '/pages/composition-api/basic/define-model/define-model'
describe('defineModel', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
// TODO: web 端暂不支持
it('web', async () => {
expect(1).toBe(1)
})
}
let page = null
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
......
const PAGE_PATH = '/pages/composition-api/basic/define-options/define-options'
describe('defineOptions', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
// TODO: web 端暂不支持
it('web', async () => {
expect(1).toBe(1)
})
}
let page = null
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
......
......@@ -55,7 +55,7 @@
watchCountRes.value = `count: ${count.value}, count ref text: ${countRef.value!.value}`
// #endif
// #ifdef WEB
watchCountRes.value = `count: ${count.value}, count ref text: ${countRef.value!.childNodes[0] as HTMLElement).innerText}`
watchCountRes.value = `count: ${count.value}, count ref text: ${(countRef.value!.childNodes[0] as HTMLElement).innerText}`
// #endif
} else {
watchCountRes.value = `count: ${ count.value }, count ref text: `
......
......@@ -60,7 +60,12 @@
{
name: 'defineOptions',
url: 'define-options',
// #ifdef APP
enable: true,
// #endif
// #ifdef WEB
enable: false,
// #endif
},
{
name: 'defineSlots',
......@@ -70,7 +75,12 @@
{
name: 'defineModel',
url: 'define-model',
// #ifdef APP
enable: true,
// #endif
// #ifdef WEB
enable: false,
// #endif
},
{
name: 'useSlots',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册