Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature] 在树形结构下,希望能增加指定层级的方法

Đang mở
#5,340 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start by finding where the hierarchyExpandLevel option is consumed during table initialization, and why changing it through updateOption has no effect; toggleHierarchyState is the existing per-row path the issue wants to avoid. Reproduce with a tree table with a large dataset, then check how expand state is stored. Done means a method like expandLevel(level) expands nodes to that depth without iterating every row, and updateOption with a new hierarchyExpandLevel takes effect. The issue does not say whether other levels should collapse, so confirm that with a maintainer first.

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

Mô tả

feature
What problem does this feature solve?

hierarchyExpandLevel只有初始化的时候有用,如果修改hierarchyExpandLevel然后再updateOption无法生效。
目前没有现成的接口来实现展开到指定层级的接口,只能通过遍历所有数据通过toggleHierarchyState来实现,数据量大的情况下比较卡,甚至浏览器可能直接卡死。

What does the proposed API look like?

希望能增加展开树形结构指定层级的方法,如:expandLevel(level:number)

Ngôn ngữ chính
TypeScript
Star
3.7k
Fork
489
Merge trung bình
19 giờ 48 phút
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VisActor/VTable

Tất cả issue của VisActor/VTable

Issue tương tự

Thêm issue về TypeScript

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.