# vue3-admin-ts

**中文** | [English](./README.md)



> vue3 admin plus 提供企业级开发demo


本架构使用的技术为:vue3(setup-script)+vite2+element-plus 的新一代的前端框架,It's fast!

使用 eslint+prettier+gitHooks 格式和校验代码,提高代码规范性和开发效率


## 线上体验

[github address](https://github.com/jzfai/vue3-admin-ts.git)

[Access address](https://github.jzfai.top/vue3-admin-ts)

github 地址:  https://github.com/jzfai/vue3-admin-ts.git

国内体验地址:https://github.jzfai.top/vue3-admin-ts


## 例子

 ---- 我们先看看加载速度和构建后的包大小:

![template-speed-analysis](https://github.jzfai.top/file/images/template-speed-analysis.png)

![template-demo](https://github.jzfai.top/file/images/plus-demo.png)

## 相关项目

框架有js,ts和plus版本

- js版本:[vue3-element-admin](https://github.com/jzfai/vue3-admin-template.git)
- ts版本:[vue3-element-ts](https://github.com/jzfai/vue3-admin-ts.git)
- js实例参考plus版本:[vue3-element-plus](https://github.com/jzfai/vue3-admin-plus.git)
- react版本: [react-admin-template](https://github.com/jzfai/react-admin-template.git)
- java微服务后台数据:[micro-service-plus](https://github.com/jzfai/micro-service-plus)

> 开发和使用感受:两个字 真香!!!!!


## 文档

- [真香定律!带你用vue3+vite2撸后台(系列文章入口)](https://juejin.cn/post/7036302298435289095)

#### vue3和vue2在性能上的对比

- 打包大小减少41%

- 初次渲染快55%, 更新渲染快133%

- 内存减少54%

- **使用Proxy代替defineProperty实现数据响应式**

- **重写虚拟DOM的实现和Tree-Shaking**

[vite2和webpack打包速度上的对比](https://github.com/jzfai/vue3-admin-ts/issues/2)

## 构建步骤

```bash
# 克隆项目
git clone https://github.com/jzfai/vue3-admin-ts.git

# 进入项目目录
cd  vue3-admin-ts

# 安装依赖(建议用pnpm)
# 你可以运行npm i -g pnpm@6.32.3 去安装pnpm
pnpm

# 启动服务
pnpm run dev
```

浏览器访问 http://localhost:5001


## 发布

```bash
# 构建测试环境
pnpm run build-test

# 构建生产环境
pnpm run build
```

## 其它

```bash
# 预览生产环境
pnpm run preview

# 代码格式检查并自动修复
pnpm run lint
```

## 额外

架构开发不易,如果感觉好,请给我点个**start**,架构还在不断完善中,欢迎加入我开发,一起成为Contributors !!!!

## 浏览器支持

注意:vue3不在支持IE浏览器



## 讨论和交流(含vue3+ts视频教程)
[WeChat group](https://github.jzfai.top/file/images/wx-groud.png)