Doc: update

This commit is contained in:
街角小林 2023-12-13 09:46:12 +08:00
parent fc45e2a528
commit 8dc637c544
9 changed files with 72 additions and 7 deletions

View File

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

View File

@ -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

View File

@ -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>

View File

@ -104,6 +104,7 @@ const mindMap = new MindMap({
| disableTouchZoomv0.8.1+ | Boolean | false | Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin | |
| highlightNodeBoxStylev0.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 | |
| createNewNodeBehaviorv0.9.1+ | String | default | Behavior when creating a new node. defaultBy 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、notActiveDo not activate newly created nodes、activeOnlyOnly activate newly created nodes and do not enter editing mode | |
| defaultNodeImagev0.9.1-fix.2+ | String | | Image address, the default image displayed when node image loading fails | |
### Data structure

View File

@ -588,6 +588,13 @@
<td>Behavior when creating a new node. defaultBy 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 modenotActiveDo not activate newly created nodesactiveOnlyOnly activate newly created nodes and do not enter editing mode</td>
<td></td>
</tr>
<tr>
<td>defaultNodeImagev0.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>

View File

@ -1,5 +1,19 @@
# Changelog
## 0.9.1-fix.2
修复:
> 1.修复当节点文本为空时部分浏览器会显示默认文本的问题。
>
> 2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。
>
> 3.修复节点图片加载失败时导出图片也会失败的问题。
新增:
> 1.支持配置节点图片加载失败时显示的默认图片。
## 0.9.1-fix.1
修复:

View File

@ -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>

View File

@ -104,6 +104,7 @@ const mindMap = new MindMap({
| disableTouchZoomv0.8.1+ | Boolean | false | 禁止双指缩放你仍旧可以使用api进行缩放对TouchEvent插件生效 |
| highlightNodeBoxStylev0.9.0+ | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | 鼠标移入概要高亮所属节点时的高亮框样式 |
| createNewNodeBehaviorv0.9.1+ | String | default | 创建新节点时的行为。default默认会激活新创建的节点并且进入编辑模式。如果同时创建了多个新节点那么只会激活而不会进入编辑模式、notActive不激活新创建的节点、activeOnly只激活新创建的节点不进入编辑模式 |
| defaultNodeImagev0.9.1-fix.2+ | String | | 图片地址,当节点图片加载失败时显示的默认图片 |
### 数据结构

View File

@ -507,6 +507,12 @@
<td>default</td>
<td>创建新节点时的行为default默认会激活新创建的节点并且进入编辑模式如果同时创建了多个新节点那么只会激活而不会进入编辑模式notActive不激活新创建的节点activeOnly只激活新创建的节点不进入编辑模式</td>
</tr>
<tr>
<td>defaultNodeImagev0.9.1-fix.2+</td>
<td>String</td>
<td></td>
<td>图片地址当节点图片加载失败时显示的默认图片</td>
</tr>
</tbody>
</table>
<h3>数据结构</h3>