kiner-tang(文辉)
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
3 deletions
-
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 = <OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>( |
|
|
|
const InternalSelect = < |
|
|
|
ValueType = any, |
|
|
|
OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType, |
|
|
|
>( |
|
|
|
{ |
|
|
|
prefixCls: customizePrefixCls, |
|
|
|
bordered = true, |
|
|
@ -90,7 +93,7 @@ const InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType = |
|
|
|
popupMatchSelectWidth, |
|
|
|
direction: propDirection, |
|
|
|
...props |
|
|
|
}: SelectProps<OptionType>, |
|
|
|
}: SelectProps<ValueType, OptionType>, |
|
|
|
ref: React.Ref<BaseSelectRef>, |
|
|
|
) => { |
|
|
|
const { |
|
|
@ -220,7 +223,7 @@ const InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType = |
|
|
|
|
|
|
|
// ====================== Render =======================
|
|
|
|
return wrapSSR( |
|
|
|
<RcSelect<any, any> |
|
|
|
<RcSelect<ValueType, OptionType> |
|
|
|
ref={ref} |
|
|
|
virtual={virtual} |
|
|
|
showSearch={select?.showSearch} |
|
|
|