From 6bee3457639f04f3a3576c1a32dcb7d5632cd3d4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 11 十月 2024 15:52:49 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/settings/index.jsx | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/zy-acs-flow/src/map/settings/index.jsx b/zy-acs-flow/src/map/settings/index.jsx
index a8c78a4..56096a3 100644
--- a/zy-acs-flow/src/map/settings/index.jsx
+++ b/zy-acs-flow/src/map/settings/index.jsx
@@ -4,9 +4,10 @@
import CloseIcon from '@mui/icons-material/Close';
import { PAGE_DRAWER_WIDTH } from '@/config/setting';
import MapSettings from './MapSettings';
+import ConfigSettings from './ConfigSettings';
const Settings = (props) => {
- const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH, title } = props;
+ const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH, title, setSpriteSettings } = props;
const theme = useTheme();
const themeMode = theme.palette.mode;
const translate = useTranslate();
@@ -41,7 +42,7 @@
<Stack direction="row" p={2}>
<Typography variant="h6" flex="1">
{sprite
- ? 'No.' + sprite?.data?.uuid + ' - ' + translate(`page.map.devices.${sprite?.data?.type?.toLowerCase()}`)
+ ? translate(`page.map.devices.${sprite?.data?.type?.toLowerCase()}`) + ' - ' + sprite?.data?.uuid
: translate('page.map.settings.title')}
</Typography>
<IconButton onClick={handleClose} size="small">
@@ -77,16 +78,16 @@
{activeTab === 0 && (
<MapSettings
sprite={sprite}
+ setSpriteSettings={setSpriteSettings}
onSubmit={() => {
- alert('MapSettings')
}}
+ width={width}
/>
)}
{activeTab === 1 && (
<ConfigSettings
sprite={sprite}
onSubmit={() => {
- alert('ConfigSettings')
}}
/>
)}
@@ -98,13 +99,6 @@
)}
</Drawer>
</>
- )
-}
-
-const ConfigSettings = () => {
-
- return (
- <h1>ConfigSettings</h1>
)
}
--
Gitblit v1.9.1