diff --git a/api-generator/components/menubar.js b/api-generator/components/menubar.js
index 8b024fa74..e36616ff2 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 ab11aacfb..0c2070a26 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 cd57f02a9..a7ffcf325 100755
--- a/components/lib/menubar/Menubar.vue
+++ b/components/lib/menubar/Menubar.vue
@@ -17,7 +17,9 @@
@keydown="menuButtonKeydown($event)"
v-bind="buttonProps"
>
-
+
+
+