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

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

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