Coder Social home page Coder Social logo

liepeiming / vue3-admin-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jzfai/vue3-admin-template

0.0 1.0 0.0 491 KB

👏vue3(script-setup)+vite2进行开发,新一代的前端框架,使用类似vue-admin-template,此架构较为简单,适合刚入门vue3或者想提升的同学,也可以作为基础架构进行商用开发。使用和开发体验,真香!!

Home Page: https://github.com/jzfai/vue3.0-admin-template.git

HTML 0.32% Vue 34.28% JavaScript 44.37% SCSS 20.76% Shell 0.25%

vue3-admin-template's Introduction

更新日志

// 2021-08-31
5.增加了mock, hook , svg-icon,vuex的使用示例
// 2021-09-04
1.修复了build后,ref的问题(https://github.com/vuejs/vue-next/issues/4431)
2.vue,element-plus,vite及插件更新到最新版本
3.ResizeHandler.js 方法从mixin 改为hooks
// 2021-09-06
1.增加父子通信例子 parent-children
// 2021-09-10
vue,element-plus,vite及插件更新到最新版本
增加数据java后台:https://github.com/jzfai/micro-service-plus.git

前言

本架构为最基础的版本,适合学习和作为基础模板使用,如果需要查看具体实例请查看

https://github.com/jzfai/vue3-admin-plus.git

本架构使用的技术为:vue3(setup-script)+vite2+element-plus 的新一代的前端框架,框架使用类似 vue-admin-template

框架有js和ts版本
js版本:https://github.com/jzfai/vue3-admin-template.git
ts版本:https://github.com/jzfai/vue3-admin-ts.git
plus版本:https://github.com/jzfai/vue3-admin-plus.git
新一代的微服务架构:https://github.com/jzfai/micro-service-plus
如果想学习vue3+vite2的可以把这个框架和vue-admin-template框架进行对比,后期也我会出在架构设计过程中
vue2和vue3的区别,以及如何快速的把vue2迁移到3中的教程

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

和 vue-admin-template 的区别

1.布局方式全部采用 flex 代替以前的 float,float 布局方式全部移除
2.采用 vue3(setup-script)书写,用 vite2 替换 webpack,加入了 vue3 的 jsx 写法
3.简化了部分复杂的逻辑

效果

线上体验地址:http://8.135.1.141/vue3-admin-template

http://8.135.1.141/file/images/1629713090928.png

http://8.135.1.141/file/images/1629541566667.png

页面首次渲染 加载资源(366K) 页面完全打开(0.36s)

http://8.135.1.141/file/images/1629541566667.png

如何运行

克隆项目
git clone https://github.com/jzfai/vue3-admin-template.git

进入项目目录
cd  vue3-admin-template

运行yarn安装依赖
yarn

运行dev命令
yarn run dev


补充:这里说下package.json里的scripts命令
"scripts": {
  "dev": "vite --mode serve-dev", ---- 开发时运行
   "build": "vite build --mode build",  ---- 打包发布生产环境
   "serve": "vite preview --mode build" ---- 这个是在你本地打包完后(yarn run build)后会生产一个dist文件夹,这个命令在你本地启动一个本地服务用于查看dist文件内容,发布生产前可以用这个先看下打包的效果
   "preview:build": "yarn run build && vite preview " --- 构建并查看(建议更新上product前运行一次,查看是否有问题)
},
后期会出架构中 vue3+vite2 开发时的一些坑以及如何快速的把 vue2 项目迁移到 vue3,框架还在努力开发中,但是基本功能已经完成

如果需要实时交流的可以加入wx群(有vue3+ts视频教程)

http://8.135.1.141/file/images/wx-groud.png

大家的支持是我前进的动力 欢迎加入一起开发

vue3-admin-template's People

Contributors

jzfai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.