angular / angular/components

bug(COMPONENT): docs components/tree/examples Tree with dynamic data esample FlatTreeControl deprecated

Đang mở
#30,125 1 bình luận 4 reaction 0 người được giao Xem trên GitHub
area: cdk/tree 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ả

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

docs components/tree/examples Tree with dynamic data esample FlatTreeControl deprecated

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior

New Example Method

### Actual Behavior

FlatTreeControl is deprecated

Flat tree control. Able to expand/collapse a subtree recursively for flattened tree.

@deprecated
Use one of levelAccessor or childrenAccessor instead. To be removed in a future version.

@breaking-change — 21.0.0

### Environment

- Angular: 18
- CDK/Material:18
- Browser(s): edge
- Operating System (e.g. Windows, macOS, Ubuntu): windows

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

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

Hướng nghiên cứu

Bắt đầu trong docs components/tree/examples và kiểm tra ví dụ Tree with dynamic data sử dụng FlatTreeControl. Thay thế cách tiếp cận đã deprecated bằng phương thức levelAccessor hoặc childrenAccessor được tài liệu hóa, sau đó xác minh rằng ví dụ vẫn thể hiện việc mở rộng và thu gọn cây phẳng một cách động.

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
documentation, frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/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.