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

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

上级 bd8bec0c
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation" :enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation"
style="flex-direction: row;" class="uni-margin-wrap" :show-scrollbar="showScrollbar" :bounces="bounces" style="flex-direction: row;" class="uni-margin-wrap" :show-scrollbar="showScrollbar" :bounces="bounces"
@scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend"
ref="scrollViewX" id="scrollViewX"> 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> <text class="uni-text">{{item.label}}</text>
</view> </view>
</scroll-view> </scroll-view>
...@@ -18,8 +19,9 @@ ...@@ -18,8 +19,9 @@
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation" :enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation"
:show-scrollbar="showScrollbar" :bounces="bounces" @scrolltoupper="scrolltoupper" @touchmove="onTouchMove" :show-scrollbar="showScrollbar" :bounces="bounces" @scrolltoupper="scrolltoupper" @touchmove="onTouchMove"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewY" id="scrollViewY" @scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend" ref="scrollViewY" id="scrollViewY"
class="uni-margin-wrap"> 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> <text class="uni-text">{{item.label}}</text>
</view> </view>
</scroll-view> </scroll-view>
...@@ -248,4 +250,13 @@ ...@@ -248,4 +250,13 @@
.button { .button {
flex: 1; flex: 1;
} }
/*自动化测试专用*/
.v-margin-bottom {
margin-bottom: 50px;
}
/*自动化测试专用*/
.h-margin-right {
margin-right: 50px;
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册