mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复修改了外框的线条样式,激活后再取消激活,样式会变成默认的样式的问题
This commit is contained in:
parent
de29ec59c5
commit
5867649429
@ -340,7 +340,7 @@ class OuterFrame {
|
||||
if (!this.activeOuterFrame) return
|
||||
const { el } = this.activeOuterFrame
|
||||
el.stroke({
|
||||
dasharray: '5,5'
|
||||
dasharray: el.cacheStyle.dasharray || defaultStyle.strokeDasharray
|
||||
})
|
||||
this.activeOuterFrame = null
|
||||
}
|
||||
@ -362,6 +362,9 @@ class OuterFrame {
|
||||
})
|
||||
.x(x)
|
||||
.y(y)
|
||||
el.cacheStyle = {
|
||||
dasharray: styleConfig.strokeDasharray
|
||||
}
|
||||
this.outerFrameElList.push(el)
|
||||
return el
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user