type(select): supplementary mode type (#43413)

This commit is contained in:
thinkasany 2023-07-07 15:00:15 +08:00 committed by GitHub
parent 890316fc35
commit a4d01a5a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ export interface InternalSelectProps<
suffixIcon?: React.ReactNode;
size?: SizeType;
disabled?: boolean;
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE' | 'combobox';
bordered?: boolean;
}
@ -118,7 +118,7 @@ const InternalSelect = <
const mode = React.useMemo(() => {
const { mode: m } = props as InternalSelectProps<OptionType>;
if ((m as any) === 'combobox') {
if (m === 'combobox') {
return undefined;
}