From 8ba7bdf2bdc3dc23ed174b8cbac34b1b1b429208 Mon Sep 17 00:00:00 2001 From: XiaoHetitu <38452227+XiaoHeitu@users.noreply.github.com> Date: Sun, 8 Jun 2025 17:56:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(button):=20=E4=B8=BA=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0type=E5=B1=9E=E6=80=A7=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=8F=90=E4=BA=A4=E6=84=8F=E5=A4=96=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=E6=9C=BA=E5=88=B6?= =?UTF-8?q?=20(#6340)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在按钮组件中,按钮元素缺少type="button"属性可能导致在表单中意外提交。添加此属性以确保按钮行为符合预期。 Co-authored-by: yuanwj --- .../shadcn-ui/src/components/button/check-button-group.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/button/check-button-group.vue b/packages/@core/ui-kit/shadcn-ui/src/components/button/check-button-group.vue index fd87396e..4172d82b 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/button/check-button-group.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/button/check-button-group.vue @@ -122,6 +122,7 @@ async function onBtnClick(value: ValueType) { v-bind="btnDefaultProps" :variant="innerValue.includes(btn.value) ? 'default' : 'outline'" @click="onBtnClick(btn.value)" + type="button" >