Refactor #4000 - Update context option of pt in AccordionTab
parent
8181d7ee85
commit
15c4d029de
|
@ -106,7 +106,8 @@ export default {
|
|||
index,
|
||||
count,
|
||||
first: index === 0,
|
||||
last: index === count - 1
|
||||
last: index === count - 1,
|
||||
active: this.isTabActive(index)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -135,6 +135,10 @@ export interface AccordionTabContext {
|
|||
* Whether the tab is last.
|
||||
*/
|
||||
last: boolean;
|
||||
/**
|
||||
* Whether the tab is active.
|
||||
*/
|
||||
active: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue