Skip to content

Conversation

@mikasayw
Copy link

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

#697

💡 需求背景和解决方案

  • 问题 1:在tab-bar组件在使用subTabBar时,点击subTabBar会导致页面白屏卡死(文档官网示例可复现)

  • 解决:选择将 nodeRef 传递给 Transition 和 CSSTransition,它是一个 ref 对象,应该指向过渡的子元素

  • 问题 2:tab-bartab-bar-itemclassName style属性失效

  • 解决:之前该组件未从props中接收设置className style属性

  • 问题 3:tab-bar目录结构混淆

  • 解决:tab-bar目录下创建hooks目录,整理归纳该组件下useHook文件

  • 问题 4:增加tab-bar的测试用例

  • image

📝 更新日志

  • fix(tab-bar): 解决tab-bar组件在使用subTabBar时点击报错问题
  • fix(tab-bar): 解决tab-bartab-bar-itemclassName style属性失效问题

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

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

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

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.71%. Comparing base (02b774b) to head (2622bfe).
⚠️ Report is 324 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #819       +/-   ##
============================================
+ Coverage     6.93%   56.71%   +49.78%     
============================================
  Files          400      287      -113     
  Lines         4241     7241     +3000     
  Branches       990     1964      +974     
============================================
+ Hits           294     4107     +3813     
+ Misses        3947     3134      -813     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 4, 2025

Open in StackBlitz

npm i https://pkg.pr.new/tdesign-mobile-react@819

commit: 2622bfe

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

完成

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