UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

32 lines (31 loc) 829 B
import * as React from 'react'; export interface SearchBarProps { prefixCls?: string; className?: string; style?: React.CSSProperties; value: any; type?: string; defaultValue?: string | number; onChange?: (value: any) => void; onSearch?: (value: any) => void; disabled?: boolean; clearable?: boolean; placeholder?: string; readOnly?: boolean; maxLength?: number; } declare class SearchBar extends React.PureComponent<SearchBarProps> { static defaultProps: { prefixCls: string; style: {}; type: string; value: string; readOnly: boolean; }; constructor(props: SearchBarProps); handleClear(): void; handleChange(e: any): void; handleSearchFn(value: any): void; render(): JSX.Element; } export default SearchBar;