父子组件嵌套问题,求助,困扰一天了
期望:希望实现一个自定义底部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"> |
