diff --git a/src/enums/editPageEnum.ts b/src/enums/editPageEnum.ts index b28f732d..10e57ca6 100644 --- a/src/enums/editPageEnum.ts +++ b/src/enums/editPageEnum.ts @@ -12,7 +12,8 @@ export enum DragKeyEnum { // 不同页面保存操作 export enum SavePageEnum { CHART = 'SaveChart', - JSON = 'SaveJSON' + JSON = 'SaveJSON', + CLOSE = 'close' } // 操作枚举 diff --git a/src/enums/eventEnum.ts b/src/enums/eventEnum.ts index a8110a71..9f05aa57 100644 --- a/src/enums/eventEnum.ts +++ b/src/enums/eventEnum.ts @@ -7,15 +7,15 @@ export enum BaseEvent { // 移入 ON_MOUSE_ENTER = 'mouseenter', // 移出 - ON_MOUSE_LEAVE = 'mouseleave', + ON_MOUSE_LEAVE = 'mouseleave' } // vue3 生命周期事件 -export enum EventLife { +export enum EventLife { // 渲染之后 VNODE_MOUNTED = 'vnodeMounted', // 渲染之前 - VNODE_BEFORE_MOUNT = 'vnodeBeforeMount', + VNODE_BEFORE_MOUNT = 'vnodeBeforeMount' } // 内置字符串函数对象列表 @@ -28,4 +28,9 @@ export const excludeParseEventKeyList = [ BaseEvent.ON_MOUSE_LEAVE, //过滤器 'filter' -] \ No newline at end of file +] +// 内置字符串函数键值列表 +export const excludeParseEventValueList = [ + // 请求里的函数语句 + 'javascript:' +] diff --git a/src/layout/components/LayoutHeader/index.vue b/src/layout/components/LayoutHeader/index.vue index 91c80823..718a9282 100644 --- a/src/layout/components/LayoutHeader/index.vue +++ b/src/layout/components/LayoutHeader/index.vue @@ -29,7 +29,7 @@ import { ThemeColorSelect } from '@/components/Pages/ThemeColorSelect'