<!--pages/encyclopedia/index.wxml-->
<navigator title="电力百科" canBack="{{true}}" />
<van-tabs active="{{ active }}" bind:change="onChange" swipeable> 
  <van-tab wx:for="{{categoryList}}" wx:key="id" title="{{item.name}}">
    <item id="{{item.id}}" wx:if="{{index === active}}" />
  </van-tab>
</van-tabs>