From a8fae94da6729d7e9e6ae5ab1f6d788e0b3edc86 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 27 Nov 2024 18:23:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(dialogPage):=20=E8=A1=A5=E5=85=85=20getPag?= =?UTF-8?q?eStyle=20setPageStyle=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 33 +++-- pages/API/dialog-page/dialog-3.uvue | 182 +++++++++++++++++++++++++++ pages/API/dialog-page/page-style.uts | 83 ++++++++++++ 3 files changed, 285 insertions(+), 13 deletions(-) create mode 100644 pages/API/dialog-page/dialog-3.uvue create mode 100644 pages/API/dialog-page/page-style.uts diff --git a/pages.json b/pages.json index 98d097cd..ffe041fe 100644 --- a/pages.json +++ b/pages.json @@ -1481,6 +1481,14 @@ } }, // #endif + // #ifdef APP-ANDROID || APP-IOS || WEB + { + "path": "pages/API/dialog-page/dialog-3", + "style": { + "navigationBarTitleText": "dialogPage3" + } + }, + // #endif // #ifdef APP-ANDROID || APP-IOS || MP-WEIXIN { "path": "pages/API/create-interstitial-ad/create-interstitial-ad", @@ -2187,13 +2195,13 @@ "navigationBarTitleText": "顶部banner长列表嵌套滚动示例", "enablePullDownRefresh": true } - }, - { - "path": "pages/template/long-grid-nested/long-grid-nested", - "style": { - "navigationBarTitleText": "顶部banner瀑布流长列表嵌套滚动示例", - "enablePullDownRefresh": true - } + }, + { + "path": "pages/template/long-grid-nested/long-grid-nested", + "style": { + "navigationBarTitleText": "顶部banner瀑布流长列表嵌套滚动示例", + "enablePullDownRefresh": true + } }, { "path": "pages/template/pull-zoom-image/pull-zoom-image", @@ -2323,11 +2331,10 @@ } }, { - "path" : "pages/template/WXS/WXS", - "style" : - { - "navigationBarTitleText" : "WXS" - } + "path": "pages/template/WXS/WXS", + "style": { + "navigationBarTitleText": "WXS" + } } // #endif ], @@ -3334,4 +3341,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/pages/API/dialog-page/dialog-3.uvue b/pages/API/dialog-page/dialog-3.uvue new file mode 100644 index 00000000..2538b856 --- /dev/null +++ b/pages/API/dialog-page/dialog-3.uvue @@ -0,0 +1,182 @@ + + + + + +} + +export const PageStyleArray = [ + { + key: "navigationBarBackgroundColor", + type: "string", + value: ["#007AFF", "#FFFFFF", "#000000"] + }, + { + key: "navigationBarTextStyle", + type: "string", + value: ["white", "black"] + }, + { + key: "navigationBarTitleText", + type: "string", + value: ["dialogPage", "title2", "title3"] + }, + { + key: "navigationStyle", + type: "string", + value: ["default", "custom"] + }, + { + key: "backgroundColor", + type: "string", + value: ["#FFFFFF", "#000000"] + }, + { + key: "backgroundColorContent", + type: "string", + value: ["#FFFFFF", "transparent", "#000000"] + }, + { + key: "backgroundTextStyle", + type: "string", + value: ["dark", "light"] + }, + { + key: "enablePullDownRefresh", + type: "boolean", + value: [true, false] + }, + { + key: "onReachBottomDistance", + type: "number", + value: [50, 100] + }, + { + key: "pageOrientation", + type: "string", + value: ["auto", "portrait", "landscape"] + }, + { + key: "backgroundColorTop", + type: "string", + value: ["#FFFFFF", "#000000"] + }, + { + key: "backgroundColorBottom", + type: "string", + value: ["#FFFFFF", "#000000"] + }, + { + key: "navigationBarAutoBackButton", + type: "boolean", + value: [true, false] + }, + { + key: "hideStatusBar", + type: "boolean", + value: [true, false] + }, + { + key: "hideBottomNavigationIndicator", + type: "boolean", + value: [true, false] + }] as PageStyleItem[] -- GitLab