pull/4782/head
tugcekucukoglu 2023-11-09 11:42:17 +03:00
parent 90988660a6
commit 01ee5bb736
3 changed files with 3 additions and 3 deletions

View File

@ -303,7 +303,7 @@ export interface PanelMenuSlots {
/**
* Current active state of the menuitem
*/
isActive: boolean;
active: boolean;
/**
* Label property of the menuitem
*/

View File

@ -28,7 +28,7 @@
<span :class="cx('headerLabel')" v-bind="getPTOptions('headerLabel', item, index)">{{ getItemLabel(item) }}</span>
</a>
</template>
<component v-else :is="$slots.item" :item="item" :root="true" :isActive="isItemActive(item)" :hasSubmenu="getItemProp(item, 'items')" :label="getItemLabel(item)" :props="getMenuItemProps(item, index)"></component>
<component v-else :is="$slots.item" :item="item" :root="true" :active="isItemActive(item)" :hasSubmenu="getItemProp(item, 'items')" :label="getItemLabel(item)" :props="getMenuItemProps(item, index)"></component>
</div>
</div>
<transition name="p-toggleable-content" v-bind="ptm('transition')">

View File

@ -33,7 +33,7 @@
:is="templates.item"
:item="processedItem.item"
:root="false"
:isActive="isItemActive(processedItem)"
:active="isItemActive(processedItem)"
:hasSubmenu="isItemGroup(processedItem)"
:label="getItemLabel(processedItem)"
:props="getMenuItemProps(processedItem, index)"