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
a4706e73
authored
2021-01-13 15:33:07 +0800
by
焦泽平
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
历史回shu功能
1 parent
20bbca64
Hide 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 @
a4706e7
...
...
@@ -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