0
如何擴展admin中的ReferenceInput和AutocompleteInput字段的大小?管理靜止:如何擴展ReferenceInput和AutocompleteInput輸入字段的大小?
<Create title="My title" {...props}>
<SimpleForm>
<TextInput label= "field 1" source="f1" validate={[ required, minLength(3), maxLength(20) ]} />
<ReferenceInput label="field 2" source="f2" validate={[ required ]} reference="reference1" allowEmpty>
<AutocompleteInput optionText="f3" />
</ReferenceInput>
</SimpleForm>
</Create>
Image: Default field size in red. Desired size in blue
在此先感謝