From 4a4be6a006a0734f146ac2168e0015b748c48d39 Mon Sep 17 00:00:00 2001 From: Yue JIN <40021217+kingyue737@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:28:50 +0800 Subject: [PATCH] fix: remove `Vue` from named export --- packages/x6-vue-shape/src/teleport.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/x6-vue-shape/src/teleport.ts b/packages/x6-vue-shape/src/teleport.ts index c91ff9fd0a1..a6f957f3762 100644 --- a/packages/x6-vue-shape/src/teleport.ts +++ b/packages/x6-vue-shape/src/teleport.ts @@ -1,4 +1,4 @@ -import { defineComponent, h, reactive, isVue3, Vue } from 'vue-demi' +import { defineComponent, h, reactive, isVue3, Teleport, markRaw, Fragment } from 'vue-demi' import { Graph } from '@antv/x6' import { VueShape } from './node' @@ -13,7 +13,6 @@ export function connect( graph: Graph, ) { if (active) { - const { Teleport, markRaw } = Vue as any items[id] = markRaw( defineComponent({ render: () => h(Teleport, { to: container } as any, [h(component, { node, graph })]), @@ -41,7 +40,6 @@ export function getTeleport(): any { throw new Error('teleport is only available in Vue3') } active = true - const { Fragment } = Vue as any return defineComponent({ setup() {