中文 | English
这是一个基础的 vue3 admin 管理后台。它只包含了 Element-Plus UI & axios & svg-icon& permission control & lint,这些搭建后台必要的东西。
本架构使用的技术为:vue3(setup-script)+vite2+element-plus 的新一代的前端框架,It's fast!
使用 eslint+prettier+gitHooks 格式和校验代码,提高代码规范性和开发效率
Vite 需要 Node.js 版本 >= 12.0.0。
---请查看架构文档
github 地址: https://github.com/jzfai/micro-frontend-template.git
国内体验地址:http://8.135.1.141/micro-frontend-template
---- 我们先看看加载速度和构建后的包大小:
框架有js,ts,plus和electron版本
- js版本:vue3-element-admin
- ts版本:vue3-element-ts
- js实例参考plus版本:vue3-element-plus
- electron版本:vue3-element-electron
- react版本: react-admin-template
- java微服务后台数据:micro-service-plus
开发和使用感受:两个字 真香!!!!!
vue3和vue2在性能上的对比
-
打包大小减少41%
-
初次渲染快55%, 更新渲染快133%
-
内存减少54%
-
使用Proxy代替defineProperty实现数据响应式
-
重写虚拟DOM的实现和Tree-Shaking
# clone the project
git clone https://github.com/jzfai/micro-frontend-template.git
# enter the project directory
cd micro-frontend-template
# pnpm address https://pnpm.io/zh/motivation
# install dependency(Recommend use pnpm)
# you can use "npm -g i pnpm" to install pnpm
pnpm i
# develop
pnpm run hostall:devusing the browser to open http://localhost:5012/vue3-micro-frontend
# build for production environment
pnpm run hostall:preview# preview the release environment effect
pnpm run hostall:preview-offline
# code format check
pnpm run lint
架构开发不易,如果感觉好,请给我点个 start ,架构还在不断完善中,欢迎加入我开发,一起成为Contributors !!!!
注意:vue3不在支持IE浏览器 Modern browsers and Internet Explorer 11+.
![]() IE / Edge |
![]() Firefox |
![]() Chrome |
![]() Safari |
|---|---|---|---|
| Edge | last 2 versions | last 2 versions | last 2 versions |
MIT license.
Copyright (c) 2021-present kuanghua





