Merge pull request #3816 from dataease/pr@dev@fix_batch_margin

fix(仪表板): 批量设置echarts视图外间距无效
This commit is contained in:
王嘉豪 2022-11-21 17:42:34 +08:00 committed by GitHub
commit f51f02a57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,6 +585,9 @@ export default {
updateParams['customAttr'] = this.sourceCustomAttrStr updateParams['customAttr'] = this.sourceCustomAttrStr
} else if (param.custom === 'customStyle') { } else if (param.custom === 'customStyle') {
const sourceCustomStyle = JSON.parse(this.sourceCustomStyleStr) const sourceCustomStyle = JSON.parse(this.sourceCustomStyleStr)
if (param.property === 'margin') {
sourceCustomStyle[param.property] = param.value
}
sourceCustomStyle[param.property][param.value.modifyName] = param.value[param.value.modifyName] sourceCustomStyle[param.property][param.value.modifyName] = param.value[param.value.modifyName]
this.sourceCustomStyleStr = JSON.stringify(sourceCustomStyle) this.sourceCustomStyleStr = JSON.stringify(sourceCustomStyle)
this.chart.customStyle = this.sourceCustomStyleStr this.chart.customStyle = this.sourceCustomStyleStr