这是一个流程图配置页面工具 两种用法 1 单独使用 通过 'npm run build' 打包出一个dist文件夹 在 'dist/index.html' 中手动配置 window.baseUrl 即可把dist文件夹放到服务器使用 2 npm包使用 通过 'npm run build:npm' 打包出一个lib文件夹 修改 package.json > version , 通过命令 "npm publish" 发布 在需要使用的主项目中 安装导入使用 详细见 #usage#
npm i flowchatconfigures@latest
vue_main
import fc from 'flowchatconfigures'; import 'flowchatconfigures/lib/style.css';
app.use(fc, { baseUrl: '/dataflow', ajax: Request.axiosInstance })