react-component / react-component/table

Table expandable中的fixed设为'left'|'right', 页面报错

Open
#755 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

image

例子:codesandbox

1.expandable的fixed设为string的时候,必须同时设置table的scroll.x,个人建议可以加个提示warning,现在页面直接崩溃了。

2.fixed设置为right的时候还必须同时设置expandIconColumnIndex为basecolumns的length,否则会不生效,个人认为用户在设置fixed为right的时候已经想好了就是要定在最右边,不应该还需要设置expandIconColumnIndex,并且目前这一点也没有提示

ps:以上两点包括antd的文档上也没有足够的说明
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.