Update MegaMenu.vue

pull/5677/head
tugcekucukoglu 2024-04-30 16:05:25 +03:00
parent 37eb456f9b
commit d3ce134ff1
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')"> <div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
<slot name="start"></slot> <slot name="start"></slot>
</div> </div>
<!--TODO: menubutton deprecated since v4.0. Use button-->
<slot :id="id" :name="$slots.menubutton ? 'menubutton' : 'button'" :class="cx('button')" :toggleCallback="(event) => menuButtonClick(event)"> <slot :id="id" :name="$slots.menubutton ? 'menubutton' : 'button'" :class="cx('button')" :toggleCallback="(event) => menuButtonClick(event)">
<a <a
v-if="model && model.length > 0" v-if="model && model.length > 0"
@ -18,6 +19,7 @@
@keydown="menuButtonKeydown($event)" @keydown="menuButtonKeydown($event)"
v-bind="ptm('button')" v-bind="ptm('button')"
> >
<!--TODO: menubuttonicon deprecated since v4.0. Use buttonicon-->
<slot :name="$slots.menubuttonicon ? 'menubuttonicon' : 'buttonicon'"> <slot :name="$slots.menubuttonicon ? 'menubuttonicon' : 'buttonicon'">
<BarsIcon v-bind="ptm('buttonicon')" /> <BarsIcon v-bind="ptm('buttonicon')" />
</slot> </slot>