Fix missing Envrionemnt

This commit is contained in:
pengfei.zhou
2022-08-04 14:12:11 +08:00
committed by osborn
parent ee9b8102f2
commit d886458832
4 changed files with 43 additions and 33 deletions

View File

@@ -1,4 +1,7 @@
const Environment = {
platform:"web"
};
/**++++++++SandBox++++++++*/
var doric = (function (exports) {
'use strict';
@@ -3905,12 +3908,13 @@ exports.Display = void 0;
exports.jsx = void 0;
(function (jsx) {
function createElement(constructor, config, ...children) {
var _a;
if (!!constructor.isViewClass) {
const e = new constructor();
if (e instanceof Fragment) {
return children;
}
e.layoutConfig = layoutConfig().fit();
e.layoutConfig = (_a = e.layoutConfig) !== null && _a !== void 0 ? _a : layoutConfig().fit();
if (config) {
e.apply(config);
}

File diff suppressed because one or more lines are too long