fix: fix chart extend bug (#1664)

* fix: 【Charts】update charts snapshots

* fix: 修复图表height为100%时的高度问题

* fix: 优化图表extend逻辑

* fix: 修复图表extend失效问题

* fix: 删除注释
This commit is contained in:
Davont 2024-06-04 17:19:20 +08:00 committed by GitHub
parent a931e5fdc6
commit 494bb14efb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -90,4 +90,4 @@
stroke-dasharray: 90, 150;
stroke-dashoffset: -120px;
}
}
}

View File

@ -353,11 +353,13 @@ export default {
this.setAnimation(option)
this.applyMarks(this.integrateChart.eChartOption)
this.integrateChart.refresh(option)
option.extend = this.applyExtend(this.integrateChart.eChartOption)
if (this.colorMode !== 'default') {
option.color = this.computedChartColor()
}
this.integrateChart.refresh(option)
if (this.extend && Object.keys(this.extend).length !== 0) {
option.extend = this.applyExtend(this.integrateChart.eChartOption)
this.integrateChart.refresh(option)
}
this.$emit('handle-color', option.color)
if (this.afterSetOption) {
this.afterSetOption(this.integrateChart.echartsIns)
@ -386,10 +388,12 @@ export default {
this.integrateChart.setSimpleOption(this.iChartName, option, plugins)
this.$emit('handle-color', option.color)
this.applyMarks(this.integrateChart.eChartOption)
option.extend = this.applyExtend(this.integrateChart.eChartOption)
this.integrateChart.render(this.renderOption)
}
if (this.extend && Object.keys(this.extend).length !== 0) {
option.extend = this.applyExtend(this.integrateChart.eChartOption)
this.integrateChart.setSimpleOption(this.iChartName, option, plugins)
}
this.integrateChart.render(this.renderOption)
this.$emit('ready', this.integrateChart.echartsIns)
if (!this.once['ready-once']) {
this.once['ready-once'] = true