Skip to content

Commit

Permalink
feat(antd): support ReactNode of ArrayCollapse header
Browse files Browse the repository at this point in the history
  • Loading branch information
learnsomesome authored Mar 20, 2023
1 parent 3ba4820 commit 1450f60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/antd/src/array-collapse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ export const ArrayCollapse: ComposedArrayCollapse = observer(
.get('componentProps')
const props: CollapsePanelProps = items['x-component-props']
const header = () => {
const header = `${
panelProps?.header || props.header || field.title
}`
const header = panelProps?.header || props.header || field.title
const path = field.address.concat(index)
const errors = field.form.queryFeedbacks({
type: 'error',
Expand Down

0 comments on commit 1450f60

Please sign in to comment.