This commit is contained in:
aojunhao123 2025-06-03 12:05:14 +08:00
parent 1f67ffe469
commit b24661d6db
2 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export type BreadcrumbConfig = ComponentStyleConfig &
export type InputConfig = ComponentStyleConfig &
Pick<InputProps, 'autoComplete' | 'classNames' | 'styles' | 'allowClear' | 'variant'>;
export type SearchConfig = ComponentStyleConfig & Pick<SearchProps, 'classNames' | 'styles'>;
export type InputSearchConfig = ComponentStyleConfig & Pick<SearchProps, 'classNames' | 'styles'>;
export type TextAreaConfig = ComponentStyleConfig &
Pick<TextAreaProps, 'autoComplete' | 'classNames' | 'styles' | 'allowClear' | 'variant'>;
@ -372,7 +372,7 @@ export interface WaveConfig {
export interface ConfigComponentProps {
input?: InputConfig;
search?: SearchConfig;
inputSearch?: InputSearchConfig;
textArea?: TextAreaConfig;
otp?: OTPConfig;
inputNumber?: InputNumberConfig;

View File

@ -65,7 +65,7 @@ const Search = React.forwardRef<InputRef, SearchProps>((props, ref) => {
getPrefixCls,
classNames: contextClassNames,
styles: contextStyles,
} = useComponentConfig('search');
} = useComponentConfig('inputSearch');
const [mergedClassNames, mergedStyles] = useMergeSemantic(
[contextClassNames, classNames],