mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-27 20:06:40 +08:00
* [improvement] Tab:升级到自定义组件 * fix: 去除冗余example代码 * [refactor] 重构badge为自定义组件 (#160) * fix: 去除tab组件使用对象入参方式,修改example用例
31 lines
694 B
Plaintext
31 lines
694 B
Plaintext
<import src="/dist/tab/index.wxml" />
|
|
|
|
<view class="container">
|
|
|
|
<view class="doc-title zan-hairline--bottom">TAB</view>
|
|
|
|
<view style="margin: 20px 0">
|
|
<zan-tab
|
|
list="{{ tab1.list }}"
|
|
selected-id="{{ tab1.selectedId }}"
|
|
/>
|
|
</view>
|
|
<view style="margin: 20px 0">
|
|
<zan-tab
|
|
list="{{ tab2.list }}"
|
|
selected-id="{{ tab2.selectedId }}"
|
|
scroll="{{ tab2.scroll }}"
|
|
height="{{ tab2.height }}"
|
|
/>
|
|
</view>
|
|
<view style="margin: 20px 0">
|
|
<zan-tab
|
|
list="{{ tab3.list }}"
|
|
selected-id="{{ tab3.selectedId }}"
|
|
scroll="{{ tab3.scroll }}"
|
|
fixed="{{ tab3.fixed }}"
|
|
height="{{ tab3.height }}"
|
|
/>
|
|
</view>
|
|
</view>
|