Refactor #4231 - For Accordion

pull/4239/head
mertsincan 2023-08-02 14:59:30 +03:00
parent 38faf56b40
commit 1e7750de9b
2 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,7 @@
<component v-if="tab.children && tab.children.header" :is="tab.children.header"></component>
</a>
</div>
<transition name="p-toggleable-content">
<transition name="p-toggleable-content" v-bind="getTabPT(tab, 'transition', i)">
<div
v-if="lazy ? isTabActive(i) : true"
v-show="lazy ? true : isTabActive(i)"

View File

@ -56,6 +56,10 @@ export interface AccordionTabPassThroughOptions {
* Used to pass attributes to the content's DOM element.
*/
content?: AccordionTabPassThroughOptionType;
/**
* Used to control Vue Transition API.
*/
transition?: any;
}
/**