mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-21 16:48:18 +00:00
chore: export single instance of Monitor
This commit is contained in:
parent
35f255a229
commit
2a249d2086
@ -42,4 +42,5 @@ class Monitor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Monitor };
|
const monitor = new Monitor();
|
||||||
|
export { monitor };
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Icons from '@ali/ve-icons';
|
|||||||
import logger from '@ali/vu-logger';
|
import logger from '@ali/vu-logger';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import I18nUtil from './i18n-util';
|
import I18nUtil from './i18n-util';
|
||||||
import { hotkey as Hotkey, Monitor } from '@ali/lowcode-editor-core';
|
import { hotkey as Hotkey, monitor } from '@ali/lowcode-editor-core';
|
||||||
import { createElement } from 'react';
|
import { createElement } from 'react';
|
||||||
import { VE_EVENTS as EVENTS, VE_HOOKS as HOOKS, VERSION as Version } from './base/const';
|
import { VE_EVENTS as EVENTS, VE_HOOKS as HOOKS, VERSION as Version } from './base/const';
|
||||||
import Bus from './bus';
|
import Bus from './bus';
|
||||||
@ -84,7 +84,7 @@ const VisualEngine = {
|
|||||||
I18nUtil,
|
I18nUtil,
|
||||||
Hotkey,
|
Hotkey,
|
||||||
Env,
|
Env,
|
||||||
Monitor,
|
monitor,
|
||||||
/* pub/sub 集线器 */
|
/* pub/sub 集线器 */
|
||||||
Bus,
|
Bus,
|
||||||
/* 事件 */
|
/* 事件 */
|
||||||
@ -133,7 +133,7 @@ export {
|
|||||||
I18nUtil,
|
I18nUtil,
|
||||||
Hotkey,
|
Hotkey,
|
||||||
Env,
|
Env,
|
||||||
Monitor,
|
monitor,
|
||||||
/* pub/sub 集线器 */
|
/* pub/sub 集线器 */
|
||||||
Bus,
|
Bus,
|
||||||
/* 事件 */
|
/* 事件 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user