Commit ac87d66b authored by 田翔's avatar 田翔

fix: 恢复缩略图

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