vue-dropdownmenu

0.1.2 • Public • Published

vue-dropdown

a vue dropdwon menu component

Install

npm install vue-dropdownmenu -S
 
yarn add vue-dropdownmenu

QuickStart

require('vue-dropdownmenu/dist/vue-dropdown.css');
 
// in ES6 modules
import dropdown from 'vue-dropdownmenu';
 
// in CommonJS
const dropdown = require('vue-dropdownmenu');
 
// in Global variable
const dropdown = VueDropdown.dropdown;
 
Vue.component('c-dropdown',dropdown);
<c-dropdown v-model="fontFamily" :text-width="100" :menus="aFontFamily"></c-dropdown>

Params

Parameter Type Default Description
value string two way binding text show in dropdwon's text area
meus string the menu's array, every item with value and text property
textWidth number text area width
type string radio select mode, radio or checkbox
selectedClose boolean true whether to close menu when menu item selected

Preview

dropdown image

Readme

Keywords

Package Sidebar

Install

npm i vue-dropdownmenu

Weekly Downloads

7

Version

0.1.2

License

MIT

Unpacked Size

343 kB

Total Files

15

Last publish

Collaborators

  • ygtzz