From e584081b417c1bcfe3ee773e0dd9a9fb9dd32560 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 21 Apr 2023 09:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Doc/en/xmind/index.md | 10 +- web/src/pages/Doc/en/xmind/index.vue | 10 +- web/src/pages/Doc/zh/course11/index.md | 2 +- web/src/pages/Doc/zh/course11/index.vue | 2 +- web/src/pages/Doc/zh/course16/index.md | 100 +++++++++- web/src/pages/Doc/zh/course16/index.vue | 61 +++++- web/src/pages/Doc/zh/course17/index.md | 244 ++++++++++++++++++++++- web/src/pages/Doc/zh/course17/index.vue | 176 +++++++++++++++- web/src/pages/Doc/zh/course18/index.md | 101 +++++++++- web/src/pages/Doc/zh/course18/index.vue | 65 +++++- web/src/pages/Doc/zh/xmind/index.md | 4 +- web/src/pages/Doc/zh/xmind/index.vue | 4 +- web/src/pages/Edit/components/Import.vue | 1 + 13 files changed, 755 insertions(+), 25 deletions(-) diff --git a/web/src/pages/Doc/en/xmind/index.md b/web/src/pages/Doc/en/xmind/index.md index e4d9274e..b26a54a7 100644 --- a/web/src/pages/Doc/en/xmind/index.md +++ b/web/src/pages/Doc/en/xmind/index.md @@ -24,9 +24,8 @@ MindMap.xmind ### xmind.parseXmindFile(file) -Parsing the `.xmind` file and returning the parsed data. Note that this is -complete data, including the node tree, theme, and structure. You can use -`mindMap.setFullData(data)` to render the returned data to the canvas. +Parsing the `.xmind` file and returning the parsed data. You can use +`mindMap.setData(data)` to render the returned data to the canvas. `file`: `File` object @@ -35,9 +34,8 @@ complete data, including the node tree, theme, and structure. You can use Convert `xmind` data. The `.xmind` file is essentially a `zip` file that can be decompressed by changing the suffix to zip. Inside, there is a `content.json` file. If you have parsed this file yourself, you can pass the contents of this -file to this method for conversion. The converted data is the complete data, -including the node tree, theme, structure, etc. You can use -`mindMap.setFullData(data)` to render the returned data to the canvas. +file to this method for conversion. You can use +`mindMap.setData(data)` to render the returned data to the canvas. `content`: the contents of the `content.json` file within the `.xmind` zip package diff --git a/web/src/pages/Doc/en/xmind/index.vue b/web/src/pages/Doc/en/xmind/index.vue index a2c3af24..323a9990 100644 --- a/web/src/pages/Doc/en/xmind/index.vue +++ b/web/src/pages/Doc/en/xmind/index.vue @@ -15,17 +15,15 @@

Methods

xmind.parseXmindFile(file)

-

Parsing the .xmind file and returning the parsed data. Note that this is -complete data, including the node tree, theme, and structure. You can use -mindMap.setFullData(data) to render the returned data to the canvas.

+

Parsing the .xmind file and returning the parsed data. You can use +mindMap.setData(data) to render the returned data to the canvas.

file: File object

xmind.transformXmind(content)

Convert xmind data. The .xmind file is essentially a zip file that can be decompressed by changing the suffix to zip. Inside, there is a content.json file. If you have parsed this file yourself, you can pass the contents of this -file to this method for conversion. The converted data is the complete data, -including the node tree, theme, structure, etc. You can use -mindMap.setFullData(data) to render the returned data to the canvas.

+file to this method for conversion. You can use +mindMap.setData(data) to render the returned data to the canvas.

content: the contents of the content.json file within the .xmind zip package

xmind.transformOldXmind(content)

diff --git a/web/src/pages/Doc/zh/course11/index.md b/web/src/pages/Doc/zh/course11/index.md index bc705990..462f19de 100644 --- a/web/src/pages/Doc/zh/course11/index.md +++ b/web/src/pages/Doc/zh/course11/index.md @@ -1,6 +1,6 @@ # 结构 -`simple-mind-map`目前支持四种结构:logicalStructure(逻辑结构图)、mindMap(思维导图)、organizationStructure(组织结构图)、catalogOrganization(目录组织图)。 +`simple-mind-map`目前支持四种结构:logicalStructure(逻辑结构图)、mindMap(思维导图)、organizationStructure(组织结构图)、catalogOrganization(目录组织图)、timeline(时间轴)、timeline2(时间轴2)、fishbone(鱼骨图)。 可以在实例化`simple-mind-map`时通过选项指定使用的结构: diff --git a/web/src/pages/Doc/zh/course11/index.vue b/web/src/pages/Doc/zh/course11/index.vue index 6319e743..94b1db73 100644 --- a/web/src/pages/Doc/zh/course11/index.vue +++ b/web/src/pages/Doc/zh/course11/index.vue @@ -1,7 +1,7 @@