From 792811f39e5b508da4ec616feec7b6a62d014f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Thu, 7 Mar 2024 11:36:05 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/en/changelog/index.md | 8 ++++++++ web/src/pages/Doc/en/changelog/index.vue | 4 ++++ web/src/pages/Doc/en/doExport/index.md | 8 +++++++- web/src/pages/Doc/en/doExport/index.vue | 5 +++++ web/src/pages/Doc/zh/changelog/index.md | 8 ++++++++ web/src/pages/Doc/zh/changelog/index.vue | 4 ++++ web/src/pages/Doc/zh/course17/index.md | 12 +++++++++++- web/src/pages/Doc/zh/course17/index.vue | 9 ++++++++- web/src/pages/Doc/zh/doExport/index.md | 8 +++++++- web/src/pages/Doc/zh/doExport/index.vue | 5 +++++ 10 files changed, 67 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 527e2b3a..8dd016aa 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -17,6 +17,8 @@ Fix: > 6.Fix the issue of rendering only the root node when expand: false is set to the root node in the node data; > > 7.Fix the collaborative editing plugin: When a node is selected and then folded, the activation status of the node disappears, but the selected status of the node still exists in other clients; +> +> 8.Optimize the export of markdowns and fix the issue of missing summaries; New: @@ -31,6 +33,8 @@ New: > 5.Add lifecycle function configuration options before synchronizing collaborative editing node operations; > > 6.Add UID field to the summary node; +> +> 7.Added support for exporting txt files; Demo: @@ -39,6 +43,10 @@ Demo: > 2.Modify the association logic between themes and dark colors; > > 3.Support reading local directories; +> +> 4.Fix the issue of selecting a file in the import pop-up window and then deleting it without actually deleting it; +> +> 5.Export new txt files; ## 0.9.7 diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index f36f8792..12dcacf8 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -11,6 +11,7 @@
5.Fix the issue of deleting adjacent nodes when deleting nodes that are currently being edited;
6.Fix the issue of rendering only the root node when expand: false is set to the root node in the node data;
7.Fix the collaborative editing plugin: When a node is selected and then folded, the activation status of the node disappears, but the selected status of the node still exists in other clients;
+8.Optimize the export of markdowns and fix the issue of missing summaries;
New:
@@ -20,12 +21,15 @@4.Add configuration options that cannot be selected by multiple people on the same node during collaborative editing;
5.Add lifecycle function configuration options before synchronizing collaborative editing node operations;
6.Add UID field to the summary node;
+7.Added support for exporting txt files;
Demo:
1.Fix the issue where shortcut keys become invalid after opening label pop ups and note pop ups and clicking on the mask to close them;
2.Modify the association logic between themes and dark colors;
3.Support reading local directories;
+4.Fix the issue of selecting a file in the import pop-up window and then deleting it without actually deleting it;
+5.Export new txt files;
Fix:
diff --git a/web/src/pages/Doc/en/doExport/index.md b/web/src/pages/Doc/en/doExport/index.md index 6853c68c..70d52997 100644 --- a/web/src/pages/Doc/en/doExport/index.md +++ b/web/src/pages/Doc/en/doExport/index.md @@ -135,4 +135,10 @@ import ExportXMind from 'simple-mind-map/src/plugins/ExportXMind.js' MindMap.usePlugin(ExportXMind) ``` -Export as an `xmind` file type, asynchronous method, returns a `Promise` instance, and the returned data is the `data:url` data of a `zip` compressed package, which can be directly downloaded. \ No newline at end of file +Export as an `xmind` file type, asynchronous method, returns a `Promise` instance, and the returned data is the `data:url` data of a `zip` compressed package, which can be directly downloaded. + +### txt() + +> v0.9.8+ + +Export as `txt` file. \ No newline at end of file diff --git a/web/src/pages/Doc/en/doExport/index.vue b/web/src/pages/Doc/en/doExport/index.vue index ded75a29..70e3d223 100644 --- a/web/src/pages/Doc/en/doExport/index.vue +++ b/web/src/pages/Doc/en/doExport/index.vue @@ -127,6 +127,11 @@ MindMap.usePlugin(ExportPDF) MindMap.usePlugin(ExportXMind)Export as an xmind file type, asynchronous method, returns a Promise instance, and the returned data is the data:url data of a zip compressed package, which can be directly downloaded.
++v0.9.8+
+
Export as txt file.
5.修复删除正在编辑中的节点时实际上删除的是相邻节点的问题;
6.修复节点数据中根节点设置了expand:false时只渲染根节点的问题;
7.修复协同编辑插件:当选中一个节点时,再将该节点收起,该节点激活状态已消失,但其他客户端该节点的选中状态依旧存在的问题;
+8.优化markdown的导出,修复概要丢失的问题;
新增:
@@ -20,12 +21,15 @@4.增加协同编辑时同一节点不能多人选中的配置选项;
5.增加协同编辑节点操作同步前的生命周期函数配置选项;
6.概要节点增加uid字段;
+7.新增支持txt文件的导出;
Demo:
1.修复打开标签弹窗、备注弹窗后点击遮罩关闭弹窗后快捷键会失效的问题;
2.修改主题和暗色的关联逻辑;
3.支持读取本地目录;
+4.修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题;
+5.新增txt文件的导出;
修复:
diff --git a/web/src/pages/Doc/zh/course17/index.md b/web/src/pages/Doc/zh/course17/index.md index 24cf3b83..423064df 100644 --- a/web/src/pages/Doc/zh/course17/index.md +++ b/web/src/pages/Doc/zh/course17/index.md @@ -4,7 +4,7 @@ > 要使用导出功能需要使用导出插件。 -目前支持导出为`.smm`、`.json`、`.svg`、`.png`、`.pdf`、`.md`、`.xmind`文件。 +目前支持导出为`.smm`、`.json`、`.svg`、`.png`、`.pdf`、`.md`、`.xmind`、`.txt`文件。 `.smm`是`simple-mind-map`自己定义的一种文件,其实就是`json`文件,换了一个扩展名而已。 @@ -108,6 +108,16 @@ mindMap.export('md', true, '文件名') mindMap.export('xmind', '文件名') ``` +### 导出为txt + +> v0.9.8+ + +导出为`txt`文件只要传递默认的三个参数即可: + +```js +mindMap.export('txt', true, '文件名') +``` + ## 导入 目前支持从`.smm`、`.json`、`.xmind`、`.xlsx`、`.md`格式的文件导入。 diff --git a/web/src/pages/Doc/zh/course17/index.vue b/web/src/pages/Doc/zh/course17/index.vue index 8c2a703a..6e56aff1 100644 --- a/web/src/pages/Doc/zh/course17/index.vue +++ b/web/src/pages/Doc/zh/course17/index.vue @@ -5,7 +5,7 @@-要使用导出功能需要使用导出插件。
目前支持导出为.smm、.json、.svg、.png、.pdf、.md、.xmind文件。
目前支持导出为.smm、.json、.svg、.png、.pdf、.md、.xmind、.txt文件。
.smm是simple-mind-map自己定义的一种文件,其实就是json文件,换了一个扩展名而已。
导出直接调用export方法即可:
mindMap.export(type, isDownload, fileName, ...)
@@ -75,6 +75,13 @@ mindMap.export('pdf', mindMap.export('xmind', '文件名')
+++v0.9.8+
+
导出为txt文件只要传递默认的三个参数即可:
mindMap.export('txt', true, '文件名')
+
目前支持从.smm、.json、.xmind、.xlsx、.md格式的文件导入。
导出为xmind文件类型,异步方法,返回一个Promise实例,返回的数据为一个zip压缩包的data:url数据,可以直接下载。
++v0.9.8+
+
导出txt文件。