mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4000 - Update context option of pt in AccordionTab
This commit is contained in:
parent
77812ed971
commit
7e8f8a7c7c
2 changed files with 17 additions and 1 deletions
|
@ -95,6 +95,7 @@ export default {
|
|||
return `${this.id}_${index}_content`;
|
||||
},
|
||||
getTabPT(tab, key, index) {
|
||||
const count = this.tabs.length;
|
||||
const tabMetaData = {
|
||||
props: tab.props,
|
||||
parent: {
|
||||
|
@ -102,7 +103,10 @@ export default {
|
|||
state: this.$data
|
||||
},
|
||||
context: {
|
||||
index
|
||||
index,
|
||||
count,
|
||||
first: index === 0,
|
||||
last: index === count - 1
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue