https://stackblitz.com/edit/ng-zorro-antd-tree-drag
代码所示
自定义模板也应支持拖放
不支持
| Environment | Info |
|---|---|
| ng-zorro-antd | 8.3.0 |
| Browser | Chrome |
Https://stackblitz.com/edit/ng-zorro-antd-tree-drag
FIG Code
Custom template should also support drag and drop
not support
| Environment | Info |
| --- | --- |
| Ng-zorro-antd | 8.3.0 |
| Browser | Chrome |
看了下源码,自定义模板的节点加上下面的属性即可
[attr.draggable]="true"
[class.draggable]="true"
看了下源码,自定义模板的节点加上下面的属性即可
[attr.draggable]="true" [class.draggable]="true"
谢谢,帮大忙了 :-)
亲测可以,灰常感谢,v587
Most helpful comment
看了下源码,自定义模板的节点加上下面的属性即可
[attr.draggable]="true" [class.draggable]="true"