| | |
| | | Divider, |
| | | } from '@mui/material'; |
| | | import MuiInput from '@mui/material/Input'; |
| | | import { styled } from '@mui/material/styles'; |
| | | import { useTranslate } from 'react-admin'; |
| | | |
| | | const MapSettings = (props) => { |
| | |
| | | } |
| | | }; |
| | | |
| | | // 处理表单提交 |
| | | const onFormSubmit = (data) => { |
| | | updateSprite(data); |
| | | if (onSubmit) { |
| | | onSubmit(data); |
| | | } |
| | | }; |
| | | |
| | | // 旋转滑块的刻度 |
| | | const rotationMarks = [ |
| | | { value: 0, label: '0°' }, |
| | | { value: 90, label: '90°' }, |
| | | { value: 180, label: '180°' }, |
| | | { value: 270, label: '270°' }, |
| | | { value: 360, label: '360°' }, |
| | | ]; |
| | | |
| | | return ( |
| | | <Box component="form" onSubmit={handleSubmit(onFormSubmit)} noValidate sx={{ mt: 0 }}> |