Giter Site home page Giter Site logo

shanghaobo / jsplumb-flow-temp Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 1.74 MB

基于vue的jsplumb拖拉拽流程图模板,可用于二次开发

Home Page: https://shanghaobo.github.io/jsplumb-flow-temp/

JavaScript 61.58% HTML 0.62% Vue 37.80%
jsplumb flow vue

jsplumb-flow-temp's Introduction

jsplumb-flow-temp

jsplumb 拖拉拽流程图的模板,可直接进行二次开发

在线演示

demo.png

数据结构

  • 节点基础结构
{
  "id": "unaz8qu5jm",
  "name": "类型1",
  "type": "type1",
  "left": "576px",
  "top": "175px"
}
  • 线结构
{ "from": "9ax5v67ix", "to": "fi39h1fyww" }
  • 节点扩充属性配置
// menu-list.js
// 节点菜单属性配置
export default [
  {
    id: 1,
    name: "类型1",
    type: "type1",
    attrs: [
      {
        name: "name",
        title: "标签文本",
        default: "标签",
        type: "text"
      },
      {
        name: "state",
        title: "状态",
        default: "0",
        type: "select",
        option: [
          {
            value: "0",
            label: "禁用"
          },
          {
            value: "1",
            label: "启用"
          }
        ]
      }
    ]
  },
  {
    id: 2,
    name: "类型2",
    type: "type2",
    attrs: [
      {
        name: "name",
        title: "标签文本",
        default: "标签",
        type: "text"
      }
    ]
  },
  {
    id: 3,
    name: "类型3",
    type: "type3",
    attrs: [
      {
        name: "name",
        title: "标签文本",
        default: "标签",
        type: "text"
      },
      {
        name: "icon",
        title: "图标",
        default: "el-icon-warning-outline",
        type: "text"
      }
    ]
  }
];

jsplumb-flow-temp's People

Contributors

shanghaobo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cl1226

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.