From 388aa97cc394d9e065c3ece5497efe90336ce961 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Tue, 12 Aug 2025 13:52:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D=20Radio?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E5=AD=90=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 props.children 替换为 mProps.children,以确保正确渲染子元素 - 此修改解决了 Radio 组件中子元素显示异常的问题 --- src/components/Radio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Radio.tsx b/src/components/Radio.tsx index 9ba27a2..2c061ce 100644 --- a/src/components/Radio.tsx +++ b/src/components/Radio.tsx @@ -49,7 +49,7 @@ const Radio: ParentComponent = (props) => { class="text-[14px] stroke-1" classList={{ 'text-primary': internalChecked() }} /> -
{props.children}
+
{mProps.children}