From 0b025261a4ae62f6f6faa3bc688d30eec4f9c2e1 Mon Sep 17 00:00:00 2001 From: hdx Date: Mon, 27 May 2024 11:36:56 +0800 Subject: [PATCH] =?UTF-8?q?PageStyle:=20=E8=A1=A5=E5=85=85=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/get-current-pages.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/api/get-current-pages.md b/docs/api/get-current-pages.md index 0fbf3ee9..b8570a8b 100644 --- a/docs/api/get-current-pages.md +++ b/docs/api/get-current-pages.md @@ -12,12 +12,19 @@ 支持 pages.json 下 `globalStyle` 节点属性和页面下 `style` 节点属性 -当前版本仅支持设置如下属性,其他属性未测试。 +|属性 |类型 |Android|iOS |web |默认值 | +|:-: |:-: |:-: |:-: |:-: |:-: | +|enablePullDownRefresh |Boolean|4.13 |4.13 |4.13 |false | +|backgroundColorContent |String |4.15 |4.15 |4.18 |#ffffff| +|navigationBarBackgroundColor |String |4.18 |4.18 |4.18 |#007AFF| +|navigationBarTextStyle |String |4.18 |4.18 |4.18 |#ffffff| +|navigationBarTitleText |String |4.18 |4.18 |4.18 | | +|navigationStyle |String |4.18 |4.18 |4.18 |default| +|backgroundColor |String |4.18 |4.18 |x |#ffffff| +|backgroundTextStyle |String |4.18 |4.18 |x |light | +|onReachBottomDistance |Number |x |x |4.18 |50 | +|pageOrientation |String |4.18 |x |x |auto | -|属性 |类型 |Android|iOS |web |默认值 |描述 | -|:-: |:-: |:-: |:-: |:-: |:-: |:-: | -|enablePullDownRefresh |Boolean|4.13 |4.13 |4.13 |false |是否开启下拉刷新,详见页面[生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)。 | -|backgroundColorContent |string |4.15 |4.15 |x |#ffffff|页面容器背景色 | **注意事项** - web端由于会自动摇树优化未使用的特性,如果整个项目中都没有使用到下拉刷新`enablePullDownRefresh`,那么下拉刷新功能会被摇掉,此时设置打开下拉刷新将无效。 -- GitLab