【6.2.2】table 组件当有字段配置 fixed属性,固定某些列,左右滑动 table,表格头和表格内容滚动不同步
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
使用 table 组件,设置字段数量多到出现滚动条时,这时给其中某字段配置 fixed:“left”或者 fixed:“right”,这个时候左右滚动表格,表格头和表格内容会不同步地滚动,若所有字段不配置 fixed 属性就正常,具体如下方视频
#### 截图或视频:
// 不配置 fixed 情况
https://github.com/baidu/amis/assets/116611745/5413db85-27f5-433d-9f5e-4bd3972614dd
// 配置 fixed 情况
https://github.com/baidu/amis/assets/116611745/1a390917-ff66-4dda-96dc-98bb944c51f2
#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
sdk
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
【6.2.2】
3. 粘贴有问题的完整 `amis schema` 代码:
```
code here...
```
4. 操作步骤
请简单描述一下复现的操作步骤...
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or complete amis schema is provided. Start by reproducing the table with enough fields to overflow horizontally and with fixed set to left or right, then compare header and body scrolling. Done means the header and table content remain synchronized while scrolling, without regressing the case where no fields use fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100