Closed Justicesoul closed 1 year ago
Hi @Justicesoul, Sorry for the late reply. Please try to modify the source code as follows.
Before:
<template #edge-label="{ edge, slotProps }">
After:
<template #edge-label="{ edge, ...slotProps }">
The error seems to be caused by incorrectly retrieving parameters other than edge
passed to the edge-label
slot.
Best Regards
Thank you, for the answer!
When i trying to use as it is in the documentation i'v got this errors:
But it seems TypeScript or VSCode configuration not recognising something. Now the library it self working fine.
Hi @Justicesoul,
I am pleased to see the improvement.
Volar
seems to be recommended over Vetur
for Vue3 + TypeScript development. If you are concerned about errors, please try this.
https://vuejs.org/guide/typescript/overview.html#ide-support
Thank You, very much, @dash14 !
I was trying to play with the examples and everything works fine, except edge labels. When i use
<v-edge-lable />
in a template graphs crashes with this error:here is the code: