data.js 1.92 KB
/*
 * @Date: 2023-10-27 09:29:48
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2023-11-20 13:54:00
 * @FilePath: /vue-flow-editor/doc/data.js
 * @Description: 初始化结构,数据都是固定的
 */
export const AppData = {
    nodes: [
        {
            id: 'start-node',
            x: 225,
            y: 100,
            text: '开始',
            desc: '',
            control: 'start',
        },
        {
            id: '5353453523',
            x: 225,
            y: 210,
            text: '流程节点',
            desc: '',
            control: 'flow',
        },
        // {
        //     id: '1700459406515',
        //     x: -25,
        //     y: 260,
        //     text: '流程节点test',
        //     desc: '',
        //     control: 'flow',
        // },
        {
            id: '1700204887203',
            x: 465,
            y: 210,
            text: '抄送节点',
            desc: '',
            control: 'cc',
        },
        {
            id: 'end-node',
            x: 225,
            y: 335,
            text: '结束',
            desc: '',
            control: 'end',
        },
    ],
    edges: [
        {
            source: 'start-node',
            sourceAnchor: 2,
            target: '5353453523',
            targetAnchor: 0,
        },
        {
            source: '5353453523',
            sourceAnchor: 2,
            target: 'end-node',
            targetAnchor: 0,
        },
        {
            source: '5353453523',
            sourceAnchor: 3,
            target: '1700204887203',
            targetAnchor: 1,
        },
        // {
        //     source : "start-node",
        //     sourceAnchor : 1,
        //     target : "1700459406515",
        //     targetAnchor : 0
        // },
        // {
        //     source : "1700459406515",
        //     sourceAnchor : 2,
        //     target : "end-node",
        //     targetAnchor : 1
        // }
    ],
}