vue3-template/README.md

18 lines
807 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 通用模板
使用 vue3、pinia、axios、echarts、elementPlus
- 其中大量使用 vue3 的 setup 函数书写、同时支持 jsx 写法;但保留灵活性并不引入 typescript
- 使用 pinia 代替了 vue2 中的 vuex 来做数据管理;
- svg 图片使用的是 vite-plugin-svg-icons 插件进行管理,将需要的 svg 文件放入`src/icons`中即可
- 依然使用 axios 作为请求数据,数据请求都集中在`src/api`下进行管理,并已经进行了封装,在此基础继续封装即可
- 使用 echarts 进行图表的显示
- UI 主要遵从 elementPlus组件语言已设置为中文
- css 预渲染为 less
## 启动前须知
- 安装 ESlint 插件
- 安装代码风格插件 Prettier 安装结束后配置好就行
- 因为使用 vue3 所以使用 volar 插件