Skip to content

Commit

Permalink
feat: x6-vue-shape supports getting nodes and graph in the props
Browse files Browse the repository at this point in the history
This change does not affect the original usage, and provides a new way to getting nodes and graph
  • Loading branch information
gxy5202 authored Jul 10, 2023
1 parent 8dd0021 commit c03138c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-vue-shape/src/teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function connect(
const { Teleport, markRaw } = Vue as any
items[id] = markRaw(
defineComponent({
render: () => h(Teleport, { to: container } as any, [h(component)]),
render: () => h(Teleport, { to: container } as any, [h(component, { getNode: () => node, getGraph: () => graph })]),
provide: () => ({
getNode: () => node,
getGraph: () => graph,
Expand Down

0 comments on commit c03138c

Please sign in to comment.