From f80317a4496374a92d11b542818afc3df909c00a 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: Wed, 26 Jun 2024 16:03:13 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/en/constructor/index.md | 2 ++ web/src/pages/Doc/en/constructor/index.vue | 10 ++++++++++ web/src/pages/Doc/zh/constructor/index.md | 2 ++ web/src/pages/Doc/zh/constructor/index.vue | 10 ++++++++++ 4 files changed, 24 insertions(+) diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index 68c86666..7ede840b 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -585,6 +585,8 @@ Listen to an event. Event list: | demonstrate_jump(v0.9.11+) | Trigger when switching steps in demonstration mode | currentStepIndex(The index of the steps currently played, counting from 0)、stepLength(Total number of playback steps) | | node_tag_click(v0.9.12+) | Click events on node labels | this(Current node instance)、item(Content of clicked tags) | | node_layout_end(v0.10.1+) | Event where the content layout of a single node is completed | this(Current node instance) | +| node_attachmentClick(v0.9.10+) | Click event for node attachment icon | this(Current node instance)、e(Event Object)、node(Icon node) | +| node_attachmentContextmenu(v0.9.10+) | Right click event on node attachment icon | this(Current node instance)、e(Event Object)、node(Icon node) | ### emit(event, ...args) diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 49924aab..3f880968 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -1606,6 +1606,16 @@ poor performance and should be used sparingly.

Event where the content layout of a single node is completed this(Current node instance) + +node_attachmentClick(v0.9.10+) +Click event for node attachment icon +this(Current node instance)、e(Event Object)、node(Icon node) + + +node_attachmentContextmenu(v0.9.10+) +Right click event on node attachment icon +this(Current node instance)、e(Event Object)、node(Icon node) +

emit(event, ...args)

diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index a28f37d8..457165e1 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -584,6 +584,8 @@ mindMap.setTheme('主题名称') | demonstrate_jump(v0.9.11+) | 演示模式中,切换步骤时触发 | currentStepIndex(当前播放到的步骤索引,从0开始计数)、stepLength(总的播放步骤数量) | | node_tag_click(v0.9.12+) | 节点标签的点击事件 | this(当前节点实例)、item(点击的标签内容) | | node_layout_end(v0.10.1+) | 单个节点内容布局完成的事件 | this(当前节点实例) | +| node_attachmentClick(v0.9.10+) | 节点附件图标的点击事件 | this(当前节点实例)、e(事件对象)、node(图标节点) | +| node_attachmentContextmenu(v0.9.10+) | 节点附件图标的右键点击事件 | this(当前节点实例)、e(事件对象)、node(图标节点) | ### emit(event, ...args) diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index e1fa0132..6a5c9d16 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -1475,6 +1475,16 @@ mindMap.setTheme('主题名称') 单个节点内容布局完成的事件 this(当前节点实例) + +node_attachmentClick(v0.9.10+) +节点附件图标的点击事件 +this(当前节点实例)、e(事件对象)、node(图标节点) + + +node_attachmentContextmenu(v0.9.10+) +节点附件图标的右键点击事件 +this(当前节点实例)、e(事件对象)、node(图标节点) +

emit(event, ...args)