feat:折线图option支持config填写

This commit is contained in:
zyh
2023-09-11 16:49:51 +08:00
18 changed files with 105 additions and 868 deletions

View File

@@ -1351,6 +1351,9 @@ export default {
computed: {
minStep () {
return this.nzDefaultConfig.minStep
},
lineOption () {
return this.nzDefaultConfig.option
}
},
data () {
@@ -1447,10 +1450,7 @@ export default {
max: undefined
},
dataLink: this.chartConfig.param.dataLink,
option: {
lineWidth: 1,
pointSize: 6
}
option: this.lineOption
}
this.$nextTick(() => {
this.chartConfig.param.thresholds.push({ value: undefined, color: randomcolor() })