echarts-for-react
echarts-for-react copied to clipboard
请问按需加载注册地图组件如何实现呢
原有代码逻辑如下: import echarts from 'echarts'; import chinaJson from 'echarts/map/json/china.json';
componentDidMount() {
echarts.registerMap('china', chinaJson);
}