PrimeNG DragDrop多个滴管



我有一些模拟看板的列(div(。我有四列,但对于最后一列,元素可能来自第二列或第三列。我使用的是primeNG版本9.1.3

<div class="ui-g-12 cockpit-card" *ngFor="let item of cockpitListPO.listOpen" pDraggable="open" (onDragStart)="openDragStart($event, item)" (onDragEnd)="openDragEnd($event)"> ...
<div class="ui-g-12 cockpit-card" *ngFor="let item of cockpitListPO.listProgress" pDraggable="progress" pDroppable="open" (onDragStart)="progressDragStart($event, item)" (onDragEnd)="progressDragEnd($event)" (onDrop)="progressDrop($event)"> ...
<div class="ui-g-12 cockpit-card" *ngFor="let item of cockpitListPO.listOk" pDraggable="ok" pDroppable="progress" (onDragStart)="okDragStart($event, item)" (onDragEnd)="okDragEnd($event)" (onDrop)="okDrop($event)"> ...

<div class="ui-g-12 cockpit-card" *ngFor="let item of cockpitListPO.listCancel" pDroppable="ok" (onDrop)="cancelDrop($event)"> ...

从打开列到进度,从进度到确定,从确定到取消,它都很好。我想把我已经尝试放pDroppable = "ok, progress" / pDroppable = "[ok, progress]" / pDroppable = "['ok', 'progress']"的进度和OK列表的元素发送到Cancel

感谢

您可以用这种格式编写

[pDroppable]='["header", "footer", "body"]'

相关内容

  • 没有找到相关文章

最新更新