mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Doc: update
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -1606,6 +1606,16 @@ poor performance and should be used sparingly.</p>
|
||||
<td>Event where the content layout of a single node is completed</td>
|
||||
<td>this(Current node instance)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>node_attachmentClick(v0.9.10+)</td>
|
||||
<td>Click event for node attachment icon</td>
|
||||
<td>this(Current node instance)、e(Event Object)、node(Icon node)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>node_attachmentContextmenu(v0.9.10+)</td>
|
||||
<td>Right click event on node attachment icon</td>
|
||||
<td>this(Current node instance)、e(Event Object)、node(Icon node)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>emit(event, ...args)</h3>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -1475,6 +1475,16 @@ mindMap.setTheme(<span class="hljs-string">'主题名称'</span>)
|
||||
<td>单个节点内容布局完成的事件</td>
|
||||
<td>this(当前节点实例)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>node_attachmentClick(v0.9.10+)</td>
|
||||
<td>节点附件图标的点击事件</td>
|
||||
<td>this(当前节点实例)、e(事件对象)、node(图标节点)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>node_attachmentContextmenu(v0.9.10+)</td>
|
||||
<td>节点附件图标的右键点击事件</td>
|
||||
<td>this(当前节点实例)、e(事件对象)、node(图标节点)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>emit(event, ...args)</h3>
|
||||
|
||||
Reference in New Issue
Block a user