mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Merge pull request #26 from huangyuanyin/main
fix 二级节点后无子节点,展开所有/收起所有操作后的报错信息
This commit is contained in:
@@ -990,6 +990,7 @@ class Node {
|
||||
* @Desc: 创建或更新展开收缩按钮内容
|
||||
*/
|
||||
updateExpandBtnNode() {
|
||||
if (this.children.length === 0) return
|
||||
if (this._expandBtn) {
|
||||
this._expandBtn.clear()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user