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(tabs): dialog中的tabs默认选中样式不正确 #4722

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

chensid
Copy link
Contributor

@chensid chensid commented Nov 11, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

[tabs] dialog中的tabs默认选中样式不正确 #4692

💡 需求背景和解决方案

背景:
dialog 设置destroy-on-close属性后,子组件getBoundingClientRect方法获取不正确。
方案:
useResizeObserver中的debounce的wait值设置为35,略大于2 × 16.67ms ≈ 33.34ms

📝 更新日志

  • fix(tabs): dialog中的tabs默认选中样式不正确

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

github-actions bot commented Nov 12, 2024

完成

@uyarn
Copy link
Collaborator

uyarn commented Nov 19, 2024

Nov-19-2024.18-55-17.mp4

应用这个PR的改动 看起来是这个效果 和打开issue描述的问题的效果类似 你复现的效果是修改前后有差异吗?@chensid

@chensid
Copy link
Contributor Author

chensid commented Nov 19, 2024

2024年11月19日.18-55-17.mp4
应用这个PR的因果看起来是这个效果并打开问题描述的问题的效果类似你复现的效果是修改前后有差异吗?@chensid

这是当前版本的,刚打开的指示条加载不出来 @uyarn
image

2024-11-19.21.24.24.mp4

@uyarn uyarn merged commit 2b8206d into Tencent:develop Nov 20, 2024
7 checks passed
@chensid chensid deleted the fix/tabs branch November 20, 2024 01:29
@github-actions github-actions bot mentioned this pull request Nov 20, 2024
16 tasks
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