return (
<Create mutationOptions={{ onSuccess }}
>
<SimpleForm>
<ReferenceInput source="style_id" reference="t_prod_style" >
<SelectInput disabled defaultValue={StyleContext.styleId}></SelectInput>
</ReferenceInput>
<TextInput source="count" />
<TextInput source="description" />
<ReferenceInput filter={{ mat_type: StyleContext.typeId }} source="mat_id" reference="t_base_materiel" >
<SelectInput></SelectInput>
</ReferenceInput>
</SimpleForm>
</Create>
)
运行结果