/// export declare type FuzzySearchProps = { /** * @description 内部需要的字段名,key代表关键id,name代表展示名字包括搜索字段名 */ objKeys: { key: string; name: string; }; /** * @description 单选 */ simple?: boolean; /** * @description 是否有占位文字跳转链接 */ hasLink?: boolean; /** * @description 跳转链接的代码 */ children?: React.ReactNode; /** * @description 样式 */ style?: React.CSSProperties; /** * @description 指定当前选中的条目(value 数组引用未变化时,Select 不会更新) */ value?: { label: string; value: string; }[]; /** * @description 选择框默认文本 */ placeholder?: string; /** * @description 清空输入框内容 */ resetForm?: boolean; /** * @description 防抖时间 */ debounceTimeout?: number; /** * @description 请求后端的方法,返回option数组的Promise */ fetchOptions?: (name: string) => Promise<{ key?: string; label: React.ReactNode; value: string | number; }[]>; /** * @description 选中 option,或 input 的 value 变化时,调用此函数 */ onChange?: (value: { label: React.ReactNode; value: string; }[]) => void; /** * 更新时调用此函数 */ onNeedConfirm?: () => void; }; declare const _default: (props: FuzzySearchProps) => null; export default _default;