We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看了示例代码不知道为什么要把initChart赋给属性onInit? 因为实际开发中数据都是动态获取赋值的,我就把initChart放到methods中动态调用生成图表。 export default { components: { mpvueEcharts }, data() { return { echarts, dateArr: ["18.08.13", "18.08.13", "18.08.13", "18.08.13"], data: [63, 73, 83, 85], subtext: "单位:cm", title: "身高" // onInit: initChart }; }, methods: { init() { utils.setTitle("结果"); this.onInit(); }, onInit: initChart }, mounted() { this.init(); } }; 直接报Cannot read property 'getAttribute' of undefined 的错误, 但是图表还是显示了,不知道是什么原因
export default { components: { mpvueEcharts },
data() { return { echarts, dateArr: ["18.08.13", "18.08.13", "18.08.13", "18.08.13"], data: [63, 73, 83, 85], subtext: "单位:cm", title: "身高" // onInit: initChart }; },
methods: { init() { utils.setTitle("结果"); this.onInit(); }, onInit: initChart },
mounted() { this.init(); } };
The text was updated successfully, but these errors were encountered:
示例主要是根据官方的修改来的,远程数据可以看下懒加载那个示例
Sorry, something went wrong.
@F-loat 您好,可以给下懒加载的示例地址吗?我在官网没有找到
这个 https://github.com/F-loat/mpvue-echarts/blob/master/examples/lazyLoad.vue
@F-loat 3Q 完美
No branches or pull requests
看了示例代码不知道为什么要把initChart赋给属性onInit?
因为实际开发中数据都是动态获取赋值的,我就把initChart放到methods中动态调用生成图表。
export default { components: { mpvueEcharts },
data() { return { echarts, dateArr: ["18.08.13", "18.08.13", "18.08.13", "18.08.13"], data: [63, 73, 83, 85], subtext: "单位:cm", title: "身高" // onInit: initChart }; },
methods: { init() { utils.setTitle("结果"); this.onInit(); }, onInit: initChart },
mounted() { this.init(); } };
直接报Cannot read property 'getAttribute' of undefined 的错误,
但是图表还是显示了,不知道是什么原因
The text was updated successfully, but these errors were encountered: