From 05aa4bc8e0e07a7652e31a6d17bb83109134ddf2 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Tue, 12 Aug 2025 21:40:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D=20Check?= =?UTF-8?q?=20=E5=92=8C=20Radio=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E8=BE=93=E5=85=A5=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 Check 和 Radio 组件中,将 hidden 输入框的值从布尔型改为字符串 - 确保表单提交时,值为 'true' 或 'false',而不是 true 或 false - 这个修改提高了与某些表单处理库的兼容性 --- src/components/Check.tsx | 2 +- src/components/Radio.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Check.tsx b/src/components/Check.tsx index 62c5e1c..be60cfb 100644 --- a/src/components/Check.tsx +++ b/src/components/Check.tsx @@ -53,7 +53,7 @@ const Check: ParentComponent = (props) => {
{mProps.children}
- + ); diff --git a/src/components/Radio.tsx b/src/components/Radio.tsx index 1019923..a6b0cd8 100644 --- a/src/components/Radio.tsx +++ b/src/components/Radio.tsx @@ -53,7 +53,7 @@ const Radio: ParentComponent = (props) => {
{mProps.children}
- + );