pull/104/head
Merve Özçifçi 2019-09-23 09:59:00 +03:00
parent 6ce6eb91fc
commit c0f4784946
1 changed files with 4 additions and 4 deletions

View File

@ -2,13 +2,13 @@
<transition name="p-input-overlay" @enter="onEnter" @leave="onLeave"> <transition name="p-input-overlay" @enter="onEnter" @leave="onLeave">
<div ref="container" :class="containerClass" v-if="popup ? visible : true"> <div ref="container" :class="containerClass" v-if="popup ? visible : true">
<ul class="p-menu-list p-reset"> <ul class="p-menu-list p-reset">
<template v-for="item of model"> <template v-for="(item, i) of model">
<template v-if="item.items"> <template v-if="item.items">
<li class="p-submenu-header " :key="item.label" v-if="item.items">{{item.label}}</li> <li class="p-submenu-header " :key="item.label+i" v-if="item.items">{{item.label}}</li>
<Menuitem v-for="child of item.items" :key="child.label" :item="child" @click="itemClick" /> <Menuitem v-for="(child, j) of item.items" :key="child.label+i+j" :item="child" @click="itemClick" />
</template> </template>
<template v-else> <template v-else>
<Menuitem :key="item.label" :item="item" @click="itemClick" /> <Menuitem :key="item.label+i" :item="item" @click="itemClick" />
</template> </template>
</template> </template>
</ul> </ul>