diff --git a/pages.json b/pages.json index 012193e2c74a171294563fda3b1d62df2250da54..c77c0e49bf20e0830b773eedd093b39fb805e8b7 100644 --- a/pages.json +++ b/pages.json @@ -556,7 +556,7 @@ } }, { - "path": "pages/API/page-scrollTo/page-scrollTo", + "path": "pages/API/page-scroll-to/page-scroll-to", "style": { "navigationBarTitleText": "pageScrollTo", "enablePullDownRefresh": false diff --git a/pages/API/page-scrollTo/page-scrollTo.test.js b/pages/API/page-scroll-to/page-scroll-to.test.js similarity index 77% rename from pages/API/page-scrollTo/page-scrollTo.test.js rename to pages/API/page-scroll-to/page-scroll-to.test.js index 36595b57db058348a763f6ab55b63fea2bfeda3f..730fa5397b1dac0b0dfe5e61693c1c5ad3d5feca 100644 --- a/pages/API/page-scrollTo/page-scrollTo.test.js +++ b/pages/API/page-scroll-to/page-scroll-to.test.js @@ -1,13 +1,13 @@ -const PAGE_PATH = '/pages/API/page-scrollTo/page-scrollTo' +const PAGE_PATH = '/pages/API/page-scroll-to/page-scroll-to' -describe('page-scrollTo', () => { +describe('page-scroll-to', () => { let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(500) }) // TODO - it('scrollTo', async () => { + it('scroll-to', async () => { const btnScrollTo = await page.$('.btn-scrollTo') await btnScrollTo.tap() @@ -15,7 +15,7 @@ describe('page-scrollTo', () => { // const scrollTop = await page.scrollTop() // expect(scrollTop).toBe(100) }) - // it('scrollToElement', async () => { + // it('scroll-to-element', async () => { // const btnScrollTo = await page.$('.btn-scrollToElement') // const scrollToElement = await page.$('.custom-element') diff --git a/pages/API/page-scrollTo/page-scrollTo.uvue b/pages/API/page-scroll-to/page-scroll-to.uvue similarity index 100% rename from pages/API/page-scrollTo/page-scrollTo.uvue rename to pages/API/page-scroll-to/page-scroll-to.uvue diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index cbccd19aa5e6e8dd9d61dc3a1ea3a1ed50f1b6d4..5bdca3faa88752418096bd7ea9c6f755c4479576 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -71,7 +71,7 @@ }, { name: "将页面滚动到目标位置", - url: "page-scrollTo", + url: "page-scroll-to", enable: true }, ] as Page[],