UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

23 lines (22 loc) 904 B
/** * TODO: 4.0 * - remove `dataSource` * - `size` not work with customizeInput * - customizeInput not feedback `ENTER` key since accessibility enhancement */ import * as React from 'react'; import Select, { InternalSelectProps, OptionType } from '../select'; export interface DataSourceItemObject { value: string; text: string; } export declare type DataSourceItemType = string | DataSourceItemObject; export interface AutoCompleteProps extends Omit<InternalSelectProps<string>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> { dataSource?: DataSourceItemType[]; } declare const RefAutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<Select<import("../select").SelectValue>>>; declare type RefAutoComplete = typeof RefAutoComplete & { Option: OptionType; }; declare const _default: RefAutoComplete; export default _default;