import { ArrayItems } from '@formily/antd'; import { Select } from 'antd'; interface Props { name?: string; value: string; onChange: () => void; } const GroupNameControl = (props: Props) => { const index = ArrayItems.useIndex!(); return ( <> {index === 0 ? (
{props?.name || '第一组'}
) : (