Skip to content

Commit

Permalink
Merge pull request #792 from thundersdata-frontend/form-issue
Browse files Browse the repository at this point in the history
fix: 修复 FormItem 下的 Input/InputItem 组件的 inputStyle 不生效的问题
  • Loading branch information
chj-damon authored Dec 14, 2023
2 parents 03291ca + d832bc6 commit 79a7f68
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 79a7f68

Please sign in to comment.