Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-uni-app-x-zh
提交
0b025261
U
unidocs-uni-app-x-zh
项目概览
DCloud
/
unidocs-uni-app-x-zh
通知
206
Star
4
Fork
46
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
14
列表
看板
标记
里程碑
合并请求
16
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
unidocs-uni-app-x-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
14
Issue
14
列表
看板
标记
里程碑
合并请求
16
合并请求
16
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0b025261
编写于
5月 27, 2024
作者:
H
hdx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PageStyle: 补充平台兼容性
上级
c075219c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
5 deletion
+12
-5
docs/api/get-current-pages.md
docs/api/get-current-pages.md
+12
-5
未找到文件。
docs/api/get-current-pages.md
浏览文件 @
0b025261
...
...
@@ -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`
,那么下拉刷新功能会被摇掉,此时设置打开下拉刷新将无效。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录