From 1450f60d96cc74eddc36630ffe438ba31da7c4cc Mon Sep 17 00:00:00 2001 From: coder_curry <59048270+learnsomesome@users.noreply.github.com> Date: Mon, 20 Mar 2023 14:28:36 +0800 Subject: [PATCH] feat(antd): support ReactNode of ArrayCollapse header --- packages/antd/src/array-collapse/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/antd/src/array-collapse/index.tsx b/packages/antd/src/array-collapse/index.tsx index e2c28caa39a..a8547df62d9 100644 --- a/packages/antd/src/array-collapse/index.tsx +++ b/packages/antd/src/array-collapse/index.tsx @@ -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',