Skip to content

Commit

Permalink
Doc: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Dec 13, 2023
1 parent fc45e2a commit 8dc637c
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 7 deletions.
2 changes: 1 addition & 1 deletion simple-mind-map/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.9.1-fix.1",
"version": "0.9.1-fix.2",
"description": "一个简单的web在线思维导图",
"authors": [
{
Expand Down
20 changes: 17 additions & 3 deletions web/src/pages/Doc/en/changelog/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
# Changelog

## 0.9.1-fix.2

Fix:

> 1.Fix the issue where some browsers display default text when node text is empty.
>
> 2.Fix the issue of text style loss when inputting text again when the node text content is empty.
>
> 3.Fix the issue where exporting images also fails when node image loading fails.
New:

> 1.Support configuring the default image displayed when node image loading fails.
## 0.9.1-fix.1

修复:
Fix:

1.修复自定义节点方法返回null时报错的问题。
1.Fix the issue of custom node methods reporting null errors.

2.修复导出pdf文件体积很大的问题。
2.Fix the issue of large volume of exported PDF files.

## 0.9.1

Expand Down
17 changes: 14 additions & 3 deletions web/src/pages/Doc/en/changelog/index.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.9.1-fix.2</h2>
<p>Fix:</p>
<blockquote>
<p>1.Fix the issue where some browsers display default text when node text is empty.</p>
<p>2.Fix the issue of text style loss when inputting text again when the node text content is empty.</p>
<p>3.Fix the issue where exporting images also fails when node image loading fails.</p>
</blockquote>
<p>New:</p>
<blockquote>
<p>1.Support configuring the default image displayed when node image loading fails.</p>
</blockquote>
<h2>0.9.1-fix.1</h2>
<p>修复:</p>
<p>1.修复自定义节点方法返回null时报错的问题。</p>
<p>2.修复导出pdf文件体积很大的问题。</p>
<p>Fix:</p>
<p>1.Fix the issue of custom node methods reporting null errors.</p>
<p>2.Fix the issue of large volume of exported PDF files.</p>
<h2>0.9.1</h2>
<p>Fix:</p>
<blockquote>
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Doc/en/constructor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const mindMap = new MindMap({
| disableTouchZoom(v0.8.1+) | Boolean | false | Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin | |
| highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | Highlight box style when the mouse moves into the summary to highlight the node it belongs to | |
| createNewNodeBehavior(v0.9.1+) | String | default | Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode) | |
| defaultNodeImage(v0.9.1-fix.2+) | String | | Image address, the default image displayed when node image loading fails | |

### Data structure

Expand Down
7 changes: 7 additions & 0 deletions web/src/pages/Doc/en/constructor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,13 @@
<td>Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode)</td>
<td></td>
</tr>
<tr>
<td>defaultNodeImage(v0.9.1-fix.2+)</td>
<td>String</td>
<td></td>
<td>Image address, the default image displayed when node image loading fails</td>
<td></td>
</tr>
</tbody>
</table>
<h3>Data structure</h3>
Expand Down
14 changes: 14 additions & 0 deletions web/src/pages/Doc/zh/changelog/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.9.1-fix.2

修复:

> 1.修复当节点文本为空时部分浏览器会显示默认文本的问题。
>
> 2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。
>
> 3.修复节点图片加载失败时导出图片也会失败的问题。
新增:

> 1.支持配置节点图片加载失败时显示的默认图片。
## 0.9.1-fix.1

修复:
Expand Down
11 changes: 11 additions & 0 deletions web/src/pages/Doc/zh/changelog/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.9.1-fix.2</h2>
<p>修复:</p>
<blockquote>
<p>1.修复当节点文本为空时部分浏览器会显示默认文本的问题。</p>
<p>2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。</p>
<p>3.修复节点图片加载失败时导出图片也会失败的问题。</p>
</blockquote>
<p>新增:</p>
<blockquote>
<p>1.支持配置节点图片加载失败时显示的默认图片。</p>
</blockquote>
<h2>0.9.1-fix.1</h2>
<p>修复:</p>
<p>1.修复自定义节点方法返回null时报错的问题。</p>
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Doc/zh/constructor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const mindMap = new MindMap({
| disableTouchZoom(v0.8.1+) | Boolean | false | 禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效 |
| highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | 鼠标移入概要高亮所属节点时的高亮框样式 |
| createNewNodeBehavior(v0.9.1+) | String | default | 创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式) |
| defaultNodeImage(v0.9.1-fix.2+) | String | | 图片地址,当节点图片加载失败时显示的默认图片 |

### 数据结构

Expand Down
6 changes: 6 additions & 0 deletions web/src/pages/Doc/zh/constructor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@
<td>default</td>
<td>创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)</td>
</tr>
<tr>
<td>defaultNodeImage(v0.9.1-fix.2+)</td>
<td>String</td>
<td></td>
<td>图片地址,当节点图片加载失败时显示的默认图片</td>
</tr>
</tbody>
</table>
<h3>数据结构</h3>
Expand Down

0 comments on commit 8dc637c

Please sign in to comment.