Skip to content

Commit

Permalink
chore(antd/next): improve FormItem props
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Dec 24, 2021
1 parent cd20b0f commit 4c36ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/antd/src/form-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const BaseItem: React.FC<IFormItemProps> = ({ children, ...props }) => {
</div>
)
}
return tooltip
return tooltip
}

const renderLabelText = () => {
Expand Down Expand Up @@ -401,7 +401,7 @@ export const FormItem: ComposeFormItem = connect(
return false
}
return {
label: field.title || props.label,
label: props.label || field.title,
feedbackStatus: takeFeedbackStatus(),
feedbackText: takeMessage(),
asterisk: takeAsterisk(),
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/form-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export const FormItem: ComposeFormItem = connect(
return false
}
return {
label: field.title || props.label,
label: props.label || field.title,
feedbackStatus: takeFeedbackStatus(),
feedbackText: takeMessage(),
asterisk: takeAsterisk(),
Expand Down

0 comments on commit 4c36ed2

Please sign in to comment.