#
luxiaotao1123
2024-03-18 54e1b7546c96212ee8bb5e7e262cf59a8fca63b6
zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx
@@ -6,11 +6,23 @@
import Http from '@/utils/http';
const useStyles = createStyles(({ token, css }) => {
    let dark = token.colorBgBase === '#000';
    return {
        jsonBox: {
            height: '100%',
            border: dark ? '3px solid #747d8c' : '3px solid #535c68',
            borderRadius: '5px',
            padding: '5px',
            cursor: 'text'
        },
        jsonContent: {
            maxHeight: '100%'
        }
    }
})
const ShowJSON = (props) => {
    const { styles } = useStyles();
    const { curSprite } = props;
    // 格式化 JSON 字符串
@@ -3340,10 +3352,11 @@
    return (
        <>
            <Card style={{ height: '100%' }}>
                <pre>{formattedJSON}</pre>
            </Card>
            <div className={styles.jsonBox}>
                <pre className={styles.jsonContent}>
                    {formattedJSON}
                </pre>
            </div>
        </>
    )