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)