From f4ecc760ed37a9acf3b1953ffd230e087e04c390 Mon Sep 17 00:00:00 2001 From: yaoyun8 Date: Fri, 13 Sep 2024 19:12:27 -0700 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=A2=9E=E5=8A=A0=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E3=80=81=E4=BF=9D=E5=AD=98apis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/canvas/render/src/RenderMain.js | 2 ++ packages/canvas/render/src/context.js | 2 ++ .../src/components/BindEventsDialog.vue | 26 +++++++++++------ packages/toolbars/preview/src/Main.vue | 23 +++++++++++++-- packages/toolbars/save/src/Main.vue | 28 +++++++++++++++++-- packages/toolbars/save/src/js/index.js | 22 +++++++++++++++ 6 files changed, 89 insertions(+), 14 deletions(-) diff --git a/packages/canvas/render/src/RenderMain.js b/packages/canvas/render/src/RenderMain.js index 190287bfb..177a4b4e0 100644 --- a/packages/canvas/render/src/RenderMain.js +++ b/packages/canvas/render/src/RenderMain.js @@ -24,6 +24,7 @@ import { setContext, getContext, setCondition, + getCondition, context, setNode } from './context' @@ -440,6 +441,7 @@ export const api = { getRoot, setPagecss, setCondition, + getCondition, getGlobalState, getDataSourceMap, setDataSourceMap, diff --git a/packages/canvas/render/src/context.js b/packages/canvas/render/src/context.js index 96b8ca673..e6f430088 100644 --- a/packages/canvas/render/src/context.js +++ b/packages/canvas/render/src/context.js @@ -51,3 +51,5 @@ export const getContext = () => context export const setCondition = (id, visible = false) => { conditions[id] = visible } + +export const getCondition = () => conditions \ No newline at end of file diff --git a/packages/settings/events/src/components/BindEventsDialog.vue b/packages/settings/events/src/components/BindEventsDialog.vue index 7f1ef0d52..5d56735fd 100644 --- a/packages/settings/events/src/components/BindEventsDialog.vue +++ b/packages/settings/events/src/components/BindEventsDialog.vue @@ -1,6 +1,6 @@