import Field from '../../field'; import Form from '..'; import Input from '../../input'; import Radio from '../../radio'; import React from 'react'; import ReactDOM from 'react-dom'; import Switch from '../../switch'; function handleSubmit(v) { console.log(v); } const formItemLayout = { labelCol: { span: 4 }, wrapperCol: { span: 14 }, }; const App = () => { const field = Field.useField({ autoUnmount: false, values: { inline: false, labelAlign: 'left' }, }); const inline: boolean = field.getValue('inline'); const labelAlign = inline ? 'left' : field.getValue('labelAlign'); const layout = inline ? {} : formItemLayout; return (