给人人引荐一个基于Vue2的右键弹出菜单插件,支撑单一SPA页面以及能够在轮回绑定中运用。
项目地点为:https://github.com/chiic/vue-…
在原有基础上进行了重构,支撑N节子菜单。效果图以下
设置简朴,能够像vue-router那样去设置一个options来设置选项。
例如图1的设置项为:
menulists: [
{
btnName: "选项1111111",
icoName: "fa fa-home fa-fw",
children: [
{
icoName: "fa fa-adn",
btnName: "选项1-1",
children: [
{
icoName: "fa fa-file",
children: [
{
icoName: "fa fa-android",
fnHandler: "Handler1",
btnName: "选项1-1-1"
}
],
btnName: "选项1-1-1"
}
]
}
]
},
{
btnName: "选项2",
children: [
{
fnHandler: "Handler5",
btnName: "选项2-1"
}
]
},
{
btnName: "选项3",
fnHandler: "Handler4"
},
{
btnName: "选项4",
disabled: true
}
]