Ng-zorro-antd: nz-tree组件设置了nzDraggable并且使用nzTreeTemplate时拖动的占位标志不显示

Created on 19 Jan 2021  ·  4Comments  ·  Source: NG-ZORRO/ng-zorro-antd

Reproduction link

https://stackblitz.com/edit/angular-4hsavx?file=src/app/app.component.ts

Steps to reproduce

拖动任意一个节点

What is expected?

显示拖动的占位标志,也就是nz-tree-drop-indicator
image

What is actually happening?

没有显示占位标志
image

| Environment | Info |
|---|---|
| ng-zorro-antd | 11.0.2 |
| Browser | Chrome 87.0.4280.141 |

Bug Tree

Most helpful comment

nz-tree-drop-indicator was lost when customizing the node

All 4 comments

Translation of this issue:

The NZ-Tree component sets NZDraggable and dragging the occupancy flag that is dragged when using NZTREETEMPLATE.

reproduction link

https://stackblitz.com/edit/angular-4hsavx?file=src/app/app.component.ts

steps to reproduce

Drag any node

What is expected?

Displayed the shackling flag, which is NZ-Tree-Drop-Indicator
! [image] (https://user-images.githubuserContent.com/23302214/104983887-a3f7c000-5a48-11eb-9ac5-d37f3f2e74b0.png)

What is actually happens?

No placement flag
! [image] (https://user-images.githubuserContent.com/23302214/104983911-b2de7280-5a48-11eb-8c97-5addecd39e2a.png)

| ENVIRONMENT | INFO |
| --- | --- |
| Ng-Zorro-ANTD | 11.0.2 |
| Browser | chrome 87.0.4280.141 |

nz-tree-drop-indicator was lost when customizing the node

@simplejason Is there any temporary solution for us?

@simplejason 大哥这东西有计划要改吗

Was this page helpful?
1.5 / 5 - 2 ratings