Toolbar

工具栏,负责命令按钮绑定与可用禁用状态控制。

使用说明

必需配合 Command 组件使用

<template>
  <vue-flowchart-editor>
    <flow />
    <toolbar>
      <command name="undo">撤销</command>
      <command name="redo">重做</command>
    </toolbar>
  </vue-flowchart-editor>
</template>
<script>
  import VueFlowchartEditor, {
    Flow,
    Command,
    Toolbar,
  } from 'vue-flowchart-editor'
  export default {
    components: { VueFlowchartEditor, Flow, Command, Toolbar },
  }
</script>