GithubHelp home page GithubHelp logo

nic-do / vite_vue3_mobile Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 64.77 MB

基于vite4.1+vue3+vant4.3开发移动端spa框架

License: MIT License

JavaScript 59.80% Vue 13.87% TypeScript 0.65% CSS 0.08% HTML 25.56% SCSS 0.04%
vue3 vant4 vite4

vite_vue3_mobile's Introduction

实现的基本骨架功能及demo,不涉及业务

1、多首页 完成 见多入口说明

2、跨页面跳转数据传递 完成 有一定限制,数据传递借用history.state完成,跨页面跳解决依赖keepalive数组

3、国际化 i18n+vant 完成 语言是按需加载的 (并且代码里面对于缺少的语言-使用了有道翻译对模版进行翻译动态生成,实际使用请 自行修改)

4、vant的theme定制切换 完成 其他主题可以切换vant时自行设置

5、动画 完成 常用的css动画框架

6、统计图 echarts 完成 按需加载及主题切换。只加入了bar、line和pie作为演示,其他自行添加很方便

7、svg按需加载 完成 缺陷是文件目录结构有要求,不能放在asset目录

8、虚拟列表 完成 使用的是第三方源码 DynamicScroller

9、vw-vh 完成

10、webp转换及加载 完成 转换逻辑待完善,具体见说明

11、添加threejs 基本完成 octree例子。cannon-es例子开发中。支持页面中按需动态引入ammo、cannon-es 实现了基本的第一/三人称控制器和joystick。

12、添加AFrame 实现简单第一人称demo

内置了mock配合axios模拟接口调用 dev和preview模式都可以使用

build包分析结果:除最新引入的threejs相关内容。其他最大的chunk size:render:700k左右,gzip压缩后:200k左右

其他说明具体见说明目录下的各项说明

vite_vue3_mobile's People

Contributors

nic-do avatar

Stargazers

 avatar  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.