From b307185610fe2506fea0f57778da020b7e93dd9d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 18 三月 2024 16:34:05 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx
index 42132f9..d722b73 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx
@@ -16,7 +16,15 @@
             cursor: 'text'
         },
         jsonContent: {
-            maxHeight: '100%'
+            height: '100%',
+            overflowY: 'auto',
+            width: '100%',
+            border: 'none',
+            backgroundColor: 'transparent',
+            resize: 'none',
+            '&:focus': {
+                outline: 'none'
+            }
         }
     }
 })
@@ -25,7 +33,6 @@
     const { styles } = useStyles();
     const { curSprite } = props;
 
-    // 鏍煎紡鍖� JSON 瀛楃涓�
     const formattedJSON = JSON.stringify([
         {
             "links": [
@@ -3353,14 +3360,14 @@
     return (
         <>
             <div className={styles.jsonBox}>
-                <pre className={styles.jsonContent}>
-                    {formattedJSON}
-                </pre>
+                <textarea
+                    readOnly
+                    className={styles.jsonContent}
+                    value={formattedJSON}
+                />
             </div>
         </>
     )
-
 }
-
 
 export default ShowJSON;
\ No newline at end of file

--
Gitblit v1.9.1