diff --git a/components/lib/accordion/Accordion.d.ts b/components/lib/accordion/Accordion.d.ts index 1a7390a04..d87521c89 100755 --- a/components/lib/accordion/Accordion.d.ts +++ b/components/lib/accordion/Accordion.d.ts @@ -174,6 +174,21 @@ export interface AccordionSlots { * Default slot to detect AccordionTab components. */ default(): VNode[]; + /** + * Custom toggler icon template. + * @param {Object} scope - togglericon slot's params. + */ + togglericon(scope: { + /** + * Current index of the tab + */ + index: number; + /** + * Whether the current tab is active + * @param {number} index - Current index of the tab + */ + isTabActive: (index: number) => void; + }): VNode[]; } /** diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index d1bbd7e27..f22088372 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -21,6 +21,7 @@ v-bind="{ ...getTabProp(tab, 'headeractionprops'), ...getTabPT(tab, 'headeraction', i) }" > +