Commit 4c13a13d authored by 夏敏伟's avatar 夏敏伟

修改连线bug

parent 653cfc5c
......@@ -66,7 +66,8 @@ export default {
{ id: 5, title: '学习训练模块', eg: 'Learning And Training Module' },
{ id: 6, title: '新技术实验模块', eg: 'New Technology Experiment Module' },
]
}
},
line1:null
}
},
methods: {
......@@ -96,37 +97,45 @@ export default {
startSocket:'left',
endSocket:'right'
}
new LeaderLine( {
this.line1 = new LeaderLine( {
...styleOption1,
start:document.getElementById('left0'),
end:document.getElementById('left11'),
});
new LeaderLine( {
this.line2 = new LeaderLine( {
...styleOption1,
start:document.getElementById('left1'),
end:document.getElementById('left22'),
});
new LeaderLine( {
this.line3 = new LeaderLine( {
...styleOption1,
start:document.getElementById('left2'),
end:document.getElementById('left33'),
});
new LeaderLine( {
this.line4 = new LeaderLine( {
...styleOption2,
start:document.getElementById('right0'),
end:document.getElementById('right11'),
});
new LeaderLine( {
this.line5 = new LeaderLine( {
...styleOption2,
start:document.getElementById('right1'),
end:document.getElementById('right22'),
});
new LeaderLine( {
this.line6 = new LeaderLine( {
...styleOption2,
start:document.getElementById('right2'),
end:document.getElementById('right33'),
});
})
},
deactivated(){
this.line1.remove();
this.line2.remove();
this.line3.remove();
this.line4.remove();
this.line5.remove();
this.line6.remove();
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment