<Grid item xs={3} md={3} sm={3}>
<ReferenceInput
filter={{ mat_type: solutionname }} source='mat_id'
reference='t_base_materiel'>
<AutocompleteInput
filterToQuery={filterToQuery} variant='outlined' label="物料" sx={{ mr: 1 }} />
</ReferenceInput>
</Grid>
const filterToQuery = (searchText:any) => ({ name: `%${searchText}%` });
运行结果