Merge pull request #3597 from dataease/pr@dev@fix_batch_opt
fix(视图): 修复echarts视图不能批量操作间距的问题
This commit is contained in:
commit
14ca3e0989
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user