From e1704107f8101445bf5d3665a14d48a486b15304 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sat, 11 May 2024 16:30:37 +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=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/DvToolbar.vue | 11 +++++++++++ .../src/custom-component/component-list.ts | 4 ++++ .../editor/editor-style/VQueryChartStyle.vue | 8 ++++++-- .../src/views/chart/components/editor/index.vue | 6 +++++- .../src/views/data-visualization/index.vue | 6 ++++-- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 6fe0577cf9..bb4273695b 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -18,6 +18,7 @@ import { changeSizeWithScale } from '@/utils/changeComponentsSizeWithScale' import MoreComGroup from '@/custom-component/component-group/MoreComGroup.vue' import { XpackComponent } from '@/components/plugin' import { useCache } from '@/hooks/web/useCache' +import QueryGroup from '@/custom-component/component-group/QueryGroup.vue' let nameEdit = ref(false) let inputName = ref('') let nameInput = ref(null) @@ -29,6 +30,7 @@ const dvToolbarMain = ref(null) const { canvasStyleData, dvInfo, editMode } = storeToRefs(dvMainStore) let scaleEdit = 100 const { wsCache } = useCache('localStorage') +const dvModel = 'dataV' const closeEditCanvasName = () => { nameEdit.value = false @@ -216,6 +218,15 @@ eventBus.on('clearCanvas', clearCanvas) > + + + diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 49475e183e..0bc4240068 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -118,6 +118,10 @@ const list = [ y: 1, sizeX: 72, sizeY: 4, + style: { + width: 400, + height: 100 + }, request: { method: 'GET', data: [], 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 c5d286d835..06b0810679 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 @@ -1,6 +1,6 @@