Doc: update

This commit is contained in:
wanglin2
2023-10-08 09:33:06 +08:00
parent 253ded33bf
commit 8dcc7c985d
10 changed files with 92 additions and 14 deletions

View File

@@ -1,5 +1,19 @@
# Changelog
## 0.7.3-fix.1
Fix:
> 1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.
>
> 2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.
>
> 3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.
Demo
> 1.Add protocol selection function to the hyperlink input box.
## 0.7.3
New: 1.Add a Cooperate editing plugin.

View File

@@ -1,6 +1,17 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.7.3-fix.1</h2>
<p>Fix:</p>
<blockquote>
<p>1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.</p>
<p>2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.</p>
<p>3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.</p>
</blockquote>
<p>Demo</p>
<blockquote>
<p>1.Add protocol selection function to the hyperlink input box.</p>
</blockquote>
<h2>0.7.3</h2>
<p>New: 1.Add a Cooperate editing plugin.</p>
<p>Demo: 1.Fix the automatic closing of the sidebar caused by the formula sidebar component.</p>

View File

@@ -90,7 +90,9 @@ copyRenderTree({}, this.mindMap.renderer.renderTree);
- `removeActiveState`: `Boolean`, default is `false`, Whether to remove the active state of the node
- `keepId`: v0.4.6+, `Boolean`, default is `false`, Whether to retain the `id` of the replicated node will be deleted by default to prevent duplicate node `id`. However, for mobile node scenarios, the original `id` of the node needs to be retained
- `removeId`v0.7.3-fix.1+, Is remove the uid from the node data, default is `true`
> - `keepId`: (Original fourth parameter) v0.4.6+, `Boolean`, default is `false`, Whether to retain the `id` of the replicated node will be deleted by default to prevent duplicate node `id`. However, for mobile node scenarios, the original `id` of the node needs to be retained
Copy node tree data, mainly eliminating the reference `node` instance `_node`
and copying the `data` of the data object, example:
@@ -292,12 +294,14 @@ Focus and select all specified input boxes.
Adding additional data to the specified node list tree data will modify the original data.
#### createUidForAppointNodes(appointNodes)
#### createUidForAppointNodes(appointNodes, createNewId)
> v0.7.2+
- `appointNodes`Node instance list, array type.
- `createNewId`v0.7.3-fix.1+, `Boolean`, default is `false`, If the node does not have a 'uid', a new 'uid' will be created. If 'true' is passed, a new 'uid' will be created regardless of whether the node data originally exists or not`
Adding a uid to the specified node list tree data (if the uid does not exist) will modify the original data.
#### getNodeIndex(node)

View File

@@ -54,9 +54,14 @@ basic data, otherwise it will throw an error</p>
<p><code>removeActiveState</code>: <code>Boolean</code>, default is <code>false</code>, Whether to remove the active state of the node</p>
</li>
<li>
<p><code>keepId</code>: v0.4.6+, <code>Boolean</code>, default is <code>false</code>, Whether to retain the <code>id</code> of the replicated node will be deleted by default to prevent duplicate node <code>id</code>. However, for mobile node scenarios, the original <code>id</code> of the node needs to be retained</p>
<p><code>removeId</code>v0.7.3-fix.1+, Is remove the uid from the node data, default is <code>true</code></p>
</li>
</ul>
<blockquote>
<ul>
<li><code>keepId</code>: (Original fourth parameter) v0.4.6+, <code>Boolean</code>, default is <code>false</code>, Whether to retain the <code>id</code> of the replicated node will be deleted by default to prevent duplicate node <code>id</code>. However, for mobile node scenarios, the original <code>id</code> of the node needs to be retained</li>
</ul>
</blockquote>
<p>Copy node tree data, mainly eliminating the reference <code>node</code> instance <code>_node</code>
and copying the <code>data</code> of the data object, example:</p>
<pre class="hljs"><code>copyNodeTree({}, node);
@@ -222,12 +227,17 @@ and copying the <code>data</code> of the data object, example:</p>
</li>
</ul>
<p>Adding additional data to the specified node list tree data will modify the original data.</p>
<h4>createUidForAppointNodes(appointNodes)</h4>
<h4>createUidForAppointNodes(appointNodes, createNewId)</h4>
<blockquote>
<p>v0.7.2+</p>
</blockquote>
<ul>
<li><code>appointNodes</code>Node instance list, array type.</li>
<li>
<p><code>appointNodes</code>Node instance list, array type.</p>
</li>
<li>
<p><code>createNewId</code>v0.7.3-fix.1+, <code>Boolean</code>, default is <code>false</code>, If the node does not have a 'uid', a new 'uid' will be created. If 'true' is passed, a new 'uid' will be created regardless of whether the node data originally exists or not`</p>
</li>
</ul>
<p>Adding a uid to the specified node list tree data (if the uid does not exist) will modify the original data.</p>
<h4>getNodeIndex(node)</h4>

View File

@@ -1,5 +1,19 @@
# Changelog
## 0.7.3-fix.1
修复:
> 1.修复一些情况下多选节点时的框选区域没有消失的问题。
>
> 2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题。
>
> 3.修复多次粘贴节点时由于节点uid重复造成的渲染异常问题。
Demo
> 1.超链接输入框增加协议选择功能。
## 0.7.3
新增1.新增协同编辑插件。

View File

@@ -1,6 +1,17 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.7.3-fix.1</h2>
<p>修复</p>
<blockquote>
<p>1.修复一些情况下多选节点时的框选区域没有消失的问题</p>
<p>2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题</p>
<p>3.修复多次粘贴节点时由于节点uid重复造成的渲染异常问题</p>
</blockquote>
<p>Demo</p>
<blockquote>
<p>1.超链接输入框增加协议选择功能</p>
</blockquote>
<h2>0.7.3</h2>
<p>新增1.新增协同编辑插件</p>
<p>Demo1.修复公式侧边栏组件导致的侧边栏自动关闭问题</p>

View File

@@ -4,7 +4,7 @@
## 插入子节点
插入子节点很节点,执行`INSERT_CHILD_NODE`命令即可:
插入子节点很简单,执行`INSERT_CHILD_NODE`命令即可:
```js
mindMap.execCommand('INSERT_CHILD_NODE')

View File

@@ -3,7 +3,7 @@
<h1>插入/删除节点前进回退</h1>
<p>首先和操作节点内容一样也需要监听节点的激活事件然后禁用相关按钮</p>
<h2>插入子节点</h2>
<p>插入子节点很节点执行<code>INSERT_CHILD_NODE</code>命令即可</p>
<p>插入子节点很简单执行<code>INSERT_CHILD_NODE</code>命令即可</p>
<pre class="hljs"><code>mindMap.execCommand(<span class="hljs-string">&#x27;INSERT_CHILD_NODE&#x27;</span>)
</code></pre>
<p>这样就会在当前激活节点如果存在多个激活节点默认会操作第一个激活节点下添加一个子节点</p>

View File

@@ -82,11 +82,13 @@ walk(tree, null, () => {}, () => {}, false, 0, 0)
copyRenderTree({}, this.mindMap.renderer.renderTree)
```
#### copyNodeTree(tree, root, removeActiveState, keepId)
#### copyNodeTree(tree, root, removeActiveState, removeId)
- `removeActiveState``Boolean`,默认为`false`,是否移除节点的激活状态
- `keepId`v0.4.6+`Boolean`,默认为`false`,是否保留被复制节点的`id`,默认会删除`id`防止节点`id`重复,但是对于移动节点的场景,节点原`id`需要保留
- `removeId`v0.7.3-fix.1+是否移除节点数据中的uid默认为`true`
> - `keepId` (原第四个参数)`Boolean`,默认为`false`,是否保留被复制节点的`id`,默认会删除`id`防止节点`id`重复,但是对于移动节点的场景,节点原`id`需要保留。
复制节点树数据,主要是剔除其中的引用`node`实例的`_node`,然后复制`data`对象的数据,示例:
@@ -287,12 +289,14 @@ copyNodeTree({}, node)
给指定的节点列表树数据添加附加数据,会修改原数据。
#### createUidForAppointNodes(appointNodes)
#### createUidForAppointNodes(appointNodes, createNewId)
> v0.7.2+
- `appointNodes`:节点实例列表,数组类型。
- `createNewId`v0.7.3-fix.1+`Boolean`,默认为`false`,即如果节点不存在`uid`的话,会创建新的`uid`。如果传`true`,那么无论节点数据原来是否存在`uid`,都会创建新的`uid`
给指定的节点列表树数据添加uid如果uid不存在的话会修改原数据。
#### getNodeIndex(node)

View File

@@ -44,15 +44,20 @@
<p>复制渲染树数据示例</p>
<pre class="hljs"><code>copyRenderTree({}, <span class="hljs-built_in">this</span>.mindMap.renderer.renderTree)
</code></pre>
<h4>copyNodeTree(tree, root, removeActiveState, keepId)</h4>
<h4>copyNodeTree(tree, root, removeActiveState, removeId)</h4>
<ul>
<li>
<p><code>removeActiveState</code><code>Boolean</code>默认为<code>false</code>是否移除节点的激活状态</p>
</li>
<li>
<p><code>keepId</code>v0.4.6+<code>Boolean</code>默认为<code>false</code>是否保留被复制节点的<code>id</code>默认会删除<code>id</code>防止节点<code>id</code>重复但是对于移动节点的场景节点原<code>id</code>需要保留</p>
<p><code>removeId</code>v0.7.3-fix.1+是否移除节点数据中的uid默认为<code>true</code></p>
</li>
</ul>
<blockquote>
<ul>
<li><code>keepId</code> 原第四个参数<code>Boolean</code>默认为<code>false</code>是否保留被复制节点的<code>id</code>默认会删除<code>id</code>防止节点<code>id</code>重复但是对于移动节点的场景节点原<code>id</code>需要保留</li>
</ul>
</blockquote>
<p>复制节点树数据主要是剔除其中的引用<code>node</code>实例的<code>_node</code>然后复制<code>data</code>对象的数据示例</p>
<pre class="hljs"><code>copyNodeTree({}, node)
</code></pre>
@@ -217,12 +222,17 @@
</li>
</ul>
<p>给指定的节点列表树数据添加附加数据会修改原数据</p>
<h4>createUidForAppointNodes(appointNodes)</h4>
<h4>createUidForAppointNodes(appointNodes, createNewId)</h4>
<blockquote>
<p>v0.7.2+</p>
</blockquote>
<ul>
<li><code>appointNodes</code>节点实例列表数组类型</li>
<li>
<p><code>appointNodes</code>节点实例列表数组类型</p>
</li>
<li>
<p><code>createNewId</code>v0.7.3-fix.1+<code>Boolean</code>默认为<code>false</code>即如果节点不存在<code>uid</code>的话会创建新的<code>uid</code>如果传<code>true</code>那么无论节点数据原来是否存在<code>uid</code>都会创建新的<code>uid</code></p>
</li>
</ul>
<p>给指定的节点列表树数据添加uid如果uid不存在的话会修改原数据</p>
<h4>getNodeIndex(node)</h4>