diff --git a/pages/index/index.uvue b/pages/index/index.uvue index c0060f39baa29d34f8d9db0e83cdecf850c5a92a..036dbcfe389e5d8d5879c0ef00b544b5d248cbe8 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -976,20 +976,20 @@ export default { { id: 'render', name: 'render & h()', - children: [ - { - id: 'render-options', - name: 'render 选项式 API', - url: 'render-options' - }, - { - id: 'render-composition', - name: 'render 组合式 API', - // #ifdef APP-IOS - enable: false, - // #endif - url: 'render-composition' - }, + children: [ + { + id: 'render-options', + name: 'render 选项式 API', + url: 'render-options' + }, + { + id: 'render-composition', + name: 'render 组合式 API', + // #ifdef APP-ANDROID + enable: false, + // #endif + url: 'render-composition' + }, ] }, { @@ -1019,9 +1019,9 @@ export default { }, { id: 'cloneVNode-composition', - name: 'cloneVNode 组合式 API', - // #ifdef APP-IOS - enable: false, + name: 'cloneVNode 组合式 API', + // #ifdef APP-IOS + enable: false, // #endif url: 'cloneVNode-composition' }, @@ -1054,9 +1054,9 @@ export default { }, { id: 'resolveComponent-composition', - name: 'resolveComponent 组合式 API', - // #ifdef APP-IOS - enable: false, + name: 'resolveComponent 组合式 API', + // #ifdef APP-IOS + enable: false, // #endif url: 'resolveComponent-composition' }, @@ -1073,9 +1073,9 @@ export default { }, { id: 'withDirectives-composition', - name: 'withDirectives 组合式 API', - // #ifdef APP-IOS - enable: false, + name: 'withDirectives 组合式 API', + // #ifdef APP-IOS + enable: false, // #endif url: 'withDirectives-composition' }, @@ -1092,9 +1092,9 @@ export default { }, { id: 'withModifiers-composition', - name: 'withModifiers 组合式 API', - // #ifdef APP-IOS - enable: false, + name: 'withModifiers 组合式 API', + // #ifdef APP-IOS + enable: false, // #endif url: 'withModifiers-composition' }, diff --git a/pages/render-function/render/render-composition.uvue b/pages/render-function/render/render-composition.uvue index 5080576667a22dc9dd5f2ccc1daaa7c959c893c6..2c556c3122c038d20eeac798468fe9e133d87904 100644 --- a/pages/render-function/render/render-composition.uvue +++ b/pages/render-function/render/render-composition.uvue @@ -1,36 +1,29 @@ + + \ No newline at end of file + diff --git a/pages/render-function/render/render.test.js b/pages/render-function/render/render.test.js index 26ba0597c2beb79b1d8cd82bc3ad5d27ce1e0de9..1dc30f8208e1ba8027b5b0e37f2334ff817807f4 100644 --- a/pages/render-function/render/render.test.js +++ b/pages/render-function/render/render.test.js @@ -4,7 +4,7 @@ const COMPOSITION_PAGE_PATH = '/pages/render-function/render/render-composition' describe('render-function render', () => { const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() const isWeb = platformInfo.startsWith('web') - const isIos = platformInfo.startsWith('ios') + const isAndroid = platformInfo.startsWith('android') if (isWeb) { it("web platform test cannot get render dom", async () => { expect(1).toBe(1); @@ -38,10 +38,10 @@ describe('render-function render', () => { }) it('render composition API', async () => { - if (!isIos) { + if (!isAndroid) { await test(COMPOSITION_PAGE_PATH) } else { - // TODO: ios 端 defineOptions + render 页面空白 + // TODO: android 端 报错 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 expect(1).toBe(1); } })