fix:topology 相关bug修改

This commit is contained in:
zhangyu
2022-09-05 17:45:49 +08:00
parent c86b36583e
commit f85edd121d
7 changed files with 33 additions and 12 deletions

View File

@@ -878,6 +878,7 @@ export default {
resolve(data)
data = null
} else {
delete data.origin
data.ruleColor = this.theme == 'light' ? '#4e4e4e' : '#f9f9f9'
data.gridColor = this.theme == 'light' ? '#ededed' : '#090909'
data.grid = false
@@ -1645,7 +1646,25 @@ export default {
},
onUpdateProps (node) { // 更新pen
getTopology(this.topologyIndex).setValue(node)
const obj = {
id: node.id,
x: node.x,
y: node.y,
data: node.data,
width: node.width,
height: node.height,
borderRadius: node.borderRadius,
rotate: node.rotate,
background: node.background,
iconColor: node.iconColor,
gradientType: node.gradientType,
gradientFromColor: node.gradientFromColor,
gradientToColor: node.gradientToColor,
globalAlpha: node.globalAlpha,
dash: node.dash,
strokeColor: node.strokeColor
}
getTopology(this.topologyIndex).setValue(obj)
},
handleAvatarSuccess () {