vue+jointjs实现工作流图表示例代码

代码语言:html

所属分类:图表

代码描述:vue+jointjs实现工作流图表示例代码

代码标签: vue jointjs 工作流 图表 示例 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/lodash.4.17.21.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/backbone-min.js"></script>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/joint.3.7.2.css">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/joint.3.7.2.js"></script>
</head>

<body>
    <div id="app">
        <div ref="paperContainer" style="width: 100%; height: 600px; border: 1px solid black;"></div>
    </div>

    <script>
        const { dia, shapes, highlighters, linkTools } = joint;
            new Vue({
                el: '#app',
               mounted() {
    this.$nextTick(() => {
        const graph = new joint.dia.Graph();

        const paper = new joint.dia.Paper({
            el: this.$refs.paperContainer,
            mode.........完整代码请登录后点击上方下载按钮下载查看

网友评论0