import React from 'react'; import { SelectProps } from 'antd'; import { DefaultOptionType } from 'antd/lib/select'; export type DSelectProps = Omit & { /** antd的onSearch属性,onSearch有效时showSearch自动为true */ onSearch?: (params?: any) => Promise; /** antd的options属性,可以是一个options数组,或一个返回等价options数组的promise */ options?: DefaultOptionType[] | DSelectProps['onSearch']; /** antd的loading属性,是否显示加载中:传入数字表示延迟加载,单位毫秒,0等同于false */ loading?: boolean | number; /** 是否开启防抖: true表示800毫秒,true表示默认值,false或0表示不开启 */ debounce?: boolean | number; }; declare const DSelect: React.ForwardRefExoticComponent, "options" | "onSearch" | "loading"> & { /** antd的onSearch属性,onSearch有效时showSearch自动为true */ onSearch?: ((params?: any) => Promise) | undefined; /** antd的options属性,可以是一个options数组,或一个返回等价options数组的promise */ options?: DefaultOptionType[] | DSelectProps['onSearch']; /** antd的loading属性,是否显示加载中:传入数字表示延迟加载,单位毫秒,0等同于false */ loading?: number | boolean | undefined; /** 是否开启防抖: true表示800毫秒,true表示默认值,false或0表示不开启 */ debounce?: number | boolean | undefined; } & React.RefAttributes>; export default DSelect;