choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
27 lines (26 loc) • 859 B
TypeScript
import React, { Component, ReactNode } from 'react';
import Input, { InputProps } from './Input';
import { Size } from '../_util/enum';
import { ConfigContextValue } from '../config-provider/ConfigContext';
export interface SearchProps extends InputProps {
inputPrefixCls?: string;
onSearch?: (value: string) => any;
enterButton?: boolean | ReactNode;
}
export default class Search extends Component<SearchProps, any> {
static displayName: string;
static get contextType(): React.Context<ConfigContextValue>;
static defaultProps: {
enterButton: boolean;
size: Size;
};
context: ConfigContextValue;
private input;
onSearch: () => void;
focus(): void;
blur(): void;
saveInput: (node: Input) => void;
getPrefixCls(): string;
getButtonOrIcon(): JSX.Element;
render(): JSX.Element;
}