提交 b02fc844 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat(v-html): 调整兼容性

上级 3fd73dd8
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
} }
}, },
// #endif // #endif
// #ifndef APP-IOS
{ {
"path": "pages/directive/v-html/v-html-options", "path": "pages/directive/v-html/v-html-options",
"style": { "style": {
...@@ -134,6 +135,7 @@ ...@@ -134,6 +135,7 @@
"navigationBarTitleText": "v-html 组合式 API" "navigationBarTitleText": "v-html 组合式 API"
} }
}, },
// #endif
{ {
"path": "pages/directive/v-show/v-show-options", "path": "pages/directive/v-show/v-show-options",
"style": { "style": {
......
...@@ -4,6 +4,14 @@ const COMPOSITION_PAGE_PATH = '/pages/directive/v-html/v-html-composition' ...@@ -4,6 +4,14 @@ const COMPOSITION_PAGE_PATH = '/pages/directive/v-html/v-html-composition'
// TODO: ios 暂不支持 // TODO: ios 暂不支持
describe('v-html', () => { describe('v-html', () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isIos = platformInfo.includes('ios')
if (isIos) {
it("ios platform not support", async () => {
expect(1).toBe(1);
});
return
}
let page let page
const test = async () => { const test = async () => {
......
...@@ -637,7 +637,8 @@ export default { ...@@ -637,7 +637,8 @@ export default {
{ {
id: 'directive', id: 'directive',
name: '指令', name: '指令',
pages: [ pages: [
// #ifndef APP-IOS
{ {
id: 'v-html', id: 'v-html',
name: 'v-html', name: 'v-html',
...@@ -653,7 +654,8 @@ export default { ...@@ -653,7 +654,8 @@ export default {
url: 'v-html-composition' url: 'v-html-composition'
}, },
] ]
}, },
// #endif
{ {
id: 'v-show', id: 'v-show',
name: 'v-show', name: 'v-show',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册