From b9f98d964aea3f17605342fdeb598bad47af26b3 Mon Sep 17 00:00:00 2001 From: hdx Date: Mon, 22 Apr 2024 17:49:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(pageStyle):=20=E4=BC=98=E5=8C=96=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-current-pages/get-current-pages.uvue | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 51970737..faced3e1 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -10,11 +10,14 @@ - - - - 当前版本仅支持设置属性 enablePullDownRefresh - + + 当前 PageStyle + {{pageStyleText}} + 状态: + + enablePullDownRefresh: {{enablePullDownRefreshStatus}} + + 当前版本仅支持设置属性 enablePullDownRefresh @@ -29,7 +32,9 @@ return { checked: false, pages: [] as Page[], - currentPageStyle: {} as UTSJSONObject + currentPageStyle: {} as UTSJSONObject, + // TODO + enablePullDownRefreshStatus: true } }, computed: { @@ -62,13 +67,14 @@ const currentPage = pages[pages.length - 1]; this.currentPageStyle = currentPage.$getPageStyle(); }, - setPageStyle(epr : boolean) { + setPageStyle(enable : boolean) { // 目前仅支持 enablePullDownRefresh const pages = getCurrentPages(); const currentPage = pages[pages.length - 1]; currentPage.$setPageStyle({ - enablePullDownRefresh: epr - }); + enablePullDownRefresh: enable + }); + this.enablePullDownRefreshStatus = enable }, // getCurrentPage(): Page { // const pages = getCurrentPages(); @@ -83,18 +89,30 @@ -- GitLab