From 8e0510db508a131652ec000b751947ccaba5e789 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 20 May 2024 16:20:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=BB=84=E4=BB=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/CanvasCore.vue | 1 + .../src/custom-component/component-list.ts | 1 + .../independent-hang/ComponentHang.vue | 45 ++++++++++++++ .../independent-hang/ComponentHangPopver.vue | 58 +++++++++++++++++++ .../editor/editor-style/VQueryChartStyle.vue | 11 +++- .../views/chart/components/editor/index.vue | 3 +- .../dataease/cache/impl/DefaultCacheImpl.java | 4 +- 7 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 core/core-frontend/src/custom-component/independent-hang/ComponentHang.vue create mode 100644 core/core-frontend/src/custom-component/independent-hang/ComponentHangPopver.vue diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index 2e924cb860..ac6d7162b1 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -42,6 +42,7 @@ import PointShadow from '@/components/data-visualization/canvas/PointShadow.vue' import DragInfo from '@/components/visualization/common/DragInfo.vue' import { activeWatermark } from '@/components/watermark/watermark' import { personInfoApi } from '@/api/user' +import ComponentHangPopver from '@/custom-component/independent-hang/ComponentHangPopver.vue' const snapshotStore = snapshotStoreWithOut() const dvMainStore = dvMainStoreWithOut() const composeStore = composeStoreWithOut() diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 277b7b0fbe..33af3555eb 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -211,6 +211,7 @@ const list = [ propValue: '', icon: 'other_text', innerType: 'VQuery', + isHang: false, x: 1, y: 1, sizeX: 72, diff --git a/core/core-frontend/src/custom-component/independent-hang/ComponentHang.vue b/core/core-frontend/src/custom-component/independent-hang/ComponentHang.vue new file mode 100644 index 0000000000..e1fe70db71 --- /dev/null +++ b/core/core-frontend/src/custom-component/independent-hang/ComponentHang.vue @@ -0,0 +1,45 @@ + + + + + + + + + + + diff --git a/core/core-frontend/src/custom-component/independent-hang/ComponentHangPopver.vue b/core/core-frontend/src/custom-component/independent-hang/ComponentHangPopver.vue new file mode 100644 index 0000000000..f42f75a95f --- /dev/null +++ b/core/core-frontend/src/custom-component/independent-hang/ComponentHangPopver.vue @@ -0,0 +1,58 @@ + + + + + + + 隐藏按钮 + + + + + + + + + diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue index 08dcd0a708..5934c734f3 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue @@ -9,6 +9,10 @@ const state = { } const props = defineProps({ + element: { + type: Object, + required: true + }, chart: { type: Object, required: true @@ -24,7 +28,7 @@ const props = defineProps({ }) const predefineColors = COLOR_PANEL -const { chart, commonBackgroundPop } = toRefs(props) +const { element, chart, commonBackgroundPop } = toRefs(props) @@ -33,6 +37,11 @@ const { chart, commonBackgroundPop } = toRefs(props) + + + 隐藏组件 + + { - + cache = cacheManager.getCache(cacheName); - cache.remove(key); + if(cache != null){ + cache.remove(key); + } } @PostConstruct