a4706e73 by 焦泽平

历史回shu功能

1 parent 20bbca64
......@@ -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: -60px;
margin-top: 20px;
width: 60%;
height: 80%;
position:absolute;
float: left;
}
......