feat: Allow node/edge template per element
* Allow templates to be overwritten per element with template option
This commit is contained in:
@@ -124,8 +124,9 @@ watch(
|
||||
)
|
||||
|
||||
const type = computed(() => {
|
||||
let edgeType = edge.value.template ?? store.getEdgeTypes[name.value]
|
||||
const instance = getCurrentInstance()
|
||||
let edgeType = store.getEdgeTypes[name.value]
|
||||
|
||||
if (typeof edgeType === 'string') {
|
||||
if (instance) {
|
||||
const components = Object.keys(instance.appContext.components)
|
||||
|
||||
Reference in New Issue
Block a user