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: Input.TextArea support rootClassName #44058
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #44058 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 658 658
Lines 11166 11223 +57
Branches 3024 3045 +21
=========================================
+ Hits 11166 11223 +57
☔ View full report in Codecov by Sentry. |
TextArea 的 |
感觉是不是也支持一下 rootClassName 保持心智上的统一会好一点,要是以后 textarea 重构,className 不再指向根节点了,我们还有一个一定指向根节点的 rootClassName |
@@ -21,6 +21,7 @@ export interface TextAreaProps extends Omit<RcTextAreaProps, 'suffix'> { | |||
bordered?: boolean; | |||
size?: SizeType; | |||
status?: InputStatus; | |||
rootClassName?: string; |
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.
这个原来不支持的么?demo test 里加个 TextArea 的测试~~
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.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 92514f5
This pull request adds a new prop
rootClassName
to theInput.TextArea
component, which allows users to customize the class name of the wrapper element. It also updates the unit tests and the documentation in both English and Chinese for the new prop.🔍 Walkthrough
🤖 Generated by Copilot at 92514f5
rootClassName
to theTextArea
component, which allows users to customize the className of the root element (link, link, link)TextArea.tsx
file to apply theclassName
androotClassName
props to the inner and outer elements, using theclassNames
function (link)textarea.test.tsx
file, which checks that therootClassName
prop works as expected with different values and scenarios (link)Input.TextArea
component in theindex.en-US.md
andindex.zh-CN.md
files, describing therootClassName
prop, its type, default value, and version (link, link)