2020-09-28 21:00:36 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://github.com/anncwb/vue-vben-admin" target="_blank">
|
2020-10-10 00:08:54 +08:00
|
|
|
|
<img alt="VbenAdmin Logo" width="200" src="./.github/res/imgs/logo.png">
|
2020-09-28 21:00:36 +08:00
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2020-10-10 00:08:54 +08:00
|
|
|
|
<h2 align="center">VUE VBEN ADMIN2.0</h2>
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
**中文** | [English](./README-ES.md)
|
|
|
|
|
|
|
|
|
|
[更新日志](CHANGELOG.md)
|
|
|
|
|
|
|
|
|
|
- [介绍](#介绍)
|
|
|
|
|
- [gitHub 地址](#github-地址)
|
|
|
|
|
- [预览地址](#预览地址)
|
|
|
|
|
- [文档](#文档)
|
|
|
|
|
- [预安装](#预安装)
|
|
|
|
|
- [环境要求](#环境要求)
|
|
|
|
|
- [UI 框架](#ui-框架)
|
|
|
|
|
- [图标](#图标)
|
|
|
|
|
- [插件](#插件)
|
|
|
|
|
- [建议开发环境](#建议开发环境)
|
|
|
|
|
- [安装](#安装)
|
|
|
|
|
- [使用](#使用)
|
|
|
|
|
- [开发环境](#开发环境)
|
|
|
|
|
- [打包](#打包)
|
|
|
|
|
- [格式化](#格式化)
|
|
|
|
|
- [其他](#其他)
|
|
|
|
|
- [Git 提交规范](#git-提交规范)
|
|
|
|
|
- [代码贡献](#代码贡献)
|
|
|
|
|
- [已完成功能](#已完成功能)
|
|
|
|
|
- [正在开发的功能](#正在开发的功能)
|
|
|
|
|
- [加入我们](#加入我们)
|
|
|
|
|
|
|
|
|
|
## 介绍
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-08 01:35:05 +08:00
|
|
|
|
该分支为 2.0 新分支,使用 vue3 进行开发。
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-08 01:35:05 +08:00
|
|
|
|
1.0 分支请切换到`master`分支。1.0 采用`vue2.6`+`vue-composition-api`+`vue-cli`开发
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
项目基于`ant-design-vue`,`typescript`,`vue3.0`,`vite`,`tailwindcss`,`tsx`实现的 vue3 风格的后台管理系统,
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
## gitHub 地址
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
[vue-vben-admin2.0](https://github.com/anncwb/vue-vben-admin) - `main` 分支
|
|
|
|
|
|
|
|
|
|
## 预览地址
|
|
|
|
|
|
|
|
|
|
[2.0 在线预览](https://vvbin.cn/next/)
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
<p align="center">
|
2020-10-10 00:08:54 +08:00
|
|
|
|
<img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview1.png">
|
|
|
|
|
<img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview2.png">
|
|
|
|
|
<img alt="VbenAdmin Logo" width="100%" src="./.github/res/imgs/preview3.png">
|
2020-09-28 21:00:36 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
## 文档
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
2.0 文档还没开始写。后续补上。
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
## 预安装
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### 环境要求
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- `Node.js`: - 版本最好大于 `12.0.0`
|
|
|
|
|
- `yarn` > `npm` > `cnpm`: - 包管理工具.
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### UI 框架
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- [Tailwind CSS](https://tailwindcss.com/)
|
|
|
|
|
- [Ant Design Vue 2.0](https://2x.antdv.com/docs/vue/introduce-cn/)
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### 图标
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- [Ant Design Vue Icon Component](https://2x.antdv.com/components/icon-cn/) - 按需引入所需图标.
|
|
|
|
|
- [Iconify](https://iconify.design) - 使用任何图标集中的图标 [Icônes](https://icones.netlify.app/)
|
|
|
|
|
- [PurgeIcons](https://github.com/antfu/purge-icons) - 仅打包所使用到的图标.
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### 插件
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- [Vue Router Next](https://github.com/vuejs/vue-router-next)
|
|
|
|
|
- [Vuex Next](https://github.com/vuejs/vuex)
|
|
|
|
|
- [vuex-module-decorators](https://github.com/championswimmer/vuex-module-decorators) - vuex 模块化
|
|
|
|
|
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 基于 vite 的 mock 插件.
|
|
|
|
|
- [vue-i18n](https://github.com/intlify/vue-i18n-next) - 国际化
|
|
|
|
|
- [lodash-es](https://github.com/lodash/lodash) - JavaScript 实用程序库
|
|
|
|
|
- [moment](https://github.com/moment/moment) - 时间操作库
|
|
|
|
|
- [axios](https://github.com/axios/axios) - Http 数据交互
|
|
|
|
|
- [TypeScript](https://www.typescriptlang.org/)
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### 建议开发环境
|
|
|
|
|
|
|
|
|
|
- `Git`: - 版本管理工具
|
|
|
|
|
- `Visual Studio Code` - (VSCode): 最新版本
|
|
|
|
|
- [VS Code Extensions](./.vscode/extensions.json)
|
|
|
|
|
- [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify)
|
|
|
|
|
- [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) - Tailwind Css 样式联想
|
|
|
|
|
- [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - vue 开发必备
|
|
|
|
|
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - 脚本代码检查
|
|
|
|
|
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - 代码格式化
|
|
|
|
|
- [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - css 格式化
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
```js
|
2020-10-10 00:08:54 +08:00
|
|
|
|
// 使git对文件名大小写敏感
|
|
|
|
|
git config core.ignorecase false
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
// 拉取项目代码
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
git clone https://github.com/anncwb/vue-vben-admin.git vue-vben-admin-2.0
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
cd vue-vben-admin-2.0
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 21:28:43 +08:00
|
|
|
|
// 如果使用别的包管理工具,可以自行安装
|
2020-10-10 00:08:54 +08:00
|
|
|
|
// 如果未安装yarn,请运行:npm install -g yarn
|
2020-09-28 21:00:36 +08:00
|
|
|
|
yarn install
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
## 使用
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
### 开发环境
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
yarn serve
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 打包
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
yarn build # 打包
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
yarn build:no-cache # 打包,执行之前会先删除缓存
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
yarn report # 生成构建包表表预览
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 格式化
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
yarn lint:stylelint # 样式格式化
|
|
|
|
|
|
|
|
|
|
yarn lint:prettier # js/ts代码格式化
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 其他
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
yarn reinstall # 删除依赖重新装,兼容window
|
|
|
|
|
|
|
|
|
|
yarn preview # 本地进行打包预览
|
|
|
|
|
|
|
|
|
|
yarn log # 生成CHANGELOG
|
2020-10-10 00:08:54 +08:00
|
|
|
|
|
|
|
|
|
yarn clean:cache # 删除缓存
|
|
|
|
|
|
|
|
|
|
yarn clean:lib # 删除node_modules,兼容window系统
|
2020-09-28 21:00:36 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Git 提交规范
|
|
|
|
|
|
|
|
|
|
- 参考 [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))
|
|
|
|
|
|
|
|
|
|
- `feat` 增加新功能
|
|
|
|
|
- `fix` 修复问题/BUG
|
|
|
|
|
- `style` 代码风格相关无影响运行结果的
|
|
|
|
|
- `perf` 优化/性能提升
|
|
|
|
|
- `refactor` 重构
|
|
|
|
|
- `revert` 撤销修改
|
|
|
|
|
- `test` 测试相关
|
|
|
|
|
- `docs` 文档/注释
|
|
|
|
|
- `chore` 依赖更新/脚手架配置修改等
|
|
|
|
|
- `workflow` 工作流改进
|
|
|
|
|
- `ci` 持续集成
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- `types` 类型定义文件更改
|
2020-10-10 21:28:43 +08:00
|
|
|
|
- `wip` 开发中
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
## 代码贡献
|
|
|
|
|
|
|
|
|
|
1. Fork 代码!
|
|
|
|
|
2. 创建自己的分支: `git checkout -b feat/xxxx`
|
|
|
|
|
3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
|
|
|
|
|
4. 推送您的分支: `git push origin feat/xxxx`
|
|
|
|
|
5. 提交`pull request`
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
## 已完成功能
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
- [x] 项目搭建(基于 vite)
|
|
|
|
|
- [x] 登录和注销
|
|
|
|
|
- [x] 菜单(可以搜索及拖拽以及菜单布局)
|
|
|
|
|
- [x] 多标签页/面包屑
|
|
|
|
|
- [x] 基于角色的权限管理
|
|
|
|
|
- [x] 基于后台的权限管理
|
|
|
|
|
- [x] 分离的路由和菜单设置
|
|
|
|
|
- [x] 可折叠侧边栏
|
|
|
|
|
- [x] 可拖拽侧边栏
|
|
|
|
|
- [x] 多标签页模式/全局控制
|
|
|
|
|
- [x] 菜单搜索
|
|
|
|
|
- [x] 页面加载 loading
|
|
|
|
|
- [x] 滚动条组件
|
|
|
|
|
- [x] 弹窗扩展(可拖拽,全屏,自适应高度)
|
|
|
|
|
- [x] 全屏
|
|
|
|
|
- [x] 模拟数据
|
|
|
|
|
- [x] 剪贴板封装
|
|
|
|
|
- [x] hook 封装
|
|
|
|
|
- [x] 项目可配置
|
|
|
|
|
- [x] 表单组件
|
|
|
|
|
- [x] 右键菜单
|
|
|
|
|
- [x] 水印插件
|
|
|
|
|
- [x] 动画组件
|
|
|
|
|
- [x] 二维码插件
|
|
|
|
|
- [x] 国际化插件
|
|
|
|
|
- [x] 详情组件
|
|
|
|
|
- [x] 验证码/验证组件
|
|
|
|
|
- [x] 树组件
|
|
|
|
|
- [x] 兼容最新`vuex`,`vue-router`
|
2020-10-08 01:35:05 +08:00
|
|
|
|
- [x] 图片预览组件
|
2020-10-08 14:52:15 +08:00
|
|
|
|
- [x] 表格组件
|
|
|
|
|
- [x] 可编辑表格
|
2020-10-10 00:08:54 +08:00
|
|
|
|
|
|
|
|
|
## 正在开发的功能
|
|
|
|
|
|
|
|
|
|
- [ ] 全局错误处理
|
2020-09-28 21:00:36 +08:00
|
|
|
|
- [ ] 图表库
|
|
|
|
|
- [ ] 数字动画
|
|
|
|
|
- [ ] 主题配置
|
|
|
|
|
- [ ] 富文本组件
|
|
|
|
|
- [ ] 首屏加载等待动画
|
|
|
|
|
- [ ] 上传组件
|
|
|
|
|
- [ ] 数据导入导出
|
|
|
|
|
- [ ] 黑暗主题
|
2020-10-10 00:08:54 +08:00
|
|
|
|
- [ ] 打包 Gzip
|
|
|
|
|
- [ ] 抽取生产环境配置文件
|
2020-10-10 21:28:43 +08:00
|
|
|
|
- [ ] 系统性能优化
|
2020-10-08 01:35:05 +08:00
|
|
|
|
|
|
|
|
|
更多组件/功能/建议/bug/欢迎提交 pr 或者 issue
|
2020-09-28 21:00:36 +08:00
|
|
|
|
|
|
|
|
|
## 加入我们
|
|
|
|
|
|
|
|
|
|
`VUE-VBEN-ADMIN` 是完全开源免费的项目,旨在帮助开发者更方便地进行中大型管理系统开发,同时也提供 QQ 交流群(项目刚起步,人数较少,有兴趣的可以加群一起讨论),使用问题欢迎在群内提问。
|
|
|
|
|
|
|
|
|
|
- QQ 群 `569291866`
|
|
|
|
|
|
2020-10-10 00:08:54 +08:00
|
|
|
|
<img alt="VbenAdmin Logo" width="100" src="./.github/res/imgs/qq.jpeg">
|