Code Monkey home page Code Monkey logo

uniapp-uview-v2-boilerplate's Introduction

一个适用于uview2组件库的uni小程序空架子。

star fork

技术栈

  • ♾️uniapp 使用 Vue.js 开发所有前端应用的框架。
  • 🧭uni-simple-router 像 Vue Router 一样管理路由,快速上手。
  • 📦vuex 一个专为 Vue.js 应用程序开发的状态管理模式。
  • 🏠vuex-persistedstate 一个 Vuex 的数据持久化插件。
  • 💈uView uni-app 生态专用的 UI 框架。
  • mescroll-uni 专门用在 uni-app 的下拉刷新和上拉加载的组件。

特性

  • 请求响应拦截器二次封装,可控的默认接口出错 toast 提示,手动指定哪些接口请求需要携带 token 等。
  • 模块化加载请求,全局挂载调用。
  • 模块化加载全局混入,手动进行局部混入引用。
  • 兼容多端的 uniapp 的 vuex 数据持久化。
  • 二次封装 mescroll 上拉加载、下拉刷新组件,极简的传参和事件接收,支持单页面多组件。
  • 预置封装了部分组件如头部 Navbar、底部 Tabbar、兼容 Navbar 的吸顶 Sticky。
  • 预置了深色模式切换(目前只在 h5 和 微信小程序有测试,可能有一定缺陷)。

注意事项

  • 采用 uniapp 脚手架项目,只保留了 h5,app,qq,微信,支付宝 的编译器。
  • 不要随意升级 uni 的编译器版本,否则可能出现依赖变多,vue 依赖版本不同等问题。
  • 因为 uniapp 和 uview 的坑,只支持原生 npm 安装依赖。
  • 尽可能减少全局混入 mixin 的依赖。

许可证

MIT License © 2022-现在 YuCarl77

uniapp-uview-v2-boilerplate's People

Contributors

dockfries avatar

Stargazers

 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.