V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
Terry05

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

  •  
  •   Terry05 ·
    TerryZ · Jul 9, 2018 · 2593 views
    This topic created in 2849 days ago, the information mentioned may be changed or developed.

    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:'克里夫兰骑士'},
                    {...}
                ]
            };
        }
    };
    



    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    ♥ Do have faith in what you're doing.