forked from opentiny/tiny-vue
fix: fix chart extend bug (#1664)
* fix: 【Charts】update charts snapshots * fix: 修复图表height为100%时的高度问题 * fix: 优化图表extend逻辑 * fix: 修复图表extend失效问题 * fix: 删除注释
This commit is contained in:
parent
a931e5fdc6
commit
494bb14efb
|
@ -90,4 +90,4 @@
|
|||
stroke-dasharray: 90, 150;
|
||||
stroke-dashoffset: -120px;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue