Fixed #2576 - Add null types to InputText and Password
parent
ca3a6b7493
commit
8462b80c40
|
@ -1,11 +1,11 @@
|
||||||
import { InputHTMLAttributes } from 'vue';
|
import { InputHTMLAttributes } from 'vue';
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
|
||||||
|
|
||||||
export interface InputTextProps extends InputHTMLAttributes {
|
export interface InputTextProps extends InputHTMLAttributes {
|
||||||
/**
|
/**
|
||||||
* Value of the component.
|
* Value of the component.
|
||||||
*/
|
*/
|
||||||
modelValue?: string | undefined;
|
modelValue?: Nullable<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface InputTextSlots {
|
export interface InputTextSlots {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { VNode, InputHTMLAttributes } from 'vue';
|
import { VNode, InputHTMLAttributes } from 'vue';
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
|
||||||
|
|
||||||
type PasswordAppendToType = 'body' | 'self' | string | undefined;
|
type PasswordAppendToType = 'body' | 'self' | string | undefined;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ export interface PasswordProps extends InputHTMLAttributes {
|
||||||
/**
|
/**
|
||||||
* Value of the component.
|
* Value of the component.
|
||||||
*/
|
*/
|
||||||
modelValue?: string | undefined;
|
modelValue?: Nullable<string>;
|
||||||
/**
|
/**
|
||||||
* Text to prompt password entry. Defaults to PrimeVue Locale configuration.
|
* Text to prompt password entry. Defaults to PrimeVue Locale configuration.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue