Update InputMask.d.ts

pull/6632/head
Mert Sincan 2024-10-23 13:46:46 +01:00
parent 9a68b37d1d
commit a60230fb68
1 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,10 @@ export interface InputMaskProps {
* Value of the component. * Value of the component.
*/ */
modelValue?: string | undefined; modelValue?: string | undefined;
/**
* The default value for the input when not controlled by `modelValue`.
*/
defaultValue?: string | undefined;
/** /**
* Placeholder character in mask, default is underscore. * Placeholder character in mask, default is underscore.
* @defaultValue _ * @defaultValue _
@ -202,6 +206,11 @@ export interface InputMaskEmitsOptions {
* @param {string} value - New value. * @param {string} value - New value.
*/ */
'update:modelValue'(value: string): void; 'update:modelValue'(value: string): void;
/**
* Emitted when the value changes in uncontrolled mode.
* @param {string} value - New value.
*/
'value-change'(value: string): void;
/** /**
* Callback to invoke when the component receives focus. * Callback to invoke when the component receives focus.
*/ */