Demo:update

This commit is contained in:
街角小林 2024-03-26 12:11:47 +08:00
parent 740c898bb1
commit e966e5d57c
3 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ let mindMapData = null
* @Desc: 克隆思维导图数据去除激活状态
*/
const copyMindMapTreeData = (tree, root) => {
if (!root) return null
tree.data = simpleDeepClone(root.data)
// tree.data.isActive = false
tree.children = []

View File

@ -70,6 +70,7 @@ export default {
* @Desc: 遍历
*/
walk(data) {
if (!data) return
this.num++
this.textStr += String(data.data.text) || ''
if (data.children && data.children.length > 0) {

View File

@ -179,7 +179,7 @@ export default {
data() {
return {
activeNodes: [],
backEnd: false,
backEnd: true,
forwardEnd: true,
readonly: false,
isFullDataFile: false,