Skip to content

jianfeng418/vue-menu

Repository files navigation

vmenu

A Vue.js project

Image message Usage NPM

npm install vue-menu-jf --save
import vMenu from 'vue-menu-jf'
Vue.use(vMenu)
this.$menu(event,{list:menuList,ulClass:class})

参数说明

参数名称 类型 描述
event Event 鼠标点击事件
list Array 下拉菜单数据列表
ulClass String 为下拉菜单添加的类名

list数据格式:

参数名称 类型 描述
icon String 下拉项图标
text String 下拉项名称
clickFun Function 下拉项点击响应函数
disabled Boolean 是否下拉项置灰
## Build Setup
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Releases

No releases published

Packages

No packages published