Refactor #4000 - Update context option of pt in AccordionTab

pull/4004/head
mertsincan 2023-05-29 16:38:17 +01:00
parent 8181d7ee85
commit 15c4d029de
2 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,8 @@ export default {
index, index,
count, count,
first: index === 0, first: index === 0,
last: index === count - 1 last: index === count - 1,
active: this.isTabActive(index)
} }
}; };

View File

@ -135,6 +135,10 @@ export interface AccordionTabContext {
* Whether the tab is last. * Whether the tab is last.
*/ */
last: boolean; last: boolean;
/**
* Whether the tab is active.
*/
active: boolean;
} }
/** /**