1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import type { BaseSelectRef } from 'rc-select';
|
9 | import * as React from 'react';
|
10 | import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from '../select';
|
11 | import type { InputStatus } from '../_util/statusUtils';
|
12 | declare const Option: import("rc-select/lib/Option").OptionFC;
|
13 | export interface DataSourceItemObject {
|
14 | value: string;
|
15 | text: string;
|
16 | }
|
17 | export type DataSourceItemType = DataSourceItemObject | React.ReactNode;
|
18 | export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
19 | dataSource?: DataSourceItemType[];
|
20 | status?: InputStatus;
|
21 | popupClassName?: string;
|
22 |
|
23 | dropdownClassName?: string;
|
24 | }
|
25 | declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
|
26 | children?: React.ReactNode;
|
27 | } & {
|
28 | ref?: React.Ref<BaseSelectRef> | undefined;
|
29 | }) => React.ReactElement) & {
|
30 | Option: typeof Option;
|
31 | _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
32 | };
|
33 | declare const PurePanel: any;
|
34 | export default RefAutoComplete;
|