Merge pull request #3597 from dataease/pr@dev@fix_batch_opt

fix(视图): 修复echarts视图不能批量操作间距的问题
This commit is contained in:
xuwei-fit2cloud 2022-11-02 09:56:15 +08:00 committed by GitHub
commit 14ca3e0989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@
@onChangeSplitForm="onChangeSplitForm" @onChangeSplitForm="onChangeSplitForm"
@onTextChange="onTextChange" @onTextChange="onTextChange"
@onLegendChange="onLegendChange" @onLegendChange="onLegendChange"
@onMarginChange="onMarginChange"
/> />
<el-row v-else> <el-row v-else>
<div class="view-selected-message-class"> <div class="view-selected-message-class">
@ -99,6 +100,9 @@ export default {
onLegendChange(val) { onLegendChange(val) {
this.batchOptChange('customStyle', 'legend', val) this.batchOptChange('customStyle', 'legend', val)
}, },
onMarginChange(val) {
this.batchOptChange('customStyle', 'margin', val)
},
batchOptChange(custom, property, value) { batchOptChange(custom, property, value) {
this.$store.commit('setChangeProperties', { this.$store.commit('setChangeProperties', {
'custom': custom, 'custom': custom,