UNPKG

@aimake/nanod

Version:

## 设计模式 NANO DESIGN 是面向于企业级中台化应用的解决方案。服务于 ToB 和 ToE 类型的单页应用,应用于各产品中从而产出了一套设计及前端规范。

22 lines (21 loc) 634 B
import * as React from 'react'; import Input, { InputProps } from './Input'; export interface SearchProps extends InputProps { inputPrefixCls?: string; onSearch?: (value: string) => any; enterButton?: boolean | React.ReactNode; } export default class Search extends React.Component<SearchProps, any> { static defaultProps: { inputPrefixCls: string; prefixCls: string; enterButton: boolean; }; private input; onSearch: () => void; focus(): void; blur(): void; saveInput: (node: Input) => void; getButtonOrIcon(): React.ReactElement<any>; render(): JSX.Element; }