Commit ac87d66b authored by 田翔's avatar 田翔

fix: 恢复缩略图

parent b1ce0f4d
{
"name": "panda-xform",
"version": "4.8.1",
"description": "4.8.1 尝试修复地图",
"version": "4.8.5",
"description": "4.8.5 恢复缩略图",
"keywords": [
"panda-xform"
],
......@@ -76,7 +76,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"prompt": "^1.0.0",
"react-dom": "^17.0.1",
"react-dom": "17.0.2",
"replace-in-file": "^6.2.0",
"rimraf": "^3.0.0",
"shelljs": "^0.8.4",
......
......@@ -176,7 +176,6 @@ const CoordView = (props) => {
cancelText={'取消'}
okText={'确定'}
bodyStyle={{ height: 600, overflowY: 'auto', position: 'relative' }}
getContainer={true}
destroyOnClose
>
<ArcGISSceneMap
......
......@@ -196,18 +196,18 @@ const Coordinate = (props) => {
return cityName;
}
// if (screenShot && disabled) {
// return (
// <div style={{ width: '100%', height: '150px' }}>
// <ArcGISSceneMap
// getMapInfo={getMapInfo}
// widgets={[]}
// token={token}
// client={token ? client : 'sandbox'}
// />
// </div>
// )
// }
if (screenShot && disabled) {
return (
<div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap
getMapInfo={getMapInfo}
widgets={[]}
token={token}
client={token ? client : 'sandbox'}
/>
</div>
)
}
return (
<div>
......
......@@ -177,18 +177,18 @@ const Device = (props) => {
}
}, [presetValue])
// if (screenShot && disabled) {
// return (
// <div style={{ width: '100%', height: '120px' }}>
// <ArcGISSceneMap
// getMapInfo={getMapInfo}
// widgets={[]}
// token={token}
// client={token ? client : 'sandbox'}
// />
// </div>
// )
// }
if (screenShot && disabled) {
return (
<div style={{ width: '100%', height: '120px' }}>
<ArcGISSceneMap
getMapInfo={getMapInfo}
widgets={[]}
token={token}
client={token ? client : 'sandbox'}
/>
</div>
)
}
return (
<div>
......@@ -222,7 +222,6 @@ const Device = (props) => {
cancelText={'取消'}
okText={'确定'}
bodyStyle={{ height: 600, overflowY: 'auto', position: 'relative' }}
getContainer={true}
{...disabled ? { footer: null } : {}}
>
<ArcGISSceneMap
......
......@@ -105,18 +105,18 @@ const DrawArea = (props) => {
}
}, [presetValue])
// if (screenShot && disabled) {
// return (
// <div style={{ width: '100%', height: '150px' }}>
// <ArcGISSceneMap
// getMapInfo={getMapInfo}
// widgets={[]}
// token={token}
// client={token ? client : 'sandbox'}
// />
// </div>
// )
// }
if (screenShot && disabled) {
return (
<div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap
getMapInfo={getMapInfo}
widgets={[]}
token={token}
client={token ? client : 'sandbox'}
/>
</div>
)
}
return (
<div>
......
......@@ -104,18 +104,18 @@ const DrawPath = (props) => {
}
}, [presetValue])
// if (screenShot && disabled) {
// return (
// <div style={{ width: '100%', height: '150px' }}>
// <ArcGISSceneMap
// getMapInfo={getMapInfo}
// widgets={[]}
// token={token}
// client={token ? client : 'sandbox'}
// />
// </div>
// )
// }
if (screenShot && disabled) {
return (
<div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap
getMapInfo={getMapInfo}
widgets={[]}
token={token}
client={token ? client : 'sandbox'}
/>
</div>
)
}
return (
<div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment