From 8e3f3890e93d097df4be744648b9ac404d20a558 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 23 四月 2026 17:58:50 +0800
Subject: [PATCH] 2026.4.23
---
miniprogram_npm/tdesign-miniprogram/avatar/avatar.wxs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/avatar/avatar.wxs b/miniprogram_npm/tdesign-miniprogram/avatar/avatar.wxs
index 240a956..13bcd7f 100644
--- a/miniprogram_npm/tdesign-miniprogram/avatar/avatar.wxs
+++ b/miniprogram_npm/tdesign-miniprogram/avatar/avatar.wxs
@@ -11,13 +11,13 @@
return classNames.join(' ');
},
- getSize: function (size = 'medium', systemInfo) {
+ getSize: function (size = 'medium', windowWidth) {
var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);
if (res && res.length >= 3) {
var px = res[1];
if (res[2] === 'rpx') {
- px = Math.floor((systemInfo.windowWidth * res[1]) / 750);
+ px = Math.floor((windowWidth * res[1]) / 750);
}
return 'width:' + size + ';height:' + size + ';font-size:' + ((px / 8) * 3 + 2) + 'px';
--
Gitblit v1.9.3