From a673254db9bdc9e540b0b67b4ef63c0deb64916a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 15 十月 2024 13:59:23 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/settings/index.jsx | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/zy-acs-flow/src/map/settings/index.jsx b/zy-acs-flow/src/map/settings/index.jsx
index 7e61e10..7223bc3 100644
--- a/zy-acs-flow/src/map/settings/index.jsx
+++ b/zy-acs-flow/src/map/settings/index.jsx
@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react';
import { useTranslate } from "react-admin";
-import { Drawer, Box, Typography, Tabs, Tab, IconButton, Stack, useTheme, Card, CardContent, CardHeader, Divider } from '@mui/material';
+import { Drawer, Box, Typography, Tabs, Tab, IconButton, Stack, useTheme, Card, CardContent, Divider } from '@mui/material';
import CloseIcon from '@mui/icons-material/Close';
import { PAGE_DRAWER_WIDTH } from '@/config/setting';
import MapSettings from './MapSettings';
@@ -12,6 +12,8 @@
const themeMode = theme.palette.mode;
const translate = useTranslate();
+ const [lastCopiedSprites, setLastCopiedSprites] = useState([]);
+
const handleClose = () => {
onCancel();
}
@@ -21,11 +23,6 @@
const handleTabChange = (event, newValue) => {
setActiveTab(newValue);
};
-
- useEffect(() => {
- console.log(sprite);
-
- }, [sprite])
return (
<>
@@ -53,9 +50,13 @@
<Box p={3}>
<Card sx={{
transition: '0.3s',
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.1)',
+ boxShadow: themeMode === 'light'
+ ? '0px 2px 8px rgba(0, 0, 0, 0.1)'
+ : '0px 2px 2px rgba(255, 255, 255, 0.1)',
'&:hover': {
- boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.2)',
+ boxShadow: themeMode === 'light'
+ ? '0px 4px 16px rgba(0, 0, 0, 0.2)'
+ : '0px 4px 8px rgba(255, 255, 255, 0.2)',
},
borderRadius: '8px',
}}>
@@ -81,6 +82,9 @@
setSpriteSettings={setSpriteSettings}
onSubmit={() => {
}}
+ width={width}
+ lastCopiedSprites={lastCopiedSprites}
+ setLastCopiedSprites={setLastCopiedSprites}
/>
)}
{activeTab === 1 && (
--
Gitblit v1.9.1