From 8bc0b84e96849c7dcba9989ed3d6cd913709072a Mon Sep 17 00:00:00 2001 From: wangyiteng_v Date: Mon, 15 Sep 2025 20:00:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=9C=A8vue=E8=87=AA=E5=AE=9A=E4=B9=89=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=88=A0=E9=99=A4=E4=B8=80=E4=B8=AA=E5=B0=8F=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E4=B8=AD=E5=85=A8=E9=83=A8vue=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=B6=88=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chart/linkChart.ts | 4 ++++ examples/vue3-app/src/views/LFChartView.vue | 9 ++++++++- .../src/components/mini-map/index.ts | 6 +++++- packages/vue-node-registry/src/teleport.ts | 20 +++++++++++++------ packages/vue-node-registry/src/view.ts | 2 +- 5 files changed, 32 insertions(+), 9 deletions(-) diff --git a/examples/vue3-app/src/components/chart/linkChart.ts b/examples/vue3-app/src/components/chart/linkChart.ts index b2c0d410c..35d263f34 100644 --- a/examples/vue3-app/src/components/chart/linkChart.ts +++ b/examples/vue3-app/src/components/chart/linkChart.ts @@ -18,6 +18,9 @@ export default class LinkChart { this.lf = new LogicFlow({ container: options.container, snapline: false, + keyboard: { + enabled: true + }, grid: { visible: true, type: 'mesh', @@ -50,6 +53,7 @@ export default class LinkChart { destroy() { this.lf.clearData() + this.lf.destroy() } static create(options: IOptions) { diff --git a/examples/vue3-app/src/views/LFChartView.vue b/examples/vue3-app/src/views/LFChartView.vue index 4ae192ad9..6eb446534 100644 --- a/examples/vue3-app/src/views/LFChartView.vue +++ b/examples/vue3-app/src/views/LFChartView.vue @@ -1,5 +1,7 @@