UNPKG

rtaro-ui

Version:
74 lines (40 loc) 1.31 kB
import { ComponentClass } from 'react' import { CommonEvent, CommonEventFunction } from '@rtarojs/components/types/common' import AtComponent from './base' export interface AtTextareaProps extends AtComponent { defaultValue?: string value: string name?: string maxLength?: string | number placeholder?: string placeholderClass?: string placeholderStyle?: string disabled?: boolean adjustPosition?: boolean autoFocus?: boolean focus?: boolean autoHeight?: boolean required?: boolean showConfirmBar?: boolean selectionStart?: number selectionEnd?: number showCounter?: boolean fixed?: boolean textOverflowForbidden?: boolean height?: string | number cursorSpacing?: number label?: string labelPlacement?: 'horizontal' | 'vertical' enableNative?: boolean onChange?: (value: string, e: CommonEvent) => void onFocus?: (value: string, e: CommonEvent) => void onBlur?: (value: string, e: CommonEvent) => void onConfirm?: (value: string, e: CommonEvent) => void onLinechange?: (value: string, e: CommonEvent) => void onKeyboardHeightChange?: CommonEventFunction } declare const AtTextarea: ComponentClass<AtTextareaProps> export default AtTextarea