-
-
Notifications
You must be signed in to change notification settings - Fork 145
chore: by pass rc-select semantic structure #630
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
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,7 +152,15 @@ export type GetOptionType< | |
| Multiple extends boolean | React.ReactNode = false, | ||
| > = false extends Multiple ? OptionType[] : OptionType[][]; | ||
|
|
||
| type SemanticName = 'input' | 'prefix' | 'suffix'; | ||
| type SemanticName = | ||
| | 'input' | ||
| | 'prefix' | ||
| | 'suffix' | ||
| | 'placeholder' | ||
| | 'content' | ||
| | 'item' | ||
| | 'itemContent' | ||
| | 'itemRemove'; | ||
| type PopupSemantic = 'list' | 'listItem'; | ||
| export interface CascaderProps< | ||
| OptionType extends DefaultOptionType = DefaultOptionType, | ||
|
|
@@ -455,11 +463,21 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re | |
| prefix: classNames?.prefix, | ||
| suffix: classNames?.suffix, | ||
| input: classNames?.input, | ||
| placeholder: classNames?.placeholder, | ||
| content: classNames?.content, | ||
| item: classNames?.item, | ||
| itemContent: classNames?.itemContent, | ||
| itemRemove: classNames?.itemRemove, | ||
| }} | ||
| styles={{ | ||
| prefix: styles?.prefix, | ||
| suffix: styles?.suffix, | ||
| input: styles?.input, | ||
| placeholder: styles?.placeholder, | ||
| content: styles?.content, | ||
| item: styles?.item, | ||
| itemContent: styles?.itemContent, | ||
| itemRemove: styles?.itemRemove, | ||
| }} | ||
|
||
| popupStyle={{ | ||
| ...popupStyle, | ||
|
|
||
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.
The
SemanticNametype definition has been expanded to include new semantic names. Ensure that all these names are consistently used throughout the component and that they cover all customizable elements. Also, consider adding documentation or comments to explain the purpose of each semantic name.Missing documentation can lead to confusion and inconsistent usage.