UNPKG

@ucloud-fe/react-components

Version:
20 lines (19 loc) 728 B
import React from 'react'; import { Override } from '../../type'; import LOCALE from './locale/zh_CN'; export interface SearchProps { /** 搜索后数量,null 不展示 */ count?: number | null | void; /** 为空 */ empty?: boolean; /** 展示 loading */ loading?: boolean; /** 触发搜索回调 */ onSearch: ((value: string) => Promise<void>) | ((value: string) => void); /** 触发搜索回调的防抖间隔 */ wait?: number; /** @ignore */ locale?: typeof LOCALE; } declare const _default: React.MemoExoticComponent<({ count, empty, loading, onSearch, children, wait }: Override<React.HTMLAttributes<HTMLDivElement>, SearchProps>) => JSX.Element>; export default _default;