1
1
// https://github.dev/ant-design/ant-design/blob/756dc8f130547277a28548c5b46658ff46f131f9/components/select/index.tsx
2
2
import React from 'react' ;
3
- import { Option as SelectOption , OptGroup as SelectOptGroup } from 'rc-select' ;
4
- import { OptionProps } from 'rc-select/lib/Option' ;
3
+ import { Option , OptGroup } from 'rc-select' ;
5
4
import forwardRef from '../utils/forwardRef' ;
6
5
import getIcons from './iconUtil' ;
7
6
import {
@@ -14,10 +13,7 @@ import {
14
13
15
14
type RawValue = string | number ;
16
15
17
- // @ts -ignore
18
- export { OptionProps , InternalSelectProps } ;
19
-
20
- export type OptionType = typeof SelectOption ;
16
+ export type OptionType = typeof Option ;
21
17
22
18
export interface LabeledValue {
23
19
key ?: string ;
@@ -97,7 +93,7 @@ const InternalSelect = forwardRef<SelectProps<any>, 'div'>(
97
93
notFoundContent = { mergedNotFound }
98
94
getPopupContainer = { getPopupContainer }
99
95
prefixCls = "kubed-select"
100
- bordered = { bordered }
96
+ $ bordered= { bordered }
101
97
/>
102
98
</ >
103
99
) ;
@@ -108,17 +104,15 @@ type InternalSelectType = typeof InternalSelect;
108
104
109
105
interface SelectInterface extends InternalSelectType {
110
106
SECRET_COMBOBOX_MODE_DO_NOT_USE : string ;
111
- Option : typeof SelectOption ;
112
- OptGroup : typeof SelectOptGroup ;
107
+ Option : typeof Option ;
108
+ OptGroup : typeof OptGroup ;
113
109
}
114
110
115
111
const Select = InternalSelect as SelectInterface ;
116
112
117
113
Select . SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE ;
118
-
119
- Select . Option = SelectOption ;
120
-
121
- Select . OptGroup = SelectOptGroup ;
114
+ Select . Option = Option ;
115
+ Select . OptGroup = OptGroup ;
122
116
123
117
Select . displayName = '@kubed/components/Select' ;
124
118
0 commit comments