Skip to content

_earth不会被Vue代理 #2

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

Open
Minhom opened this issue Jul 22, 2021 · 0 comments
Open

_earth不会被Vue代理 #2

Minhom opened this issue Jul 22, 2021 · 0 comments

Comments

@Minhom
Copy link

Minhom commented Jul 22, 2021

Earth和Cesium的相关变量放在vue中,必须使用下划线作为前缀!
以_earth为例,在声明 _earth 的组件(比如是EarthComp.vue)中,如果存在子组件A.vue,A.vue需要用到_earth,但通过(:earth=_earth)的方式将_earth传到子组件,子组件无法接收到_earth。
请问有什么好的解决方案吗?

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

1 participant