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)"> <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 v-if="category.icon" :class="getCategoryIcon(category)"></span>
<span class="p-menuitem-text">{{category.label}}</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> </a>
<div class="p-megamenu-panel" v-if="category.items"> <div class="p-megamenu-panel" v-if="category.items">
<div class="p-grid"> <div class="p-grid">
@ -173,7 +173,7 @@ export default {
this.activeItem = item; this.activeItem = item;
} }
}, },
collapseMenu(item) { collapseMenu() {
this.activeItem = null; this.activeItem = null;
}, },
findNextItem(item) { findNextItem(item) {
@ -210,7 +210,7 @@ export default {
'p-disabled': category.disabled 'p-disabled': category.disabled
}, category.class]; }, category.class];
}, },
getCategorySubMenuIcon(category) { getCategorySubMenuIcon() {
return ['p-submenu-icon pi pi-fw', { return ['p-submenu-icon pi pi-fw', {
'pi-caret-down': this.horizontal, 'pi-caret-down': this.horizontal,
'pi-caret-right': this.vertical 'pi-caret-right': this.vertical