Fix:修复激活概要节点,右侧设置文本样式,概要节点会失去焦点的问题

This commit is contained in:
街角小林 2024-01-31 18:10:22 +08:00
parent af622793d8
commit a37fe66e60

View File

@ -326,10 +326,10 @@ class RichText {
nodes && nodes.length > 0 ? nodes : this.mindMap.renderer.activeNodeList nodes && nodes.length > 0 ? nodes : this.mindMap.renderer.activeNodeList
list.forEach(node => { list.forEach(node => {
this.mindMap.execCommand('SET_NODE_TEXT', node, html, true) this.mindMap.execCommand('SET_NODE_TEXT', node, html, true)
if (node.isGeneralization) { // if (node.isGeneralization) {
// 概要节点 // 概要节点
node.generalizationBelongNode.updateGeneralization() // node.generalizationBelongNode.updateGeneralization()
} // }
this.mindMap.render() this.mindMap.render()
}) })
this.mindMap.emit('hide_text_edit', this.textEditNode, list) this.mindMap.emit('hide_text_edit', this.textEditNode, list)