mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
type(select): supplementary mode type (#43413)
This commit is contained in:
parent
890316fc35
commit
a4d01a5a17
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user