perf:chart组件增加设置随机颜色方法

tip:当线条过多,默认颜色数量不够时须使用此方法
This commit is contained in:
wangwenrui
2020-04-24 14:20:46 +08:00
parent 1ec610e9dc
commit b1dca0037e
4 changed files with 27 additions and 10 deletions

View File

@@ -171,7 +171,7 @@
selectInterval(val) {
this.visible = false;
clearInterval(this.intervalTimer);
if (val) {
if (val && val.value != -1) {
this.interval = val;
const start = new Date(this.searchTime[1]);
const now = new Date();