diff --git a/components/lib/accordion/Accordion.d.ts b/components/lib/accordion/Accordion.d.ts index c47a78d6d..efa56c552 100755 --- a/components/lib/accordion/Accordion.d.ts +++ b/components/lib/accordion/Accordion.d.ts @@ -63,8 +63,13 @@ export interface AccordionPassThroughOptions { root?: AccordionPassThroughOptionType; /** * Uses to pass attributes to AccordionTab helper components. + * @deprecated since v3.30.1. Use 'accordiontab' property instead. */ tab?: AccordionTabPassThroughOptionType; + /** + * Uses to pass attributes to AccordionTab helper components. + */ + accordiontab?: AccordionTabPassThroughOptionType; /** * Uses to manage all lifecycle hooks * @see {@link BaseComponent.ComponentHooks} diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index 8d5af609a..8fdafb833 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -112,7 +112,7 @@ export default { } }; - return mergeProps(this.ptm(`tab.${key}`, { tab: tabMetaData }), this.ptm(`accordiontab.${key}`, tabMetaData), this.ptmo(this.getTabProp(tab, 'pt'), key, tabMetaData)); + return mergeProps(this.ptm(`tab.${key}`, { tab: tabMetaData }), this.ptm(`accordiontab.${key}`, { accordiontab: tabMetaData }), this.ptm(`accordiontab.${key}`, tabMetaData), this.ptmo(this.getTabProp(tab, 'pt'), key, tabMetaData)); }, onTabClick(event, tab, index) { this.changeActiveIndex(event, tab, index); diff --git a/components/lib/tabview/TabView.d.ts b/components/lib/tabview/TabView.d.ts index 7e2617c52..516ba84a8 100755 --- a/components/lib/tabview/TabView.d.ts +++ b/components/lib/tabview/TabView.d.ts @@ -83,8 +83,13 @@ export interface TabViewPassThroughOptions { panelContainer?: TabViewPassThroughOptionType; /** * Uses to pass attributes to TabPanel helper components. + * @deprecated since v3.30.1. Use 'tabpanel' property instead. */ tab?: TabPanelPassThroughOptionType; + /** + * Uses to pass attributes to TabPanel helper components. + */ + tabpanel?: TabPanelPassThroughOptionType; /** * Uses to manage all lifecycle hooks * @see {@link BaseComponent.ComponentHooks} diff --git a/components/lib/tabview/TabView.vue b/components/lib/tabview/TabView.vue index 81f6a9be5..45bd84b02 100755 --- a/components/lib/tabview/TabView.vue +++ b/components/lib/tabview/TabView.vue @@ -163,7 +163,7 @@ export default { } }; - return mergeProps(this.ptm(`tab.${key}`, { tab: tabMetaData }), this.ptm(`tabpanel.${key}`, tabMetaData), this.ptmo(this.getTabProp(tab, 'pt'), key, tabMetaData)); + return mergeProps(this.ptm(`tab.${key}`, { tab: tabMetaData }), this.ptm(`tabpanel.${key}`, { tabpanel: tabMetaData }), this.ptm(`tabpanel.${key}`, tabMetaData), this.ptmo(this.getTabProp(tab, 'pt'), key, tabMetaData)); }, onScroll(event) { this.scrollable && this.updateButtonState();