[Android] 子组件created触发$emit()事件会导致父组件渲染奔溃
Open
- Dominant language
- C++
- Stars
- 18.5k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
子组件created触发
this.$emit('getHeaderHeight', height)
父组件接收
getHeaderHeight (height) {
this.headerHeight = height
}
注:headerHeight 在页面中使用,未使用的情况下不会出错,且height是number类型一定有值,headerHeight已在data内初始为0。
不知道是否跟weex渲染逻辑有关系?
Contributor guide
Research direction
Start by reproducing the Android case described in the issue: emit getHeaderHeight from the child created hook while the parent uses headerHeight in its page. Compare behavior when headerHeight is used and unused, and confirm the rendering crash with a numeric height. Done means the parent renders without crashing in the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100