diff --git a/packages/app/src/components/form.fields/shared.tsx b/packages/app/src/components/form.fields/shared.tsx index a7b32903b..a11808146 100644 --- a/packages/app/src/components/form.fields/shared.tsx +++ b/packages/app/src/components/form.fields/shared.tsx @@ -46,7 +46,23 @@ const createEnum = (enums: any) => { export const Select: React.FC = styled((props: SelectProps) => { const { dataSource = [], onChange, ...others } = props const children = createEnum(dataSource).map(item => { - const { label, value, ...others } = item + const { label, value, children = [], ...others } = item + if (children.length) { + return ( + + {children.map(({value, label, ...others}: any) => ( + + {label} + + ))} + + ); + } return (