【发布时间】:2020-12-03 08:06:52
【问题描述】:
我有下面的选项卡式表单,无论我设置什么内容(网格、框等),父表单的宽度始终为 256 像素
html 元素是 MuiContainer-root RaFormInput-input-61 但它始终是具有此限制的 RaFormInput。 我在这里有什么明显的遗漏吗?
<Edit {...props} title={<ClientTitle />}>
<TabbedForm>
<FormTab label="details">
<Container maxWidth={false}>
<Grid container className={classes.root} spacing={2}>
<Grid container direction="row">
<Typography variant="h6" gutterBottom>
{translate('resources.clients.fieldGroups.identity')}
</Typography>
</Grid>
<Grid container direction="row" justify="flex-start" alignItems="center" spacing={2}>
<Grid item>
<TextInput source="firstname" resource="clients" validate={requiredValidate} fullWidth />
</Grid>
<Grid item>
<TextInput source="lastname" resource="clients" validate={requiredValidate} fullWidth />
</Grid>
</Grid>
</Grid>
</Container>
</FormTab>
<FormTab label="referrals">
<AddNewReferralButton record={props.record} />
<ReferenceManyField reference="referrals" target="clientid" addLabel={false}>
<Datagrid>
<TextField label="Name" source="name" />
<TextField label="Status" source="status" />
<EditButton />
</Datagrid>
</ReferenceManyField>
</FormTab>
</TabbedForm>
</Edit>
【问题讨论】:
标签: reactjs material-ui react-admin react-final-form