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

feat: tabs使用横纵方向,标题支持左对齐 #2809

Merged
merged 5 commits into from
Jan 2, 2024

Conversation

iCheng
Copy link
Contributor

@iCheng iCheng commented Dec 28, 2023

这个 PR 做了什么? (简要描述所做更改)
tabs使用横纵方向,标题支持左对齐
resolve #2471

这个 PR 是什么类型? (至少选择一个)

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 代码重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

这个 PR 涉及以下平台:

  • NutUI 4.0 H5
  • NutUI 4.0 小程序
  • NutUI 3.0 H5
  • NutUI 3.0 小程序

这个 PR 是否已自测:

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (896b257) 85.23% compared to head (691c87b) 84.97%.
Report is 4 commits behind head on v4.

Additional details and impacted files
@@            Coverage Diff             @@
##               v4    #2809      +/-   ##
==========================================
- Coverage   85.23%   84.97%   -0.26%     
==========================================
  Files         166      166              
  Lines       21190    21211      +21     
  Branches     2390     2405      +15     
==========================================
- Hits        18061    18024      -37     
- Misses       3124     3170      +46     
- Partials        5       17      +12     

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

@eiinu eiinu added this to the v4.2.7 milestone Dec 30, 2023
@@ -11,3 +11,4 @@ export type RectItem = {
export type TabsDirection = 'horizontal' | 'vertical';
export type TabsSize = 'large' | 'normal' | 'small';
export type TabsType = 'line' | 'smile';
export type Alignment = 'left' | 'center';
Copy link
Member

Choose a reason for hiding this comment

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

建议 prop 名称改为 align,同时其类型名称为 TabsAlign

@eiinu
Copy link
Member

eiinu commented Jan 2, 2024

需要在文档中新增对应属性的 demo 示例,具体写法可参考 贡献指南-文档与 demo

@eiinu eiinu merged commit 0c961e2 into jd-opensource:v4 Jan 2, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tabs横向显示问题
2 participants