更新文档

This commit is contained in:
wanglin2
2023-03-08 09:39:05 +08:00
parent 7087b43d39
commit 00f9258a4d
9 changed files with 67 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.4.2",
"version": "0.4.3",
"description": "一个简单的web在线思维导图",
"authors": [
{

View File

@@ -1,5 +1,11 @@
# Changelog
## 0.4.3
Fix: No trigger after forward and backward `data_ Change` event.
New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.
## 0.4.2
New: The `setText` method of the Node class adds a second parameter to support setting rich text content.

View File

@@ -1,6 +1,9 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.4.3</h2>
<p>Fix: No trigger after forward and backward <code>data_ Change</code> event.</p>
<p>New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.</p>
<h2>0.4.2</h2>
<p>New: The <code>setText</code> method of the Node class adds a second parameter to support setting rich text content.</p>
<h2>0.4.1</h2>

View File

@@ -41,6 +41,9 @@ const mindMap = new MindMap({
| enableFreeDragv0.2.4+ | Boolean | false | Enable node free drag | |
| watermarkConfigv0.2.4+ | Object | | Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration | |
| textAutoWrapWidthv0.3.4+ | Number | 500 | Each line of text in the node will wrap automatically when it reaches the width | |
| customHandleMousewheelv0.4.3+ | Function | null | User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object | |
| mousewheelActionv0.4.3+ | String | zoom | The behavior of the mouse wheel, `zoom`(Zoom in and out)、`move`(Move up and down). If `customHandleMousewheel` passes a custom function, this property will not take effect | |
| mousewheelMoveStepv0.4.3+ | Number | 100 | When the `mousewheelAction` is set to `move`, you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is `px` | |
### Watermark config

View File

@@ -147,6 +147,27 @@
<td>Each line of text in the node will wrap automatically when it reaches the width</td>
<td></td>
</tr>
<tr>
<td>customHandleMousewheelv0.4.3+</td>
<td>Function</td>
<td>null</td>
<td>User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object</td>
<td></td>
</tr>
<tr>
<td>mousewheelActionv0.4.3+</td>
<td>String</td>
<td>zoom</td>
<td>The behavior of the mouse wheel, <code>zoom</code>(Zoom in and out)<code>move</code>(Move up and down). If <code>customHandleMousewheel</code> passes a custom function, this property will not take effect</td>
<td></td>
</tr>
<tr>
<td>mousewheelMoveStepv0.4.3+</td>
<td>Number</td>
<td>100</td>
<td>When the <code>mousewheelAction</code> is set to <code>move</code>, you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is <code>px</code></td>
<td></td>
</tr>
</tbody>
</table>
<h3>Watermark config</h3>

View File

@@ -1,5 +1,11 @@
# Changelog
## 0.4.3
修复:前进回退后没有触发`data_change`事件的问题。
新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。
## 0.4.2
新增:`Node`类的`setText`方法增加第二个参数,以支持设置富文本内容。

View File

@@ -1,6 +1,9 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.4.3</h2>
<p>修复前进回退后没有触发<code>data_change</code>事件的问题</p>
<p>新增支持自定义鼠标滚轮事件鼠标滚轮调整为支持缩放视图和上下移动视图</p>
<h2>0.4.2</h2>
<p>新增<code>Node</code>类的<code>setText</code>方法增加第二个参数以支持设置富文本内容</p>
<h2>0.4.1</h2>

View File

@@ -41,6 +41,9 @@ const mindMap = new MindMap({
| enableFreeDragv0.2.4+ | Boolean | false | 是否开启节点自由拖拽 | |
| watermarkConfigv0.2.4+ | Object | | 水印配置,详细配置请参考下方表格【水印配置】 | |
| textAutoWrapWidthv0.3.4+ | Number | 500 | 节点内每行文本达到该宽度后自动换行 | |
| customHandleMousewheelv0.4.3+ | Function | null | 自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象 | |
| mousewheelActionv0.4.3+ | String | zoom | 鼠标滚轮的行为,`zoom`(放大缩小)、`move`(上下移动)。如果`customHandleMousewheel`传了自定义函数,这个属性不生效 | |
| mousewheelMoveStepv0.4.3+ | Number | 100 | 当`mousewheelAction`设为`move`时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位`px` | |
### 水印配置

View File

@@ -147,6 +147,27 @@
<td>节点内每行文本达到该宽度后自动换行</td>
<td></td>
</tr>
<tr>
<td>customHandleMousewheelv0.4.3+</td>
<td>Function</td>
<td>null</td>
<td>自定义鼠标滚轮事件处理可以传一个函数回调参数为事件对象</td>
<td></td>
</tr>
<tr>
<td>mousewheelActionv0.4.3+</td>
<td>String</td>
<td>zoom</td>
<td>鼠标滚轮的行为<code>zoom</code>放大缩小<code>move</code>上下移动如果<code>customHandleMousewheel</code>传了自定义函数这个属性不生效</td>
<td></td>
</tr>
<tr>
<td>mousewheelMoveStepv0.4.3+</td>
<td>Number</td>
<td>100</td>
<td><code>mousewheelAction</code>设为<code>move</code>可以通过该属性控制鼠标滚动一下视图移动的步长单位<code>px</code></td>
<td></td>
</tr>
</tbody>
</table>
<h3>水印配置</h3>