From cbd9fde3a2f8d4f5c45bea1a5215ad843e8dabc6 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 10 十月 2024 14:32:45 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/settings/index.jsx | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/zy-acs-flow/src/map/settings/index.jsx b/zy-acs-flow/src/map/settings/index.jsx index d4aa0ec..22a7176 100644 --- a/zy-acs-flow/src/map/settings/index.jsx +++ b/zy-acs-flow/src/map/settings/index.jsx @@ -3,6 +3,7 @@ import { Drawer, Box, Typography, Tabs, Tab, IconButton, Stack, useTheme, Card, CardContent, CardHeader, Divider } from '@mui/material'; import CloseIcon from '@mui/icons-material/Close'; import { PAGE_DRAWER_WIDTH } from '@/config/setting'; +import MapSettings from './MapSettings'; const Settings = (props) => { const { open, onCancel, sprite, width = PAGE_DRAWER_WIDTH, title } = props; @@ -70,10 +71,20 @@ <Box p={3}> {activeTab === 0 && ( - <MapSettings sprite={sprite} onSubmit={() => { /* 琛ㄥ崟鎻愪氦閫昏緫 */ }} /> + <MapSettings + sprite={sprite} + onSubmit={() => { + alert('MapSettings') + }} + /> )} {activeTab === 1 && ( - <ConfigSettings sprite={sprite} onSubmit={() => { /* 琛ㄥ崟鎻愪氦閫昏緫 */ }} /> + <ConfigSettings + sprite={sprite} + onSubmit={() => { + alert('ConfigSettings') + }} + /> )} </Box> </CardContent> @@ -83,13 +94,6 @@ )} </Drawer> </> - ) -} - -const MapSettings = () => { - - return ( - <h1>MapSettings</h1> ) } -- Gitblit v1.9.1