feat: config-provider support rangePicker className and style properties #45479
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
#43051
💡 Background and solution
📝 Changelog
ConfigProvider
supportrangePicker
className and style propertiesConfigProvider
支持rangePicker
组件的 className 和 style 属性☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 2567579
This pull request adds a new feature to the
ConfigProvider
component to allow customizing therangePicker
component. It modifies thecomponents/config-provider
files to define and pass therangePicker
prop, and thecomponents/date-picker
files to use the prop for styling. It also updates the documentation and tests for the new feature.🔍 Walkthrough
🤖 Generated by Copilot at 2567579
rangePicker
prop toConfigProvider
component andConfigContext
to allow setting common props for therangePicker
component (link, link, link, link, link)rangePicker
prop fromConfigContext
to apply common props toRangePicker
component and its underlyingRCRangePicker
component (link, link, link)className
andstyle
props ofrangePicker
component can be configured throughConfigProvider
component usingTimePicker.RangePicker
as an example (link)DrawerProps
type incomponents/config-provider/context.ts
file (link, link)