|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {
- "$schema": "http://json-schema.org/draft-04/schema",
- "description": "微信小程序 page.json 的 schema",
- "type": "object",
- "properties": {
- "usingComponents": {
- "type": "object"
- },
- "navigationBarBackgroundColor": {
- "type": "string",
- "default": "#000000",
- "description": "导航栏背景颜色,HexColor"
- },
- "navigationBarTextStyle": {
- "type": "string",
- "description": "导航栏标题颜色,仅支持 black/white",
- "default": "white",
- "enum": [
- "white", "black"
- ]
- },
- "navigationBarTitleText": {
- "type": "string",
- "description": "导航栏标题文字内容"
- },
- "backgroundColor": {
- "type": "string",
- "default": "#ffffff",
- "description": "窗口的背景色, HexColor"
- },
- "backgroundTextStyle": {
- "type": "string",
- "default": "dark",
- "enum": [
- "dark", "light"
- ],
- "description": "下拉背景字体、loading 图的样式,仅支持 dark/light"
- },
- "enablePullDownRefresh": {
- "type": "boolean",
- "default": false,
- "description": "是否开启下拉刷新"
- },
- "onReachBottomDistance": {
- "type": "number",
- "default": 50,
- "description": "页面上拉触底事件触发时距页面底部距离,单位为px"
- },
- "pageOrientation": {
- "type": "string",
- "description": "屏幕旋转设置,2.4.0 (auto) / 2.5.0 (landscape)",
- "default": "portrait",
- "enum": [
- "auto",
- "portrait",
- "landscape"
- ]
- },
- "disableScroll": {
- "type": "boolean",
- "description": "设置为 true 则页面整体不能上下滚动。 只在页面配置中有效",
- "default": false
- },
- "disableSwipeBack": {
- "type": "boolean",
- "description": "禁止页面右滑手势返回,微信客户端 7.0.0",
- "default": false
- }
- }
- }
|