From 80f45e5e7d019fe555c75c2df81c868bf0095c11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com>
Date: Thu, 27 Jun 2024 09:26:04 +0800
Subject: [PATCH] Doc: update
---
web/src/pages/Doc/en/command/index.md | 14 +++++++++++++-
web/src/pages/Doc/en/command/index.vue | 8 +++++++-
web/src/pages/Doc/zh/command/index.md | 14 +++++++++++++-
web/src/pages/Doc/zh/command/index.vue | 8 +++++++-
4 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/web/src/pages/Doc/en/command/index.md b/web/src/pages/Doc/en/command/index.md
index 6c9b4427..a3749033 100644
--- a/web/src/pages/Doc/en/command/index.md
+++ b/web/src/pages/Doc/en/command/index.md
@@ -5,8 +5,20 @@ includes many built-in commands and can also be added manually. A command refers
to an operation that needs to add a copy to the history stack data. The
`mindMap.command` instance can be obtained through this."
+## Props
+
+### history
+
+The current list of all historical data. Do not manually modify the array.
+
+### activeHistoryIndex
+
+The current historical data index. Do not manually modify this property.
+
## Methods
+Please use the command 'Back' or 'FORWARD' to move forward or backward.
+
### pause()
> v0.9.11+
@@ -38,7 +50,7 @@ removed
### getCopyData()
-Get a copy of the rendering tree data
+Get a copy of the rendering tree data. That is, the data of the current canvas.
### clearHistory()
diff --git a/web/src/pages/Doc/en/command/index.vue b/web/src/pages/Doc/en/command/index.vue
index 4607c8bd..9c663301 100644
--- a/web/src/pages/Doc/en/command/index.vue
+++ b/web/src/pages/Doc/en/command/index.vue
@@ -5,7 +5,13 @@
includes many built-in commands and can also be added manually. A command refers
to an operation that needs to add a copy to the history stack data. The
mindMap.command instance can be obtained through this."
The current list of all historical data. Do not manually modify the array.
+The current historical data index. Do not manually modify this property.
Please use the command 'Back' or 'FORWARD' to move forward or backward.
v0.9.11+
@@ -26,7 +32,7 @@ to an operation that needs to add a copy to the history stack data. The
fn: Method to be removed, if not provided all methods for the command will be removedgetCopyData()
-Get a copy of the rendering tree data
+Get a copy of the rendering tree data. That is, the data of the current canvas.
clearHistory()
Clear the history stack data
diff --git a/web/src/pages/Doc/zh/command/index.md b/web/src/pages/Doc/zh/command/index.md index 2005f1a7..25c6884b 100644 --- a/web/src/pages/Doc/zh/command/index.md +++ b/web/src/pages/Doc/zh/command/index.md @@ -2,8 +2,20 @@ `command`实例负责命令的添加及执行,内置了很多命令,也可以自行添加,命令指需要在历史堆栈数据里添加副本的操作。可通过`mindMap.command`获取到该实例 +## 属性 + +### history + +当前所有的历史数据列表。不要手动修改该数组。 + +### activeHistoryIndex + +当前所在的历史数据索引。不要手动修改该属性。 + ## 方法 +前进后退请使用命令`BACK`或`FORWARD`。 + ### pause() > v0.9.11+ @@ -34,7 +46,7 @@ ### getCopyData() -获取渲染树数据副本 +获取渲染树数据副本。即当前画布的数据。 ### clearHistory() diff --git a/web/src/pages/Doc/zh/command/index.vue b/web/src/pages/Doc/zh/command/index.vue index 1ec0ee65..373f2247 100644 --- a/web/src/pages/Doc/zh/command/index.vue +++ b/web/src/pages/Doc/zh/command/index.vue @@ -2,7 +2,13 @@Command 实例
+
command实例负责命令的添加及执行,内置了很多命令,也可以自行添加,命令指需要在历史堆栈数据里添加副本的操作。可通过mindMap.command获取到该实例属性
+history
+当前所有的历史数据列表。不要手动修改该数组。
+activeHistoryIndex
+当前所在的历史数据索引。不要手动修改该属性。
方法
+前进后退请使用命令
BACK或FORWARD。pause()
v0.9.11+
@@ -22,7 +28,7 @@
name:要移除的命令名称
fn:要移除的方法,不传的话移除该命令所有的方法getCopyData()
-获取渲染树数据副本
+获取渲染树数据副本。即当前画布的数据。
clearHistory()
清空历史堆栈数据