rtaro-ui
Version:
UI KIT for Taro
45 lines (24 loc) • 955 B
TypeScript
import { MouseEvent, ComponentClass } from 'react'
import { CommonEventFunction, CommonEvent } from '@rtarojs/components/types/common'
import AtComponent from './base'
export interface AtSearchBarProps extends AtComponent {
value: string
type?: 'text' | 'number' | 'idcard' | 'digit'
typeButton?: 'default' | 'primary' | 'ghost' | 'dashed' | 'danger'
placeholder?: string
maxLength?: number
fixed?: boolean
focus?: boolean
disabled?: boolean
readOnly?: boolean
showActionButton?: boolean
actionName?: string
onChange?: (value: string, event: CommonEvent) => void
onFocus?: CommonEventFunction
onBlur?: CommonEventFunction
onClear?: CommonEventFunction
onConfirm?: (value: string, event: CommonEvent) => void
onActionClick?: (value: string, event: CommonEvent) => void
}
declare const AtSearchBar: ComponentClass<AtSearchBarProps>
export default AtSearchBar