mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
tab fix scroll-view height
This commit is contained in:
parent
3674ddbf90
commit
a7c07f24be
6
dist/tab/index.wxml
vendored
6
dist/tab/index.wxml
vendored
@ -1,7 +1,11 @@
|
|||||||
<template name="zan-tab">
|
<template name="zan-tab">
|
||||||
<view class="zan-tab">
|
<view class="zan-tab">
|
||||||
<block wx:if="{{tab.scroll}}">
|
<block wx:if="{{tab.scroll}}">
|
||||||
<scroll-view class="zan-tab__bd zan-tab__bd--scroll {{fixed ? 'zan-tab__bd--fixed' : ''}}" scroll-x="true">
|
<scroll-view
|
||||||
|
class="zan-tab__bd zan-tab__bd--scroll {{ fixed ? 'zan-tab__bd--fixed' : '' }}"
|
||||||
|
scroll-x="true"
|
||||||
|
style="height: {{ tab.height ? tab.height + 'px' : 'auto' }}"
|
||||||
|
>
|
||||||
<template is="zan-tab-list" data="{{ tab, componentId }}"></template>
|
<template is="zan-tab-list" data="{{ tab, componentId }}"></template>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</block>
|
</block>
|
||||||
|
@ -43,7 +43,8 @@ Page(Object.assign({}, Zan.Tab, {
|
|||||||
title: '最新商品6'
|
title: '最新商品6'
|
||||||
}],
|
}],
|
||||||
selectedId: '1',
|
selectedId: '1',
|
||||||
scroll: true
|
scroll: true,
|
||||||
|
height: 45
|
||||||
},
|
},
|
||||||
tab3: {
|
tab3: {
|
||||||
list: [{
|
list: [{
|
||||||
@ -66,7 +67,8 @@ Page(Object.assign({}, Zan.Tab, {
|
|||||||
title: '商品6'
|
title: '商品6'
|
||||||
}],
|
}],
|
||||||
selectedId: '1',
|
selectedId: '1',
|
||||||
scroll: true
|
scroll: true,
|
||||||
|
height: 45
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user