Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
1 changed file
with
10 additions
and
3 deletions
... | @@ -53,8 +53,12 @@ export default { | ... | @@ -53,8 +53,12 @@ export default { |
53 | methods: { | 53 | methods: { |
54 | initG6() { | 54 | initG6() { |
55 | const data = this.data; | 55 | const data = this.data; |
56 | const eWidth = this.$refs.containerWidth.clientWidth | 56 | const eWidth = this.$refs.containerWidth.clientWidth; |
57 | const eHeight = this.$refs.containerWidth.clientHeight; | ||
58 | |||
57 | console.log(eWidth+":width") | 59 | console.log(eWidth+":width") |
60 | console.log(eHeight+":height") | ||
61 | |||
58 | G6.registerNode( | 62 | G6.registerNode( |
59 | 'sql', | 63 | 'sql', |
60 | { | 64 | { |
... | @@ -128,7 +132,7 @@ export default { | ... | @@ -128,7 +132,7 @@ export default { |
128 | const graph = new G6.Graph({ | 132 | const graph = new G6.Graph({ |
129 | container: 'mountNode', | 133 | container: 'mountNode', |
130 | width:eWidth, | 134 | width:eWidth, |
131 | height:1000, | 135 | height:eHeight, |
132 | layout: { | 136 | layout: { |
133 | type: 'dagre', | 137 | type: 'dagre', |
134 | nodesepFunc: (d) => { | 138 | nodesepFunc: (d) => { |
... | @@ -222,8 +226,11 @@ export default { | ... | @@ -222,8 +226,11 @@ export default { |
222 | 226 | ||
223 | #mountNode{ | 227 | #mountNode{ |
224 | /*height: calc(100% - 68px);*/ | 228 | /*height: calc(100% - 68px);*/ |
225 | margin-top: -60px; | 229 | margin-top: 20px; |
226 | width: 60%; | 230 | width: 60%; |
231 | height: 80%; | ||
232 | |||
233 | position:absolute; | ||
227 | float: left; | 234 | float: left; |
228 | } | 235 | } |
229 | 236 | ... | ... |
-
Please register or sign in to post a comment