yymini-pop-list 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymini-pop-list",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "小程序(抖音)-底部列表弹出框 自定义组件",
5
5
  "main": "pop-list.js",
6
6
  "miniprogram": ".",
package/pop-list.ttml CHANGED
@@ -2,7 +2,7 @@
2
2
  <view class="view-content" style="height: {{height}}%;" catchtap="stopPropagation">
3
3
  <image src="{{bgSrc}}" class="img-bg"></image>
4
4
  <view class="view-box">
5
- <view class="view-top">
5
+ <view class="view-top" bindtap="onClose">
6
6
  <button tt:if="{{isBackLeft}}" class="btn-left" bindtap="onClose">
7
7
  <image src="back.png" mode="widthFix"></image>
8
8
  </button>
@@ -19,7 +19,9 @@
19
19
 
20
20
  <!-- 空页面 -->
21
21
  <view tt:elif="{{dataList.length < 1 }}" class="view-kong">
22
+ <view style="flex: 0.4;width: 10%;"></view>
22
23
  <image src="drow_kong2.png" class="drow_kong_box"></image>
24
+ <view style="flex: 0.6;width: 10%;"></view>
23
25
  </view>
24
26
 
25
27
  <!-- 数据加载完成后显示 -->
package/pop-list.ttss CHANGED
@@ -47,7 +47,7 @@ button::after {
47
47
 
48
48
  /* 弹窗内容区 */
49
49
  .view-content {
50
- position: fixed;
50
+ position: absolute;
51
51
  bottom: 0;
52
52
  left: 0;
53
53
  right: 0;
@@ -59,12 +59,14 @@ button::after {
59
59
  flex-direction: column;
60
60
  overflow: hidden;
61
61
 
62
- background: red;
62
+ /* background: #FFF; */
63
63
  /* 初始状态:滑出屏幕底部 */
64
64
  transform: translateY(100%);
65
65
  transition: transform 0.45s ease-out;
66
66
  /* 滑动动画更丝滑 */
67
- height: 50%;
67
+ /* height: 50%; */
68
+ max-height: 90%;
69
+ min-height: 50%;
68
70
 
69
71
  }
70
72
 
@@ -121,8 +123,8 @@ button::after {
121
123
  height: 120rpx;
122
124
  display: flex;
123
125
  flex: 1;
124
- justify-content: center;
125
126
  align-items: center;
127
+ /* justify-content: center; */
126
128
  /* background-color: #FFF; */
127
129
  }
128
130
 
@@ -130,7 +132,7 @@ button::after {
130
132
  flex: 1;
131
133
  display: flex;
132
134
  flex-direction: column;
133
- justify-content: center;
135
+ /* justify-content: center; */
134
136
  align-items: center;
135
137
  }
136
138