From fea7ceec9b1c127ab95ee721eac0d2d722fbd2f9 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 15 Apr 2021 10:33:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/MarkLine.vue | 422 +++++++++--------- .../canvas/components/Editor/Shape.vue | 18 +- .../canvas/components/Editor/index.vue | 22 +- .../widget/DeWidget/DeDrawingWidget.vue | 21 +- .../widget/drawServiceImpl/MySelectImpl.js | 87 ++++ frontend/src/components/widget/index.js | 3 +- .../widget/service/DrawWidgetService.js | 83 ++++ frontend/src/store/getters.js | 5 +- frontend/src/store/modules/application.js | 30 +- frontend/src/views/panel/edit/index.vue | 37 +- .../src/views/panel/filter/filterDialog.vue | 23 +- frontend/src/views/panel/filter/index.vue | 42 +- 12 files changed, 512 insertions(+), 281 deletions(-) create mode 100644 frontend/src/components/widget/drawServiceImpl/MySelectImpl.js diff --git a/frontend/src/components/canvas/components/Editor/MarkLine.vue b/frontend/src/components/canvas/components/Editor/MarkLine.vue index 2ba5233d75..a07ccedc80 100644 --- a/frontend/src/components/canvas/components/Editor/MarkLine.vue +++ b/frontend/src/components/canvas/components/Editor/MarkLine.vue @@ -1,14 +1,14 @@ diff --git a/frontend/src/components/canvas/components/Editor/Shape.vue b/frontend/src/components/canvas/components/Editor/Shape.vue index c2ebc6bc61..9db1a349d0 100644 --- a/frontend/src/components/canvas/components/Editor/Shape.vue +++ b/frontend/src/components/canvas/components/Editor/Shape.vue @@ -3,13 +3,13 @@ - - - - - - - + + + + + + +
{ diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index 06efece521..277591c938 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -30,8 +30,8 @@ :id="'component' + item.id" class="component" :style="getComponentStyle(item.style)" - :element="item" - :item="item" + :service-name="item.widgetService.name" + :panel-id="panelInfo.id" @filter-value-change="filterValueChange" /> @@ -97,12 +97,18 @@ export default { isShowArea: false } }, - computed: mapState([ - 'componentData', - 'curComponent', - 'canvasStyleData', - 'editor' - ]), + computed: { + panelInfo() { + return this.$store.state.panel.panelInfo + }, + ...mapState([ + 'componentData', + 'curComponent', + 'canvasStyleData', + 'editor' + ]) + }, + mounted() { // 获取编辑器元素 this.$store.commit('getEditor') diff --git a/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue b/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue index ab37b9d57d..03bf5480d8 100644 --- a/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue +++ b/frontend/src/components/widget/DeWidget/DeDrawingWidget.vue @@ -1,19 +1,30 @@