Skip to content

Commit

Permalink
fix: 修复 FormItem 下的 Input/InputItem 组件的 inputStyle 不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chj-damon committed Dec 14, 2023
1 parent 03291ca commit d832bc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-kiwis-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@td-design/react-native': patch
---

fix: 修复 FormItem 下的 Input/InputItem 组件的 inputStyle 不生效的问题
11 changes: 8 additions & 3 deletions packages/react-native/src/form/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ const FormItem: FC<FormItemProps> = ({ children, type = 'bottom', name, ...field
style: {
height: formItemHeight,
},
inputStyle: {
padding: 0,
},
inputStyle: children.props.inputStyle
? {
padding: 0,
...children.props.inputStyle,
}
: {
padding: 0,
},
})}
</Field>
</Box>
Expand Down

0 comments on commit d832bc6

Please sign in to comment.