Commit ecc56d9b by 胡悦

Merge branch 'gh_v1.2.0' into ty_v1.2.0

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