Tabs: @update:value parameter in function definition should be string | number as prop has the same type

pull/6817/head
René Bedbur 2024-11-19 21:00:14 +01:00
parent 3c426a1386
commit ff7d46e78d
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ export interface TabsState {
/** /**
* Current active value state. * Current active value state.
*/ */
d_value: number; d_value: string | number;
/** /**
* Unique id for the Tabs component. * Unique id for the Tabs component.
*/ */
@ -159,9 +159,9 @@ export interface TabsSlots {
export interface TabsEmitsOptions { export interface TabsEmitsOptions {
/** /**
* Emitted when the value changes. * Emitted when the value changes.
* @param {string} value - Current value. * @param {string | number} value - Current value.
*/ */
'update:value'(value: number): void; 'update:value'(value: string | number): void;
} }
export declare type TabsEmits = EmitFn<TabsEmitsOptions>; export declare type TabsEmits = EmitFn<TabsEmitsOptions>;