Refactor #4136 - Rename tab with tabpanel and accordiontab

pull/4148/head
mertsincan 2023-07-14 10:04:32 +01:00
parent ee95a5e641
commit f6743c521f
4 changed files with 12 additions and 2 deletions

View File

@ -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}

View File

@ -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);

View File

@ -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}

View File

@ -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();