You need to sign in or sign up before continuing.
Commit cdd190e5 by 胡悦

Merge branch 'gh_v1.2.0' of http://192.168.3.233:8090/gh/data-view into gh_v1.2.0

2 parents a4157902 d7814cad
......@@ -236,11 +236,11 @@ export default {
this.flag = true
})
},
chartAction(dataList) {
chartAction() {
this.canvas.dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: dataList.length - 1
dataIndex: this.lineData.length - 1
})
},
draw(lineData, queryType) {
......@@ -354,6 +354,10 @@ export default {
window.addEventListener('resize', () => {
this.canvas.resize()
})
// 移除图表
this.canvas.on('globalout', () => {
this.chartAction()
})
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!