期望:希望实现一个自定义底部bar,但是样式不能继承,希望大家能给我个建议
目前的目录结构:
index.html 引入了两个组件一个 是 ws-tabbar 和 ws-tab-item
<ws-tabbar> <block wx:for="{{test_data}}"> <ws-tab-item> <image src="{{item.thum}}" slot="icon"> |
ws-tabbar.html
<view class="ws-tabbar"> <slot> |
ws-tab-item
<view class="ws-tabbar-item on"> <slot name="icon"> |

官方的API就很好解决这个嘛
https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui-tabbar.html#wxsettabbarbadgeobject