没有合适的资源?快使用搜索试试~ 我知道了~
wx-router:微信小程序的路由类
共58个文件
js:21个
json:11个
wxss:7个
需积分: 12 2 下载量 187 浏览量
2021-05-02
05:01:41
上传
评论 1
收藏 81KB ZIP 举报
温馨提示
wx-router 更好用的小程序路由 概述 wx-router是一个微信小程序路由类,封装了小程序路由 api,并且解决了部分小程序路由 api 中不好用的一些地方,提升开发效率和语义化,以及更优雅的编程体验。 特性 支持 Promise 化调用 支持别名跳转 支持路由传值保持类型 调用简单化,不需要确定页面是否 tabbar 页面(合并 navigateTo 和 switchTab) 支持 switchTab 和 navigateBack传值 todo 路由守卫 起步 下载 整个下载或克隆 源码后解压移除example文件夹后可以直接放到你的项目中。当然也可以参考 example 的用例。 npm (是的 wx-router 被用了) npm install wx-mp-router --save 用法 克隆项目后,小程序工具打开项目指向example文件夹即可。 初始化 impor
资源推荐
资源详情
资源评论
收起资源包目录
wx-router-master.zip (58个子文件)
wx-router-master
example
images
home-o.png 3KB
user-o.png 3KB
home.png 3KB
user.png 6KB
cart.png 4KB
cart-o.png 3KB
app.json 1KB
pages
cart
cart.js 1KB
cart.json 27B
cart.wxss 26B
cart.wxml 394B
register
register.wxss 34B
register.wxml 198B
register.js 578B
register.json 27B
home
home.wxml 336B
home.json 27B
home.wxss 26B
home.js 529B
mine
mine.wxss 26B
mine.js 415B
mine.wxml 259B
mine.json 27B
details
details.wxss 48B
details.js 895B
details.wxml 564B
details.json 27B
login
login.wxml 219B
login.wxss 28B
login.json 27B
login.js 333B
sitemap.json 191B
lib
WxRouter
WxRouter.js 4KB
WxRouter.d..ts 881B
event-bus
EventBus.js 2KB
app.wxss 0B
app.js 1KB
project.config.json 977B
utils
index.js 81B
promisify.js 385B
util.js 558B
wx-tools.js 541B
router
router.js 457B
store
initial-state.js 90B
store.js 2KB
state-types.js 45B
.babelrc 144B
package.json 1KB
LICENSE 1KB
package-lock.json 199KB
dist
wx-router.min.js 6KB
src
WxRouter.d.ts 881B
utils.js 622B
WxRouter.js 4KB
.npmignore 63B
.gitignore 13B
README.md 4KB
build
webpack.config.js 421B
共 58 条
- 1
资源评论
苏咔咔
- 粉丝: 27
- 资源: 4706
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功