From 90c9dffd3f0f069318d6ee4df1bd6d77f458c025 Mon Sep 17 00:00:00 2001 From: hanyuxinting Date: Wed, 16 Apr 2025 12:10:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(button):=20=E5=85=BC=E5=AE=B9=20taro=20com?= =?UTF-8?q?ponents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/button/button.taro.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packages/button/button.taro.tsx b/src/packages/button/button.taro.tsx index c9286e908a..7ddc656031 100644 --- a/src/packages/button/button.taro.tsx +++ b/src/packages/button/button.taro.tsx @@ -76,6 +76,7 @@ export const Button = React.forwardRef>( children, className, style, + formType, nativeType, onClick, ...rest @@ -145,7 +146,7 @@ export const Button = React.forwardRef>( ) if (getEnv() === 'WEB') { - ;(rest as any).type = rest.formType + ;(rest as any).type = formType } return ( // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -154,7 +155,7 @@ export const Button = React.forwardRef>( handleClick(e as any)}