We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
relation-graph@2.1.42 vue@2.6.10 使用 线条插槽 组件里复制的dome <template #line="{ line, link, lineIndex }"> 线条不生效 报错 Cannot read properties of undefined (reading 'getArrow') 说明 relationGraph 为undefined
The text was updated successfully, but these errors were encountered:
relation-graph@2.1.x中在自定义节点、线条插槽中通过依赖注入获取graphInstance的方式发生了变化: 以前是:通过依赖的对象graph获取:graph.instance 现在是:通过依赖的方法graphInstance来获取:graphInstance()
你可以将你的代码以下内容按照下图修改一下就可以了:
相关的示例: https://www.relation-graph.com/#/demo/vue2?id=adv-line-slot2
Sorry, something went wrong.
No branches or pull requests
relation-graph@2.1.42
vue@2.6.10
使用 线条插槽 组件里复制的dome
<template #line="{ line, link, lineIndex }">
线条不生效 报错 Cannot read properties of undefined (reading 'getArrow')
说明 relationGraph 为undefined
The text was updated successfully, but these errors were encountered: