react-component / react-component/table

ios纵向滑动表格,表格消失了,该怎么解决?(The table disappears when sliding vertically on ios)

Open
#588 1 comment 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

我在用 rc-table 时遇到一个问题:在有的 ios 上,纵向滑动表格,表格消失了。然后我在 scroll 属性里加了 y: 'auto',现在消失的问题没有了,但是表头和内容列对不齐了。请教大家该怎么解决这样的问题呢?
现在表格组件是这样的:
<Table className="ext-table testBreak" columns={columns} {...otherProps} scroll={{ x: "auto", y: 'auto' }} // style={{width: 909}} data={util.addTableKey(tableContent||[])} onRow={(row, index) => ({ onClick: onRowClick(row, index), })} />

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

Start by reproducing the disappearance and column misalignment in the provided rc-table usage on iOS, comparing vertical scrolling with and without scroll.y set to 'auto'. Inspect the table's scroll handling and verify that vertical scrolling keeps the table visible and the header and content columns aligned.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.