UNPKG

@tarojs/components

Version:
35 lines (34 loc) 1.19 kB
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime'; import { TaroEvent } from '../../../types'; export declare class Textarea implements ComponentInterface { private textareaRef; el: HTMLElement; value: string; placeholder: string; disabled: boolean; maxlength: number; autoFocus: boolean; autoHeight: boolean; name: string; nativeProps: {}; line: number; onInput: EventEmitter; onFocus: EventEmitter; onBlur: EventEmitter; onConfirm: EventEmitter; onChange: EventEmitter; onLineChange: EventEmitter; onKeyDown: EventEmitter; watchAutoFocus(newValue: boolean, oldValue: boolean): void; watchValue(newValue: string): void; focus(): Promise<void>; handleInput: (e: TaroEvent<HTMLInputElement>) => void; handleFocus: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void; handleBlur: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void; handleChange: (e: TaroEvent<HTMLInputElement>) => void; handleLineChange: () => void; handleKeyDown: (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => void; calculateContentHeight: (ta: any, scanAmount: any) => any; getNumberOfLines: () => number; render(): any; }