Doc: update

This commit is contained in:
街角小林
2024-03-07 11:36:05 +08:00
parent ea29dad6fd
commit 792811f39e
10 changed files with 67 additions and 4 deletions

View File

@@ -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

View File

@@ -11,6 +11,7 @@
<p>5.Fix the issue of deleting adjacent nodes when deleting nodes that are currently being edited;</p>
<p>6.Fix the issue of rendering only the root node when expand: false is set to the root node in the node data;</p>
<p>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;</p>
<p>8.Optimize the export of markdowns and fix the issue of missing summaries;</p>
</blockquote>
<p>New:</p>
<blockquote>
@@ -20,12 +21,15 @@
<p>4.Add configuration options that cannot be selected by multiple people on the same node during collaborative editing;</p>
<p>5.Add lifecycle function configuration options before synchronizing collaborative editing node operations;</p>
<p>6.Add UID field to the summary node;</p>
<p>7.Added support for exporting txt files;</p>
</blockquote>
<p>Demo:</p>
<blockquote>
<p>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;</p>
<p>2.Modify the association logic between themes and dark colors;</p>
<p>3.Support reading local directories;</p>
<p>4.Fix the issue of selecting a file in the import pop-up window and then deleting it without actually deleting it;</p>
<p>5.Export new txt files;</p>
</blockquote>
<h2>0.9.7</h2>
<p>Fix:</p>

View File

@@ -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.
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.

View File

@@ -127,6 +127,11 @@ MindMap.usePlugin(ExportPDF)
MindMap.usePlugin(ExportXMind)
</code></pre>
<p>Export as an <code>xmind</code> file type, asynchronous method, returns a <code>Promise</code> instance, and the returned data is the <code>data:url</code> data of a <code>zip</code> compressed package, which can be directly downloaded.</p>
<h3>txt()</h3>
<blockquote>
<p>v0.9.8+</p>
</blockquote>
<p>Export as <code>txt</code> file.</p>
</div>
</template>

View File

@@ -17,6 +17,8 @@
> 6.修复节点数据中根节点设置了expand:false时只渲染根节点的问题
>
> 7.修复协同编辑插件:当选中一个节点时,再将该节点收起,该节点激活状态已消失,但其他客户端该节点的选中状态依旧存在的问题;
>
> 8.优化markdown的导出修复概要丢失的问题
新增:
@@ -31,6 +33,8 @@
> 5.增加协同编辑节点操作同步前的生命周期函数配置选项;
>
> 6.概要节点增加uid字段
>
> 7.新增支持txt文件的导出
Demo
@@ -39,6 +43,10 @@ Demo
> 2.修改主题和暗色的关联逻辑;
>
> 3.支持读取本地目录;
>
> 4.修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题;
>
> 5.新增txt文件的导出
## 0.9.7

View File

@@ -11,6 +11,7 @@
<p>5.修复删除正在编辑中的节点时实际上删除的是相邻节点的问题</p>
<p>6.修复节点数据中根节点设置了expand:false时只渲染根节点的问题</p>
<p>7.修复协同编辑插件当选中一个节点时再将该节点收起该节点激活状态已消失但其他客户端该节点的选中状态依旧存在的问题</p>
<p>8.优化markdown的导出修复概要丢失的问题</p>
</blockquote>
<p>新增</p>
<blockquote>
@@ -20,12 +21,15 @@
<p>4.增加协同编辑时同一节点不能多人选中的配置选项</p>
<p>5.增加协同编辑节点操作同步前的生命周期函数配置选项</p>
<p>6.概要节点增加uid字段</p>
<p>7.新增支持txt文件的导出</p>
</blockquote>
<p>Demo</p>
<blockquote>
<p>1.修复打开标签弹窗备注弹窗后点击遮罩关闭弹窗后快捷键会失效的问题</p>
<p>2.修改主题和暗色的关联逻辑</p>
<p>3.支持读取本地目录</p>
<p>4.修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题</p>
<p>5.新增txt文件的导出</p>
</blockquote>
<h2>0.9.7</h2>
<p>修复</p>

View File

@@ -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`格式的文件导入。

View File

@@ -5,7 +5,7 @@
<blockquote>
<p>要使用导出功能需要使用导出插件</p>
</blockquote>
<p>目前支持导出为<code>.smm</code><code>.json</code><code>.svg</code><code>.png</code><code>.pdf</code><code>.md</code><code>.xmind</code>文件</p>
<p>目前支持导出为<code>.smm</code><code>.json</code><code>.svg</code><code>.png</code><code>.pdf</code><code>.md</code><code>.xmind</code><code>.txt</code>文件</p>
<p><code>.smm</code><code>simple-mind-map</code>自己定义的一种文件其实就是<code>json</code>文件换了一个扩展名而已</p>
<p>导出直接调用<code>export</code>方法即可</p>
<pre class="hljs"><code>mindMap.export(type, isDownload, fileName, ...)
@@ -75,6 +75,13 @@ mindMap.export(<span class="hljs-string">&#x27;pdf&#x27;</span>, <span class="hl
<p>导出为<code>Xmind</code>新版文件</p>
<pre class="hljs"><code>mindMap.export(<span class="hljs-string">&#x27;xmind&#x27;</span>, <span class="hljs-string">&#x27;文件名&#x27;</span>)
</code></pre>
<h3>导出为txt</h3>
<blockquote>
<p>v0.9.8+</p>
</blockquote>
<p>导出为<code>txt</code>文件只要传递默认的三个参数即可</p>
<pre class="hljs"><code>mindMap.export(<span class="hljs-string">&#x27;txt&#x27;</span>, <span class="hljs-literal">true</span>, <span class="hljs-string">&#x27;文件名&#x27;</span>)
</code></pre>
<h2>导入</h2>
<p>目前支持从<code>.smm</code><code>.json</code><code>.xmind</code><code>.xlsx</code><code>.md</code>格式的文件导入</p>
<h3>导入smmjson</h3>

View File

@@ -139,4 +139,10 @@ import ExportXMind from 'simple-mind-map/src/plugins/ExportXMind.js'
MindMap.usePlugin(ExportXMind)
```
导出为`xmind`文件类型,异步方法,返回一个`Promise`实例,返回的数据为一个`zip`压缩包的`data:url`数据,可以直接下载。
导出为`xmind`文件类型,异步方法,返回一个`Promise`实例,返回的数据为一个`zip`压缩包的`data:url`数据,可以直接下载。
### txt()
> v0.9.8+
导出`txt`文件。

View File

@@ -129,6 +129,11 @@ MindMap.usePlugin(ExportPDF)
MindMap.usePlugin(ExportXMind)
</code></pre>
<p>导出为<code>xmind</code>文件类型异步方法返回一个<code>Promise</code>实例返回的数据为一个<code>zip</code>压缩包的<code>data:url</code>数据可以直接下载</p>
<h3>txt()</h3>
<blockquote>
<p>v0.9.8+</p>
</blockquote>
<p>导出<code>txt</code>文件</p>
</div>
</template>