import { Form, Input, InputNumber, Space, ColorPicker, Flex } from 'antd'; import { createStyles } from 'antd-style'; interface FormItemProps { name: string | string[]; label: string; isList?: boolean; children: any; normalize?: (value: any) => any; } const useStyles = createStyles(({ token, css }) => ({ label: { marginBottom: 6, fontSize: 12, color: token.colorTextSecondary, }, })); export default function FormItem(props: FormItemProps) { const { styles } = useStyles(); const node = props.isList ?