ソースを参照

公用组件修改

yufei
余菲 10ヶ月前
コミット
47f712e22f
2個のファイルの変更6行の追加1行の削除
  1. +1
    -1
      components/List/index.wxml
  2. +5
    -0
      components/List/index.wxss

+ 1
- 1
components/List/index.wxml ファイルの表示

@@ -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 ファイルの表示

@@ -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;

読み込み中…
キャンセル
保存