From 76b5f7d22a02806c313ded2b52c1880269a81f61 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: Mon, 3 Mar 2025 17:24:17 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E5=BD=93=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E3=80=81=E5=88=A0=E9=99=A4=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E3=80=81=E6=8C=89=E4=BD=8F=E8=B0=83=E6=95=B4=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=97=B6=E9=9A=90=E8=97=8F=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BD=8D=E7=BD=AE=E8=AE=BE=E7=BD=AE=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/NodeImgPlacementToolbar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Edit/components/NodeImgPlacementToolbar.vue b/web/src/pages/Edit/components/NodeImgPlacementToolbar.vue index 9cdc323c..f05552b9 100644 --- a/web/src/pages/Edit/components/NodeImgPlacementToolbar.vue +++ b/web/src/pages/Edit/components/NodeImgPlacementToolbar.vue @@ -41,7 +41,6 @@ export default { imgPlacement: '' } }, - computed: {}, created() { this.mindMap.on('node_img_click', this.show) this.mindMap.on('draw_click', this.close) @@ -49,6 +48,9 @@ export default { this.mindMap.on('node_dblclick', this.close) this.mindMap.on('node_active', this.onNodeActive) this.mindMap.on('scale', this.onScale) + this.mindMap.on('node_img_adjust_btn_mousedown', this.close) + this.mindMap.on('delete_node_img_from_delete_btn', this.close) + this.mindMap.on('translate', this.close) }, mounted() { document.body.append(this.$refs.nodeImgPlacementToolbar) @@ -60,6 +62,9 @@ export default { this.mindMap.off('node_dblclick', this.close) this.mindMap.off('node_active', this.onNodeActive) this.mindMap.off('scale', this.onScale) + this.mindMap.off('node_img_adjust_btn_mousedown', this.close) + this.mindMap.off('delete_node_img_from_delete_btn', this.close) + this.mindMap.off('translate', this.close) }, methods: { show(node, imgNode) {