diff --git a/components/select/index.tsx b/components/select/index.tsx index 837d06cd7b..735365f8c3 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -68,7 +68,10 @@ export interface SelectProps< const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; -const InternalSelect = ( +const InternalSelect = < + ValueType = any, + OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType, +>( { prefixCls: customizePrefixCls, bordered = true, @@ -90,7 +93,7 @@ const InternalSelect = , + }: SelectProps, ref: React.Ref, ) => { const { @@ -220,7 +223,7 @@ const InternalSelect = + ref={ref} virtual={virtual} showSearch={select?.showSearch}