#
luxiaotao1123
2024-10-14 eff90adaab2d1ca8b8447e6afb881e800d829a3e
zy-acs-flow/src/map/JsonShow.jsx
@@ -1,5 +1,5 @@
import React, { useState, useRef, useEffect } from 'react';
import { Box, Typography, Paper } from '@mui/material';
import { Box, Typography, Paper, useTheme } from '@mui/material';
const parseJson = (jsonStr) => {
    let json = '';
@@ -44,6 +44,9 @@
};
const JsonShow = ({ data, height = 500 }) => {
    const theme = useTheme();
    const themeMode = theme.palette.mode;
    let json = parseJson(data);
    return (
@@ -53,7 +56,7 @@
                padding: 2,
                maxHeight: height,
                overflow: 'auto',
                backgroundColor: '#f5f5f5',
                backgroundColor: theme.palette.background.paper,
                borderRadius: 2,
            }}
        >