@antv/x6-vue-shape
X6 shape for rendering vue components.
Last updated 3 years ago by newbyvector .
MIT · Repository · Bugs · Original npm
$ cnpm install @antv/x6-vue-shape 
SYNC missed versions from official npm registry.

@antv/x6-vue-shape

x6 shape for rendering vue components

Installation

# npm
$ npm install @antv/x6-vue-shape --save

# yarn
$ yarn add @antv/x6-vue-shape

Usage

import { Graph } from '@antv/x6'
import '@antv/x6-vue-shape'
import HelloWord from './HelloWord.vue'

// render
graph.addNode({
  shape: 'vue-shape',
  x: 32,
  y: 48,
  width: 180,
  height: 40,
  component: {
    template: `<hello-world :name="name"></hello-world>`,
    data() {
      return {
        name: 'x6',
      }
    },
    components: {
      HelloWorld,
    }
  },
})

Current Tags

  • 2.0.3-beta.0                                ...           beta (3 years ago)
  • 1.5.0                                ...           latest (3 years ago)

2 Versions

  • 2.0.3-beta.0                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org