Refactor #4351 - For Menubar
parent
3cdebdbab1
commit
344df448f2
|
@ -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.
|
||||||
|
|
|
@ -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)"
|
||||||
|
|
Loading…
Reference in New Issue