diff --git a/pages.json b/pages.json index dc5568725b43e6c4ffdc815131e0ba68c9d95217..1c8e8577b8bb50484fa3f6249f007a68661de12c 100644 --- a/pages.json +++ b/pages.json @@ -69,6 +69,12 @@ "navigationBarTitleText": "list-view-multiplex-video" } }, + { + "path": "pages/component/list-view/list-view-children-in-slot", + "style": { + "navigationBarTitleText": "list-view-children-in-slot" + } + }, { "path": "pages/component/sticky-section/sticky-section", "style": { diff --git a/pages/component/list-view/ListViewWrapper.uvue b/pages/component/list-view/ListViewWrapper.uvue new file mode 100644 index 0000000000000000000000000000000000000000..d7db753033a59d9f5983f2833c6e009db21ca490 --- /dev/null +++ b/pages/component/list-view/ListViewWrapper.uvue @@ -0,0 +1,5 @@ + diff --git a/pages/component/list-view/list-view-children-in-slot.test.js b/pages/component/list-view/list-view-children-in-slot.test.js new file mode 100644 index 0000000000000000000000000000000000000000..f69d389403d21a0db218d64c95c55b58585fa230 --- /dev/null +++ b/pages/component/list-view/list-view-children-in-slot.test.js @@ -0,0 +1,50 @@ +describe('list-view-children-in-slot', () => { + if (process.env.uniTestPlatformInfo.startsWith('web')) { + it('dummyTest', async () => { + expect(1).toBe(1) + }) + return + } + let page + beforeAll(async () => { + page = await program.reLaunch('/pages/component/list-view/list-view-children-in-slot') + await page.waitFor('list-view') + }) + + it('basic', async () => { + let listItems = await page.$$('list-item') + expect(listItems.length).toBe(3) + + let texts = await page.$$('.text-in-list-item') + for(let i = 0;i + + + + + + + + + {{item}} + + + + + + + + + + + + diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index 8bc01caaa6359af43b03936543882933f05b71ce..6e0ca02c03c79a78d6957f98172926617cb94c04 100644 --- a/pages/component/list-view/list-view.uvue +++ b/pages/component/list-view/list-view.uvue @@ -198,6 +198,11 @@ list-view 复用测试(item中嵌入video) + + +