Вам необходимо отобразить какой-то компонент пользовательского интерфейса внутри вашего <Form.Item>
.
Я полагаю, вы хотите отобразить <Input>
, поскольку у вас есть имя пользователя. Вот что может быть возможно с вашим кодом:
<Form.Item disabled style={{ padding: '0px 20px' }}>
{getFieldDecorator('username', {
initialValue: this.state.userInfo.username,
validate: [
{
trigger: ['onChange', 'onBlur'],
rules: [
{
required: true,
message: t('pleaseInput.username'),
}
],
},
],
})(
<Input
// This is where you want to disable your UI control
disabled={true}
placeholder="Username"
/>
)}
</Form.Item>