simple-mind-map
Advanced tools
Comparing version 0.9.9-fix.1 to 0.9.9-fix.2
@@ -32,3 +32,3 @@ import MindMap from './index' | ||
MindMap.defaultTheme = defaultTheme | ||
MindMap.version = '0.9.9-fix.1' | ||
MindMap.version = '0.9.9-fix.2' | ||
@@ -35,0 +35,0 @@ MindMap.usePlugin(MiniMap) |
{ | ||
"name": "simple-mind-map", | ||
"version": "0.9.9-fix.1", | ||
"version": "0.9.9-fix.2", | ||
"description": "一个简单的web在线思维导图", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -859,2 +859,5 @@ import merge from 'deepmerge' | ||
} | ||
node.setData({ | ||
resetRichText: true | ||
}) | ||
const parent = node.parent | ||
@@ -861,0 +864,0 @@ // 获取当前节点所在位置 |
@@ -51,3 +51,5 @@ import { walk, getNodeDataIndex } from '../utils/index' | ||
getSecondLayerAncestor(node) { | ||
if (node.layerIndex === 1) { | ||
if (node.layerIndex === 0) { | ||
return null | ||
} else if (node.layerIndex === 1) { | ||
return node | ||
@@ -82,2 +84,3 @@ } else { | ||
const ancestor = this.getSecondLayerAncestor(node) | ||
if (!ancestor) return | ||
const index = getNodeDataIndex(ancestor) | ||
@@ -84,0 +87,0 @@ const colorsList = this.getColorsList() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
20449531
116422