|  |  | 
 |  |  |     useRedirect, | 
 |  |  |     useEditContext, | 
 |  |  |     EditBase, | 
 |  |  |     useGetOne, | 
 |  |  | } from 'react-admin'; | 
 |  |  | import { useWatch, useFormContext } from "react-hook-form"; | 
 |  |  | import { Stack, Grid, Box, Typography, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'; | 
 |  |  | 
 |  |  |             setOpen(false); | 
 |  |  |         } | 
 |  |  |     }; | 
 |  |  |     const { data, isPending, } = useGetOne('dictData', { id: record?.id }); | 
 |  |  |     if (data == null || data == undefined) { return } | 
 |  |  |     return ( | 
 |  |  |         <> | 
 |  |  |             <Edit | 
 |  |  | 
 |  |  |                                         /> | 
 |  |  |                                     </Stack> | 
 |  |  |                                     <Stack direction='row' gap={2}> | 
 |  |  |                                         <TextInput | 
 |  |  |                                             label="table.field.dictData.group" | 
 |  |  |                                             source="group" | 
 |  |  |                                             validate={required()} | 
 |  |  |                                             parse={v => v} | 
 |  |  |                                         /> | 
 |  |  |                                     </Stack> | 
 |  |  |                                     <Stack direction='row' gap={2}> | 
 |  |  |                                         <NumberInput | 
 |  |  |                                             label="table.field.dictData.sort" | 
 |  |  |                                             source="sort" |