mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
fix: 移除 isInSimulator 函数
This commit is contained in:
parent
4ce7e00ba5
commit
6370889c76
@ -8,7 +8,6 @@ import {
|
|||||||
TransformStage,
|
TransformStage,
|
||||||
} from '@ali/lowcode-designer';
|
} from '@ali/lowcode-designer';
|
||||||
import { intl } from '@ali/lowcode-editor-core';
|
import { intl } from '@ali/lowcode-editor-core';
|
||||||
import { isInSimulator } from '@ali/lowcode-utils';
|
|
||||||
import {
|
import {
|
||||||
OldPropConfig,
|
OldPropConfig,
|
||||||
OldPrototypeConfig,
|
OldPrototypeConfig,
|
||||||
@ -215,10 +214,6 @@ class Prototype {
|
|||||||
static removeGlobalPropsConfigure = removeGlobalPropsConfigure;
|
static removeGlobalPropsConfigure = removeGlobalPropsConfigure;
|
||||||
static overridePropsConfigure = overridePropsConfigure;
|
static overridePropsConfigure = overridePropsConfigure;
|
||||||
static create(config: OldPrototypeConfig | ComponentMetadata | ComponentMeta, extraConfigs: any = null, lookup: boolean = false) {
|
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);
|
return new Prototype(config, extraConfigs, lookup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user