欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

菜鸟学习微信小程序之window

程序员文章站 2022-06-02 23:46:19
...

window

用于设置小程序状态栏、导航条、标题、窗口背景色。

属性 类型 默认值 描述
navigationBarBackgroundColor HexColor 000000 导航栏背景颜色
navigationBarTextStyle string white 导航栏标题颜色
navigationBarTitleText string 导航栏标题文字内容
backgroundColor HexColor 窗口的背景颜色
backgroundTextStyle string dark 下拉背景字体、lading图的样式,仅支持dark/light
enablePullDownRefresh Boolean false 是否开启下拉刷新

如app.json:

 "window":{
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#2A292E",
    "navigationBarTitleText": "微信(13)",
    "navigationBarTextStyle": "white"
  },

菜鸟学习微信小程序之window