From 134fd69ffa67d701c9ed194eb3630a83ffc9fe81 Mon Sep 17 00:00:00 2001 From: MaxChang3 Date: Tue, 24 Oct 2023 12:31:59 +0800 Subject: [PATCH] chore: typo --- web/src/lang/en_us.js | 2 +- web/src/lang/zh_cn.js | 2 +- web/src/pages/Doc/en/constructor/index.md | 4 ++-- web/src/pages/Doc/en/constructor/index.vue | 4 ++-- web/src/pages/Doc/zh/constructor/index.md | 4 ++-- web/src/pages/Doc/zh/constructor/index.vue | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index 94fee6da..7d238826 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -276,7 +276,7 @@ export default { }, formulaSidebar: { title: 'Formula', - placeholder: 'Please enter LaText syntax', + placeholder: 'Please enter LaTeX syntax', confirm: 'Confirm', common: 'Common formulas', tip: 'Inserting formulas is not supported in non rich text mode' diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index 521b0c37..133be1d5 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -270,7 +270,7 @@ export default { }, formulaSidebar: { title: '公式', - placeholder: '请输入 LaText 语法', + placeholder: '请输入 LaTeX 语法', confirm: '完成', common: '常用公式', tip: '非富文本模式下不支持插入公式' diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index b7075999..dcef3867 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -519,7 +519,7 @@ redo. All commands are as follows: | GO_TARGET_NODE(v0.6.7+) | Navigate to a node, and if the node is collapsed, it will automatically expand to that node | node(Node instance or node uid to locate)、callback(v0.6.9+, Callback function after positioning completion) | | INSERT_MULTI_NODE(v0.7.2+) | Insert multiple sibling nodes into the specified node at the same time, with the operating node being the currently active node or the specified node | appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), nodeList(Data list of newly inserted nodes, array type) | | INSERT_MULTI_CHILD_NODE(v0.7.2+) | Insert multiple child nodes into the specified node simultaneously, with the operation node being the currently active node or the specified node | appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), childList(Data list of newly inserted nodes, array type) | -| INSERT_FORMULA(v0.7.2+) | Insert mathematical formulas into nodes, operate on the currently active node or specified node | formula(Mathematical formula to insert, LaText syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node) | +| INSERT_FORMULA(v0.7.2+) | Insert mathematical formulas into nodes, operate on the currently active node or specified node | formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node) | | INSERT_PARENT_NODE(v0.8.0+) | Insert a parent node into the specified node, with the operation node being the currently active node or the specified node | openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced [exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js)) | | REMOVE_CURRENT_NODE(v0.8.0+) | Delete only the current node, operate on the currently active node or specified node | appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array) | @@ -592,4 +592,4 @@ Register plugin, Use `MindMap.usePlugin` to register plugin only before instanti > v0.4.0+ -Remove registered plugin, Plugins registered through the `usePlugin` or `addPlugin` methods can be removed. \ No newline at end of file +Remove registered plugin, Plugins registered through the `usePlugin` or `addPlugin` methods can be removed. diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 2eabcf8f..f4cb3704 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -1270,7 +1270,7 @@ redo. All commands are as follows:

INSERT_FORMULA(v0.7.2+) Insert mathematical formulas into nodes, operate on the currently active node or specified node -formula(Mathematical formula to insert, LaText syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node) +formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node) INSERT_PARENT_NODE(v0.8.0+) @@ -1347,4 +1347,4 @@ export default { \ No newline at end of file + diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index e1a98944..f3ee8f94 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -514,7 +514,7 @@ mindMap.updateConfig({ | GO_TARGET_NODE(v0.6.7+) | 定位到某个节点,如果该节点被收起,那么会自动展开到该节点 | node(要定位到的节点实例或节点uid)、callback(v0.6.9+,定位完成后的回调函数) | | INSERT_MULTI_NODE(v0.7.2+) | 给指定的节点同时插入多个同级节点,操作节点为当前激活的节点或指定节点 | appointNodes(可选,指定节点,指定多个节点可以传一个数组), nodeList(新插入节点的数据列表,数组类型) | | INSERT_MULTI_CHILD_NODE(v0.7.2+) | 给指定的节点同时插入多个子节点,操作节点为当前激活的节点或指定节点 | appointNodes(可选,指定节点,指定多个节点可以传一个数组), childList(新插入节点的数据列表,数组类型) | -| INSERT_FORMULA(v0.7.2+) | 给节点插入数学公式,操作节点为当前激活的节点或指定节点 | formula(要插入的数学公式,LaText语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点) | +| INSERT_FORMULA(v0.7.2+) | 给节点插入数学公式,操作节点为当前激活的节点或指定节点 | formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点) | | INSERT_PARENT_NODE(v0.8.0+) | 给指定的节点插入父节点,操作节点为当前激活的节点或指定节点 | openEdit(是否激活新插入的节点并进入编辑模式,默认为`true`)、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考[exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js)) | | REMOVE_CURRENT_NODE(v0.8.0+) | 仅删除当前节点,操作节点为当前激活的节点或指定节点 | appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组) | @@ -580,4 +580,4 @@ mindMap.updateConfig({ > v0.4.0+ -移除注册的插件,无论是通过`usePlugin`还是`addPlugin`方法注册的插件都可以移除。 \ No newline at end of file +移除注册的插件,无论是通过`usePlugin`还是`addPlugin`方法注册的插件都可以移除。 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index d58880f3..2870f333 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -1188,7 +1188,7 @@ mindMap.setTheme('主题名称') INSERT_FORMULA(v0.7.2+) 给节点插入数学公式,操作节点为当前激活的节点或指定节点 -formula(要插入的数学公式,LaText语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点) +formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点) INSERT_PARENT_NODE(v0.8.0+) @@ -1258,4 +1258,4 @@ export default { \ No newline at end of file +