每一个小程序页面也可以使用
属性 | 类型 | 默认值 | 描述 | 最低版本 |
---|---|---|---|---|
navigationBarBackgroundColor | HexColor | #000000 | 导航栏背景颜色,如 #000000 | |
navigationBarTextStyle | string | white | 导航栏标题颜色,仅支持 black / white | |
navigationBarTitleText | string | 导航栏标题文字内容 | ||
navigationStyle | string | default | 导航栏样式,仅支持以下值:default 默认样式custom 自定义导航栏,只保留右上角胶囊按钮。 | |
backgroundColor | HexColor | #ffffff | 窗口的背景色 | |
enablePullDownRefresh | boolean | false | 是否开启当前页面下拉刷新 | |
onReachBottomDistance | number | 50 | 页面上拉触底事件触发时距页面底部距离,单位为px | |
pageOrientation | string | portrait | 屏幕旋转设置,支持 auto / portrait / landscape | |
disableScroll | boolean | false | 设置为 true 则页面整体不能上下滚动。只在页面配置中有效,无法在 app.json 中设置 | |
usingComponents | Object | 否 | 页面自定义组件配置 |