Skip to content

Conversation

@MuxinFeng
Copy link
Contributor

  1. Rc-input-number 引入 BaseInput,这里参考 rc-input, rc-textarea, rc-mentions,把 antd 那里传过来的一些 props 又传到 BaseInput 里了,包括但不限于 addonBefore、addonAfter、prefix。
  2. 之前 antd-design 中,addonBefore 等属性没有传到 rc-input-number 里管理,参考 input 做了下调整。

@vercel
Copy link

vercel bot commented May 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
input-number ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2023 11:58am

@MadCcc
Copy link
Member

MadCcc commented May 29, 2023

相关的 test case 也可以挪过来,antd 那边的也不用删,留着验证

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #570 (d64ed30) into master (88d1593) will decrease coverage by 0.58%.
The diff coverage is 80.00%.

❗ Current head d64ed30 differs from pull request most recent head 18678c9. Consider uploading reports for the commit 18678c9 to get more accurate results

@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
- Coverage   94.75%   94.18%   -0.58%     
==========================================
  Files           6        6              
  Lines         267      275       +8     
  Branches       69       71       +2     
==========================================
+ Hits          253      259       +6     
- Misses         14       16       +2     
Impacted Files Coverage Δ
src/InputNumber.tsx 97.46% <80.00%> (-0.96%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

tabIndex?: number;
controls?: boolean;
prefix?: React.ReactNode;
suffix?: React.ReactNode;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
suffix?: React.ReactNode;

暂时不支持 suffix

Copy link
Contributor Author

@MuxinFeng MuxinFeng Jun 6, 2023

Choose a reason for hiding this comment

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

这里是准备放 feedbackIcon 的,antd 的 InputNumber 并没有暴露 suffix 。

Copy link
Member

Choose a reason for hiding this comment

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

很细,我都忘记了

@yoyo837
Copy link
Member

yoyo837 commented Oct 13, 2023

It seems that the README document has not been updated.

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.

3 participants