德拉古拉的同名嵌套袋

时间:2019-06-19 16:25:54

标签: angular ng2-dragula

我正在Angular 6中使用Dragula进行嵌套拖放。除了-一切看起来都不错- 无法移动父节点,它适用于大多数内部子节点。

请注意,解决方案不应引入任何新的html标签。只是为了忽略我使用>5000 customers的html标签。任何帮助表示赞赏。

这是我到目前为止尝试过的演示-

https://stackblitz.com/edit/angular-dragula-drag-drop-example-gb6gp1?file=src/app/board/board.component.html

我有类似-

的数据
ng-container

下面是html

 {
      name: 'Group A',
      position: 0,
      items: [
        {
          name: 'Item A',
          position: 0,
          items: [
            {
              name: 'Item AAA',
              position: 0,
            },
            {
              name: 'Item BBBB',
              position: 1
            }
          ]
        },
        {
          name: 'Item B',
          position: 1
        },
        {
          name: 'Item C',
          position: 2
        }
      ]
    }

0 个答案:

没有答案