From b553283020ffd610276cdef19c32744cd60faf21 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Fri, 18 Oct 2024 20:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0getWindowInfo=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 9 ++ pages/API/get-current-pages/page-style.uts | 10 ++ .../API/get-window-info/get-window-info.uvue | 7 + pages/API/get-window-info/window-area.uvue | 146 ++++++++++++++++++ pages/template/slider-100/slider-100.uvue | 7 +- 5 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 pages/API/get-window-info/window-area.uvue diff --git a/pages.json b/pages.json index 4d9dab45..898c7519 100644 --- a/pages.json +++ b/pages.json @@ -967,6 +967,13 @@ "navigationBarTitleText": "getWindowInfo | 获取窗口信息" } }, + { + "path": "pages/API/get-window-info/window-area", + "style": { + "navigationBarTitleText": "window area", + "navigationStyle": "custom" + } + }, // #ifndef WEB { "path": "pages/API/element-draw/element-draw", @@ -1883,6 +1890,8 @@ "backgroundColorContent": "@backgroundColorContent", "backgroundColor": "@backgroundColor", "backgroundTextStyle": "@backgroundTextStyle" + "hideStatusBar": false, + "hideBottomNavigationIndicator": false }, "tabBar": { "color": "@tabBarColor", diff --git a/pages/API/get-current-pages/page-style.uts b/pages/API/get-current-pages/page-style.uts index 3274efba..62bf13a3 100644 --- a/pages/API/get-current-pages/page-style.uts +++ b/pages/API/get-current-pages/page-style.uts @@ -70,4 +70,14 @@ export const PageStyleArray = [ key: "navigationBarAutoBackButton", type: "boolean", value: [true, false] + }, + { + key: "hideStatusBar", + type: "boolean", + value: [true, false] + }, + { + key: "hideBottomNavigationIndicator", + type: "boolean", + value: [true, false] }] as PageStyleItem[] diff --git a/pages/API/get-window-info/get-window-info.uvue b/pages/API/get-window-info/get-window-info.uvue index f16176dd..dc7c52c9 100644 --- a/pages/API/get-window-info/get-window-info.uvue +++ b/pages/API/get-window-info/get-window-info.uvue @@ -15,6 +15,13 @@ + + + + + + + diff --git a/pages/API/get-window-info/window-area.uvue b/pages/API/get-window-info/window-area.uvue new file mode 100644 index 00000000..2df9f95c --- /dev/null +++ b/pages/API/get-window-info/window-area.uvue @@ -0,0 +1,146 @@ + + + + + diff --git a/pages/template/slider-100/slider-100.uvue b/pages/template/slider-100/slider-100.uvue index 54651575..b41663aa 100644 --- a/pages/template/slider-100/slider-100.uvue +++ b/pages/template/slider-100/slider-100.uvue @@ -10,6 +10,7 @@ +