高度
Showing
1 changed file
with
3 additions
and
21 deletions
| ... | @@ -141,7 +141,7 @@ export default { | ... | @@ -141,7 +141,7 @@ export default { |
| 141 | console.log(container) | 141 | console.log(container) |
| 142 | const graph = new G6.Graph({ | 142 | const graph = new G6.Graph({ |
| 143 | container: 'mountNode', | 143 | container: 'mountNode', |
| 144 | width:1000, | 144 | width:eWidth, |
| 145 | height:1000, | 145 | height:1000, |
| 146 | layout: { | 146 | layout: { |
| 147 | type: 'dagre', | 147 | type: 'dagre', |
| ... | @@ -190,25 +190,6 @@ export default { | ... | @@ -190,25 +190,6 @@ export default { |
| 190 | ], | 190 | ], |
| 191 | }, | 191 | }, |
| 192 | 192 | ||
| 193 | // modes: { | ||
| 194 | // default: [ | ||
| 195 | // 'drag-canvas', | ||
| 196 | // 'zoom-canvas', | ||
| 197 | // 'click-select', | ||
| 198 | // { | ||
| 199 | // type: 'tooltip', | ||
| 200 | // formatText(model) { | ||
| 201 | // const cfg = model.conf; | ||
| 202 | // const text = []; | ||
| 203 | // cfg.forEach((row) => { | ||
| 204 | // text.push(row.label + ':' + row.value + '<br>'); | ||
| 205 | // }); | ||
| 206 | // return text.join('\n'); | ||
| 207 | // }, | ||
| 208 | // offset: -30, | ||
| 209 | // }, | ||
| 210 | // ], | ||
| 211 | // }, | ||
| 212 | fitView: true, | 193 | fitView: true, |
| 213 | }); | 194 | }); |
| 214 | 195 | ||
| ... | @@ -295,7 +276,8 @@ export default { | ... | @@ -295,7 +276,8 @@ export default { |
| 295 | } | 276 | } |
| 296 | 277 | ||
| 297 | #mountNode{ | 278 | #mountNode{ |
| 298 | height: calc(100% - 68px); | 279 | /*height: calc(100% - 68px);*/ |
| 280 | margin-top: -60px; | ||
| 299 | } | 281 | } |
| 300 | 282 | ||
| 301 | .slot{ | 283 | .slot{ | ... | ... |
-
Please register or sign in to post a comment