React中使用Qunee组件,通过传入回调函数获取graph对象 Graph.jsx import {useEffect, useRef} from "../qunee_demo_3/doc/react.md"; import Q from 'https://demo.qunee.com/lib/qunee-es.js' export function Graph({onload}) { const ref = useRef(); useEffect(() => { let graph = new Q.Graph(ref.current); …
阅读更多qunee组件支持es6引入方式,可以在vue项目中使用,可以按下面的方式使用Graph组件 Graph.vue 选项式API Graph.vue <template> <div ref="canvas"></div> </template> <script> import Q from 'https://demo.qunee.com/lib/qunee-es.js' export default { mounted(){ this.graph = new Q.Graph(this.$refs.canvas); } } …
阅读更多