#
luxiaotao1123
2024-03-18 54e1b7546c96212ee8bb5e7e262cf59a8fca63b6
#
3个文件已修改
33 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/showJson.jsx 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/index.css 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -28,6 +28,7 @@
    return (
        <>
            <Card
                className='drawer-card'
                hoverable
                bordered={false}
                type='inner'
@@ -49,7 +50,7 @@
                    }
                }}
                style={{
                    height: '100%',
                    height: '100%'
                }}
            >
                {contentList[activeTabKey]}
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>
        </>
    )
zy-asrs-flow/src/pages/map/index.css
@@ -35,4 +35,9 @@
.map-header-select .ant-select-selector .ant-select-selection-search .ant-select-selection-search-input {
    font-weight: bolder !important;
}
.drawer-card .ant-card-body {
    height: 95%;
    padding: 20px;
}