data.js 1.04 KB
/*
 * @Date: 2025-03-11 15:09:49
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-03-19 17:26:16
 * @FilePath: /logic-flow2/src/views/node-model/data.js
 * @Description: 文件描述
 */
export default {
  nodes: [
    {
      id: '1',
      type: 'custom-rect',
      x: 100,
      y: 100,
      text: 'default',
      properties: {
        width: 70,
        height: 70,
      },
    },
    {
      id: '2',
      type: 'custom-rect',
      x: 300,
      y: 100,
      text: 'pass',
      properties: {
        status: 'pass', // 业务属性
        width: 100, // 形状属性
        height: 100,
        radius: 20,
        style: {
          // 样式属性
          strokeWidth: 5,
        },
      },
    },
    {
      id: '3',
      type: 'custom-rect',
      x: 500,
      y: 100,
      text: 'reject',
      properties: {
        status: 'reject',
        width: 130,
        height: 130,
      },
    },
    {
      id: '4',
      type: 'custom-polygon',
      x: 100,
      y: 300,
      text: 'custom-polygon',
    }
  ],
};