From 918b8be1c43477371a34e66c1c76d744e79f01c9 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Mon, 8 Jul 2024 18:09:50 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E6=94=AF=E6=8C=81=E9=9A=90?=
=?UTF-8?q?=E8=97=8F=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../data-visualization/RealTimeTreeGather.vue | 11 ++++
.../canvas/ComponentWrapper.vue | 11 ++--
.../canvas/ContextMenuDetails.vue | 13 ++++-
.../custom-component/common/CommonAttr.vue | 14 +++++
.../custom-component/common/CommonEvent.vue | 56 +++++++++++++++++++
.../src/custom-component/component-list.ts | 15 ++++-
.../custom-component/picture/Component.vue | 13 ++++-
.../store/modules/data-visualization/event.ts | 11 +++-
8 files changed, 134 insertions(+), 10 deletions(-)
create mode 100644 core/core-frontend/src/components/data-visualization/RealTimeTreeGather.vue
create mode 100644 core/core-frontend/src/custom-component/common/CommonEvent.vue
diff --git a/core/core-frontend/src/components/data-visualization/RealTimeTreeGather.vue b/core/core-frontend/src/components/data-visualization/RealTimeTreeGather.vue
new file mode 100644
index 0000000000..0a8d203dd1
--- /dev/null
+++ b/core/core-frontend/src/components/data-visualization/RealTimeTreeGather.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
index a7a7520bb3..c06fd71c1e 100644
--- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
+++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
@@ -113,11 +113,12 @@ onMounted(() => {
})
const onClick = () => {
- const events = config.value.events
- Object.keys(events).forEach(event => {
- currentInstance.ctx[event](events[event])
- })
- eventBus.emit('v-click', config.value.id)
+ // do event click
+ // const events = config.value.events
+ // Object.keys(events).forEach(event => {
+ // currentInstance.ctx[event](events[event])
+ // })
+ // eventBus.emit('v-click', config.value.id)
}
const getComponentStyleDefault = style => {
diff --git a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue
index 4f258f4683..4936baf5c3 100644
--- a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue
+++ b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue
@@ -80,7 +80,12 @@ const show = () => {
layerStore.showComponent()
menuOpt('show')
}
-
+const categoryChange = type => {
+ if (curComponent.value) {
+ snapshotStore.recordSnapshotCache()
+ curComponent.value['category'] = type
+ }
+}
const rename = () => {
emit('rename')
menuOpt('rename')
@@ -222,6 +227,12 @@ const editQueryCriteria = () => {