Commit 77e67c21 by chenwq

折线图-默认和移除

1 parent d1aabe1b
......@@ -124,25 +124,21 @@ export default {
// 鼠标划入
this[this.domId].on('mouseover', data => {
this.moveAttr.seriesIndex = data.dataIndex
this.getRankList(this.moveAttr.seriesIndex, this.rankFlag + 'List')
this.moveAttr.dataIndex = data.dataIndex
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
})
// 鼠标划出
this[this.domId].on('mouseout', () => {
console.log('0000000000')
setTimeout(() => {
this.chartAction()
}, 1000)
// 移除图表
this[this.domId].on('globalout', () => {
this.chartAction()
})
},
chartAction(type) {
console.log(this.moveAttr, '???/cwq')
this[this.domId].dispatchAction({
type: type || 'showTip',
seriesIndex: this.moveAttr.seriesIndex,
dataIndex: this.moveAttr.dataIndex
seriesIndex: +this.moveAttr.seriesIndex,
dataIndex: +this.moveAttr.dataIndex
})
},
......@@ -169,7 +165,7 @@ export default {
handleRankChange(value) {
this.rankFlag = value
this.getRankList(this.moveAttr.seriesIndex, this.rankFlag + 'List')
this.getRankList(this.moveAttr.dataIndex, this.rankFlag + 'List')
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!