-
-
Notifications
You must be signed in to change notification settings - Fork 183
refactor: refactor with Baseinput #570
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
Conversation
MuxinFeng
commented
May 28, 2023
- Rc-input-number 引入 BaseInput,这里参考 rc-input, rc-textarea, rc-mentions,把 antd 那里传过来的一些 props 又传到 BaseInput 里了,包括但不限于 addonBefore、addonAfter、prefix。
- 之前 antd-design 中,addonBefore 等属性没有传到 rc-input-number 里管理,参考 input 做了下调整。
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
相关的 test case 也可以挪过来,antd 那边的也不用删,留着验证 |
Codecov Report
@@ 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
📣 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| suffix?: React.ReactNode; |
暂时不支持 suffix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是准备放 feedbackIcon 的,antd 的 InputNumber 并没有暴露 suffix 。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
很细,我都忘记了
|
It seems that the README document has not been updated. |