rex 723cebac1a
[new feature] TabBar: improve performance & add new props & improve doc (#1722)
fix #1625

pull request 改动点:

- 重构组件,优化性能
- 新增 inactiveColor、name 属性
- 完善文档,增加小程序自定义tab-bar示例
2019-06-24 17:42:37 +08:00

6 lines
189 B
Plaintext

<van-tabbar active="{{ active }}" bind:change="onChange">
<van-tabbar-item wx:for="{{ list }}" wx:key="index" icon="{{ item.icon }}">{{
item.text
}}</van-tabbar-item>
</van-tabbar>