Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

DiamondYuan
Copy link
Collaborator

@DiamondYuan DiamondYuan commented Feb 22, 2024

在 useEffect ( onInit ) 生命周期调用 updateScroll 的话,有时候会出现元素找不到的情况。

Copy link
Contributor

github-actions bot commented Feb 22, 2024

🎊 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

@DiamondYuan DiamondYuan changed the title fix: 修改 scroll 调用时机 fix: 修改 updateScroll 调用时机 Feb 22, 2024
@@ -145,7 +148,7 @@ const Tabs = (props: ITabsProps) => {
});

/// #if ALIPAY
useEffect(() => {
useReady(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useReady 的内部定义是哪个小程序周期?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e20f108) 89.97% compared to head (4baf711) 89.95%.

Files Patch % Lines
compiled/alipay/src/Tabs/index.ts 66.66% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@DiamondYuan DiamondYuan merged commit 36c057a into master Feb 22, 2024
7 of 9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants