Lint fix
parent
9b67ebfaa2
commit
a791be15fa
|
@ -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}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue