Lint fixes

pull/132/head
cagataycivici 2019-12-05 11:31:01 +03:00
parent bb47325012
commit 5302d3d3b8
1 changed files with 15 additions and 15 deletions

View File

@ -6,7 +6,7 @@
<a :href="category.url||'#'" class="p-menuitem-link" :target="category.target" @click="onCategoryClick($event, category)" @keydown="onCategoryKeydown($event, category)">
<span v-if="category.icon" :class="getCategoryIcon(category)"></span>
<span class="p-menuitem-text">{{category.label}}</span>
<span v-if="category.items" :class="getCategorySubMenuIcon(category)"></span>
<span v-if="category.items" :class="getCategorySubMenuIcon()"></span>
</a>
<div class="p-megamenu-panel" v-if="category.items">
<div class="p-grid">
@ -173,7 +173,7 @@ export default {
this.activeItem = item;
}
},
collapseMenu(item) {
collapseMenu() {
this.activeItem = null;
},
findNextItem(item) {
@ -210,7 +210,7 @@ export default {
'p-disabled': category.disabled
}, category.class];
},
getCategorySubMenuIcon(category) {
getCategorySubMenuIcon() {
return ['p-submenu-icon pi pi-fw', {
'pi-caret-down': this.horizontal,
'pi-caret-right': this.vertical