forked from github/dataease
refactor:明细弹出样式修改
This commit is contained in:
parent
7960180858
commit
d61795898c
@ -6,7 +6,7 @@
|
|||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
@mousedown="elementMouseDown"
|
@mousedown="elementMouseDown"
|
||||||
>
|
>
|
||||||
<edit-bar v-if="config === curComponent" />
|
<edit-bar v-if="config === curComponent" @showViewDetails="showViewDetails" />
|
||||||
<de-out-widget
|
<de-out-widget
|
||||||
v-if="config.type==='custom'"
|
v-if="config.type==='custom'"
|
||||||
:id="'component' + config.id"
|
:id="'component' + config.id"
|
||||||
@ -18,6 +18,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<component
|
<component
|
||||||
|
ref="wrapperChild"
|
||||||
:is="config.component"
|
:is="config.component"
|
||||||
v-else
|
v-else
|
||||||
:out-style="config.style"
|
:out-style="config.style"
|
||||||
@ -110,6 +111,9 @@ export default {
|
|||||||
// 阻止冒泡事件
|
// 阻止冒泡事件
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
this.$store.commit('setCurComponent', { component: this.config, index: this.index })
|
this.$store.commit('setCurComponent', { component: this.config, index: this.index })
|
||||||
|
},
|
||||||
|
showViewDetails(){
|
||||||
|
this.$refs.wrapperChild.openChartDetailsDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
|||||||
]),
|
]),
|
||||||
methods: {
|
methods: {
|
||||||
showViewDetails() {
|
showViewDetails() {
|
||||||
eventBus.$emit('showViewDetails')
|
this.$emit('showViewDetails')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
componentIndex: {
|
||||||
|
type: Number,
|
||||||
|
required: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -128,7 +132,6 @@ export default {
|
|||||||
this.getData(this.element.propValue.viewId)
|
this.getData(this.element.propValue.viewId)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
eventBus.$on('showViewDetails', this.openChartDetailsDialog)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
mergeStyle() {
|
mergeStyle() {
|
||||||
|
Loading…
Reference in New Issue
Block a user