fix:优化diagram相关问题

This commit is contained in:
zhangyu
2022-08-11 10:30:56 +08:00
parent 7978443786
commit 7bdee7d2c4
3 changed files with 121 additions and 85 deletions

View File

@@ -6,6 +6,7 @@ export default {
},
methods: {
appPen (pen) {
console.log(pen)
this.modulesDiff()
const data = pen[0]
if (data.type === 0 && !data.data.moduleId) {
@@ -104,8 +105,10 @@ export default {
if (data.type === 0 || data.type === 1) {
data.lineWidth = data.data.lineWidth
}
getTopology(this.topologyIndex).setValue(data)
},
pensActive (pens) {
console.log(pens)
this.props = {
node: null,
line: null,