cesiumlab / cesiumlab/EarthSDK-vue-cli-app
_earth不会被Vue代理
Open
- Dominant language
- Vue
- Stars
- 31
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Earth和Cesium的相关变量放在vue中,必须使用下划线作为前缀!
以_earth为例,在声明 _earth 的组件(比如是EarthComp.vue)中,如果存在子组件A.vue,A.vue需要用到_earth,但通过(:earth=_earth)的方式将_earth传到子组件,子组件无法接收到_earth。
请问有什么好的解决方案吗?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the prop-passing case described between EarthComp.vue and A.vue, focusing on the :earth=_earth binding and the child component's received value. Review the project's Vue and EarthSDK setup before deciding on a solution; done means the child can reliably receive the Earth-related value without requiring the underscore workaround.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100