-
Notifications
You must be signed in to change notification settings - Fork 832
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
fix(swiper): 在动态修改height值后,组件视图未更新 (#2485) #2625
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v4 #2625 +/- ##
==========================================
+ Coverage 84.92% 84.94% +0.01%
==========================================
Files 152 152
Lines 21178 21193 +15
Branches 2379 2386 +7
==========================================
+ Hits 17986 18002 +16
+ Misses 3187 3186 -1
Partials 5 5
☔ View full report in Codecov by Sentry. |
() => props.height, | ||
(val) => { | ||
Taro.nextTick(() => { | ||
init(+val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
调用 init 方法的参数需要修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修改成什么呢?我看其他watch也是这样的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修改成什么呢?我看其他watch也是这样的
init 方法的参数是激活 swiper-item 的下标,height 的变化不涉及它的变动,应该传空
这个 PR 做了什么? (简要描述所做更改)
swiper在动态修改height值后,组件视图未更新
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测: