Vue.js 如何在易趣百度中获取dataZoom更改事件的开始和结束值?
如何获取易趣百度数据缩放更改事件中的Vue.js 如何在易趣百度中获取dataZoom更改事件的开始和结束值?,vue.js,echarts,Vue.js,Echarts,如何获取易趣百度数据缩放更改事件中的start和end值?在数据缩放更改后,收听易趣发送的数据缩放事件 myChart.on('dataZoom', function(e) { console.log(e); // All params console.log(e.start); // Start value console.log(e.end) // End value }); 将eCharts与vue.js库一起使用时: 模板: &
start
和end
值?在数据缩放更改后,收听易趣发送的数据缩放事件
myChart.on('dataZoom', function(e) {
console.log(e); // All params
console.log(e.start); // Start value
console.log(e.end) // End value
});
将eCharts与vue.js库一起使用时: 模板:
<IECharts @dataZoom="updateZoom"></IECharts>
嗨,在哪里穿这个?目前我尝试使用
,然后updateZoom:function(){…}
我已经更新了我的答案。我自己不跟vue合作,但也许这样行得通。让我知道。另一个更新,你能试试这个吗?将其包装在方法
属性中,然后使用updateZoom(e){…}
返回并测试它,并作为一种魅力。非常感谢:)听到这个消息我很高兴!
methods: {
updateZoom(e) {
// See all available properties of the event
console.log(e);
}
}