diff --git a/api-generator/components/menubar.js b/api-generator/components/menubar.js index 8b024fa749..e36616ff2f 100644 --- a/api-generator/components/menubar.js +++ b/api-generator/components/menubar.js @@ -16,15 +16,23 @@ const MenubarProps = [ const MenubarSlots = [ { name: 'start', - description: 'Custom content before the content' + description: 'Custom content before the content.' }, { name: 'end', - description: 'Custom content after the content' + description: 'Custom content after the content.' }, { name: 'item', - description: 'Template of a menuitem.' + description: 'Custom menuitem template.' + }, + { + name: 'baricon', + description: 'Custom bar icon template.' + }, + { + name: 'submenuicon', + description: 'Custom submenu icon template.' } ]; diff --git a/components/lib/menubar/Menubar.d.ts b/components/lib/menubar/Menubar.d.ts index ab11aacfb7..0c2070a269 100755 --- a/components/lib/menubar/Menubar.d.ts +++ b/components/lib/menubar/Menubar.d.ts @@ -60,6 +60,23 @@ export interface MenubarSlots { */ item: MenuItem; }): VNode[]; + /** + * Custom bar icon template. + */ + baricon(): VNode[]; + /** + * Custom submenu icon template. + */ + submenuicon(scope: { + /** + * Whether item is root + */ + root: boolean; + /** + * Whether item is active + */ + active: boolean; + }): VNode[]; } /** diff --git a/components/lib/menubar/Menubar.vue b/components/lib/menubar/Menubar.vue index cd57f02a92..a7ffcf325e 100755 --- a/components/lib/menubar/Menubar.vue +++ b/components/lib/menubar/Menubar.vue @@ -17,7 +17,9 @@ @keydown="menuButtonKeydown($event)" v-bind="buttonProps" > - + + + diff --git a/components/lib/menubar/MenubarSub.vue b/components/lib/menubar/MenubarSub.vue index 656f3d6d56..98ef5db4a2 100755 --- a/components/lib/menubar/MenubarSub.vue +++ b/components/lib/menubar/MenubarSub.vue @@ -16,7 +16,7 @@ :aria-posinset="getAriaPosInset(index)" >
-