fix: 移除 isInSimulator 函数

This commit is contained in:
力皓 2020-09-03 18:40:26 +08:00
parent 4ce7e00ba5
commit 6370889c76

View File

@ -8,7 +8,6 @@ import {
TransformStage,
} from '@ali/lowcode-designer';
import { intl } from '@ali/lowcode-editor-core';
import { isInSimulator } from '@ali/lowcode-utils';
import {
OldPropConfig,
OldPrototypeConfig,
@ -215,10 +214,6 @@ class Prototype {
static removeGlobalPropsConfigure = removeGlobalPropsConfigure;
static overridePropsConfigure = overridePropsConfigure;
static create(config: OldPrototypeConfig | ComponentMetadata | ComponentMeta, extraConfigs: any = null, lookup: boolean = false) {
// 目前 vc-xxx 会在设计器和渲染 simulator iframe 中执行两遍,在 simulator 中不需要重新创建,直接复用外层的
if (isInSimulator()) {
lookup = true;
}
return new Prototype(config, extraConfigs, lookup);
}