Skip to content

v16 rate - #3528

Open
xiyehutao wants to merge 7 commits into
jdf2e:feat_v4.xfrom
xiyehutao:feat_v16_Rate
Open

xiyehutao wants to merge 7 commits into
jdf2e:feat_v4.xfrom
xiyehutao:feat_v16_Rate

Conversation

@xiyehutao

Copy link
Copy Markdown
Collaborator

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

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

  • [☑️] 文档已补充或无须补充
  • [☑️] 代码演示已提供或无须提供
  • [☑️] TypeScript 定义已补充或无须补充
  • [☑️] fork仓库代码是否为最新避免文件冲突
  • [☑️] Files changed 没有 package.json lock 等无关文件

xiyehutao and others added 7 commits June 17, 2026 16:32
- 新增 layout 属性支持水平/垂直两种布局
- 新增 label 属性支持标签文字,支持 ReactNode | ReactNode[] 实现每颗星独立标签
- 水平布局适配 12DP/16DP/20DP 三种尺寸
- 垂直布局适配 20DP/28DP 尺寸,大尺寸支持 flex 均分布局
- 12DP 星间距调整为 2px
- 星星外层新增 .nut-rate-list 容器
- 补充垂直布局、带标签 demo 及文档
- 新增 layout/label/array-label 相关单测

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- 点击星星选中时播放 scale bounce 动画(1 → 1.25 → 1)
- 仅在图标尺寸≥20px时启用(水平large、垂直normal/large)
- 仅在评分增加时触发,减少时不动画
- 动画持续300ms,自动清除状态

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
构建自动生成,新增 nutuiRateLabelColor 变量类型

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the action:review This PR needs more reviews (less than 2 approvals) label Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.52%. Comparing base (a938cf8) to head (4b262cf).
⚠️ Report is 31 commits behind head on feat_v4.x.

Additional details and impacted files
@@              Coverage Diff              @@
##           feat_v4.x    #3528      +/-   ##
=============================================
+ Coverage      88.33%   88.52%   +0.19%     
=============================================
  Files            295      296       +1     
  Lines          19747    19904     +157     
  Branches        3117     3160      +43     
=============================================
+ Hits           17443    17620     +177     
+ Misses          2298     2278      -20     
  Partials           6        6              

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action:review This PR needs more reviews (less than 2 approvals) size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant