Fixed #6995
parent
ca31fca45d
commit
1d0e3635e2
|
@ -41,6 +41,21 @@ export interface InputOtpPassThroughMethodOptions {
|
||||||
global: object | undefined;
|
global: object | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom change event.
|
||||||
|
* @see {@link InputOtpEmitsOptions.change}
|
||||||
|
*/
|
||||||
|
export interface InputOtpChangeEvent {
|
||||||
|
/**
|
||||||
|
* Browser event
|
||||||
|
*/
|
||||||
|
originalEvent: Event;
|
||||||
|
/**
|
||||||
|
* Value of the input
|
||||||
|
*/
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom shared passthrough(pt) option method.
|
* Custom shared passthrough(pt) option method.
|
||||||
*/
|
*/
|
||||||
|
@ -252,19 +267,19 @@ export interface InputOtpSlots {
|
||||||
export interface InputOtpEmitsOptions {
|
export interface InputOtpEmitsOptions {
|
||||||
/**
|
/**
|
||||||
* Emitted when the value changes.
|
* Emitted when the value changes.
|
||||||
* @param {boolean} value - New value.
|
* @param {string} value - New value.
|
||||||
*/
|
*/
|
||||||
'update:modelValue'(value: boolean): void;
|
'update:modelValue'(value: string): void;
|
||||||
/**
|
/**
|
||||||
* Emitted when the value changes in uncontrolled mode.
|
* Emitted when the value changes in uncontrolled mode.
|
||||||
* @param {boolean} value - New value.
|
* @param {string} value - New value.
|
||||||
*/
|
*/
|
||||||
'value-change'(value: boolean): void;
|
'value-change'(value: string): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke on value change.
|
* Callback to invoke on value change.
|
||||||
* @param {Event} event - Browser event.
|
* @param {InputOtpChangeEvent} event - Custom change event.
|
||||||
*/
|
*/
|
||||||
change(event: Event): void;
|
change(event: InputOtpChangeEvent): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke when the component receives focus.
|
* Callback to invoke when the component receives focus.
|
||||||
* @param {Event} event - Browser event.
|
* @param {Event} event - Browser event.
|
||||||
|
|
Loading…
Reference in New Issue