# vue-project-template **Repository Path**: rain002/vue-project-template ## Basic Information - **Project Name**: vue-project-template - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 项目教程 #### 项目插件工具 1. 安装并使用mockjs npm install mockjs --save-dev // 其为开发环境依赖,并非生产依赖 1.在src文件夹下创建 mock 文件夹,创建index.js,创建接口模拟数据 2.在main.js中引入mock/index.js 3.在页面中进行数据请求 2. 安装并使用element-ui 按需引入 npm install element-ui --S //其为生产环境依赖 npm install element-theme-chalk --S 1.在src文件夹下创建 element 文件夹,创建index.js,引入element-theme-chalk,并按需引入element组件注册使用 2.在main.js里面引入element/index.js 3.在页面中使用已引入的组件 全部引入 1.在main.js中引入,并让Vue使用该插件 ```javascript import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(ElementUI); ``` 2.在页面中使用组件 3. 安装并使用axios npm install axios --S //其为生产环境依赖 1.在src文件夹下创建 axios 文件夹,创建index.js,封装axios 2.在main.js中引入axios/index.js,并挂载到Vue的原型上 3.在页面里应用 #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)