relation-graph icon indicating copy to clipboard operation
relation-graph copied to clipboard

not supported for VUE3?

Open MessyPaste opened this issue 4 years ago • 2 comments

使用vue3 按照文档导入了组件,页面就变空白了,报错:Uncaught (in promise) TypeError: selfHook.bind is not a function

请问是不支持vue3吗

MessyPaste avatar May 19 '21 02:05 MessyPaste

我也遇到了和你相同的问题

xsw1999 avatar Jun 01 '21 05:06 xsw1999

请问一下,你们解决了吗

meplay avatar May 09 '22 11:05 meplay

vue3 中引入报这个错

TypeError: Cannot read properties of undefined (reading 'version') at Proxy.created (relation-graph.common.js?0568:9538:1) at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:155:1) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:164:1) at callHook (runtime-core.esm-bundler.js?5c40:2969:1) at applyOptions (runtime-core.esm-bundler.js?5c40:2871:1) at finishComponentSetup (runtime-core.esm-bundler.js?5c40:7186:1) at setupStatefulComponent (runtime-core.esm-bundler.js?5c40:7098:1) at setupComponent (runtime-core.esm-bundler.js?5c40:7028:1) at mountComponent (runtime-core.esm-bundler.js?5c40:4937:1) at processComponent (runtime-core.esm-bundler.js?5c40:4912:1)

kitymore avatar Jan 11 '23 07:01 kitymore

已发布,2023-02-19 最新版本v2.0.12起开始支持vue3

vue2使用方法: import RelationGraph from 'relation-graph'

vue3使用方法: import RelationGraph from 'relation-graph/vue3'

vue3完整小示例:https://github.com/seeksdream/relation-graph-vue3-demo

seeksdream avatar Feb 19 '23 18:02 seeksdream