#
luxiaotao1123
2024-03-18 b307185610fe2506fea0f57778da020b7e93dd9d
#
1个文件已修改
21 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;