window配置項說明
window:{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "小程序",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light",
"enablePullDownRefresh": false
}
屬性 |
類型 |
默認值 |
描述 |
最低版本 |
navigationBarBackgroundColor |
HexColor |
導航欄背景顏色,如 #000000 |
|
|
navigationBarTextStyle |
string |
white |
導航欄標題顏色,僅支持 black / white |
|
navigationBarTitleText |
string |
default |
導航欄標題文字內容 |
|
navigationStyle |
string |
default |
default 默認樣式custom 自定義導航欄,只保留右上角膠囊按鈕 |
|
backgroundColor |
HexColor |
#ffffff |
窗口的背景色 |
|
backgroundTextStyle |
string |
dark |
下拉 loading 的樣式,僅支持 dark / light |
|
backgroundColorTop |
string |
#ffffff |
頂部窗口的背景色,僅 iOS 支持 |
微信客戶端 6.5.16 |
backgroundColorBottom |
string |
#ffffff |
底部窗口的背景色,僅 iOS 支持 |
微信客戶端 6.5.16 |
enablePullDownRefresh |
boolean |
false |
是否開啓全局的下拉刷新。 |
|
onReachBottomDistance |
number |
50 |
頁面上拉觸底事件觸發時距頁面底部距離,單位爲 px。 |
|
pageOrientation |
string |
portrait |
屏幕旋轉設置,支持 auto / portrait / landscape |
2.4.0 (auto) / 2.5.0 (landscape) |