ng-zorro-antd
ng-zorro-antd copied to clipboard
nz-tree组件设置了nzDraggable并且使用nzTreeTemplate时拖动的占位标志不显示
Reproduction link
https://stackblitz.com/edit/angular-4hsavx?file=src/app/app.component.ts
Steps to reproduce
拖动任意一个节点
What is expected?
显示拖动的占位标志,也就是nz-tree-drop-indicator
What is actually happening?
没有显示占位标志
Environment | Info |
---|---|
ng-zorro-antd | 11.0.2 |
Browser | Chrome 87.0.4280.141 |
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 |
nz-tree-drop-indicator
was lost when customizing the node
@simplejason is there any progress?
https://stackblitz.com/edit/angular-32h29m 用的7的版本,在最外层的span标签加draggable后可以,我试了下必须是span标签
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
现在新版有解决办法吗
@simplejason any workaround here?
您好,您的邮件我已收到,会尽快回复!樊
@simplejason I want to open a PR that does the following:
- The indicator will always show by default
- Add a new input to hide the indicator
WDYT?
这个问题有解决吗
@Heymancn no
您好,您的邮件我已收到,会尽快回复!樊