Skip to content

vue3+vite5+vue-router+pinia,动态路由、权限管理、vw适配、PWD ,路由切换PC与移动端,配置简单,各种实用的插件库及对应示例

License

Notifications You must be signed in to change notification settings

chao921125/vue-vite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简易版 JS & TS 分支

命名规范及解释

  1. 命名遵循驼峰规则:demoUser
  2. 配置文件均按照xxConfig,数据配置均按照xxOption/xxData:
  3. 封装的函数均按照export const FN = () => {},内部调用函数用普通的function FN() {}
  4. Store中对外函数命名均为useXx
  5. interface尽量抽取出来,且抽取到最小粒度
API前端使用及后端接口命名规则对应:列举,可以对此进行变更
接口 前端 后端 前端API示例 后端API示例
读取 search / get read / select searchDemo / getDemo readDemo / selectDemo
写入 save / add create saveDemo / addDemo createDemo
编辑 edit / update update editDemo updateDemo
删除 remove / delete delete removeDemo deleteDemo
上传 upload import uploadDemo importDemo
下载 download export downloadDemo exportDemo
实体 get / set getDemo / setDemo

基础核心

无特殊说明均对应最新版
插件网站
Vite 官方推荐插件
vue3js
vue3-resource
核心依赖
👍 vite 官网
👍 svelte 官网
vue-cli
turbo 下一代号称比 vite 快 10 倍
vue
vue3 官网
vue2 官网
路由管理
👍 vue-router 官网
根据文件自动生成路由 快速开发
状态管理
👍 Pinia 官网
vuex 官网
JavaScript标准库
core-js
网络请求
axios 官网
ws 官网 ts 需安装 @types/ws
socket.io socket.io-client
qs 序列化参数,并非网络请求

语法解析

TS
typescript 官网
样式组件 -D 注意重写组件样式的引用
sass
sass-loader
node-sass
less
less-loader
style-resources-loader
vite-svg-loader
svg-sprite-loader
text-loader
vue-style-loader
vue-template-compiler
postcss必装,自动添加浏览器适配前缀
postcss
autoprefixer
postcss-loader
快速样式CSS 并不推荐,建议大家自行封装
unocss
tailwindcss doc
windicss
语法检查 -D
eslint
👍 prettier
eslint-plugin-prettier

UI相关

无头单组件
👍 Vue shadcn 👍 React shadcn
UI PC 官方
bootstrap
bootstrap-vue-next
👍 vuetifyjs 超级古老框架 商业版收费
👍 element-plus 官网
👍 ant-design-vue 社区维护
quasarchs 官网
arco 字节 官网
tdesign 腾讯多端UI 包含 Web 和手机端
opentiny 华为云 官网
headlessui 组件简单
heyui 官网
naiveui
BalmUI 官网
iDux 官网
relaxplus 官网
quasar 官网
primefaces 官网
Vuestic UI 官网
lobehub 官网
React bootstrap 官网
React mui 官网
React ant-design 官网
React chakra-ui 官网
React semi 官网
React rsuitejs 官网
React chakra 官网
UI Mobile 官方
👍vant
👍vant 小程序
👍ionic-framework 官网 VRA
👍nutui @nutui/nutui@next 官网
👍taro 小程序
Tencent
vux
varlet 官网
onsen 官网
uvui 官网
wave 官网
小程序 Tencent
小程序 Cube UI
小程序 wux
firstui 含付费UI
AI
open-webui
VUE2 UI PC 官方
elementUI 官网
mint-ui 官网
buefy 官网
低代码
penpot
formily 官网 阿里巴巴
form-generator 官网
mitosis
项目及插件示例
reactiveapps 官网
小插件合集
单一UI组件
表格 vxe-table 官网
表格 tanstack 官网
布局 vue-grid-layout
树 vue-treeselect
静态UI JS PC H5
👍 Bootstrap
👍 layui 官方!!!
H5 zeptojs
PC javascript
Framework7
Foundation
Onsen UI
heyui
varletjs varletjs
图表
👍Apache ECharts 官网
👍antv antd全家桶 官网
👍FusionCharts 官网
👍C3.js 官网
👍D3.js 官网
Recharts
Chart.js vue官网
Chart.js 官网
plotly 官网
nvd3 官网
dygraphs 官网
cytoscape 官网
sigmajs 官网
ember-charts 官网
flotcharts 官网
plottablejs 官网
Highcharts 官网 付费
amcharts 官网 付费
storybook 官网
vue-chart-3 官网
vue3charts 官网
vue-echarts 官网
数据屏
DataV
营销组件
抽奖转盘/九宫格/老虎机
图标
iconfont 官网
iconify 官网
iconpark 官网
无字体库
flaticon 官网
icons8 官网
iconfinder 官网
加载 loading
nprogress
vue-simple-spinner
vue-loading-overlay
vue-progressbar
vue-spinner
vue-blockui
进度条-滑动条
vuejs-progress-bar
vue-slider-component
vue-radial-progress
轮播图
swiper 支持PC、H5 结合 vue-awesome-swiper 使用
vue-concise-slider
@splidejs/vue-splide
vue2 seamless 无缝滚动
vue3 seamless 无缝滚动
vue3 infinite 无限滚动
拖拽
Sortable
vue3-dnd
vue3 vue.draggable.next
vue-draggable-plus
revue-draggable
vue3 draggable-resizable
vue2 Vue.Draggable
vue2 vue-grid-layout
vue2 vue-drag-resize
全屏
screenfull
html2canvas,页面截图
html2canvas
二维码
qrcode
vue-qr
qrcode.vue
qrcodejs2
日历
vue-functional-calendar
vuejs-heatmap
mpvue-calendar
滚动
better-scroll
裁剪图片
vue-cropper
富文本编辑器
editor.js 官网
tiptap 官网
vue3 wangeditor 官网
vue2 wangeditor 官网
react wangeditor 官网
js wangeditor 官网
Quill
vue-quill-editor
ckeditor5-vue
TinyMCE 6 官网
TinyMCE 官网
Froala
Trumbowyg
slate
squire
summernote
bytemd
Markdown编辑器
Vditor 官网
Vue-markdown-editor 官网
Md-editor-v3 官网
流程图
bpmn
logic-flow
vue3-bpmn
vue3-tsx-bpmn
vue2-bpmn
vue2-bpmn
bpmn 中文文档
mermaid
xyflow 没有vue版
gojs
地图
vue-amap 高德
vue-baidu-map 百度

工具类库

剪切板
vue-clipboard2
cookie管理
js-cookie
日期格式化
dayjs
date-fns
luxon
~~~moment~~~ 不再推荐
打印
vue3-print-nb
print-js
vue-plugin-hiprint
加密解密
crypto-js
md5
bcryptjs
jsencrypt
jsrsasign
base64-js
js-base64
ua
ua-parser-js
isbot
ua-regexes-lite
bowser
本地数据存储
lodash
lowdb
国际化
i18n-next 不限制环境 官网
vue-i18n 官网
vue-i18n + @intlify/unplugin-vue-i18n
复制粘贴
clipboard
三方授权登录集成库
next-auth
@okta/okta-auth-js
hellojs
telegram vue3-telegram-login
telegram vue-tg
分享插件
vue-social-sharing
vue-socialmedia-share
@vue/shared
@vue/cli-shared-utils
nativeshare 唤起浏览器自身分享组件
文件上传、解析、保存,office 预览、上传、导出、导入 包含:xls,xlsx,doc,docx,pdf,csv
exceljs
sheetjs
csv
papaparse
xlsx 不建议使用有高危漏洞
文件类型判断 file-type
Office Excel handsontable
Office Word mammoth
PDF pdfjs-dist
PDF vue-pdf vue2
@vue-office docx excel pdf v2需要安装依赖 vue-demi
文件保存 file-saver
Uppy 官网
Vue-filepond 官网
支付
stripejs 官网
vue-stripe-elements-plus 官网
vue-stripe 官网
视频播放
dplayer 支持弹幕
vue-video-player
vue-core-video-player
绘图 3D
three.js
3D
WebGL
threejs 官网 GitHub
babylonjs 官网
AR model-viewer
游戏
Eva.js
Eva-plugin-renderer
Eva-plugin-renderer-img 官网
浏览器相关的插件
devtools-detector 判断浏览器是否打开了控制台
Other
vuepress
图片上传
工具集合

特效

auto-animate
tsparticles 粒子动画
lottiefiles 表情动画
angrytools 生成 css
cssanimation
动画
animate css库 官网
Animatopy
animxyz
animista
wickedCSS
Magic.css css库 停更 官网
animation css库 停更
WOW js库 官网 停更 wow.js vue3 官网 停更
vue-animate js库 官网
vue-kinesis js库 官网
move js库 官网 停更
animejs js库
velocityjs js库 停更
Waves js库 停更
anijs js库 停更
gsap库 含收费 官网
motion js库
saos js库
popmotion js库 停更
kute js库 停更
simpleParallax js库 停更
barbajs js库 切换
案例 特效 1
案例 css技巧 1
案例 css技巧 2
React motion
动画 滚动视觉差
scrollrevealjs
lax.js
rellax.js
vue-prlx 滚动视觉差
scrolly 滚动视觉差
fullPage.js 付费
动画 鼠标
Hover css库 官网
v-wave 指令库 官网
elrumordelaluz 鼠标放上效果
csshake 抖动效果
动画 Loading
three-dots 等待效果
http://k21vin.gitee.io/front-end-data-visualization/#/native/pureCSS/loading
https://juejin.cn/post/7037036742985121800
动画 文字
typed 打字机效果
vue-textra
动画
vivus
mojs
动画 渐变
granim
particles 背景图

开发构建

节点和浏览器的BDD / TDD断言库
chai
cross-env
环境配置获取
dotenv
日志
eruda
vconsole
vue-vconsole-devtools
代码提交信息校验 -D
husky
commitlint
commitizen
cz-conventional-changelog
cz-customizable
mock API -D
better-mock
axios-mock-adapter 只拦截 axios
node-mocks-http
vite-plugin-mock
mockjs 安全 bug 未解决请勿使用
文档
doczjs

开发 & 测试

本项目并没有测试用例,如果大家需要的话请自行添加,以下是测试集成依赖
eruda 调试
@vue/test-utils 推荐 这个可以作为核心 配合jest使用更好
jestjs
mochajs webpack

跨端适配方案

适配移动端 -D
vw方案 需要依赖style-loader 且需要删除@vue/cli-plugin-eslint
postcss-px-to-viewport
postcss-px-to-viewport-8-plugin TS 请用这个
rem方案
postcss-pxtorem
amfe-flexible
跨端框架推荐:包含小程序啥的
uni-app 官网 全平台跨端含APP等等
taro 官网 3.x已支持vue
hippy 官网 3.x已支持vue
mpvue 官网 美团
wepyjs 官网 腾讯 需要学习wepy
APP开发
flutter 官网
ionic 官网 ionic
cordova 官网
Native Script 官网
React Native 官网
react-native-elements 官网

在线编码可视化

api
apifox
yapi
hoppscotch
code
codepen
css 在线

SSR

框架
NuxtJS vue
NuxtJS ui
Next.js react
astro
quasar 官网 组件一体
vite ssr-vue
vite-plugin-ssr
Next.js
Hugo
Docusaurus
Jekyll
Gatsby

服务

框架
expressjs
nest
socket.io
meteor
koajs
fastify
sails
egg
midwayjs

CDN

节省资源,请使用这个
字体 CDN
cdnjs
字体下载
google
fonts2u
font download
maisfontes

CMS

strapi
hexo 博客

工作流

框架
NodeJS n8n

游戏

游戏开发框架
Unity 3D(C/JS) 3D大佬!
Cocos(C/TS) 2D、2.5大佬!
Unreal(C++) 这是一个追求画质的游戏引擎
小游戏 createjs

优秀项目推荐

slidev 演示文稿工具
uiverse 开源组件合集
vite 开源插件合集
nodejs 开源插件合集
组件
vue3 优秀组件收集
项目示例
聊天室
聊天悬浮
项目模板
项目模板
Admin server & Web
https://github.com/jeecgboot
https://gitee.com/likeadmin
https://github.com/yangzongzhuan
ant-simple-pro
Admin vite
https://github.com/pure-admin/pure-admin-thin
https://github.com/XPoet/vite-vue3-starter
https://github.com/cuixiaorui/mini-vue
https://github.com/YunaiV/ruoyi-vue-pro
https://github.com/flipped-aurora
https://github.com/vbenjs/vue-vben-admin
https://github.com/vbenjs/vben-admin-thin-next
https://github.com/pure-admin/vue-pure-admin
https://github.com/jekip/naive-ui-admin
https://github.com/HalseySpicy/Geeker-Admin
https://github.com/newbee-ltd/vue3-admin
https://github.com/buqiyuan/vite-vue3-admin
https://github.com/llyyayx/vue3-antd-admin
https://github.com/buqiyuan/vite-vue3-lowcode
https://github.com/RainManGO/vue3-composition-admin/tree/vite
https://github.com/cmdparkour/vue-admin-box
https://github.com/GeekQiaQia/vue3.0-template-admin
https://github.com/lyt-Top/vue-next-admin
https://github.com/jzfai/vue3-admin-plus
https://github.com/tobe-fe-dalao/fast-vue3
https://github.com/gmingchen/vue3-element-plus-admin/tree/vite-pinia
https://github.com/lin-xin/vue-manage-system
https://github.com/iamhmx/vue-next-admin
https://github.com/un-pany/v3-admin-vite
https://github.com/flipped-aurora/gin-vue-admin
https://github.com/xushanpei/vite_vue3_ts
https://github.com/moon-studio/vite-vue-bpmn-process
https://github.com/flipped-aurora/gin-vue-admin
https://github.com/ywanzhou/vue3-template
https://github.com/cool-team-official/cool-admin-vue
https://github.com/Yiuman/bpmn-vue-activiti
https://github.com/peng-xiao-shuai/vite-vue-admin
https://github.com/wuufeii/vue3-admin-vite
https://github.com/talktao/Vue3-Vite-Vant-TS-H5
https://github.com/GeekQiaQia/vue3.0-template-admin
https://github.com/zeorcpt/vue3-vant-mobile
https://github.com/lyt-Top/vue-next-admin
https://github.com/ZANJIAHAO1008/Admin-Frame-Vue3
https://github.com/cmdparkour/vue-admin-box
https://github.com/honghuangdc/soybean-admin
https://github.com/liyupi/sql-generator
https://github.com/vite-pwa/vite-plugin-pwa
https://github.com/electron-vite/electron-vite-vue
https://github.com/Codennnn/vue-color-avatar
https://github.com/newbee-ltd/vue3-admin
https://github.com/GeekQiaQia/vue3.0-template-admin
https://github.com/zclzone/vue-naive-admin
https://github.com/hu-snail/vue3-admin-element-template
mobile & project
https://github.com/LZHD/vue-vite-h5
https://github.com/xxxsf/vue3-h5-template
https://github.com/geekskai/vue3-jd-h5
https://github.com/biubiubiu01/vue3-bigData
https://github.com/jeecgboot/jeecg-boot
https://github.com/biaochenxuying/blog-vue-typescript
https://github.com/Yin-Hongwei/music-website
https://github.com/pipipi-pikachu/PPTist
https://github.com/Codennnn/vue-color-avatar
https://github.com/youlaitech/youlai-mall
https://github.com/buqiyuan/vite-vue3-lowcode
https://github.com/buqiyuan/vue3-antd-admin
https://github.com/buqiyuan/vite-vue3-h5
https://github.com/ynzy/vite-vue3-h5-template
https://github.com/Sujb-sus/vue3-vite2-ts-blog-h5
https://github.com/xsf0105/vue3-h5-template
言外

本项目的 TS 单纯的用来学习,内部大部分文件使用的是 any js 写法

TS 的优缺点不在这里一一赘述,给大家的建议是:个人或者小型项目直接用 js,大型项目根据人员选,超大型或者基础库使用 ts。