mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Feat:增加插入概要的默认文本配置选项
This commit is contained in:
parent
e732415aa3
commit
d1dcef2537
@ -212,5 +212,7 @@ export const defaultOpt = {
|
||||
},
|
||||
// 关联线是否始终显示在节点上层
|
||||
// false:即创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方
|
||||
associativeLineIsAlwaysAboveNode: true
|
||||
associativeLineIsAlwaysAboveNode: true,
|
||||
// 插入概要的默认文本
|
||||
defaultGeneralizationText: '概要'
|
||||
}
|
||||
|
||||
@ -1355,7 +1355,7 @@ class Render {
|
||||
}
|
||||
this.mindMap.execCommand('SET_NODE_DATA', node, {
|
||||
generalization: data || {
|
||||
text: '概要'
|
||||
text: this.mindMap.opt.defaultGeneralizationText
|
||||
}
|
||||
})
|
||||
node.update()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user