Unverified 提交 355b7805 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #484 from dataease/pr@dev@feat_panel-view-set-bar

refactor:明细弹出样式修改
......@@ -6,7 +6,7 @@
@click="handleClick"
@mousedown="elementMouseDown"
>
<edit-bar v-if="config === curComponent" />
<edit-bar v-if="config === curComponent" @showViewDetails="showViewDetails" />
<de-out-widget
v-if="config.type==='custom'"
:id="'component' + config.id"
......@@ -18,6 +18,7 @@
/>
<component
ref="wrapperChild"
:is="config.component"
v-else
:out-style="config.style"
......@@ -110,6 +111,9 @@ export default {
// 阻止冒泡事件
e.stopPropagation()
this.$store.commit('setCurComponent', { component: this.config, index: this.index })
},
showViewDetails(){
this.$refs.wrapperChild.openChartDetailsDialog();
}
}
}
......
......@@ -43,7 +43,7 @@ export default {
]),
methods: {
showViewDetails() {
eventBus.$emit('showViewDetails')
this.$emit('showViewDetails')
}
}
}
......
......@@ -66,6 +66,10 @@ export default {
type: Boolean,
required: false,
default: false
},
componentIndex: {
type: Number,
required: false
}
},
data() {
......@@ -128,7 +132,6 @@ export default {
this.getData(this.element.propValue.viewId)
},
mounted() {
eventBus.$on('showViewDetails', this.openChartDetailsDialog)
},
methods: {
mergeStyle() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论