Fix:修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示
This commit is contained in:
parent
e2403ae433
commit
487aa38216
@ -1859,6 +1859,8 @@ class Render {
|
|||||||
|
|
||||||
// 高亮节点或子节点
|
// 高亮节点或子节点
|
||||||
highlightNode(node, range) {
|
highlightNode(node, range) {
|
||||||
|
// 如果当前正在渲染,那么不进行高亮,因为节点位置可能不正确
|
||||||
|
if (this.isRendering) return
|
||||||
const { highlightNodeBoxStyle = {} } = this.mindMap.opt
|
const { highlightNodeBoxStyle = {} } = this.mindMap.opt
|
||||||
if (!this.highlightBoxNode) {
|
if (!this.highlightBoxNode) {
|
||||||
this.highlightBoxNode = new Polygon()
|
this.highlightBoxNode = new Polygon()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user