提交 51791f5d 编写于 作者: M mehaotian

perf: 优化自定义下拉刷新示例样式

上级 f5e2d9b0
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
@refresherrefresh="onRefresherrefresh" @refresherrefresh="onRefresherrefresh"
:refresher-threshold="refresherThreshold" :refresher-threshold="refresherThreshold"
> >
<view v-for="i in 7" class="item"> <view v-for="i in 20" class="content-item">
item-{{i}} <text class="text">item-{{i}}</text>
</view> </view>
<refresh-box slot="refresher" :state="state" :pullingDistance="pullingDistance"></refresh-box> <refresh-box slot="refresher" :state="state" :pullingDistance="pullingDistance"></refresh-box>
</scroll-view> </scroll-view>
...@@ -62,9 +62,21 @@ ...@@ -62,9 +62,21 @@
<style> <style>
.scroll-view { .scroll-view {
flex: 1; flex: 1;
padding: 5px 15px;
background-color: #f5f5f5;
} }
.item {
height: 80px; .content-item {
justify-content: center; padding: 15px;
margin: 5px 0;
background-color: #fff;
border-radius: 5px;
}
.text {
font-size: 14px;
color: #666;
line-height: 20px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册