| | |
| | | <Box component="form" onSubmit={handleSubmit(onFormSubmit)} noValidate sx={{ mt: 2 }}> |
| | | <Grid container spacing={2}> |
| | | {/* 位置 */} |
| | | <Grid item xs={12}> |
| | | <Grid item xs={2}> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.position')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="x" |
| | | control={control} |
| | |
| | | )} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="y" |
| | | control={control} |
| | |
| | | </Grid> |
| | | |
| | | {/* 缩放 */} |
| | | <Grid item xs={12}> |
| | | <Grid item xs={2}> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.scale')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="scaleX" |
| | | control={control} |
| | |
| | | )} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="scaleY" |
| | | control={control} |
| | |
| | | </Grid> |
| | | |
| | | {/* 旋转 */} |
| | | <Grid item xs={12}> |
| | | <Grid item xs={2}> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.rotation')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={12}> |
| | | <Grid item xs={10}> |
| | | <Controller |
| | | name="rotation" |
| | | control={control} |
| | |
| | | </Grid> |
| | | |
| | | {/* 复制 */} |
| | | <Grid item xs={12}> |
| | | <Grid item xs={2}> |
| | | <Typography variant="h6">{translate('page.map.settings.map.copy.title')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="copyDirection" |
| | | control={control} |
| | |
| | | )} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Grid item xs={5}> |
| | | <Controller |
| | | name="copyCount" |
| | | control={control} |