An easy flowchart component for Vue.js app to visualize your workflow, task process, and much more.
How to use it:
1. Install and import the flowy into your project.
// As A Component import {VueFlowy} from 'vue-flowy' export default { name: 'App', components: { VueFlowy } } // As A Plugin import {VueFlowy} from 'vue-flowy' Vue.component(VueFlowy)
2. The example to create a basic flowchart on your app.
<template> <div id="app"> <vue-flowy :chart="chart"></vue-flowy> </div> </template>
<template> <div id="app"> <vue-flowy :chart="chart"></vue-flowy> </div> </template>
import { VueFlowy, FlowChart } from "vue-flowy"; export default { name: "App", components: { VueFlowy }, data: function() { return { chart: new FlowChart({ direction: "LR" }) }; }, mounted() { const idea = this.chart.addElement("idea"); const A = this.chart.addElement("A", { label: "vscode" }); const B = this.chart.addElement("B", { label: "github" }); const C = this.chart.addElement("C", { label: "npm" }); idea.leadsTo(A).leadsTo(B); A.leadsTo(C); A.on("click", function() { console.log("click!"); }); } };
Download Details:
Author: Patcher56
Live Demo: https://codesandbox.io/embed/vue-flowy-example-pvtlj
Download Link: https://github.com/Patcher56/vue-flowy/archive/master.zip
Official Website: https://github.com/Patcher56/vue-flowy
Install & Download:
# Yarn
$ yarn add vue-flowy
# NPM
$ npm install vue-flowy --save