UNPKG

tdesign-mobile-vue

Version:
30 lines (29 loc) 824 B
import { TNode } from '../common'; export interface TdTextareaProps { allowInputOverMax?: boolean; autofocus?: boolean; autosize?: boolean; bordered?: boolean; disabled?: boolean; indicator?: boolean; label?: string | TNode; layout?: 'vertical' | 'horizontal'; maxcharacter?: number; maxlength?: number; name?: string; placeholder?: string; readonly?: boolean; value?: TextareaValue; defaultValue?: TextareaValue; modelValue?: TextareaValue; onBlur?: (value: TextareaValue, context: { e: FocusEvent; }) => void; onChange?: (value: TextareaValue, context?: { e?: InputEvent; }) => void; onFocus?: (value: TextareaValue, context: { e: FocusEvent; }) => void; } export declare type TextareaValue = string | number;