pull/132/head
cagataycivici 2019-12-04 16:42:38 +03:00
parent 9b67ebfaa2
commit a791be15fa
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@
@click="onItemClick($event, item)" @keydown="onItemKeyDown($event, item)">
<span :class="['p-menuitem-icon', item.icon]"></span>
<span class="p-menuitem-text">{{item.label}}</span>
<span :class="getSubmenuIcon(item)" v-if="item.items"></span>
<span :class="getSubmenuIcon()" v-if="item.items"></span>
</a>
<sub-menu :model="item.items" v-if="item.visible !== false && item.items" :key="item.label + '_sub_'"
@leaf-click="onLeafClick" @keydown-item="onChildItemKeyDown" :parentActive="item === activeItem" />
@ -258,7 +258,7 @@ export default {
this.documentClickListener = null;
}
},
getSubmenuIcon(item) {
getSubmenuIcon() {
return [
'p-submenu-icon pi pi-fw', {'pi-caret-right': !this.root, 'pi-caret-down': this.root}
];