import { default as React } from 'react'; import { AutoCompleteProps as AntAutoCompleteProps } from 'antd'; import { BaseComponentProps, DataSetConfig, ValidationDisplayConfig } from '../../types/common'; interface RemoteOptionsConfig { queryApi?: string; keyWordParamName?: string; valueKey?: string; labelKey?: string; fixedParams?: any[]; /** * 响应中选项数组所在字段名(与 AndSelect optionsCfg.field 同义)。 * 如 "list";留空时根为数组则直接用,否则取 list 或 records。 */ field?: string; /** 为 true 时:从下拉选中后,dataSetField 写入 label(展示字段),而非 valueKey */ bindLabelOnSelect?: boolean; } export interface AndAutoCompleteProps extends Omit, BaseComponentProps, DataSetConfig, ValidationDisplayConfig { changeAction?: string; selectAction?: string; onChange?: (value: string) => void; onSelect?: (value: string, option: any) => void; /** 远程数据URL(自定义属性,不传递给AutoComplete) */ remoteUrl?: string; /** 远程选项配置 */ remoteOptions?: RemoteOptionsConfig; /** 搜索动作(自定义属性,不传递给AutoComplete) */ searchAction?: string; rules?: Array<{ type?: string; required?: boolean; message?: string; pattern?: string | RegExp; min?: number; max?: number; }>; validateOnBlur?: boolean; validateOnChange?: boolean; } export declare const AndAutoComplete: React.FC; export default AndAutoComplete; //# sourceMappingURL=index.d.ts.map