index.js 315 B

123456789101112131415
  1. import SVGContent from './dagContent'
  2. import NodeBus from './nodeBus'
  3. const DAGBoard = {
  4. install(Vue, options) {
  5. Vue.component(SVGContent.name, SVGContent)
  6. Vue.component(NodeBus.name, NodeBus)
  7. }
  8. }
  9. if (typeof window !== 'undefined' && window.Vue) {
  10. window.Vue.use(DAGBoard)
  11. }
  12. export default DAGBoard