<div :for="($index, el) in @sidebarMenus" :class="['menu-item', @isActive(el.groupUrl) && 'cur']"> <a :attr="{'href': el.url}">{{el.name}}</a> </div>