From 237fb1d3057b42a9f68fe1782d70647968f0e2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 1 Jul 2022 16:52:39 +0300 Subject: [PATCH] add docs 'p-menuitem-active' class definition --- src/components/contextmenu/ContextMenuSub.vue | 2 +- src/components/menubar/MenubarSub.vue | 2 +- src/components/tieredmenu/TieredMenuSub.vue | 2 +- src/views/contextmenu/ContextMenuDoc.vue | 4 + src/views/megamenu/MegaMenuDoc.vue | 8 +- src/views/menubar/MenubarDoc.vue | 283 +++++++++--------- src/views/tieredmenu/TieredMenuDoc.vue | 4 + 7 files changed, 159 insertions(+), 146 deletions(-) diff --git a/src/components/contextmenu/ContextMenuSub.vue b/src/components/contextmenu/ContextMenuSub.vue index b8baffe8d..16acc5957 100755 --- a/src/components/contextmenu/ContextMenuSub.vue +++ b/src/components/contextmenu/ContextMenuSub.vue @@ -95,7 +95,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/components/menubar/MenubarSub.vue b/src/components/menubar/MenubarSub.vue index 4f8631732..10827b925 100755 --- a/src/components/menubar/MenubarSub.vue +++ b/src/components/menubar/MenubarSub.vue @@ -117,7 +117,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/components/tieredmenu/TieredMenuSub.vue b/src/components/tieredmenu/TieredMenuSub.vue index 17361a659..7b7071005 100755 --- a/src/components/tieredmenu/TieredMenuSub.vue +++ b/src/components/tieredmenu/TieredMenuSub.vue @@ -113,7 +113,7 @@ export default { if (this.activeItem && item === this.activeItem) this.activeItem = null; else - this.activeItem = item; + this.activeItem = item; } if (!item.items) { diff --git a/src/views/contextmenu/ContextMenuDoc.vue b/src/views/contextmenu/ContextMenuDoc.vue index e016bb548..edf59ca96 100755 --- a/src/views/contextmenu/ContextMenuDoc.vue +++ b/src/views/contextmenu/ContextMenuDoc.vue @@ -337,6 +337,10 @@ export default { p-menuitem Menuitem element. + + + p-menuitem-active + Active menuitem element. p-menuitem-text diff --git a/src/views/megamenu/MegaMenuDoc.vue b/src/views/megamenu/MegaMenuDoc.vue index 308797d58..cdd288df9 100755 --- a/src/views/megamenu/MegaMenuDoc.vue +++ b/src/views/megamenu/MegaMenuDoc.vue @@ -153,7 +153,7 @@ export default {

Two slots named "start" and "end" are provided to embed content before or after the items. In additon MegaMenu, offers item customization with the item template that receives the menuitem instance from the model as a parameter.