pull/99/head
孙萌 2024-01-23 11:55:56 +08:00
parent 3c76aa6db3
commit cbd53e4cea
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,7 @@ export function realTimeLine(id, data) {
]
var list = []
var selList={}
var dataList = []
data.forEach((el, index) => {
Xdata.push(el.time)
@ -216,6 +217,7 @@ export function realTimeLine(id, data) {
},
},
})
selList[el.name]=(index==0?true:false)
})
var option = {
tooltip: {
@ -233,6 +235,7 @@ export function realTimeLine(id, data) {
itemHeight: 10,
type: 'scroll', // 启用翻页
data: list,
selected: selList,
right: "center",
top:10,
itemGap: 10,