--- order: 4.11 title: zh-CN: 动态增减嵌套纯字段 en-US: Dynamic Form nest pure Items debug: true --- ## zh-CN 嵌套 `noStyle` 字段的动态表单示例。 ## en-US Nest with `noStyle` field dynamic form. ```tsx import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons'; import { Button, Form, Input, Space } from 'antd'; import React from 'react'; const App: React.FC = () => { const onFinish = (values: any) => { console.log('Received values of form:', values); }; return (
{(fields, { add, remove }) => ( <> {fields.map(field => ( { remove(field.name); }} /> ))} )}
); }; export default App; ```