mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 移除 isInSimulator 函数
This commit is contained in:
parent
4ce7e00ba5
commit
6370889c76
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user