From 4c5141e79b82aa2a9979f436de6be98d87f2f192 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 30 Nov 2022 15:15:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=80=E4=B8=AA=20tab=20=E4=B8=8B=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E8=A7=86=E5=9B=BE=EF=BC=8C=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=89=93=E5=BC=80=E5=90=8E=EF=BC=8C=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E7=9A=84=E5=9B=BE=E7=A4=BA=E9=87=8C=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=8C=89=E9=92=AE=E4=B8=8D=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=20#3761?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/editor/ComponentWrapper.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue index 18966e10ae..b266798345 100644 --- a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue @@ -289,14 +289,18 @@ export default { } }, elementMouseDown(e) { - // private 设置当前组件数据及状态 + // // private 设置当前组件数据及状态 this.$store.commit('setClickComponentStatus', true) if (this.config.component !== 'v-text' && this.config.component !== 'rect-shape' && this.config.component !== 'de-input-search' && this.config.component !== 'de-select-grid' && this.config.component !== 'de-number-range' && this.config.component !== 'de-date') { e.preventDefault() } // 阻止冒泡事件 e.stopPropagation() - this.$store.commit('setCurComponent', { component: this.config, index: this.index }) + const _this = this + setTimeout(() => { + _this.$store.commit('setCurComponent', { component: _this.config, index: _this.index }) + }, 200) + }, showViewDetails(params) { this.$refs.wrapperChild.openChartDetailsDialog(params)