Skip to content
New issue

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

一个页面多个懒加载实例,只能显示一个 #16

Closed
WwJoyous opened this issue Jun 21, 2018 · 4 comments
Closed

一个页面多个懒加载实例,只能显示一个 #16

WwJoyous opened this issue Jun 21, 2018 · 4 comments

Comments

@WwJoyous
Copy link

一个页面多个懒加载实例,只能显示一个是怎么回事尼。跟普通的一个页面多个实例写法是一样的么

@F-loat
Copy link
Owner

F-loat commented Jun 21, 2018

一样的吧,你 canvasId 设置了没

@WwJoyous
Copy link
Author

懒加载的demo中不是没有canvasId嘛,是通过ref来init的嘛

@F-loat
Copy link
Owner

F-loat commented Jun 21, 2018

多个图表需要设置不同的 canvasId,这是小程序本身的限制

@F-loat F-loat closed this as completed Jun 21, 2018
@WwJoyous
Copy link
Author

谢谢博主,是这个问题加上canvasId就可以了,我以为ref不同就可以了标识

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants