Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
772628a8
authored
2021-01-13 15:36:03 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/renchao/CadastralSystem
2 parents
8dfcc460
a4706e73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/components/lshs/index.vue
src/components/lshs/index.vue
View file @
772628a
...
...
@@ -53,8 +53,12 @@ export default {
methods
:
{
initG6
()
{
const
data
=
this
.
data
;
const
eWidth
=
this
.
$refs
.
containerWidth
.
clientWidth
const
eWidth
=
this
.
$refs
.
containerWidth
.
clientWidth
;
const
eHeight
=
this
.
$refs
.
containerWidth
.
clientHeight
;
console
.
log
(
eWidth
+
":width"
)
console
.
log
(
eHeight
+
":height"
)
G6
.
registerNode
(
'sql'
,
{
...
...
@@ -128,7 +132,7 @@ export default {
const
graph
=
new
G6
.
Graph
({
container
:
'mountNode'
,
width
:
eWidth
,
height
:
1000
,
height
:
eHeight
,
layout
:
{
type
:
'dagre'
,
nodesepFunc
:
(
d
)
=>
{
...
...
@@ -222,8 +226,11 @@ export default {
#mountNode
{
/*height: calc(100% - 68px);*/
margin-top
:
-6
0px
;
margin-top
:
2
0px
;
width
:
60%
;
height
:
80%
;
position
:
absolute
;
float
:
left
;
}
...
...
Please
register
or
sign in
to post a comment