RegisterEdge

注册边

使用说明

G6 自定义图项 教程

<template>
  <vue-flowchart-editor>
    <flow />
    <register-edge name="" :config="{}" extend="" />
  </vue-flowchart-editor>
</template>
<script>
  import VueFlowchartEditor, { Flow, RegisterEdge } from 'vue-flowchart-editor'
  export default {
    components: { VueFlowchartEditor, Flow, RegisterEdge },
  }
</script>

API

属性 说明 类型 默认值
name 边名称 string -
config 边配置 object -
extend 继承图形 string -

内置边

边英文名 边中文名 示例预览 适用页面
flow-polyline 图折线 图折线 Flow
flow-polyline-round 圆角折线 圆角折线 Flow
flow-smooth 图曲线 图曲线 Flow