🏷️ Updated Input component interface file
This commit is contained in:
parent
e44e17fe7d
commit
ca4c258ea1
|
@ -56,7 +56,7 @@ export interface IInputText {
|
||||||
labelClass?: string;
|
labelClass?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The bound value of the input, supporting string, number, or null.
|
* The bound value of the input, supporting string or null.
|
||||||
*/
|
*/
|
||||||
modelValue?: string | null;
|
modelValue?: string | null;
|
||||||
|
|
||||||
|
@ -69,8 +69,31 @@ export interface IInputText {
|
||||||
* If true, the input type is set to "password" to mask the input content.
|
* If true, the input type is set to "password" to mask the input content.
|
||||||
*/
|
*/
|
||||||
isPassword?: boolean;
|
isPassword?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If true, disables the input field.
|
||||||
|
*/
|
||||||
|
disabled?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Placeholder text displayed inside the input when it's empty.
|
||||||
|
*/
|
||||||
|
placeholder?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Error message(s) displayed when the input is invalid.
|
||||||
|
* Can be a single string or an array of strings.
|
||||||
|
*/
|
||||||
|
errorMessage?: string | string[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Success message(s) displayed when the input is valid.
|
||||||
|
* Can be a single string or an array of strings.
|
||||||
|
*/
|
||||||
|
validMessage?: string | string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines valid properties in Password component.
|
* Defines valid properties in Password component.
|
||||||
*/
|
*/
|
||||||
|
@ -242,7 +265,7 @@ export interface PasswordProps {
|
||||||
*/
|
*/
|
||||||
export default interface IVInput
|
export default interface IVInput
|
||||||
extends Partial<Omit<PasswordProps, 'modelValue'>>,
|
extends Partial<Omit<PasswordProps, 'modelValue'>>,
|
||||||
Partial<IInputText> {
|
Partial<Omit<IInputText, 'wrapperClass' | 'labelClass'>> {
|
||||||
/**
|
/**
|
||||||
* Hint(s) displayed to guide the user when entering a password.
|
* Hint(s) displayed to guide the user when entering a password.
|
||||||
* Can be a single string or an array of strings.
|
* Can be a single string or an array of strings.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user