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