mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - Menubar & TieredMenu item object fixes
This commit is contained in:
parent
79e5a5745c
commit
503f9df280
4 changed files with 11 additions and 14 deletions
|
@ -61,7 +61,7 @@
|
|||
v-if="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
|
||||
:id="getItemId(processedItem)"
|
||||
:style="getItemProp(processedItem, 'style')"
|
||||
:class="getSeparatorItemClass(processedItem)"
|
||||
:class="[getCXOptions('separator'), getItemProp(processedItem, 'class')]"
|
||||
role="separator"
|
||||
v-bind="ptm('separator')"
|
||||
></li>
|
||||
|
@ -176,9 +176,6 @@ export default {
|
|||
},
|
||||
getAriaPosInset(index) {
|
||||
return index - this.items.slice(0, index).filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')).length + 1;
|
||||
},
|
||||
getSeparatorItemClass(processedItem) {
|
||||
return ['p-menuitem-separator', this.getItemProp(processedItem, 'class')];
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue