ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

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

Open zhangjian4 opened this issue 4 years ago • 10 comments

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

zhangjian4 avatar Jan 19 '21 03:01 zhangjian4

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](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

zorro-bot[bot] avatar Jan 19 '21 03:01 zorro-bot[bot]

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

simplejason avatar Jan 22 '21 02:01 simplejason

@simplejason is there any progress?

mehmet-erim avatar Jul 02 '21 14:07 mehmet-erim

https://stackblitz.com/edit/angular-32h29m 用的7的版本,在最外层的span标签加draggable后可以,我试了下必须是span标签

crystalYY avatar Nov 29 '21 10:11 crystalYY

https://stackblitz.com/edit/angular-32h29m 用的7的版本,在最外层的span标签加draggable后可以,我试了下必须是span标签

Https://stackblitz.com/edit/angular-32h29m’s version 7 works by adding a drawable span tag to the outermost span tag, and I tried that it had to be a span tag

现在新版有解决办法吗

churjan avatar Jan 16 '22 09:01 churjan

@simplejason any workaround here?

shaharkazaz avatar Feb 11 '22 00:02 shaharkazaz

您好,您的邮件我已收到,会尽快回复!樊

crystalYY avatar Feb 11 '22 00:02 crystalYY

@simplejason I want to open a PR that does the following:

  1. The indicator will always show by default
  2. Add a new input to hide the indicator

WDYT?

shaharkazaz avatar Mar 04 '22 07:03 shaharkazaz

这个问题有解决吗

Heymancn avatar Apr 26 '22 09:04 Heymancn

@Heymancn no

shaharkazaz avatar Apr 26 '22 19:04 shaharkazaz

您好,您的邮件我已收到,会尽快回复!樊

crystalYY avatar Oct 11 '22 07:10 crystalYY