angular / angular/components

All cdkDrag items in a CdkDrop element are assumed to be members of a reorderable list

未关闭
#13,340 2 条评论 31 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/drag-drop feature P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

Currently all `cdkDrag` items in a `CdkDrop` element are treated as reorderable items in a list. While the underlying data structure is still left to the developer, the `CdkDragDrop` system updates the UI temporarily with changes to the "list order" even if the items are not supposed to be treated as a list.

Instead, we should have two directives for `CdkDrop` areas, `cdkDropZone` and `cdkDropList`. The former, does not do any automatic UI changes during the drag action and the latter does the current action of reordering items in the list.

贡献指南

打开贡献指南

调研方向

首先跟踪 issue 中描述的 CdkDrop、CdkDragDrop、cdkDropZone 和 cdkDropList 入口点。确定当前的 drop 行为如何更新列表顺序,然后定义分离的行为,使 cdkDropZone 保持 UI 顺序不变,而 cdkDropList 保留重新排序行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。