| | |
| | | before: 'Time Before' |
| | | }, |
| | | action: { |
| | | reset: 'Reset', |
| | | expand: 'Expand', |
| | | expandAll: 'Expand All', |
| | | collapse: 'Collapse', |
| | |
| | | title: 'Settings', |
| | | map: { |
| | | title: 'Map Parameters', |
| | | base: { |
| | | position: 'Position', |
| | | scale: 'Scale', |
| | | rotation: 'Rotation', |
| | | }, |
| | | copy: { |
| | | title: 'Copy', |
| | | direction: 'Direction', |
| | | left: 'Left', |
| | | right: 'Right', |
| | | up: 'Up', |
| | | down: 'Down', |
| | | count: 'Count', |
| | | }, |
| | | }, |
| | | config: { |
| | | title: 'Config Parameters', |
| | |
| | | before: '结束时间' |
| | | }, |
| | | action: { |
| | | reset: '重置', |
| | | expand: '展开', |
| | | expandAll: '全部展开', |
| | | collapse: '折叠', |
| | |
| | | title: '设置', |
| | | map: { |
| | | title: '地图参数', |
| | | base: { |
| | | position: '定位', |
| | | scale: '缩放', |
| | | rotation: '旋转', |
| | | }, |
| | | copy: { |
| | | title: '复制', |
| | | direction: '方向', |
| | | left: '左', |
| | | right: '右', |
| | | up: '上', |
| | | down: '下', |
| | | count: '数量', |
| | | }, |
| | | }, |
| | | config: { |
| | | title: '系统参数', |
| | |
| | | <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> |