51 lines
1.1 KiB
Plaintext

<van-tabs
active="{{ active }}"
bind:change="onSwitch"
>
<van-tab title="基础图标" custom-class="demo-tab-pane">
<van-col
wx:for="{{ icons.basic }}"
wx:key="index"
custom-class="col"
span="8"
>
<van-icon
name="{{ item }}"
size="32px"
custom-class="icon"
/>
<view class="text">{{ item }}</view>
</van-col>
</van-tab>
<van-tab title="线框风格" custom-class="demo-tab-pane">
<van-col
wx:for="{{ icons.outline }}"
wx:key="index"
custom-class="col"
span="8"
>
<van-icon
name="{{ item }}"
size="32px"
custom-class="icon"
/>
<view class="text">{{ item }}</view>
</van-col>
</van-tab>
<van-tab title="实底风格" custom-class="demo-tab-pane">
<van-col
wx:for="{{ icons.filled }}"
wx:key="index"
custom-class="col"
span="8"
>
<van-icon
name="{{ item }}"
size="32px"
custom-class="icon"
/>
<view class="text">{{ item }}</view>
</van-col>
</van-tab>
</van-tabs>