From 698d706cd1d79de82b3276812de86a04d09d4d1a Mon Sep 17 00:00:00 2001 From: Yanghc Date: Fri, 24 Jun 2022 18:53:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Field=20=E4=B8=8D=E8=83=BD=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89className=E7=9A=84=E9=97=AE=E9=A2=98=20(#277)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vantui/src/field/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vantui/src/field/index.tsx b/packages/vantui/src/field/index.tsx index cb43e501b..6a1d1eebd 100644 --- a/packages/vantui/src/field/index.tsx +++ b/packages/vantui/src/field/index.tsx @@ -31,6 +31,7 @@ export function Field(props: FieldProps) { isLink, required, clickable, + className, titleWidth = '6.2em', style, arrowDirection, @@ -215,7 +216,7 @@ export function Field(props: FieldProps) { titleStyle="margin-right: 12px;" style={style} arrowDirection={arrowDirection} - className="van-field" + className={'van-field ' + `${className || ''}`} renderIcon={{renderLeftIcon}} renderTitle={