chore(core): cleanup slots

This commit is contained in:
braks
2023-11-08 08:27:12 +01:00
committed by Braks
parent 196cafdf81
commit 70ae0749b7
3 changed files with 13 additions and 116 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import type { InjectionKey, Ref, Slots as TSlots } from 'vue'
import type { VueFlowStore } from '~/types'
import type { InjectionKey, Ref } from 'vue'
import type { FlowSlots, VueFlowStore } from '~/types'
export const VueFlow: InjectionKey<VueFlowStore> = Symbol('vueFlow')
export const NodeId: InjectionKey<string> = Symbol('nodeId')
export const NodeRef: InjectionKey<Ref<HTMLDivElement | null>> = Symbol('nodeRef')
export const EdgeId: InjectionKey<string> = Symbol('edgeId')
export const EdgeRef: InjectionKey<Ref<SVGElement | null>> = Symbol('edgeRef')
export const Slots: InjectionKey<TSlots> = Symbol('slots')
export const Slots: InjectionKey<Readonly<FlowSlots>> = Symbol('slots')