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