From d835d1b51f832889929cdf69010034a30ef44d02 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 17 十月 2024 13:57:29 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/drawer/showJson.jsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
index 5463733..c103412 100644
--- a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
@@ -10,7 +10,7 @@
return {
jsonBox: {
height: '100%',
- border: dark ? '3px solid #747d8c' : '3px solid #535c68',
+ border: dark ? '2px solid #747d8c' : '2px solid #535c68',
borderRadius: '5px',
padding: '5px',
cursor: 'text'
@@ -36,13 +36,13 @@
const ShowJSON = (props) => {
const { styles } = useStyles();
- const { curSprite } = props;
+ const { data } = props;
- const formattedJSON = JSON.stringify(curSprite.data, null, 2);
+ const formattedJSON = JSON.stringify(data, null, props.jsonType ?? 2);
return (
<>
- <div className={styles.jsonBox}>
+ <div className={styles.jsonBox} style={{ height: props.height }}>
<textarea
readOnly
className={styles.jsonContent}
--
Gitblit v1.9.1