From cfc86747615c8168c716aabbce595d1324b93a0a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 23 May 2023 22:10:36 +0100 Subject: [PATCH] Refactor #3983 - For Accordion --- components/lib/accordion/Accordion.d.ts | 5 ++++ components/lib/accordion/Accordion.vue | 27 +++++++++++-------- components/lib/accordiontab/AccordionTab.d.ts | 11 ++++++++ .../lib/basecomponent/BaseComponent.vue | 8 +++--- 4 files changed, 37 insertions(+), 14 deletions(-) diff --git a/components/lib/accordion/Accordion.d.ts b/components/lib/accordion/Accordion.d.ts index 6d0aa818e..deaa0e2a8 100755 --- a/components/lib/accordion/Accordion.d.ts +++ b/components/lib/accordion/Accordion.d.ts @@ -8,6 +8,7 @@ * */ import { VNode } from 'vue'; +import { AccordionTabPassThroughOptionType } from '../accordiontab'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export declare type AccordionPassThroughOptionType = AccordionPassThroughAttributes | ((options: AccordionPassThroughMethodOptions) => AccordionPassThroughAttributes) | null | undefined; @@ -58,6 +59,10 @@ export interface AccordionPassThroughOptions { * Uses to pass attributes to the root's DOM element. */ root?: AccordionPassThroughOptionType; + /** + * Uses to pass attributes to AccordionTab helper components. + */ + tab?: AccordionTabPassThroughOptionType; } /** diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index 201a54b55..fc9ff0ccc 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -1,7 +1,7 @@