Home

Awesome

vue-quick-menu NPM version

This is web navigation component base on vue2.0+. It can be used in both PC and mobile. demo

Installation

 npm install vue-quick-menu --save

Usage

<quick-menu :menu-count=count :icon-class=icons :menu-url-list=list></quick-menu>
import Vue from 'vue'
import quickMenu from 'vue-quick-menu'

export default {
  ...
  components: {
    quickMenu
  },
  ...
}

Props

PropertyTypeDefaultDescription
menuCountNumber4The number of menu item,option(2,3,4)
menuUrlListArray-An array of Object of link of each menu item, like {isLink:true,url:\foo}
iconClassArray-An array of icon class of each menu item
positiontop-left,top-right,bottom-left or bottom-righttop-leftThe position of quick menu
backgroundColorString#009dc7The background color of quick menu
colorString#ffffffThe color of quick menu icon
isOpenNewTabBooleanfalseIf the menu will open a new tab after click

Event

process

Emitted when click a submenu which is not a link, the param is the index of the submenu.