0.1.1 • Published 7 years ago
menu_editor v0.1.1
menu_editor
A drag and drop menu editor built with vue.
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintCustomize configuration
Style
It's intentionally ustyled (mostly, see todo). This provides the most flexibility to you when you consider including it in your project.
Use in your code
npm install vue-menu-editorPass data back to parent component/script
<menuedit :items="your_menu_items" :validate="menu_validate" @data="menu_data"></menuedit>
...
// Send anything to validate to signal that menu edit is finished
this.menu_validate = { };
...
// In methods, handle menu data
menu_data(data) {
this.my_menu = data;
}