Skip to content

Commit

Permalink
fix: remove Vue from named export
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 authored Dec 14, 2023
1 parent f2cae96 commit 4a4be6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/x6-vue-shape/src/teleport.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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 })]),
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 4a4be6a

Please sign in to comment.