mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
Merge branch 'hotfix/fix_tab_scroll_view_height' into 'master'
Hotfix/fix tab scroll view height See merge request !1
This commit is contained in:
commit
832a5d3711
@ -158,5 +158,5 @@ Page(Object.assign({}, Zan.Toast, {
|
||||
[ZanUI WeApp]: https://github.com/youzan/zanui-weapp
|
||||
[MIT]: http://opensource.org/licenses/MIT
|
||||
[Bower]: https://bower.io/
|
||||
[小程序简易教程]: https://mp.weixin.qq.com/debug/wxadoc/dev
|
||||
[小程序简易教程]: https://mp.weixin.qq.com/debug/wxadoc/dev/
|
||||
[小程序框架介绍]: https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html
|
||||
|
10
dist/badge/index.wxss
vendored
10
dist/badge/index.wxss
vendored
@ -5,13 +5,13 @@
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 0px;
|
||||
height: 16px;
|
||||
min-width: 16px;
|
||||
line-height: 16px;
|
||||
padding: 0 4px;
|
||||
height: 1.6em;
|
||||
min-width: 1.6em;
|
||||
line-height: 1.6;
|
||||
padding: 0 .4em;
|
||||
font-size: 10px;
|
||||
font-family: tahoma;
|
||||
border-radius: 10px;
|
||||
border-radius: .8em;
|
||||
background: #FF4444;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
|
1
dist/card/index.wxss
vendored
1
dist/card/index.wxss
vendored
@ -20,7 +20,6 @@
|
||||
|
||||
.zan-card__img {
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
2
dist/panel/index.wxss
vendored
2
dist/panel/index.wxss
vendored
@ -8,7 +8,7 @@
|
||||
|
||||
.zan-panel-title {
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
line-height: 1;
|
||||
color: #999;
|
||||
padding: 20px 15px 0 15px;
|
||||
}
|
||||
|
8
dist/steps/wxss/vstep.wxss
vendored
8
dist/steps/wxss/vstep.wxss
vendored
@ -49,6 +49,12 @@
|
||||
}
|
||||
|
||||
.zan-steps--vsteps .zan-steps__step--done .zan-steps__circle {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
background-color: #09bb07;
|
||||
}
|
||||
|
||||
.zan-steps--vsteps .zan-steps__step--cur .zan-steps__circle {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
background: transparent url("https://b.yzcdn.cn/v2/image/wap/success_small@2x.png");
|
||||
@ -72,7 +78,7 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.zan-steps--vsteps .zan-steps__step--last-child .zan-steps__title::before {
|
||||
.zan-steps--vsteps .zan-steps__step--last-child .zan-steps__title::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
6
dist/tab/index.wxml
vendored
6
dist/tab/index.wxml
vendored
@ -1,7 +1,11 @@
|
||||
<template name="zan-tab">
|
||||
<view class="zan-tab">
|
||||
<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>
|
||||
</scroll-view>
|
||||
</block>
|
||||
|
@ -43,7 +43,8 @@ Page(Object.assign({}, Zan.Tab, {
|
||||
title: '最新商品6'
|
||||
}],
|
||||
selectedId: '1',
|
||||
scroll: true
|
||||
scroll: true,
|
||||
height: 45
|
||||
},
|
||||
tab3: {
|
||||
list: [{
|
||||
@ -66,7 +67,8 @@ Page(Object.assign({}, Zan.Tab, {
|
||||
title: '商品6'
|
||||
}],
|
||||
selectedId: '1',
|
||||
scroll: true
|
||||
scroll: true,
|
||||
height: 45
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user