Skip to content

Commit

Permalink
fix: Field 不能自定义className的问题 (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwlkj authored Jun 24, 2022
1 parent 0945082 commit 698d706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vantui/src/field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function Field(props: FieldProps) {
isLink,
required,
clickable,
className,
titleWidth = '6.2em',
style,
arrowDirection,
Expand Down Expand Up @@ -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={<Block>{renderLeftIcon}</Block>}
renderTitle={
<Block>
Expand Down

0 comments on commit 698d706

Please sign in to comment.