react-component / react-component/table
Table expandable中的fixed设为'left'|'right', 页面报错
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
例子:codesandbox
1.expandable的fixed设为string的时候,必须同时设置table的scroll.x,个人建议可以加个提示warning,现在页面直接崩溃了。
2.fixed设置为right的时候还必须同时设置expandIconColumnIndex为basecolumns的length,否则会不生效,个人认为用户在设置fixed为right的时候已经想好了就是要定在最右边,不应该还需要设置expandIconColumnIndex,并且目前这一点也没有提示
ps:以上两点包括antd的文档上也没有足够的说明

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the expandable-column cases from the linked CodeSandbox. Start with src/Table.tsx around line 434 and src/hooks/useColumns.tsx around line 187, then trace how scroll.x and expandIconColumnIndex affect fixed columns. Done means the reported crash and ineffective right-fixed behavior are addressed, with the relevant usage expectations made clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100