feat: expose onVirtualScroll on VirtualTable
Đá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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with src/VirtualTable/BodyGrid.tsx and trace how onVirtualScroll and onTablePropScroll are wired. Check the public VirtualTable props and how Ant Design Table passes props when virtual is enabled. Done means consumers can subscribe to the virtual offset through the public prop; the linked pull request #1523 shows work is already underway.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Request: Expose onVirtualScroll on VirtualTable
Summary
Please expose @rc-component/virtual-list's onVirtualScroll as a public prop on VirtualTable (and ideally bubble it through Ant Design Table when virtual is enabled).
Today the virtual offset { x, y } is only used internally in BodyGrid to sync header / fixed columns. Consumers cannot subscribe to the same reliable horizontal offset without patching the package or observing DOM (marginLeft / transform) with MutationObserver.
Current behavior
In src/VirtualTable/BodyGrid.tsx:
onVirtualScroll={({ x }) => {
onScroll({
currentTarget: listRef.current?.nativeElement,
scrollLeft: x,
});
}}
onScroll={onTablePropScroll}
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 623
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của react-component/table
-
Fixed-header tables force one getBoundingClientRect per column on every mount (ResizeObserver-driven MeasureCell)Có thể đã có người làm @rubenmarcus đã nhận 24 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
react-component/table#1507 ·
-
rowExpandable does not work when dataSource has children fieldCó thể đã có người làm @nrps9909 đã nhận 58 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
react-component/table#1416 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
react-component/table#1403 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
react-component/table#1269 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
react-component/table#1257 · 1 reaction ·
Tất cả issue của react-component/table
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
farion1231/cc-switch#8829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverĐang mởdoc-audit enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100