Refactor #4351 - For Menubar

pull/4377/head
Tuğçe Küçükoğlu 2023-09-01 14:00:52 +03:00
parent 3cdebdbab1
commit 344df448f2
2 changed files with 5 additions and 1 deletions

View File

@ -245,6 +245,10 @@ export interface MenubarSlots {
* State of the root * State of the root
*/ */
root: boolean; root: boolean;
/**
* Whether or not there is a submenu
*/
hasSubmenu: boolean;
}): VNode[]; }): VNode[];
/** /**
* Custom popup icon template on responsive mode. * Custom popup icon template on responsive mode.

View File

@ -38,7 +38,7 @@
</template> </template>
</a> </a>
</template> </template>
<component v-else :is="templates.item" :item="processedItem.item" :root="root" :label="getItemLabel(processedItem)" :props="getMenuItemProps(processedItem, index)"></component> <component v-else :is="templates.item" :item="processedItem.item" :root="root" :hasSubmenu="getItemProp(processedItem, 'items')" :label="getItemLabel(processedItem)" :props="getMenuItemProps(processedItem, index)"></component>
</div> </div>
<MenubarSub <MenubarSub
v-if="isItemVisible(processedItem) && isItemGroup(processedItem)" v-if="isItemVisible(processedItem) && isItemGroup(processedItem)"