angular / angular/components

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

Đang mở
#13,340 2 bình luận 31 reaction 0 người được giao Xem trên GitHub
area: cdk/drag-drop feature P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách lần theo các điểm đầu vào CdkDrop, CdkDragDrop, cdkDropZone và cdkDropList được mô tả trong issue. Xác định cách hành vi drop hiện tại cập nhật thứ tự danh sách, sau đó định nghĩa các hành vi riêng biệt để cdkDropZone giữ nguyên thứ tự UI, trong khi cdkDropList vẫn duy trì việc sắp xếp lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.