feature:first commit

This commit is contained in:
charlesxie
2022-01-28 16:09:30 +08:00
commit e5da67afbe
352 changed files with 45088 additions and 0 deletions

38
web/docs/install.md Normal file
View File

@@ -0,0 +1,38 @@
# cw-vue-1.0
> cw-vue-1.0
## Build Setup
>建议使用淘宝镜像源 https://registry.npmjs.org
``` bash
npm config set registry http://registry.npm.taobao.org
```
>查看是否切换成功
``` bash
npm get registry
```
>或者使用cnpm代替npm来进行依赖安装
``` bash
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
``` bash
# 安装依赖
npm install
# 服务启动
npm run dev
# 生产环境build
npm run build
# 生产环境build以及文件分析
npm run build --report
```
如果想知道相关的[底层工作原理](http://vuejs-templates.github.io/webpack/) 和 [vue-loader 相关文档](http://vuejs.github.io/vue-loader).

41
web/docs/use.md Normal file
View File

@@ -0,0 +1,41 @@
# 使用指南
> cw-vue-1.0
### 主要目录结构 src下
* src/api (后台接口)
* apiUrl == 存放接口地址
* axiosconfig == 接口配置
* index.js == 统一引入 <br/><br/>
* assets (静态文件)
* base == 框架基础样式,色值,慎动!!!
* custom == 自定义开发静态资源
* index.js == 统一引入 <br/><br/>
* component (自定义组件)
* base == 框架基础组件 头部导航body
* index.js == 统一挂载组件 <br/><br/>
* controller js文件公共方法
* func == 公共方法
* views == html和js分离开发存放js文件 <br/><br/>
* directive (自定义指令)
* modal == 提示框指令和确认框指令
* index.js == 统一挂载指令 <br/><br/>
* filter (过滤器)
* validator == 表单校验插件
* index.js == 统一引入 <br/><br/>
* router (路由存放) <br/><br/>
* views (页面存放) <br/><br/>
* Vuex vuex <br/><br/>
* App.vue (入口 vue 文件) <br/><br/>
* main.js (入口文件与 app.vue 相关联)