@tarojs/components
Version:
42 lines (41 loc) • 1.4 kB
TypeScript
import { ComponentInterface, Event, EventEmitter } from '../../stencil-public-runtime';
import type { TaroEvent } from '../../../types';
export declare class Input implements ComponentInterface {
private inputRef;
private isOnComposition;
private isOnPaste;
private onInputExcuted;
private fileListener;
value: string;
type: string;
password: boolean;
placeholder: string;
disabled: boolean;
maxlength: number;
autoFocus: boolean;
confirmType: string;
name: string;
nativeProps: {};
el: HTMLElement;
focus(): Promise<void>;
watchAutoFocus(newValue: boolean, oldValue: boolean): void;
watchValue(newValue: string): void;
onInput: EventEmitter;
onPaste: EventEmitter;
onFocus: EventEmitter;
onBlur: EventEmitter;
onConfirm: EventEmitter;
onChange: EventEmitter;
onKeyDown: EventEmitter;
componentDidLoad(): void;
disconnectedCallback(): void;
handleInput: (e: TaroEvent<HTMLInputElement>) => void;
handlePaste: (e: TaroEvent<HTMLInputElement> & ClipboardEvent) => void;
handleFocus: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
handleBlur: (e: TaroEvent<HTMLInputElement> & FocusEvent) => void;
handleChange: (e: TaroEvent<HTMLInputElement>) => void;
handleKeyDown: (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => void;
handleComposition: (e: Event) => void;
handleBeforeInput: (e: any) => void;
render(): any;
}