yymini-pop-list 1.0.1 → 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.1",
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,7 +59,7 @@ 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;
@@ -123,8 +123,8 @@ button::after {
123
123
  height: 120rpx;
124
124
  display: flex;
125
125
  flex: 1;
126
- justify-content: center;
127
126
  align-items: center;
127
+ /* justify-content: center; */
128
128
  /* background-color: #FFF; */
129
129
  }
130
130
 
@@ -132,7 +132,7 @@ button::after {
132
132
  flex: 1;
133
133
  display: flex;
134
134
  flex-direction: column;
135
- justify-content: center;
135
+ /* justify-content: center; */
136
136
  align-items: center;
137
137
  }
138
138