@xtdev/xt-miniprogram-ui 1.2.83 → 1.2.85

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.
@@ -156,6 +156,14 @@ Component({
156
156
  });
157
157
  }
158
158
  },
159
+ /**
160
+ * 清空所有图片
161
+ */
162
+ clearAll() {
163
+ this.setData({
164
+ tempFileList: [],
165
+ });
166
+ },
159
167
  // 上传成功
160
168
  onUploadSuccess(files, url) {
161
169
  this.triggerEvent('upload', { fileList: files, url });
@@ -283,7 +283,6 @@ Component({
283
283
  // 使用短边作为参考,确保横屏和竖屏时水印大小一致
284
284
  const shortSide = Math.min(width, height);
285
285
  const scale = shortSide / 750; // 以750rpx为基准计算缩放比
286
- const isLandscape = width > height; // 是否横屏
287
286
 
288
287
  const { watermarkData, currentTime, currentDateTime } = this.data;
289
288
  const tagText = watermarkData.tagText || '拍照记录';
@@ -336,8 +335,7 @@ Component({
336
335
  }
337
336
 
338
337
  const infoAreaHeight = infoContentHeight;
339
- // 横屏时信息区宽度按短边的85%计算,避免太宽
340
- const infoAreaWidth = isLandscape ? shortSide * 0.85 : width * 0.85;
338
+ const infoAreaWidth = width * 0.85;
341
339
  const infoY = height - infoAreaHeight - 16 * scale; // 距离底部16rpx
342
340
 
343
341
  // ============ 绘制标签(在info-container上方16rpx) ============
@@ -199,8 +199,8 @@
199
199
  position: fixed;
200
200
  left: -9999rpx;
201
201
  top: -9999rpx;
202
- width: 1px;
203
- height: 1px;
202
+ width: 100vw;
203
+ height: 100vh;
204
204
  }
205
205
 
206
206
  .loading-overlay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtdev/xt-miniprogram-ui",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "description": "",
5
5
  "miniprogram": "libs",
6
6
  "publishConfig": {