UNPKG

@aimake/nanod

Version:

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

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