| 123456789101112131415161718192021222324252627 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.initSafearea = void 0;
- function initSafearea(manifestJson, pagesJson) {
- if (pagesJson.tabBar?.list?.length) {
- // 安全区配置 仅包含 tabBar 的时候才配置
- if (!manifestJson.plus.safearea) {
- manifestJson.plus.safearea = {
- background: pagesJson.tabBar.backgroundColor || '#FFFFFF',
- bottom: {
- offset: 'auto',
- },
- };
- }
- }
- else {
- if (!manifestJson.plus.launchwebview) {
- manifestJson.plus.launchwebview = {
- render: 'always',
- };
- }
- else if (!manifestJson.plus.launchwebview.render) {
- manifestJson.plus.launchwebview.render = 'always';
- }
- }
- }
- exports.initSafearea = initSafearea;
|