From d62493b08bbecdb3c79097d81195ca5ac60a6b25 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 9 Nov 2023 13:33:08 +0300 Subject: [PATCH 1/2] Fixed #4783 - AccordionTab: isTabActive property is deprecated --- components/lib/accordion/Accordion.vue | 2 +- components/lib/accordiontab/AccordionTab.d.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index f7903594e..601382f12 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -20,7 +20,7 @@ @keydown="onTabKeyDown($event, tab, i)" v-bind="{ ...getTabProp(tab, 'headeractionprops'), ...getTabPT(tab, 'headeraction', i) }" > - + void; + /** + * Whether the tab is active + * @param {number} index - Index of the tab + */ + active: (index: number) => void; }): VNode[]; } From c5d49d9daa5ba8bc66e6eab4c0b49ab8c6e3c11a Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Thu, 9 Nov 2023 10:34:09 +0000 Subject: [PATCH 2/2] Update API doc --- doc/common/apidoc/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json index 401d381c4..cd1f89244 100644 --- a/doc/common/apidoc/index.json +++ b/doc/common/apidoc/index.json @@ -760,7 +760,7 @@ { "name": "scope", "optional": false, - "type": "{\n \t index: number, // Index of the tab\n \t isTabActive: (index: number) ⇒ void, // Whether the tab is active\n}", + "type": "{\n \t index: number, // Index of the tab\n \t isTabActive: (index: number) ⇒ void, // Whether the tab is active\n\t active: (index: number) ⇒ void, // Whether the tab is active\n}", "description": "header slot's params." } ],