Skip to content

Commit f9c77e7

Browse files
committed
README.md
1 parent 6b0bc0d commit f9c77e7

File tree

1 file changed

+105
-9
lines changed

1 file changed

+105
-9
lines changed

README.md

Lines changed: 105 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,112 @@
1-
# Vue 3 + TypeScript + Vite
1+
[在线 Demo](https://lch-coder.github.io/buildElement/login)
22

3-
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3+
## 特性
44

5-
## Recommended IDE Setup
5+
- ⚡️ Vue3、vite4、pnpm 快速搭建项目
6+
- 🗂 动态路由
7+
- 📦 组件自动化加载
8+
- 🍍 使用 Pinia 的状态管理
9+
- 📑 布局系统
10+
- 🎨 UnoCSS - 高性能且极具灵活性的即时原子化 CSS 引擎
11+
- 😃 支持多种图标
12+
- 🔥 使用 新的<script setup>语法
13+
- 🤙🏻 多种有趣的功能
14+
- 📥 API 自动加载 - 直接使用 Composition API 无需引入
15+
- 🦾 TypeScript
616

7-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
17+
## 预配置
818

9-
## Type Support For `.vue` Imports in TS
19+
### UI 框架
1020

11-
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
21+
- Element Plus - Vue3 UI 组件库
22+
- UnoCSS - 高性能且极具灵活性的即时原子化 CSS 引擎
1223

13-
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14-
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
24+
### Icons
1525

16-
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
26+
- Iconify - 使用任意的图标集
27+
- UnoCSS 的纯 CSS 图标方案
28+
29+
### 插件
30+
31+
- Vue Router
32+
- Pinia - 直接的, 类型安全的, 使用 Composition api 的轻便灵活的 Vue 状态管理
33+
- unplugin-vue-components - 自动加载组件
34+
- unplugin-auto-import - 直接使用 Composition API 等,无需导入
35+
- VueUse - 实用的 Composition API 工具合集
36+
37+
### 编码风格
38+
39+
- 使用 Composition API 的 <script setup>SFC 语法
40+
- ESLint、Prettier
41+
42+
### 开发工具
43+
44+
- TypeScript
45+
- pnpm - 快, 节省磁盘空间的包管理器
46+
- VS Code 扩展
47+
- Vite - 自动启动 Vite 服务器
48+
- Volar - Vue 3 <script setup> IDE 支持
49+
- ESLint
50+
- Prettier
51+
- UnoCSS
52+
53+
## 使用
54+
55+
### 安装依赖
56+
57+
pnpm install
58+
59+
### 开发
60+
61+
pnpm dev
62+
63+
### 构建
64+
65+
pnpm build
66+
67+
## 系统功能
68+
69+
### 多级菜单
70+
71+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683187385805-e6137b8d-a3b4-4018-bc58-7baf53de5816.png#averageHue=%23e3ba7b&clientId=u0d5a8c77-a95d-4&from=paste&height=967&id=u51cb39fd&originHeight=967&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=43660&status=done&style=none&taskId=u2ac5ab23-d2b6-475f-9b53-f7f736028da&title=&width=1920)
72+
73+
### 拖拽布局
74+
75+
> 使用 vue-grid-layout、echarts 搭建数据看板
76+
77+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683187422968-0484a5b9-4e63-41bc-b345-c976f2cbb749.png#averageHue=%23fdfaf9&clientId=u0d5a8c77-a95d-4&from=paste&height=969&id=u1a3829ad&originHeight=969&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=107199&status=done&style=none&taskId=u95e8f680-a5aa-4f96-807a-8a41abcc42c&title=&width=1920)
78+
79+
### 分割面板
80+
81+
> 使用 splitpanes 的例子
82+
83+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683187563012-f11bcf0e-0327-4a7a-b5bc-8864cffcc61b.png#averageHue=%23f4f4f4&clientId=u0d5a8c77-a95d-4&from=paste&height=967&id=u1d1607b7&originHeight=967&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=42069&status=done&style=none&taskId=ue412aa31-40c4-491c-be20-bb90cca3a8f&title=&width=1920)
84+
85+
### 可插入 dom 节点的文本框
86+
87+
> 基于 codemirror6 开发的文本框,支持插入 dom 节点
88+
89+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683187714788-7c553f7c-32b8-4b9c-8be2-91c8cef90845.png#averageHue=%23fefefe&clientId=u0d5a8c77-a95d-4&from=paste&height=967&id=u0c8e1769&originHeight=967&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=67950&status=done&style=none&taskId=u5cf222fe-250b-49fc-bd94-4e9e97d1c84&title=&width=1920)
90+
91+
### 页面缓存
92+
93+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683191186560-432c3bc1-6650-4ee7-8e13-b6688d764d8e.png#averageHue=%23fefefe&clientId=u0d5a8c77-a95d-4&from=paste&height=969&id=u4fb30705&originHeight=969&originWidth=1917&originalType=binary&ratio=1&rotation=0&showTitle=false&size=54875&status=done&style=none&taskId=u1e1e1aba-f0b6-4c51-b82b-fd17fc6fad4&title=&width=1917)
94+
95+
### 动态路由
96+
97+
> 根据登录用户的菜单,生成路由数据,动态添加。
98+
99+
### 404 页面
100+
101+
> 页面不存在,跳到 404 页面
102+
103+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683191302102-601785c6-1f80-466e-b760-50bd3ab9ce1e.png#averageHue=%23fefefe&clientId=u0d5a8c77-a95d-4&from=paste&height=969&id=uca8a3991&originHeight=969&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=47041&status=done&style=none&taskId=u5caa0338-8811-4ef0-8be5-4ddcbb4e69b&title=&width=1920)
104+
表格封装
105+
106+
> 二次封装 el-table,支持插槽、动态多级表头导出等。
107+
108+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683191370596-8bc5a5fe-5803-41fe-9851-fc5ea524f8b1.png#averageHue=%23fefefe&clientId=u0d5a8c77-a95d-4&from=paste&height=969&id=u8f8bb92c&originHeight=969&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=73291&status=done&style=none&taskId=ub59ea08c-fbb1-4e73-af08-762e70b8297&title=&width=1920)
109+
110+
### 图标集
111+
112+
![image.png](https://cdn.nlark.com/yuque/0/2023/png/28881333/1683191442583-b13de906-b5ae-434b-a43e-2f7d626f7486.png#averageHue=%23fefefd&clientId=u0d5a8c77-a95d-4&from=paste&height=969&id=ue9954558&originHeight=969&originWidth=1920&originalType=binary&ratio=1&rotation=0&showTitle=false&size=108477&status=done&style=none&taskId=u6ace4f2b-5f9b-4f37-a36f-36a8a5d759b&title=&width=1920)

0 commit comments

Comments
 (0)