|
4 | 4 |
|
5 | 5 | [预览地址](https://pro.loacg.com/) **附带一些后台基础用到的列表展示例子**
|
6 | 6 |
|
7 |
| - |
8 |
| - |
9 |
| - |
10 |
| - |
11 |
| - |
12 |
| - |
13 |
| - |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
14 | 20 |
|
15 | 21 | ## 环境和依赖
|
16 | 22 | - node
|
17 | 23 | - yarn
|
18 | 24 | - webpack
|
19 | 25 | - eslint
|
20 |
| -- @vue/cli 3.0.3 |
21 |
| -- [vue-cropper (头像裁剪组件)](https://github.com/xyxiao001/vue-cropper) |
22 |
| -- [@antv/g2] (https://antv.alipay.com/zh-cn/index.html) |
23 |
| -- [viser-vue (封装de antv/g2)](https://viserjs.github.io/docs.html#/viser/guide/installation) |
| 26 | +- @vue/cli 3.0.1 |
| 27 | +- [vue-cropper](https://github.com/xyxiao001/vue-cropper) - 头像裁剪组件 |
| 28 | +- [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - Alipay AntV 数据可视化图表 |
| 29 | +- [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - antv/g2 封装实现 |
| 30 | + |
| 31 | + |
| 32 | +## 项目下载和运行 |
24 | 33 |
|
| 34 | +- 拉取项目代码 |
| 35 | +```bash |
| 36 | +git clone https://github.com/sendya/ant-design-pro-vue.git |
| 37 | +cd ant-design-pro-vue |
| 38 | +``` |
25 | 39 |
|
26 |
| -## Project setup |
| 40 | +- 安装依赖 |
27 | 41 | ```
|
28 | 42 | yarn install
|
29 | 43 | ```
|
30 | 44 |
|
31 |
| -### Compiles and hot-reloads for development |
| 45 | +- 开发模式运行 |
32 | 46 | ```
|
33 | 47 | yarn run serve
|
34 | 48 | ```
|
35 | 49 |
|
36 |
| -### Compiles and minifies for production |
| 50 | +- 编译项目 |
37 | 51 | ```
|
38 | 52 | yarn run build
|
39 | 53 | ```
|
40 | 54 |
|
41 |
| -### Lints and fixes files |
| 55 | +- Lints and fixes files |
42 | 56 | ```
|
43 | 57 | yarn run lint
|
| 58 | +``` |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +## 其他说明 |
| 63 | + |
| 64 | +- 项目使用的 [vue-cli3](https://cli.vuejs.org/guide/), 请更新您的 cli |
| 65 | + |
| 66 | +- 修改 Ant Design 配色 |
| 67 | +在文件 vue.config.js 中,其他 less 变量覆盖参考 ant design 官方说明 |
| 68 | +```ecmascript 6 |
| 69 | + css: { |
| 70 | + loaderOptions: { |
| 71 | + less: { |
| 72 | + modifyVars: { |
| 73 | + /* less 变量覆盖,用于自定义 ant design 主题 */ |
| 74 | +
|
| 75 | + 'primary-color': '#F5222D', |
| 76 | + 'link-color': '#F5222D', |
| 77 | + 'border-radius-base': '4px', |
| 78 | + }, |
| 79 | + javascriptEnabled: true, |
| 80 | + } |
| 81 | + } |
| 82 | + } |
44 | 83 | ```
|
0 commit comments