Skip to content

Commit

Permalink
feat(lineChart): 柱状图补充点击事件
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 6, 2020
1 parent 182180d commit 8569875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Charts/lineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export default {
},
}],
}, true);
// 此处绑定饼图点击事件,把图例内容抛出,用于数据钻取
this.chart.on('click', (obj) => {
this.$emit('click', obj);
});
},
},
watch: {
Expand Down

0 comments on commit 8569875

Please sign in to comment.