| | |
| | | <Grid container spacing={2}> |
| | | {/* 位置 */} |
| | | <Grid item xs={12}> |
| | | <Typography variant="h6">{translate('map.settings.position')}</Typography> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.position')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Controller |
| | |
| | | |
| | | {/* 缩放 */} |
| | | <Grid item xs={12}> |
| | | <Typography variant="h6">{translate('map.settings.scale')}</Typography> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.scale')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Controller |
| | |
| | | |
| | | {/* 旋转 */} |
| | | <Grid item xs={12}> |
| | | <Typography variant="h6">{translate('map.settings.rotation')}</Typography> |
| | | <Typography variant="h6">{translate('page.map.settings.map.base.rotation')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={12}> |
| | | <Controller |
| | |
| | | |
| | | {/* 复制 */} |
| | | <Grid item xs={12}> |
| | | <Typography variant="h6">{translate('map.settings.copy')}</Typography> |
| | | <Typography variant="h6">{translate('page.map.settings.map.copy.title')}</Typography> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <Controller |
| | |
| | | control={control} |
| | | render={({ field }) => ( |
| | | <FormControl fullWidth> |
| | | <InputLabel>{translate('map.settings.copyDirection')}</InputLabel> |
| | | <Select {...field} label={translate('map.settings.copyDirection')}> |
| | | <MenuItem value="left">{translate('map.settings.left')}</MenuItem> |
| | | <MenuItem value="right">{translate('map.settings.right')}</MenuItem> |
| | | <MenuItem value="up">{translate('map.settings.up')}</MenuItem> |
| | | <MenuItem value="down">{translate('map.settings.down')}</MenuItem> |
| | | <InputLabel>{translate('page.map.settings.map.copy.direction')}</InputLabel> |
| | | <Select {...field} label={translate('page.map.settings.map.copy.direction')}> |
| | | <MenuItem value="left">{translate('page.map.settings.map.copy.left')}</MenuItem> |
| | | <MenuItem value="right">{translate('page.map.settings.map.copy.right')}</MenuItem> |
| | | <MenuItem value="up">{translate('page.map.settings.map.copy.up')}</MenuItem> |
| | | <MenuItem value="down">{translate('page.map.settings.map.copy.down')}</MenuItem> |
| | | </Select> |
| | | </FormControl> |
| | | )} |
| | |
| | | render={({ field }) => ( |
| | | <TextField |
| | | {...field} |
| | | label={translate('map.settings.copyCount')} |
| | | label={translate('page.map.settings.map.copy.count')} |
| | | type="number" |
| | | fullWidth |
| | | inputProps={{ min: 1 }} |
| | |
| | | <Grid item xs={12}> |
| | | <Stack direction="row" spacing={2}> |
| | | <Button type="submit" variant="contained" color="primary"> |
| | | {translate('common.submit')} |
| | | {translate('ra.action.confirm')} |
| | | </Button> |
| | | <Button variant="outlined" color="secondary" onClick={() => reset()}> |
| | | {translate('common.reset')} |
| | | {translate('common.action.reset')} |
| | | </Button> |
| | | </Stack> |
| | | </Grid> |