mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
update
This commit is contained in:
parent
1f67ffe469
commit
b24661d6db
@ -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;
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user