UNPKG

npm-cts-ui

Version:

UI KIT for Taro

43 lines (39 loc) 815 B
import { ComponentClass } from 'react' import { CommonEventFunction } from '@tarojs/components/types/common' import CtsComponent from './base' export interface CtsSearchInputProps extends CtsComponent { /** * 输入框的初始内容 */ value?: string /** * 输入框为空时占位符 */ placeholder?: string /** * 是否禁用 * @default false */ disabled?: boolean /** * 是否自动聚焦 * @default false */ autoFocus?: boolean /** * 搜索事件 */ search?: CommonEventFunction /** * 输入框聚焦事件 */ onFocus?: CommonEventFunction } export interface CtsSearchInputState { /** * 输入框内容 */ inputVal: any } declare const CtsSearchInput: ComponentClass<CtsSearchInputProps> export default CtsSearchInput