Fixed #1836 - For InputText
parent
0ab72941f4
commit
496d8b2197
|
@ -1,10 +1,39 @@
|
|||
interface InputTextProps {
|
||||
modelValue?: string;
|
||||
import { InputHTMLAttributes } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export interface InputTextProps extends InputHTMLAttributes {
|
||||
/**
|
||||
* Value of the component.
|
||||
*/
|
||||
modelValue?: string | undefined;
|
||||
}
|
||||
|
||||
declare class InputText {
|
||||
$props: InputTextProps;
|
||||
$emit(eventName: 'update:modelValue', value: string | null): this;
|
||||
export interface InputTextSlots {
|
||||
}
|
||||
|
||||
export declare type InputTextEmits = {
|
||||
/**
|
||||
* Emitted when the value changes.
|
||||
* @param {string} value - New value.
|
||||
*/
|
||||
'update:modelValue': (value: string | undefined) => void;
|
||||
}
|
||||
|
||||
declare class InputText extends ClassComponent<InputTextProps, InputTextSlots, InputTextEmits> { }
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
InputText: GlobalComponentConstructor<InputText>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* InputText renders a text field to enter data.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [InputText](https://www.primefaces.org/primevue/showcase/#/inputtext)
|
||||
*
|
||||
*/
|
||||
export default InputText;
|
||||
|
|
Loading…
Reference in New Issue