a vue dropdown component
npm install vue-dropdownmenubash
npm install vue-dropdownmenu -S
yarn add vue-dropdownmenu
`
$3
`javascript
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);
`
`javascript
`
$3
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