0 Star 0 Fork 3

dockfries / uniapp-uview-v2-boilerplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

一个适用于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

MIT License Copyright (c) 2022 YuCarl77 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

🍭一个自己封装的空架子,适用于uview2组件库的uni小程序项目。vue2+vuex+uni-simple-router 展开 收起
JavaScript 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/dockfries/uniapp-uview-v2-boilerplate.git
git@gitee.com:dockfries/uniapp-uview-v2-boilerplate.git
dockfries
uniapp-uview-v2-boilerplate
uniapp-uview-v2-boilerplate
main

搜索帮助