diff --git a/pages.json b/pages.json index 1ee6a3b95d4eca1df9db5af337bd47390f954b4f..f64652f978e99b63d6fc74812b964ab90f75d109 100644 --- a/pages.json +++ b/pages.json @@ -622,6 +622,14 @@ { "navigationBarTitleText" : "依赖注入" } + }, + { + "path" : "pages/built-in-component/teleport/teleport", + "style" : + { + "navigationBarTitleText" : "teleport", + "enablePullDownRefresh" : false + } } ], "tabBar": { diff --git a/pages/built-in-component/teleport/sub-container.uvue b/pages/built-in-component/teleport/sub-container.uvue new file mode 100644 index 0000000000000000000000000000000000000000..5d014c4791a6ac0e0409e591c76288fad5ee0c4a --- /dev/null +++ b/pages/built-in-component/teleport/sub-container.uvue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/pages/built-in-component/teleport/teleport.test.js b/pages/built-in-component/teleport/teleport.test.js new file mode 100644 index 0000000000000000000000000000000000000000..8af3070706511973fc346bebcd7f9091773cf543 --- /dev/null +++ b/pages/built-in-component/teleport/teleport.test.js @@ -0,0 +1,17 @@ +const PAGE_PATH = '/pages/built-in-component/teleport/teleport' + +describe('teleport', () => { + let page = null + beforeAll(async () => { + page = await program.reLaunch(PAGE_PATH) + await page.waitFor('view') + }) + + it('teleport', async () => { + await page.waitFor(500) + const image = await program.screenshot({ + fullPage: true + }); + expect(image).toMatchImageSnapshot(); + }) +}) diff --git a/pages/built-in-component/teleport/teleport.uvue b/pages/built-in-component/teleport/teleport.uvue new file mode 100644 index 0000000000000000000000000000000000000000..3f40c2d9e35c5da2f1e5360a13585d27ccb673a7 --- /dev/null +++ b/pages/built-in-component/teleport/teleport.uvue @@ -0,0 +1,79 @@ + + + + + \ No newline at end of file diff --git a/pages/tab-bar/options-api.uvue b/pages/tab-bar/options-api.uvue index f12e22c111bcac2db2d42741d4305225e88d5790..67b4db57c1f1885733050f082861de5ffb7a15a3 100644 --- a/pages/tab-bar/options-api.uvue +++ b/pages/tab-bar/options-api.uvue @@ -64,9 +64,13 @@ name: '内置组件', open: false, pages: [ - { - name: 'keepAlive', - url: 'keep-alive', + { + name: 'keepAlive', + url: 'keep-alive', + enable: true, + },{ + name: 'teleport', + url: 'teleport', enable: true, }, ] as PageItem[],