style:图形定位
Showing
2 changed files
with
6 additions
and
6 deletions
| ... | @@ -11,6 +11,7 @@ | ... | @@ -11,6 +11,7 @@ |
| 11 | "@antv/g2": "^4.2.8", | 11 | "@antv/g2": "^4.2.8", |
| 12 | "@babel/polyfill": "^7.12.1", | 12 | "@babel/polyfill": "^7.12.1", |
| 13 | "@riophae/vue-treeselect": "^0.4.0", | 13 | "@riophae/vue-treeselect": "^0.4.0", |
| 14 | "@union/gis-sdk": "^1.1.0", | ||
| 14 | "axios": "^0.21.1", | 15 | "axios": "^0.21.1", |
| 15 | "bpmn-js": "^7.4.0", | 16 | "bpmn-js": "^7.4.0", |
| 16 | "bpmn-js-properties-panel": "^0.37.2", | 17 | "bpmn-js-properties-panel": "^0.37.2", |
| ... | @@ -30,8 +31,7 @@ | ... | @@ -30,8 +31,7 @@ |
| 30 | "vue-router": "3.0.2", | 31 | "vue-router": "3.0.2", |
| 31 | "vue-seamless-scroll": "^1.1.23", | 32 | "vue-seamless-scroll": "^1.1.23", |
| 32 | "vuex": "3.1.0", | 33 | "vuex": "3.1.0", |
| 33 | "x2js": "^3.4.4", | 34 | "x2js": "^3.4.4" |
| 34 | "@union/gis-sdk": "1.1.0" | ||
| 35 | }, | 35 | }, |
| 36 | "devDependencies": { | 36 | "devDependencies": { |
| 37 | "@vue/cli-plugin-babel": "4.4.4", | 37 | "@vue/cli-plugin-babel": "4.4.4", | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="gis"> | 2 | <div class="gis"> |
| 3 | <div class="main-container" ref="main"> | 3 | <div class="gis-container" ref="main"> |
| 4 | <div class="flex-transverse" ref="transverse"> | 4 | <div class="flex-transverse" ref="transverse"> |
| 5 | <div id="arcgisMap0" class="flex-single"></div> | 5 | <div id="arcgisMap0" class="flex-single"></div> |
| 6 | </div> | 6 | </div> |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | mounted () { | 46 | mounted () { |
| 47 | let doc = document.querySelector('.gis'); | 47 | let doc = document.querySelector('.gis'); |
| 48 | this.$nextTick(() => { | 48 | this.$nextTick(() => { |
| 49 | Object.assign(doc.style, { width: doc.clientWidth + 'px', height: '700px' }); | 49 | Object.assign(doc.style, { width: + doc.clientWidth + 'px', height: '700px' }); |
| 50 | }) | 50 | }) |
| 51 | }, | 51 | }, |
| 52 | created () { | 52 | created () { |
| ... | @@ -89,8 +89,8 @@ | ... | @@ -89,8 +89,8 @@ |
| 89 | 89 | ||
| 90 | </script> | 90 | </script> |
| 91 | 91 | ||
| 92 | <style> | 92 | <style scoped lang="scss"> |
| 93 | .main-container { | 93 | .gis-container { |
| 94 | display: -webkit-flex; | 94 | display: -webkit-flex; |
| 95 | display: flex; | 95 | display: flex; |
| 96 | -webkit-flex-wrap: wrap; | 96 | -webkit-flex-wrap: wrap; | ... | ... |
-
Please register or sign in to post a comment