react-component / react-component/table
ios纵向滑动表格,表格消失了,该怎么解决?(The table disappears when sliding vertically on ios)
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
- 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
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