vben
2020-11-26 e04aaa06459c6613e59aa6ae5906b998b0685bdb
提交 | 用户 | age
351f60 1 <p align="center">
2   <a href="https://github.com/anncwb/vue-vben-admin" target="_blank">
afbcf0 3     <img alt="VbenAdmin Logo" width="200" src="./.github/res/imgs/logo.png">
351f60 4   </a>
5 </p>
afbcf0 6 <h2 align="center">VUE VBEN ADMIN2.0</h2>
351f60 7
743789 8 **中文** | [English](./README.en-US.md)
351f60 9
28392c 10 [更新日志](CHANGELOG.zh_CN.md)
351f60 11
afbcf0 12 - [介绍](#介绍)
V 13 - [gitHub 地址](#github-地址)
8f4d51 14   - [精简版地址](#精简版地址)
afbcf0 15 - [预览地址](#预览地址)
V 16 - [文档](#文档)
17 - [预安装](#预安装)
18   - [环境要求](#环境要求)
19   - [UI 框架](#ui-框架)
20   - [图标](#图标)
21   - [插件](#插件)
351f60 22   - [建议开发环境](#建议开发环境)
23 - [安装](#安装)
afbcf0 24 - [使用](#使用)
V 25   - [开发环境](#开发环境)
351f60 26   - [打包](#打包)
27   - [格式化](#格式化)
28   - [其他](#其他)
29 - [Git 提交规范](#git-提交规范)
30 - [代码贡献](#代码贡献)
afbcf0 31 - [已完成功能](#已完成功能)
V 32 - [正在开发的功能](#正在开发的功能)
70fba7 33 - [浏览器支持](#浏览器支持)
173d40 34 - [插件](#插件-1)
351f60 35 - [加入我们](#加入我们)
36
afbcf0 37 ## 介绍
351f60 38
7c4dd2 39 项目基于`ant-design-vue`,`typescript`,`vue3.0`,`vite`,`tsx`实现的 vue3 风格的后台管理系统,
afbcf0 40
V 41 ## gitHub 地址
42
43 [vue-vben-admin2.0](https://github.com/anncwb/vue-vben-admin) - `main` 分支
44
8f4d51 45 ### 精简版地址
V 46
47 [vue-vben-admin-thin-next](https://github.com/anncwb/vben-admin-thin-next)
48
afbcf0 49 ## 预览地址
V 50
8f4d51 51 - [2.0 在线预览](https://vvbin.cn/next/)
V 52
53 - [2.0 精简版 在线预览](https://vvbin.cn/thin/next/)
afbcf0 54
03b602 55 测试账号: vben/123456
N 56
afbcf0 57 <p align="center">
V 58     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview1.png">
59     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview2.png">
60     <img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview3.png">
61 </p>
62
63 ## 文档
64
2fbc45 65 [文档地址,持续更新中。。,](https://vvbin.cn/doc-next/)
afbcf0 66
V 67 ## 预安装
68
69 ### 环境要求
70
71 - `Node.js`: - 版本最好大于 `12.0.0`
73c8e0 72 - `yarn` : - 包管理工具.
afbcf0 73
V 74 ### UI 框架
75
21d0ed 76 - [Tailwind CSS](https://tailwindcss.com/) - 2.0.0-beta.5 已删除
afbcf0 77 - [Ant Design Vue 2.0](https://2x.antdv.com/docs/vue/introduce-cn/)
V 78
79 ### 图标
80
81 - [Ant Design Vue Icon Component](https://2x.antdv.com/components/icon-cn/) - 按需引入所需图标.
82 - [Iconify](https://iconify.design) - 使用任何图标集中的图标 [Icônes](https://icones.netlify.app/)
83 - [PurgeIcons](https://github.com/antfu/purge-icons) - 仅打包所使用到的图标.
84
85 ### 插件
86
87 - [Vue Router Next](https://github.com/vuejs/vue-router-next)
88 - [Vuex Next](https://github.com/vuejs/vuex)
89 - [vuex-module-decorators](https://github.com/championswimmer/vuex-module-decorators) - vuex 模块化
90 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 基于 vite 的 mock 插件.
91 - [vue-i18n](https://github.com/intlify/vue-i18n-next) - 国际化
92 - [lodash-es](https://github.com/lodash/lodash) - JavaScript 实用程序库
93 - [axios](https://github.com/axios/axios) - Http 数据交互
94 - [TypeScript](https://www.typescriptlang.org/)
351f60 95
96 ### 建议开发环境
97
afbcf0 98 - `Git`: - 版本管理工具
V 99 - `Visual Studio Code` - (VSCode): 最新版本
100   - [VS Code Extensions](./.vscode/extensions.json)
101     - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify)
102     - [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) - Tailwind Css 样式联想
103     - [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - vue 开发必备
104     - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - 脚本代码检查
105     - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - 代码格式化
106     - [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - css 格式化
351f60 107
108 ## 安装
109
110 ```js
afbcf0 111 //  使git对文件名大小写敏感
V 112 git config core.ignorecase false
351f60 113
114 // 拉取项目代码
115
afbcf0 116 git clone https://github.com/anncwb/vue-vben-admin.git vue-vben-admin-2.0
351f60 117
afbcf0 118 cd vue-vben-admin-2.0
351f60 119
e8aede 120 // 如果使用别的包管理工具,可以自行安装
afbcf0 121 // 如果未安装yarn,请运行:npm install -g yarn
351f60 122 yarn install
123
124 ```
125
afbcf0 126 ## 使用
351f60 127
afbcf0 128 ### 开发环境
351f60 129
130 ```bash
131 yarn serve
132 ```
133
134 ### 打包
135
136 ```bash
137
afbcf0 138 yarn build # 打包
351f60 139
afbcf0 140 yarn build:no-cache # 打包,执行之前会先删除缓存
351f60 141
66b561 142 yarn report # 生成构建包报表预览
351f60 143 ```
144
145 ### 格式化
146
147 ```bash
148 yarn lint:stylelint # 样式格式化
149
150 yarn lint:prettier # js/ts代码格式化
151 ```
152
153 ### 其他
154
155 ```bash
156 yarn reinstall # 删除依赖重新装,兼容window
157
158 yarn preview # 本地进行打包预览
159
160 yarn log # 生成CHANGELOG
afbcf0 161
V 162 yarn clean:cache # 删除缓存
163
164 yarn clean:lib # 删除node_modules,兼容window系统
351f60 165 ```
166
167 ## Git 提交规范
168
169 - 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
170
171   - `feat` 增加新功能
172   - `fix` 修复问题/BUG
173   - `style` 代码风格相关无影响运行结果的
174   - `perf` 优化/性能提升
175   - `refactor` 重构
176   - `revert` 撤销修改
177   - `test` 测试相关
178   - `docs` 文档/注释
179   - `chore` 依赖更新/脚手架配置修改等
180   - `workflow` 工作流改进
181   - `ci` 持续集成
afbcf0 182   - `types` 类型定义文件更改
e8aede 183   - `wip` 开发中
351f60 184
185 ## 代码贡献
186
187 1. Fork 代码!
188 2. 创建自己的分支: `git checkout -b feat/xxxx`
189 3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
190 4. 推送您的分支: `git push origin feat/xxxx`
191 5. 提交`pull request`
192
afbcf0 193 ## 已完成功能
351f60 194
195 - [x] 项目搭建(基于 vite)
196 - [x] 登录和注销
197 - [x] 菜单(可以搜索及拖拽以及菜单布局)
198 - [x] 多标签页/面包屑
199 - [x] 基于角色的权限管理
200 - [x] 基于后台的权限管理
201 - [x] 分离的路由和菜单设置
202 - [x] 可折叠侧边栏
203 - [x] 可拖拽侧边栏
204 - [x] 多标签页模式/全局控制
205 - [x] 菜单搜索
206 - [x] 页面加载 loading
207 - [x] 滚动条组件
208 - [x] 弹窗扩展(可拖拽,全屏,自适应高度)
209 - [x] 模拟数据
210 - [x] hook 封装
211 - [x] 表单组件
212 - [x] 右键菜单
213 - [x] 水印插件
214 - [x] 动画组件
215 - [x] 二维码插件
216 - [x] 国际化插件
217 - [x] 详情组件
e9536b 218 - [x] 验证组件
351f60 219 - [x] 树组件
faf3f4 220 - [x] 图片预览组件
e4c952 221 - [x] 表格组件
21d0ed 222 - [x] 图表库
52ee35 223 - [x] 数字动画
4811cc 224 - [x] 首屏加载等待动画
bb3b8f 225 - [x] 抽取生产环境配置文件
8a1bfd 226 - [x] 打包 Gzip
710158 227 - [x] 数据导入导出
V 228 - [x] 系统性能优化
229 - [x] 全局错误处理
a0c319 230 - [x] 富文本组件
661db0 231 - [x] 上传组件
afbcf0 232
V 233 ## 正在开发的功能
234
0b6110 235 - [ ] 新分支全局国家化
V 236 - [ ] 示例 page 页面
4811cc 237 - [ ] 主题配置
V 238 - [ ] 黑暗主题
bb3b8f 239 - [ ] 打包 CDN
faf3f4 240
241 更多组件/功能/建议/bug/欢迎提交 pr 或者 issue
351f60 242
70fba7 243 ## 浏览器支持
V 244
245 本地开发推荐使用`Chrome`浏览器,在火狐浏览器进行开发相对卡顿。
246
247 支持现代浏览器, IE 暂不支持,后续考虑支持 ie11
248
8a1bfd 249 | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
V 250 | :-: | :-: | :-: | :-: | :-: |
251 | not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
252
253 更多浏览器可以查看 [Can I Use Es Module](https://caniuse.com/?search=ES%20Module)
70fba7 254
173d40 255 ## 插件
V 256
257 如果这些插件对你有帮助,可以给一个 star 支持下
258
259 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock)
260 - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html)
261
351f60 262 ## 加入我们
263
21d0ed 264 `Vue-Vben-Aadmin` 是完全开源免费的项目,在帮助开发者更方便地进行中大型管理系统开发,同时也提供 QQ 交流群(项目刚起步,人数较少,有兴趣的可以加群一起讨论),使用问题欢迎在群内提问。
351f60 265
266 - QQ 群 `569291866`
267
afbcf0 268  <img alt="VbenAdmin Logo" width="100" src="./.github/res/imgs/qq.jpeg">