chore(docs): correct description of auto connect prop
This commit is contained in:
@@ -762,15 +762,15 @@ import { ref } from 'vue'
|
|||||||
const elements = ref([/** elements omitted for simplicity */])
|
const elements = ref([/** elements omitted for simplicity */])
|
||||||
|
|
||||||
const connector = (params) => {
|
const connector = (params) => {
|
||||||
if (params.source.id === params.target.id) {
|
if (params.source === params.target) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: `edge-${params.source.id}-${params.target.id}`,
|
id: `edge-${params.source.id}-${params.target}`,
|
||||||
source: params.source.id,
|
source: params.source,
|
||||||
target: params.target.id,
|
target: params.target,
|
||||||
label: `Edge ${params.source.id}-${params.target.id}`,
|
label: `Edge ${params.source}-${params.target}`,
|
||||||
animated: true,
|
animated: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user