Refactor #4750
parent
90988660a6
commit
01ee5bb736
|
@ -303,7 +303,7 @@ export interface PanelMenuSlots {
|
|||
/**
|
||||
* Current active state of the menuitem
|
||||
*/
|
||||
isActive: boolean;
|
||||
active: boolean;
|
||||
/**
|
||||
* Label property of the menuitem
|
||||
*/
|
||||
|
|
|
@ -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')">
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue