// 参考:https://segmentfault.com/a/1190000015252698
npm install -g vue-cli // 安装完后vue命令就可以使用了。实际上是全局注册了vue、vue-init、vue-list几个命令 // # ubuntu 系统下 // [vue-cli@2.9.3] link /usr/local/bin/vue@ -> /usr/local/lib/node_modules/vue-cli/bin/vue // [vue-cli@2.9.3] link /usr/local/bin/vue-init@ -> /usr/local/lib/node_modules/vue-cli/bin/vue-init // [vue-cli@2.9.3] link /usr/local/bin/vue-list@ -> /usr/local/lib/node_modules/vue-cli/bin/vue-list
vue list // 可以发现有browserify、browserify-simple、pwa、simple、webpack、webpack-simple几种模板可选,这里选用webpack。
// # 使用 vue init vue init
// # 例子 vue init webpack first-vue
first vue project
# 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
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm testFor a detailed explanation on how things work, check out the guide and docs for vue-loader.
# CommonTemplateView
页面通用模版# Test001
组件通讯
# Test002
Slot插件
# Test003
Vuex, Store
参考:https://blog.csdn.net/zjq_1314520/article/details/79539966
# Test004-1
Echarts
# Test004-2
MintUI
参考:https://blog.csdn.net/di315362886/article/details/73920779
# Test005-1
Async-validator
# Test005-2
ElementForm-validator
# Test006-1
Dialog 正确打开弹窗
参考:https://blog.csdn.net/qq_33594380/article/details/79670400
# Test006-2
Tree
# Test006-3
Cascader
# Test007
1、vue-html5-editor
参考:https://www.npmjs.com/package/vue-html5-editor
2、上传
3、下载csv
# Test008
Css 练习
# Test009
Table 拓展练习
# Test010
Steps 拓展练习
# Test011
模版
1、使用Visual Studio Code
2、已安装拓展插件Vetur
3、创建空白用户模版
左上角Code -> 首选项 -> 用户片段 -> 新建全局代码片段文件,命名为"bsTable.json"
4、复制备注中的代码到这个新建的文件中保存
5、每次新建需要的空白列表vue页面文件,然后输入bs,在提示框选中bsTable,确定即可自动生成所需表格模版代码