Doc: update

This commit is contained in:
街角小林 2024-02-02 17:02:36 +08:00
parent a37fe66e60
commit fa8ad5c0d0
8 changed files with 84 additions and 0 deletions

View File

@ -1,5 +1,21 @@
# Changelog
## 0.9.7
Fix:
> 1.Fix the issue where the style is not updated when dragging nodes below level 2 to the root node to become level 2 nodes; Fix the issue where the style is not updated when moving nodes with the command to move up one level;
>
> 2.Fix the issue of losing focus when activating summary nodes and then setting text styles for them;
New:
> 1.Add two commands to remove custom styles from nodes;
Demo:
> 1.Add a right-click menu button to remove custom styles from nodes.
## 0.9.6
Fix:

View File

@ -1,6 +1,20 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.9.7</h2>
<p>Fix:</p>
<blockquote>
<p>1.Fix the issue where the style is not updated when dragging nodes below level 2 to the root node to become level 2 nodes; Fix the issue where the style is not updated when moving nodes with the command to move up one level;</p>
<p>2.Fix the issue of losing focus when activating summary nodes and then setting text styles for them;</p>
</blockquote>
<p>New:</p>
<blockquote>
<p>1.Add two commands to remove custom styles from nodes;</p>
</blockquote>
<p>Demo:</p>
<blockquote>
<p>1.Add a right-click menu button to remove custom styles from nodes.</p>
</blockquote>
<h2>0.9.6</h2>
<p>Fix:</p>
<blockquote>

View File

@ -540,6 +540,8 @@ redo. All commands are as follows:
| INSERT_PARENT_NODEv0.8.0+ | Insert a parent node into the specified node, with the operation node being the currently active node or the specified node | openEditActivate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodesOptional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array、 appointDataOptional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced [exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js) |
| REMOVE_CURRENT_NODEv0.8.0+ | Delete only the current node, operate on the currently active node or specified node | appointNodesOptional, specify the nodes to be deleted, and multiple nodes can be passed as an array |
| MOVE_UP_ONE_LEVELv0.9.6+ | Move the specified node up one level | nodeOptional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node |
| REMOVE_CUSTOM_STYLESv0.9.7+ | One click removal of custom styles for a node | nodeOptional, specify the node to clear the custom style, otherwise it will be the first one in the current active node |
| REMOVE_ALL_NODE_CUSTOM_STYLESv0.9.7+ | One click removal of multiple nodes or custom styles for all nodes | appointNodesOptional, node instance array, specifying multiple nodes to remove custom styles from. If not passed, the custom styles of all nodes on the current canvas will be removed |
### setData(data)

View File

@ -1395,6 +1395,16 @@ redo. All commands are as follows:</p>
<td>Move the specified node up one level</td>
<td>nodeOptional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node</td>
</tr>
<tr>
<td>REMOVE_CUSTOM_STYLESv0.9.7+</td>
<td>One click removal of custom styles for a node</td>
<td>nodeOptional, specify the node to clear the custom style, otherwise it will be the first one in the current active node</td>
</tr>
<tr>
<td>REMOVE_ALL_NODE_CUSTOM_STYLESv0.9.7+</td>
<td>One click removal of multiple nodes or custom styles for all nodes</td>
<td>appointNodesOptional, node instance array, specifying multiple nodes to remove custom styles from. If not passed, the custom styles of all nodes on the current canvas will be removed</td>
</tr>
</tbody>
</table>
<h3>setData(data)</h3>

View File

@ -1,5 +1,21 @@
# Changelog
## 0.9.7
修复:
> 1.修复二级以下节点拖拽到根节点变成二级节点时样式没有更新的问题;修复上移一个层级命令移动节点时样式没有更新的问题;
>
> 2.修复激活概要节点,然后给其设置文本样式时概要节点会失去焦点的问题;
新增:
> 1.新增两个去除节点自定义样式的命令;
Demo
> 1.新增去除节点自定义样式的右键菜单按钮。
## 0.9.6
修复:

View File

@ -1,6 +1,20 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.9.7</h2>
<p>修复</p>
<blockquote>
<p>1.修复二级以下节点拖拽到根节点变成二级节点时样式没有更新的问题修复上移一个层级命令移动节点时样式没有更新的问题</p>
<p>2.修复激活概要节点然后给其设置文本样式时概要节点会失去焦点的问题</p>
</blockquote>
<p>新增</p>
<blockquote>
<p>1.新增两个去除节点自定义样式的命令</p>
</blockquote>
<p>Demo</p>
<blockquote>
<p>1.新增去除节点自定义样式的右键菜单按钮</p>
</blockquote>
<h2>0.9.6</h2>
<p>修复</p>
<blockquote>

View File

@ -534,6 +534,8 @@ mindMap.updateConfig({
| INSERT_PARENT_NODEv0.8.0+ | 给指定的节点插入父节点,操作节点为当前激活的节点或指定节点 | openEdit是否激活新插入的节点并进入编辑模式默认为`true`)、 appointNodes可选指定要插入父节点的节点指定多个节点可以传一个数组、 appointData可选指定新创建节点的数据比如{text: 'xxx', ...},详细结构可以参考[exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js) |
| REMOVE_CURRENT_NODEv0.8.0+ | 仅删除当前节点,操作节点为当前激活的节点或指定节点 | appointNodes可选指定要删除的节点指定多个节点可以传一个数组 |
| MOVE_UP_ONE_LEVELv0.9.6+ | 将指定节点上移一个层级 | node可选指定要上移层级的节点不传则为当前激活节点中的第一个 |
| REMOVE_CUSTOM_STYLESv0.9.7+ | 一键去除某个节点的自定义样式 | node可选指定要清除自定义样式的节点不传则为当前激活节点中的第一个 |
| REMOVE_ALL_NODE_CUSTOM_STYLESv0.9.7+ | 一键去除多个节点或所有节点的自定义样式 | appointNodes可选节点实例数组指定要去除自定义样式的多个节点如果不传则会去除当前画布所有节点的自定义样式 |
### setData(data)

View File

@ -1296,6 +1296,16 @@ mindMap.setTheme(<span class="hljs-string">&#x27;主题名称&#x27;</span>)
<td>将指定节点上移一个层级</td>
<td>node可选指定要上移层级的节点不传则为当前激活节点中的第一个</td>
</tr>
<tr>
<td>REMOVE_CUSTOM_STYLESv0.9.7+</td>
<td>一键去除某个节点的自定义样式</td>
<td>node可选指定要清除自定义样式的节点不传则为当前激活节点中的第一个</td>
</tr>
<tr>
<td>REMOVE_ALL_NODE_CUSTOM_STYLESv0.9.7+</td>
<td>一键去除多个节点或所有节点的自定义样式</td>
<td>appointNodes可选节点实例数组指定要去除自定义样式的多个节点如果不传则会去除当前画布所有节点的自定义样式</td>
</tr>
</tbody>
</table>
<h3>setData(data)</h3>