UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

34 lines (33 loc) 1.01 kB
/// <reference types="react" /> import React from 'react'; import { SearchBarProps, SearchBarState } from './PropsType'; export default class SearchBar extends React.Component<SearchBarProps, SearchBarState> { static defaultProps: { prefixCls: string; placeholder: string; onSubmit: () => void; onChange: () => void; onFocus: () => void; onBlur: () => void; onClear: () => void; showCancelButton: boolean; cancelText: string; disabled: boolean; }; refs: any; rightBtnInitMarginleft: any; firstFocus: any; scrollIntoViewTimeout: any; constructor(props: any); componentDidMount(): void; componentDidUpdate(): void; componentWillReceiveProps(nextProps: any): void; componentWillUnmount(): void; onSubmit: (e: any) => void; onChange: (e: any) => void; onFocus: () => void; onBlur: () => void; onClear: () => void; onCancel: () => void; render(): JSX.Element; }