Fixed #1836 - For Textarea

pull/1846/head
mertsincan 2021-12-01 23:58:22 +03:00
parent f30e8bcafb
commit ce338c32d8
1 changed files with 38 additions and 6 deletions

View File

@ -1,11 +1,43 @@
interface TextareaProps { import { TextareaHTMLAttributes } from 'vue';
modelValue?: string; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
autoResize?: boolean;
export interface TextareaProps extends TextareaHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: string | undefined;
/**
* When present, height of textarea changes as being typed.
*/
autoResize?: boolean | undefined;
} }
declare class Textarea { export interface TextareaSlots {
$props: TextareaProps;
$emit(eventName: 'update:modelValue', value: string): this;
} }
export declare type TextareaEmits = {
/**
* Emitted when the value changes.
* @param {string} value - New value.
*/
'update:modelValue': (value: string) => void;
}
declare class Textarea extends ClassComponent<TextareaProps, TextareaSlots, TextareaEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
Textarea: GlobalComponentConstructor<Textarea>
}
}
/**
*
* Textarea is a multi-line text input element.
*
* Demos:
*
* - [Textarea](https://www.primefaces.org/primevue/showcase/#/textarea)
*
*/
export default Textarea; export default Textarea;