mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-25 19:38:12 +00:00
feat: export Monitor
This commit is contained in:
parent
46951ca4f9
commit
51025f01f1
@ -2,7 +2,7 @@ class Monitor {
|
|||||||
fn = (params: any) => {
|
fn = (params: any) => {
|
||||||
const { AES } = window as any;
|
const { AES } = window as any;
|
||||||
if (typeof AES.log === 'function') {
|
if (typeof AES.log === 'function') {
|
||||||
const { p1, p2, p3, p4 = 'OTHER', ...rest } = params || {};
|
const { p1 = '', p2 = '', p3 = '', p4 = 'OTHER', ...rest } = params || {};
|
||||||
AES.log('event', {
|
AES.log('event', {
|
||||||
p1,
|
p1,
|
||||||
p2,
|
p2,
|
||||||
@ -42,5 +42,4 @@ class Monitor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const monitor = new Monitor();
|
export { 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 } 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,6 +84,7 @@ const VisualEngine = {
|
|||||||
I18nUtil,
|
I18nUtil,
|
||||||
Hotkey,
|
Hotkey,
|
||||||
Env,
|
Env,
|
||||||
|
Monitor,
|
||||||
/* pub/sub 集线器 */
|
/* pub/sub 集线器 */
|
||||||
Bus,
|
Bus,
|
||||||
/* 事件 */
|
/* 事件 */
|
||||||
@ -132,6 +133,7 @@ export {
|
|||||||
I18nUtil,
|
I18nUtil,
|
||||||
Hotkey,
|
Hotkey,
|
||||||
Env,
|
Env,
|
||||||
|
Monitor,
|
||||||
/* pub/sub 集线器 */
|
/* pub/sub 集线器 */
|
||||||
Bus,
|
Bus,
|
||||||
/* 事件 */
|
/* 事件 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user