UNPKG

@alitajs/layout

Version:
12 lines (9 loc) 708 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = function _default(path, hasKeepAlive, isMicroApp) { return "import React from 'react';\nimport { ApplyPluginsType } from 'umi';\nimport { plugin } from '../core/umiExports';\n\nexport default (props) => {\n const layoutConfig = plugin.applyPlugins({\n key: 'mobileLayout',\n type: ApplyPluginsType.modify,\n initialValue: {},\n }) || {};\n return React.createElement(require('".concat(path, "').default, {\n layoutConfig,\n hasKeepAlive: ").concat(hasKeepAlive, ",\n ...props,\n hideNavBar:").concat(isMicroApp, ",\n })\n}\n"); }; exports.default = _default;