import { CommonEvent } from '@tarojs/components/types/common'; import CompCommon from '../../common/type'; export interface SearchBarProps extends CompCommon { value: string; placeholder?: string; maxLength?: number; fixed?: boolean; inputAlign?: "right" | "center"; showCancel?: false; cancelText?: string; background?: string; shape?: "square" | "round"; focus?: boolean; disabled?: boolean; inputType?: 'text' | 'number' | 'idcard' | 'digit'; onChange: (value: string, event: CommonEvent) => void; onFocus?: Function; onBlur?: Function; onClear?: Function; onConfirm?: Function; onCancel?: Function; }