fixFooter 判断不准确,导致 Summary 组件的 fixed 为 'top' 不符合预期
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
從 src/Table.tsx 中 fixFooter 附近以及 Summary fixed 處理相關的連結行開始。在不使用 scroll.y 或 sticky 的情況下,透過連結的 StackBlitz 範例重現該行為,然後追蹤為什麼在該設定下 fixed='top' 無效。完成的標準是:不使用這些 props 時,Summary fixed='top' 能依預期運作,並且現有重現確認了結果。
由索引模型根據 Issue 內容生成。
描述
https://github.com/react-component/table/blob/ef7afbca9c582bc49c006b7011ee0cc84f6e4ad3/src/Table.tsx#L362
https://github.com/react-component/table/blob/ef7afbca9c582bc49c006b7011ee0cc84f6e4ad3/src/Table.tsx#L376-L380
如果不给 Table 组件传 scorll.y 或 sticky 属性,那么 Summary 的 fixed 属性赋值为 'top' 是失效的,比如:
https://stackblitz.com/edit/react-gxnxdv?embed=1&file=demo.tsx
- 主要語言
- TypeScript
- 星號
- 1.4k
- 分支
- 623
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-component/table 的其他 Issue
-
feat: expose onVirtualScroll on VirtualTable可能已有人在做 @GarethJin 於 44 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
react-component/table#1522 ·
-
Fixed-header tables force one getBoundingClientRect per column on every mount (ResizeObserver-driven MeasureCell)可能已有人在做 @rubenmarcus 於 65 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 42/100
react-component/table#1507 ·
-
rowExpandable does not work when dataSource has children field可能已有人在做 @nrps9909 於 99 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 50/100
react-component/table#1416 ·
-
難度 5/5 一週以上 新手友好度 30/100
react-component/table#1403 ·
-
難度 5/5 一週以上 新手友好度 15/100
react-component/table#1269 · 1 則留言 ·
查看 react-component/table 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
Chocobozzz/PeerTube#7901 ·
維護者通常 3 天內回覆
-
area:tools bug has repro
難度 2/5 1-3 小時 新手友好度 86/100
anthropics/claude-code#113984 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
維護者通常 1 天內回覆
-
area/web platform/windows type/bug version/v2
難度 2/5 1-3 小時 新手友好度 65/100
anomalyco/opencode#68237 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100