const dataTemplate = {
  nodes: [
    {
      id: 'id001',
      name: "节点1",
      type: 2,
      isRootNode: false, // 是否为根节点
      img: null,
      bgColor: '#b278e0',
      size: null,
      properties: {
        name: "节点1",
        sign: "标签",
        desc: '描述'
      }
    },
    {
      id: 'id002',
      name: "节点2",
      type: 2,
      isRootNode: false,
      img: 'http://img.mp.itc.cn/upload/20170310/f4c0e1f712e94bab9a0bb33bd32b2718_th.jpeg',
      bgColor: 'lightgray',
      size: 30,
      properties: {
        name: "节点2",
        sign: "标签",
        desc: '描述'
      }
    },
    {
      id: 'id003',
      name: "节点3",
      type: 2,
      isRootNode: false,
      img: null,
      bgColor: '#f6bf5f',
      size: 15,
      properties: {
        name: "节点3",
        sign: "标签",
        desc: '描述'
      }
    },
    {
      id: 'id004',
      name: "根节点",
      type: 1,
      isRootNode: true,
      img: 'http://www.17qq.com/img_qqtouxiang/5075807.jpeg',
      bgColor: 'rgb(255,255,255)',
      size: 40,
      properties: {
        name: "根节点",
        sign: "标签",
        desc: '描述'
      }
    }
  ],
  links: [
    {
      id: 'id1001',
      from: 'id002',
      to: 'id004',
      type: 2,
      properties: {
        relation: "关系2，",
        sign: "关联标签2",
        desc: '描述a</br>描述b'
      }
    },
    {
      id: 'id1002',
      from: 'id001',
      to: 'id004',
      type: 2,
      properties: {
        relation: "关系1",
        sign: "关联标签1",
        desc: '描述1，描述2'
      }
    },
    {
      id: 'id1003',
      from: 'id003',
      to: 'id004',
      type: 2,
      properties: {
        relation: "关系3",
        sign: "关联标签3",
        desc: '描述A'
      }
    },
    {
      id: 'id1004',
      from: 'id001',
      to: 'id002',
      type: 2,
      properties: {
        relation: "关系4",
        sign: "关联标签4",
        desc: '描述4A'
      }
    }
  ]
}