Page configuration
Some configurations in 'app.json' also support the configuration of individual pages, and the performance of this page can be configured in the corresponding '.json' file of the page.
The configuration items in the page will overwrite the same configuration items in 'app.json' in the current page (the style-related configuration items belong to the window property in 'app.json', but there is no need to specify the window field here), and the specific values and meanings can be described in the global configuration document.
The contents of the file are a JSON object with the following properties:
# Configuration items
| Properties | Type | The default value is | Description | Minimum version |
|---|---|---|---|---|
| navigationBarBackgroundColor | HexColor | #000000 | The navigation bar background color, such as #000000 | |
| navigationBarTextStyle | string | white | Navigation bar title color, only black/white | is supported |
| navigationBarTitleText | string | Navigation bar title text content | ||
| navigationStyle | string | default | Navigation bar style, only the following values are supported: 1. default(default style), 2. custom (custom navigation bar, keep only the upper right corner button), 3.hide (hide navigation bar and upper right corner capsule) | |
| backgroundColor | HexColor | #ffffff | The background color of the window is | |
| backgroundTextStyle | string | dark | The style of drop-down loading, which only supports dark/light | |
| backgroundColorTop | string | #ffffff | Background color of the top window, only iOS supports | |
| backgroundColorBottom | string | #ffffff | Background color for the bottom window, only iOS supports | |
| enablePullDownRefresh | boolean | false | Whether to enable the current page drop-down refresh. See page.onPullDownRefresh | |
| pageOrientation | string | portrait | Screen rotation settings, support auto/portrait/landscape, see Response to display area changes | 2.4.0 (auto) / 2.5.0 (landscape) |
| usingComponents | Object | No | The page customization component configuration | 1.6.3 |
| initialRenderingCache | string | The initial rendering cache configuration of the page supports static/dynamic | 2.10.1 | |
| style | string | default | Enable the new version of the Component Styles | 2.11.1 |
| onReachBottomDistance | number | 50 | The bottoming event on the page is triggered at the bottom of the page in px. See Page.onReachBottom | 2.12.8 |
| Name | Feature Description | |||
| --- | --- | |||
| disableScroll | boolean | |||
| singlePage | Object | |||
| restartStrategy | string |
# Configuration example
Last update: 2022/08/11, 20:42:12