Skip to content

flitrue/vue-awesome-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-awesome-dropdown

Build Status npm version

A dropdown refresh component implements by vuejs 2.0 for mobile.

Usage

Install

npm install vue-awesome-dorpdown --save

CommonJS

var DropDown = require('vue-awesome-dropdown');

new Vue({
    components: { DropDown },
    data: function () {
        return {
            name: "",
            list: [
                { name: "北京" },
                { name: "上海" },
                { name: "深圳" },
            ]
        };
    },
    template: '<drop-down v-model="name" :list="list" :></drop-down>'
});

ES6

import DropDown from 'vue-awesome-dropdown';

new Vue({
    components: { DropDown },
    data: function () {
        return {
            name: "",
            list: [
                { name: "北京" },
                { name: "上海" },
                { name: "深圳" },
            ]
        };
    },
    template: '<drop-down v-model="name" :list="list" :></drop-down>'
});

Props

Property Description
name 默认选中的项
list 可选列表

License

MIT

About

🇨🇳 A drop down component implements by vuejs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published