From 0e5fed6645f4dd466258be839565c7b3d67549b8 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 18 Oct 2023 10:49:27 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/en/changelog/index.md | 2 ++ web/src/pages/Doc/en/changelog/index.vue | 1 + web/src/pages/Doc/en/constructor/index.md | 3 ++- web/src/pages/Doc/en/constructor/index.vue | 11 +++++++++-- web/src/pages/Doc/zh/changelog/index.md | 2 ++ web/src/pages/Doc/zh/changelog/index.vue | 1 + web/src/pages/Doc/zh/constructor/index.md | 3 ++- web/src/pages/Doc/zh/constructor/index.vue | 10 ++++++++-- 8 files changed, 27 insertions(+), 6 deletions(-) diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index fd20d5ba..518693e2 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -39,6 +39,8 @@ New: > 9.Pasting text with line breaks supports controlling whether nodes are split by line breaks. > > 10.The mini map plugin supports returning mini maps of image types. +> +> 11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states. Demo: diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 56248512..367eed13 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -24,6 +24,7 @@
8.The folded active nodes are synchronously deleted from the list of active nodes.
9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.
10.The mini map plugin supports returning mini maps of image types.
+11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.
Demo:
diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index a83aecad..b7075999 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -98,7 +98,8 @@ const mindMap = new MindMap({ | cooperateStyle(v0.7.3+) | Object | { avatarSize: 22, fontSize: 12 } | The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text | | | associativeLineIsAlwaysAboveNode(v0.8.0+) | Boolean | true | Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node | | | defaultGeneralizationText(v0.8.0+) | String | 概要 | Insert default text for summary | | -| handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) | Function | null | null | When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks | | +| handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) | Function / null | null | When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks | | +| addHistoryTime(v0.8.0+) | Number | 100 | Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms | | ### Data structure diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index aed840f6..2eabcf8f 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -548,10 +548,17 @@+ handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) -Function -null +Function / null null When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks ++ + diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md index 54998a31..9e9d088f 100644 --- a/web/src/pages/Doc/zh/changelog/index.md +++ b/web/src/pages/Doc/zh/changelog/index.md @@ -39,6 +39,8 @@ > 9.粘贴带换行的文本支持控制是否按换行分割节点。 > > 10.小地图插件支持返回图片类型的小地图。 +> +> 11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。 Demo: diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index 3c9d3ce6..f8c352c3 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -24,6 +24,7 @@addHistoryTime(v0.8.0+) +Number +100 +Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms +8.被收起的激活节点同步从激活节点列表里删除。
9.粘贴带换行的文本支持控制是否按换行分割节点。
10.小地图插件支持返回图片类型的小地图。
+11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。
Demo:
diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index d17efa01..e1a98944 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -98,7 +98,8 @@ const mindMap = new MindMap({ | cooperateStyle(v0.7.3+) | Object | { avatarSize: 22, fontSize: 12 } | 节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小 | | associativeLineIsAlwaysAboveNode(v0.8.0+) | Boolean | true | 关联线是否始终显示在节点上层,如果设为false,那么创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方 | | defaultGeneralizationText(v0.8.0+) | String | 概要 | 插入概要的默认文本 | -| handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) | Function | null | null | 粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行 | +| handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) | Function / null | null | 粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行 | +| addHistoryTime(v0.8.0+) | Number | 100 | 指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms | ### 数据结构 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index 676ae56c..d58880f3 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -473,9 +473,15 @@+ handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+) -Function -null +Function / null null +粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行 ++ addHistoryTime(v0.8.0+) +Number +100 +指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms