mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Doc: update
This commit is contained in:
parent
a37fe66e60
commit
fa8ad5c0d0
@ -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:
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -540,6 +540,8 @@ redo. All commands are as follows:
|
||||
| INSERT_PARENT_NODE(v0.8.0+) | Insert a parent node into the specified node, with the operation node being the currently active node or the specified node | openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, 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_NODE(v0.8.0+) | Delete only the current node, operate on the currently active node or specified node | appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array) |
|
||||
| MOVE_UP_ONE_LEVEL(v0.9.6+) | Move the specified node up one level | node(Optional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node) |
|
||||
| REMOVE_CUSTOM_STYLES(v0.9.7+) | One click removal of custom styles for a node | node(Optional, specify the node to clear the custom style, otherwise it will be the first one in the current active node) |
|
||||
| REMOVE_ALL_NODE_CUSTOM_STYLES(v0.9.7+) | One click removal of multiple nodes or custom styles for all nodes | appointNodes(Optional, 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)
|
||||
|
||||
|
||||
@ -1395,6 +1395,16 @@ redo. All commands are as follows:</p>
|
||||
<td>Move the specified node up one level</td>
|
||||
<td>node(Optional, 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_STYLES(v0.9.7+)</td>
|
||||
<td>One click removal of custom styles for a node</td>
|
||||
<td>node(Optional, 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_STYLES(v0.9.7+)</td>
|
||||
<td>One click removal of multiple nodes or custom styles for all nodes</td>
|
||||
<td>appointNodes(Optional, 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>
|
||||
|
||||
@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## 0.9.7
|
||||
|
||||
修复:
|
||||
|
||||
> 1.修复二级以下节点拖拽到根节点变成二级节点时样式没有更新的问题;修复上移一个层级命令移动节点时样式没有更新的问题;
|
||||
>
|
||||
> 2.修复激活概要节点,然后给其设置文本样式时概要节点会失去焦点的问题;
|
||||
|
||||
新增:
|
||||
|
||||
> 1.新增两个去除节点自定义样式的命令;
|
||||
|
||||
Demo:
|
||||
|
||||
> 1.新增去除节点自定义样式的右键菜单按钮。
|
||||
|
||||
## 0.9.6
|
||||
|
||||
修复:
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -534,6 +534,8 @@ mindMap.updateConfig({
|
||||
| INSERT_PARENT_NODE(v0.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_NODE(v0.8.0+) | 仅删除当前节点,操作节点为当前激活的节点或指定节点 | appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组) |
|
||||
| MOVE_UP_ONE_LEVEL(v0.9.6+) | 将指定节点上移一个层级 | node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个) |
|
||||
| REMOVE_CUSTOM_STYLES(v0.9.7+) | 一键去除某个节点的自定义样式 | node(可选,指定要清除自定义样式的节点,不传则为当前激活节点中的第一个) |
|
||||
| REMOVE_ALL_NODE_CUSTOM_STYLES(v0.9.7+) | 一键去除多个节点或所有节点的自定义样式 | appointNodes(可选,节点实例数组,指定要去除自定义样式的多个节点,如果不传则会去除当前画布所有节点的自定义样式) |
|
||||
|
||||
### setData(data)
|
||||
|
||||
|
||||
@ -1296,6 +1296,16 @@ mindMap.setTheme(<span class="hljs-string">'主题名称'</span>)
|
||||
<td>将指定节点上移一个层级</td>
|
||||
<td>node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>REMOVE_CUSTOM_STYLES(v0.9.7+)</td>
|
||||
<td>一键去除某个节点的自定义样式</td>
|
||||
<td>node(可选,指定要清除自定义样式的节点,不传则为当前激活节点中的第一个)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>REMOVE_ALL_NODE_CUSTOM_STYLES(v0.9.7+)</td>
|
||||
<td>一键去除多个节点或所有节点的自定义样式</td>
|
||||
<td>appointNodes(可选,节点实例数组,指定要去除自定义样式的多个节点,如果不传则会去除当前画布所有节点的自定义样式)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>setData(data)</h3>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user