diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 51970737c12844b91d8adef3bb8f6d9654d244b6..faced3e17165b8e2e30909b62d153d34c76bd815 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 @@