UNPKG

@ucloud-pccl/react-components

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