29 lines
1.5 KiB
TypeScript
29 lines
1.5 KiB
TypeScript
import * as React from 'react';
|
|
import type { BaseSelectRef } from 'rc-select';
|
|
import type { InputStatus } from '../_util/statusUtils';
|
|
import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from '../select';
|
|
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
export interface DataSourceItemObject {
|
|
value: string;
|
|
text: string;
|
|
}
|
|
export type DataSourceItemType = DataSourceItemObject | React.ReactNode;
|
|
export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
|
/** @deprecated Please use `options` instead */
|
|
dataSource?: DataSourceItemType[];
|
|
status?: InputStatus;
|
|
popupClassName?: string;
|
|
/** @deprecated Please use `popupClassName` instead */
|
|
dropdownClassName?: string;
|
|
/** @deprecated Please use `popupMatchSelectWidth` instead */
|
|
dropdownMatchSelectWidth?: boolean | number;
|
|
popupMatchSelectWidth?: boolean | number;
|
|
}
|
|
declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: React.PropsWithChildren<AutoCompleteProps<ValueType, OptionType>> & React.RefAttributes<BaseSelectRef>) => React.ReactElement) & {
|
|
displayName?: string;
|
|
Option: typeof Option;
|
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
|
};
|
|
declare const PurePanel: (props: import("../_util/type").AnyObject) => React.JSX.Element;
|
|
export default RefAutoComplete;
|