You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
766 B

<!--index.wxml-->
<view class="container">
<van-tabs class="menu-tabs" active="{{ active }}" ellipsis="{{false}}" animated="{{true}}" bind:change="changeTab">
<van-tab wx:for="{{navData}}" title="{{item.text}}" wx:key="index">
<data-child wx:if="{{item.component === 'data-child' && active === 0}}"></data-child>
<event-child wx:if="{{item.component === 'event-child' && active === 1}}"></event-child>
<media-child wx:if="{{item.component === 'media-child' && active === 2}}"></media-child>
<sound-child wx:if="{{item.component === 'sound-child' && active === 3}}"></sound-child>
<barometer-child wx:if="{{item.component === 'barometer-child' && active === 4}}"></barometer-child>
</van-tab>
</van-tabs>
<tabbar />
</view>