提交 6debd736 编写于 作者: shutao-dc's avatar shutao-dc

新增scroll-view末尾元素添加margin测试例 (需人工测试验证)

上级 bd8bec0c
......@@ -9,7 +9,8 @@
style="flex-direction: row;" class="uni-margin-wrap" :show-scrollbar="showScrollbar" :bounces="bounces"
@scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend"
ref="scrollViewX" id="scrollViewX">
<view class="item" :id="'horizontal_'+item.id" v-for="(item,_) in items">
<!-- h-margin-right末尾元素添加margin-right 测试bug #3866-->
<view class="item" :id="'horizontal_'+item.id" v-for="(item,index) in items" :class="index==9 ? 'h-margin-right': ''">
<text class="uni-text">{{item.label}}</text>
</view>
</scroll-view>
......@@ -19,7 +20,8 @@
:show-scrollbar="showScrollbar" :bounces="bounces" @scrolltoupper="scrolltoupper" @touchmove="onTouchMove"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewY" id="scrollViewY"
class="uni-margin-wrap">
<view class="item" :id="item.id" v-for="(item,_) in items">
<!-- v-margin-bottom末尾元素添加margin-bottom 测试bug #3866-->
<view class="item" :id="item.id" v-for="(item, index) in items" :class="index==9 ? 'v-margin-bottom': ''">
<text class="uni-text">{{item.label}}</text>
</view>
</scroll-view>
......@@ -248,4 +250,13 @@
.button {
flex: 1;
}
/*自动化测试专用*/
.v-margin-bottom {
margin-bottom: 50px;
}
/*自动化测试专用*/
.h-margin-right {
margin-right: 50px;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册