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