fix: 修改 group重叠下方chart 的bug 以及 点击菜单panel未跳第一个panel的问题

This commit is contained in:
zhangyu
2021-12-30 11:33:24 +08:00
parent 8b2e144e59
commit 45283f7084
9 changed files with 28 additions and 27 deletions

View File

@@ -131,11 +131,7 @@ export default {
if (colorIndex >= 20) {
const colorRandom = randomcolor()
this.colorList.push(colorRandom)
// console.log(this.colorList.length, this.chartOption.color.length)
// this.chartOption.color.push(colorRandom)
// console.log(this.colorList.length, this.chartOption.color.length)
}
// console.log(name, alias, statistics)
this.legends.push({ name, alias, statistics, color: this.colorList[colorIndex] })
return {
name,
@@ -264,7 +260,6 @@ export default {
chartData: {
deep: true,
handler (n) {
console.log(this.isInit)
if (!this.isInit) {
this.colorList = this.colorList.slice(0, 20)
this.chartOption.color = this.chartOption.color.slice(0, 20)