Skip to content

Commit 4271ad2

Browse files
committed
markdown complete
1 parent 56e04fb commit 4271ad2

File tree

3 files changed

+104
-16
lines changed

3 files changed

+104
-16
lines changed

README.md

Lines changed: 104 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,112 @@
1-
# vue3
1+
<p align="center">
2+
<a href="https://github.com/vuejs/vue-next">
3+
<img src="https://img.shields.io/badge/vue-3.0-brightgreen.svg" alt="vue">
4+
</a>
5+
<a href="https://github.com/element-plus/element-plus">
6+
<img src="https://img.shields.io/badge/element--plus-1.x-brightgreen.svg" alt="element-plus">
7+
</a>
8+
<a href="https://github.com/microsoft/TypeScript">
9+
<img src="https://img.shields.io/badge/typescript-4.x-brightgreen.svg" alt="typescript">
10+
</a>
11+
</p>
12+
13+
[vue3](https://github.com/1240235512/vue3)主要目的在于学习 __`vue3`__ + __`ts`__,功能还未很完善,目前只有基础的 __`RBAC`__ 权限控制,后续会 __`持续迭代更新`__
14+
15+
后端是基于 __`java`____`springboot`__,由于后端还 __`未完善`__,存在问题有很多,所以目前 __`暂未开源`__。待功能完成后 __`会开源后端代码`__。如有需求也可翻到底部 __`添加微信/QQ`__ 索取后端代码。
16+
17+
### 简介
18+
19+
[vue3](https://github.com/1240235512/vue3) 是一个管理后台基础功能框架,基于 [vue3](https://github.com/vuejs/vue-next)[element-plus](https://github.com/element-plus/element-plus)[typescript](https://github.com/microsoft/TypeScript) 实现。内置了 i18n 国际化,动态路由,权限验证。
20+
21+
- [在线预览](https://1240235512.github.io/vue3/index.html)
22+
23+
**默认 master 分支默认使用 composition-api ,若需要 class 风格请使用[class-style](https://github.com/1240235512/vue3/tree/class-style)分支,但它不会和 master 保持同步更新**
24+
25+
### 项目结构
26+
27+
```bash
28+
vue3-src
29+
├─api 接口模块
30+
31+
├─assets 静态资源模块
32+
│ ├─icon svg图标
33+
│ ├─images 图片
34+
│ └─sass 样式
35+
36+
├─components 全局组件模块
37+
│ └─svg-icon svg图标组件
38+
39+
├─directive 全局自定义指令
40+
41+
├─element element-plus按需加载
42+
43+
├─mixins 代码复用 (vue2混入)
44+
│ ├─instance element的$message$confirm$loading可进行补充
45+
│ └─page 分页
46+
47+
├─router 动态路由
48+
49+
├─store vuex
50+
│ ├─modules
51+
│ │ ├─menu 菜单模块
52+
│ │ ├─setting 设置模块
53+
│ │ ├─tab 标签页模块
54+
│ │ └─user 用户登录信息模块
55+
│ └─index 动态加载模块
56+
57+
├─types typescript接口
58+
59+
├─utils 工具模块
60+
│ ├─constants 常量
61+
│ ├─index 工具
62+
│ ├─regular 正则
63+
│ ├─request axios二次封装
64+
│ └─storage 本地缓存工具
65+
66+
├─views 视图模块
67+
│ ├─components
68+
│ │ ├─iframe iframe组件用于加载其他页面
69+
│ │ ├─language 国际化设置组件
70+
│ │ └─page 分页组件
71+
│ ├─global
72+
│ │ ├─401 401页面
73+
│ │ ├─404 404页面
74+
│ │ └─login 登录页面
75+
│ ├─layout
76+
│ │ ├─components
77+
│ │ │ ├─edit-info 修改信息
78+
│ │ │ ├─headbar 顶部导航
79+
│ │ │ ├─sidebar 侧边栏
80+
│ │ │ └─tabsbar 标签页
81+
│ │ └─index 布局入口页面
82+
│ └─modules 页面模块
283

3-
## Project setup
484
```
85+
86+
### 开发
87+
88+
```bash
89+
# 克隆项目
90+
git clone https://github.com/1240235512/vue3.git
91+
92+
# 进入项目目录
93+
cd vue3
94+
95+
# 安装依赖
596
npm install
6-
```
797

8-
### Compiles and hot-reloads for development
9-
```
10-
npm run serve
11-
```
98+
# 启动服务
99+
npm run dev # 开发环境
100+
npm run prod # 正式环境
101+
npm run test # 测试环境
12102

13-
### Compiles and minifies for production
14-
```
15-
npm run build
103+
# 发布
104+
npm run build:dev # 开发环境
105+
npm run build:prod # 正式环境
106+
npm run build:test # 测试环境
16107
```
17108

18-
### Lints and fixes files
19-
```
20-
npm run lint
21-
```
109+
### 联系方式
22110

23-
### Customize configuration
24-
See [Configuration Reference](https://cli.vuejs.org/config/).
111+
<img src="https://1240235512.github.io/vue3/wechat.jpg" width="200px" title="微信" alt="WeChat:Gy1240235512" />
112+
<img src="https://1240235512.github.io/vue3/qicq.jpg" width="200px" title="QQ" alt="QQ:1240235512" />

contact/qicq.jpg

96 KB
Loading

contact/wechat.jpg

111 KB
Loading

0 commit comments

Comments
 (0)