Code Monkey home page Code Monkey logo

bpmn-jeecgboot's Introduction

bpmn-jeecgboot

发布日期:2022-03-06

GitHub starsGitHub stars

项目描述:

基于vue2.x、bpmn.js、antdv、bpmn-process-designer 仿jeecg-boot的工作流程图。

运行示例:https://lemnaminor.github.io/bpmn-jeecgboot/dist

示例图片:图片

组件调用示例:

import bpmnPage from '@/components/bpmnPackage/bpmnPage.vue'
<bpmn-page :bpmnId="bpmnId" @eventClose="eventClose" />

引入项目说明:

项目文件夹:/src/components/bpmnPackage
package.json
  "dependencies": {
    "bpmn-js-token-simulation": "^0.10.0",
    "highlight.js": "^10.5.0",
    "x2js": "^3.4.2"
  },
  "devDependencies": {
    "node-sass": "^4.12.0",
    "sass-loader": "^8.0.2",
    "bpmn-js": "^8.8.3",
    "ant-design-vue": "^1.7.2"
  },
npm安装
npm install  @babel/plugin-proposal-optional-chaining // 可选链运算符 ?.
npm install  @babel/plugin-proposal-nullish-coalescing-operator // 空值合并运算符 ??
配置babel.config.js
module.exports = {
  plugins: [
    '@babel/plugin-proposal-optional-chaining',  // 可选链运算符 ?.
    '@babel/plugin-proposal-nullish-coalescing-operator'  // 空值合并运算符 ??
  ]
}
main.js
// bpmnPackage组件引用
import Antd from 'ant-design-vue'
import bpmnPackage from "@/components/bpmnPackage/index.js";
import 'ant-design-vue/dist/antd.css';
import hljs from 'highlight.js'
import 'highlight.js/styles/atom-one-dark.css'  //这里有多个样式,自己可以根据需要切换

Vue.use(Antd);
Vue.use(bpmnPackage);
Vue.use(hljs.vuePlugin);

import "@/components/bpmnPackage/theme/index.scss";
import "bpmn-js/dist/assets/diagram-js.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";

项目运行:

1,项目下载依赖

npm install 或者 cnpm install

2,项目运行

npm run serve

3,项目打包

npm run build

参考链接(感谢):

bpmn-process-designer: https://github.com/miyuesc/bpmn-process-designer

bpmn.js: https://github.com/bpmn-io/bpmn-js

jeecg-boot: http://www.jeecg.com

ant-design-vue: https://www.antdv.com/docs/vue/getting-started-cn

其他说明:

1,如此项目对你有所帮助很开心,请点一下star以帮助到更多的人。

2,如项目有问题请提issue,或者联系我本人QQ:291294950。

bpmn-jeecgboot's People

Contributors

lemnaminor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.