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> <component v-if="tab.children && tab.children.header" :is="tab.children.header"></component>
</a> </a>
</div> </div>
<transition name="p-toggleable-content"> <transition name="p-toggleable-content" v-bind="getTabPT(tab, 'transition', i)">
<div <div
v-if="lazy ? isTabActive(i) : true" v-if="lazy ? isTabActive(i) : true"
v-show="lazy ? true : isTabActive(i)" 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. * Used to pass attributes to the content's DOM element.
*/ */
content?: AccordionTabPassThroughOptionType; content?: AccordionTabPassThroughOptionType;
/**
* Used to control Vue Transition API.
*/
transition?: any;
} }
/** /**