-
Notifications
You must be signed in to change notification settings - Fork 139
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: 修改 updateScroll 调用时机 #1110
Conversation
🎊 PR Preview 4baf711 has been successfully built and deployed to https://ant-design-ant-design-mini-preview-pr-1110.surge.sh 🕐 Build time: 255.423s 🤖 By surge-preview |
src/Tabs/index.ts
Outdated
@@ -145,7 +148,7 @@ const Tabs = (props: ITabsProps) => { | |||
}); | |||
|
|||
/// #if ALIPAY | |||
useEffect(() => { | |||
useReady(() => { |
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.
useReady 的内部定义是哪个小程序周期?
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.
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.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1110 +/- ##
==========================================
- Coverage 89.97% 89.95% -0.03%
==========================================
Files 150 150
Lines 3690 3692 +2
Branches 915 916 +1
==========================================
+ Hits 3320 3321 +1
- Misses 317 318 +1
Partials 53 53 ☔ View full report in Codecov by Sentry. |
7f7469f
to
4baf711
Compare
在 useEffect ( onInit ) 生命周期调用 updateScroll 的话,有时候会出现元素找不到的情况。