vue-dropdown
a vue dropdwon menu component
Install
npm install vue-dropdownmenu -S yarn add vue-dropdownmenu
QuickStart
; // in ES6 modules; // in CommonJSconst dropdown = ; // in Global variableconst dropdown = VueDropdowndropdown; Vue;
<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 |