Browse Source

公用组件修改

yufei
余菲 10 months ago
parent
commit
47f712e22f
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      components/List/index.wxml
  2. +5
    -0
      components/List/index.wxss

+ 1
- 1
components/List/index.wxml View File

@@ -1,5 +1,5 @@
<!--components/List/index.wxml-->
<scroll-view class="list {{list.length>0?'':'min-height'}}" scroll-y="{{scrolling}}" bindscrolltolower="loadMore" lower-threshold="80">
<scroll-view class="list {{list.length>0?'':'min-height'}}" scroll-y="{{scrolling}}" bindscrolltolower="loadMore" enable-flex="{{true}}" lower-threshold="80">
<slot></slot>
<view class="empty" wx:if="{{!loading && list.length==0}}">
<image class="image" src="/assets/img/empty.png" mode="aspectFit" lazy-load="false">

+ 5
- 0
components/List/index.wxss View File

@@ -3,6 +3,10 @@
box-sizing: border-box;
width: 100%;
height: 100%;
/* display: flex;
flex-wrap: wrap; */
/* justify-content: space-between; */
/* align-content: flex-start; */
}

.min-height {
@@ -17,6 +21,7 @@
}

.empty {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;

Loading…
Cancel
Save