diff --git a/pages.json b/pages.json index 92cc5f4e740f36418dad97e9b5917a558cff7d2d..d0737003552b3aa1ff7b01e6853968ca581ccb21 100644 --- a/pages.json +++ b/pages.json @@ -1090,6 +1090,14 @@ "navigationBarTitleText" : "touch-event", "enablePullDownRefresh" : false } + }, + { + "path" : "pages/CSS/overflow/overflow", + "style" : + { + "navigationBarTitleText" : "overflow", + "enablePullDownRefresh" : false + } } ], "globalStyle": { diff --git a/pages/CSS/overflow/overflow.test.js b/pages/CSS/overflow/overflow.test.js new file mode 100644 index 0000000000000000000000000000000000000000..e2e22bed95c044cd5e0baa379e028dcae76adb6d --- /dev/null +++ b/pages/CSS/overflow/overflow.test.js @@ -0,0 +1,16 @@ +describe('component-native-list-view', () => { + let page + beforeAll(async () => { + //打开list-view测试页 + page = await program.reLaunch('/pages/CSS/overflow/overflow') + await page.waitFor("image") + }) + + //检测overflow设置hidden,visible + it('check_view_overflow', async () => { + const image = await program.screenshot({ + fullPage: true, + }); + expect(image).toMatchImageSnapshot(); + }) +}) diff --git a/pages/CSS/overflow/overflow.uvue b/pages/CSS/overflow/overflow.uvue new file mode 100644 index 0000000000000000000000000000000000000000..982676cae74cbacecc53450f7c6bc17168187814 --- /dev/null +++ b/pages/CSS/overflow/overflow.uvue @@ -0,0 +1,92 @@ + + + + + diff --git a/pages/tabBar/CSS.uvue b/pages/tabBar/CSS.uvue index e9cf4394745200a1db6c524ff1028be3718e8608..1e1c5c3de9d3f27706b1f5db43254c29ebb5bbfd 100644 --- a/pages/tabBar/CSS.uvue +++ b/pages/tabBar/CSS.uvue @@ -339,6 +339,16 @@ url: '/pages/CSS/transition/transition', }, ] as Page[], + }, + { + id: 'overflow', + name: 'overflow', + pages: [ + { + name: 'overflow', + url: '/pages/CSS/overflow/overflow', + }, + ] as Page[], }, ] as ListItem[], arrowUpIcon: '/static/icons/arrow-up.png',