vue-jsmind,怎么从接口读数据 再渲染出来,怎么直接渲染不同颜色的节点

一级 二级 三级,用不同的背景色
mind: {

    meta: {
      name: 'jsMind',
      author: 'hizzgdev@163.com',
      version: '0.2'
    },
    format: 'node_tree',
    data: {
      id: 'root',
      topic: '我是根',
      'background-color': 'black',
      children: [
        {
          id: 'source',
          topic: '我是二级',
          direction: 'left',
          'background-color': 'blue',
          children: [
            { id: 'source1', topic: '我是三级', 'background-color': 'red' },
            { id: 'source2', topic: '我是三级', 'background-color': 'red' },
            { id: 'source3', topic: '我是三级', 'background-color': 'red' }
          ]
        }
      ]
    }
  },

怎么才能读出这样的数据,再渲染

阅读 1.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题