Files
icehrm/web/node_modules/antd/es/auto-complete/index.d.ts
2020-05-20 18:47:29 +02:00

23 lines
904 B
TypeScript

/**
* 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;