@xtdev/xt-miniprogram-ui 1.2.84 → 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.
|
@@ -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
|
-
|
|
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) ============
|