UNPKG

tdesign-vue

Version:
79 lines (78 loc) 2.48 kB
import Vue from 'vue'; import { ClassName } from '../common'; import type { TextareaValue } from './type'; export interface Textarea extends Vue { tFormItem: { validate(trigger: string): Promise<any>; }; } declare const _default: import("vue/types/vue").ExtendedVue<{ classPrefix: string; componentName: string; commonSizeClassName: Record<string, string>; commonStatusClassName: Record<string, string>; } & Record<never, any> & import("../config-provider/config-receiver").ConfigComponent & Vue & Textarea, { formDisabled: any; focused: boolean; mouseHover: boolean; textareaStyle: {}; isComposing: boolean; }, { adjustTextareaHeight(): void; adjustTextareaHeightAfterReady(): void; emitEvent(name: string, value: string | number, context: object): void; focus(): void; blur(): void; handleInput(e: any): void; onCompositionstart(): void; onCompositionend(e: InputEvent): void; inputValueChangeHandle(e: InputEvent): void; setInputValue(v?: TextareaValue): void; emitKeyDown(e: KeyboardEvent): void; emitKeyUp(e: KeyboardEvent): void; emitKeypress(e: KeyboardEvent): void; emitFocus(e: FocusEvent): void; emitBlur(e: FocusEvent): void; }, { tDisabled: boolean; textareaClasses: ClassName; limitClasses: ClassName; inputAttrs: Record<string, any>; characterNumber: number; }, { allowInputOverMax: boolean; autofocus: boolean; autosize: boolean | { minRows?: number; maxRows?: number; }; disabled: boolean; maxcharacter: number; maxlength: string | number; name: string; placeholder: any; readonly: boolean; status: "error" | "default" | "success" | "warning"; tips: string | ((h: import("vue").CreateElement) => import("vue/types/vnode").ScopedSlotReturnValue); value: TextareaValue; defaultValue: TextareaValue; onBlur: (value: TextareaValue, context: { e: FocusEvent; }) => void; onChange: (value: TextareaValue, context?: { e?: InputEvent; }) => void; onFocus: (value: TextareaValue, context: { e: FocusEvent; }) => void; onKeydown: (value: TextareaValue, context: { e: KeyboardEvent; }) => void; onKeypress: (value: TextareaValue, context: { e: KeyboardEvent; }) => void; onKeyup: (value: TextareaValue, context: { e: KeyboardEvent; }) => void; }>; export default _default;