由于项目要求,仿照饿了么的下拉二级菜单,并增加了多选功能。项目中用到了 vue,vuex,element-ui,vue-router
选择后,输出的是选中id的数组。第一次写小插件,留个纪念。当然一定还会有些小问题什么的,后期再改进吧。
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.