From ac4b8a541e143c9f8a9ac2cf94d3dc8b81c39ae3 Mon Sep 17 00:00:00 2001 From: hdx Date: Tue, 14 May 2024 15:34:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(pageStyle):=20=E6=94=AF=E6=8C=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20pageStyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-current-pages.test.js | 8 +- .../get-current-pages/get-current-pages.uvue | 198 ++++++++++++------ pages/API/get-current-pages/page-style.uts | 99 +++++++++ 3 files changed, 238 insertions(+), 67 deletions(-) create mode 100644 pages/API/get-current-pages/page-style.uts diff --git a/pages/API/get-current-pages/get-current-pages.test.js b/pages/API/get-current-pages/get-current-pages.test.js index a8cbee3a..f3f812c9 100644 --- a/pages/API/get-current-pages/get-current-pages.test.js +++ b/pages/API/get-current-pages/get-current-pages.test.js @@ -33,7 +33,9 @@ describe('getCurrentPages', () => { expect(isEnablePullDownRefresh1).toBe(true) // setPageStyle - await page.callMethod('setPageStyle', false) + await page.callMethod('setPageStyle', { + enablePullDownRefresh: false + }) await page.waitFor(200) await page.callMethod('getPageStyle') @@ -50,7 +52,9 @@ describe('getCurrentPages', () => { expect(image2).toSaveImageSnapshot(); await page.waitFor(3500) - await page.callMethod('setPageStyle', true) + await page.callMethod('setPageStyle', { + enablePullDownRefresh: true + }) await page.waitFor(200) await page.callMethod('startPullDownRefresh') await page.waitFor(500) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index a0c61895..760aef23 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -1,27 +1,49 @@ -