V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
Terry05
V2EX  ›  分享创造

v-selectmenu - 基于 Vue2 的简洁、易用、高定制化的菜单解决方案

  •  
  •   Terry05 ·
    TerryZ · 2018-07-09 11:40:58 +08:00 · 2167 次点击
    这是一个创建于 2111 天前的主题,其中的信息可能已经有所发展或是发生改变。

    v-selectmenu

    基于 Vue2 的简洁、易用、高定制化的菜单解决方案






    文档、Demo

    请浏览

    jQuery 版本: SelectMenu

    要是觉得项目能用得上,还请点个 Star



    插件预览

    regular menu

    regular

    regular menu group type

    regular-group

    advance menu group type

    advance



    Install

    npm install v-selectmenu --save
    

    Include plugin in your main.js file.

    import Vue from 'vue'
    import vSelectMenu from 'v-selectmenu';
    Vue.use(vSelectMenu);
    

    Deploy on your component(default advance mode)

    template

    <template>
        <v-selectmenu :data="list" class="form-control" v-model="value"></v-selectmenu>
    </template>
    

    script

    export default {
        data(){
            return {
                list: [
                    {id:1 ,name:'Chicago Bulls',desc:'芝加哥公牛'},
                    {id:2 ,name:'Cleveland Cavaliers',desc:'克里夫兰骑士'},
                    {...}
                ]
            };
        }
    };
    



    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2804 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.