赞
踩
在此案例中,用到的主要知识点如下: 自定义组件 Vant 组件库 MobX 数据共享 组件样式隔离 组件数据监听器 组件的 behaviors Vant 样式覆盖
1.首先需要给我们的app.json 配置tabBar “custom”:true 注意点:(为了保证低版本兼容以及区分哪些页面是 tab 页。此时tabBar内配置需要保留)
2…根据官方文档。根目录下建立custom-tab-bar 建立组件index自动生成 custom-tab-bar/index.js
custom-tab-bar/index.json
custom-tab-bar/index.wxml
custom-tab-bar/index.wxss </
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。