├── .gitignore ├── README.md ├── demo ├── .prettierignore ├── .prettierrc ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ └── index.html ├── src │ ├── App.vue │ ├── components │ │ ├── CustomNodeContent.vue │ │ ├── CustomNodeTypeContent.vue │ │ └── Example1.vue │ ├── exmaples │ │ └── default.js │ └── main.js └── vue.config.js ├── docs ├── css │ ├── app.42168777.css │ └── chunk-vendors.8e911b4c.css ├── favicon.ico ├── fonts │ ├── element-icons.535877f5.woff │ └── element-icons.732389de.ttf ├── img │ └── arrow.0390e83b.svg ├── index.html └── js │ ├── app.189fc154.js │ ├── app.189fc154.js.map │ ├── chunk-vendors.dc13fd8e.js │ └── chunk-vendors.dc13fd8e.js.map └── simple-flow-chart ├── .prettierignore ├── .prettierrc ├── dist ├── demo.html ├── img │ └── arrow.0390e83b.svg ├── simpleFlowChart.common.js ├── simpleFlowChart.common.js.map ├── simpleFlowChart.css ├── simpleFlowChart.umd.js ├── simpleFlowChart.umd.js.map ├── simpleFlowChart.umd.min.js └── simpleFlowChart.umd.min.js.map ├── index.js ├── package-lock.json ├── package.json └── src ├── assets └── svg │ └── arrow.svg ├── components ├── ActionBar.vue ├── AddNode.vue ├── ArrowLine.vue ├── ConditionNode.vue ├── DeleteNode.vue ├── EndNode.vue ├── Node.vue ├── NodeContent.vue ├── NodeTypeContent.vue ├── NormalNode.vue └── StartNode.vue ├── constant.js ├── emit.js ├── index.vue └── utils.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | # local env files 5 | .env.local 6 | .env.*.local 7 | 8 | # Log files 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | pnpm-debug.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 一个基于Vue2的极简流程设计组件 2 | 3 | > 如果需要在`React`项目中使用,可以移步`kne-union`实现的`react`版本: 4 | > 5 | > 项目地址:https://github.com/kne-union/react-flow-chart 6 | > 7 | > 在线文档和示例:https://www.kne-union.top/#/libs/ReactFlowChart 8 | 9 | ## 安装 10 | 11 | ```bash 12 | npm i @wanglin1994/simple-flow-chart 13 | ``` 14 | 15 | ## 引入 16 | 17 | ```js 18 | import SimpleFlowChart from '@wanglin1994/simple-flow-chart' 19 | 20 | 21 | Vue.use(SimpleFlowChart, { 22 | notRegisterNodeContent: false, // 如果需要自己编写节点内容组件,设为true 23 | notRegisterNodeTypeContent: false // 如果需要自己编写添加节点的悬浮面板组件,设为true 24 | }) 25 | ``` 26 | 27 | 28 | 29 | ## 使用 30 | 31 | ```html 32 |