data.js 1.07 KB
/*
 * @Date: 2023-10-27 09:29:48
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2023-11-15 15:56:03
 * @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: '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,
        },
    ],
}