onclick = { 'click': this.onChartClick.bind(this) } onChartClick(param) { console.log(param) } render() { return ( <div> <ReactEcharts option={option} style={{ height: '75vh' }} onEvents={this.onclick} /> </div> ); }
ding-dong 2020-11-03 15:32 原文
onclick = { 'click': this.onChartClick.bind(this) } onChartClick(param) { console.log(param) } render() { return ( <div> <ReactEcharts option={option} style={{ height: '75vh' }} onEvents={this.onclick} /> </div> ); }