Giter VIP home page Giter VIP logo

vue3's Introduction

Vue 3.2 + TypeScript + Vite + Pinia

🚩搭建Vue3项目,开箱即用的模版

✅ Svg (矢量图形)

✅ Mitt (组件通信)

✅ Sass (样式处理)

✅ Pinia (状态管理)

✅ Axios (HTTP库)

✅ Eslint (代码检查)

✅ Echarts (图表)

✅ Prettier (代码格式化)

✅ Ant design (Ui框架按需引入)

✅ 高德地图 (基础地图)

✅ NProgress (页面进度)

✅ @vueuse/motion (组件动画 https://motion.vueuse.org/)

🏃如何运行

  1. git clone [email protected]:tsinghua-lau/one-step.git
  2. yarn install
  3. yarn run dev
  4. 本地访问 http://127.0.0.1:8088 在线访问 https://one-step-ten.vercel.app/

🛂代码检查

yarn run lint

🖼️预览

项目创建简单的几个页面,方便删除拿来即用

登录

image

图表

image

高德地图

image

列表

image

动机 😛

为什么要搭建这个项目模版

  • 节省开发时间提高效率
  • 结合主流项目规范化项目架构

适合 😀

什么时候适合用?

  • 不想一步步集成项目节省时间
  • 尝试规范话项目代码结构
  • 学习Ts如何在V3项目具体使用场景

还在维护中👋

Major bug 🐛

  • 某次安装依赖后项目启动白屏,控制台无报错,首页需要40s甚至更久,加载出首页后页面点击无法跳转,整个项目无法使用。ant-design-vue + vite,使用按需引入的方式,启动 vite 服务时会对 style 进行依赖预构建,在切换不同路由时如果其他模块有使用到新的组件,页面会卡住直至 dependencies optimized 完成。 终端输出: image

尝试方法:

  • 删除依赖重新install
  • 拉取仓库历史版本
  • 新建项目将代码复制

最终解决:

开发环境全部导入Ant组件,打包时用按需导入。 修改文件 "vite.config.ts" 详情查看仓库提交历史

最后 🤭

由于水平和时间有限,难免会有错误,欢迎提出Issues,也很欢迎Star

vue3's People

Contributors

tsinghua-lau 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.