how to set scrollbar auto ?
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
Start by reproducing the supplied Table example with the nested columns, fixed headers, and scroll={{ x: 'calc(700px + 50%)', y: 240 }}. Read the Table scroll behavior and related examples or tests, then verify the supported auto-scroll behavior and that the table body does not create unwanted page-side scrollbars.
由索引模型根據 Issue 內容生成。
描述
Fixed the table header by setting the y-axis scrolling, but the body content does not go beyond the page, and there are scroll bars on the side

`import { Table } from 'antd';
const columns = [
{
title: 'Name',
dataIndex: 'name',
key: 'name',
width: 100,
fixed: 'left',
},
{
title: 'Other',
children: [
{
title: 'Age',
dataIndex: 'age',
key: 'age',
width: 150,
sorter: (a, b) => a.age - b.age,
},
{
title: 'Address',
children: [
{
title: 'Street',
dataIndex: 'street',
key: 'street',
width: 150,
},
{
title: 'Block',
children: [
{
title: 'Building',
dataIndex: 'building',
key: 'building',
width: 100,
},
{
title: 'Door No.',
dataIndex: 'number',
key: 'number',
width: 100,
},
],
},
],
},
],
},
{
title: 'Company',
children: [
{
title: 'Company Address',
dataIndex: 'companyAddress',
key: 'companyAddress',
width: 200,
},
{
title: 'Company Name',
dataIndex: 'companyName',
key: 'companyName',
},
],
},
{
title: 'Gender',
dataIndex: 'gender',
key: 'gender',
width: 80,
fixed: 'right',
},
];
const data = [];
for (let i = 0; i < 100; i++) {
data.push({
key: i,
name: 'John Brown',
age: i + 1,
street: 'Lake Park',
building: 'C',
number: 2035,
companyAddress: 'Lake Street 42',
companyName: 'SoftLake Co',
gender: 'M',
});
}
- 主要語言
- TypeScript
- 星號
- 1.4k
- 分支
- 623
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-component/table 的其他 Issue
-
Fixed-header tables force one getBoundingClientRect per column on every mount (ResizeObserver-driven MeasureCell)可能已有人在做 @rubenmarcus 於 17 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 42/100
react-component/table#1507 ·
-
rowExpandable does not work when dataSource has children field可能已有人在做 @nrps9909 於 51 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 50/100
react-component/table#1416 ·
-
難度 5/5 一週以上 新手友好度 30/100
react-component/table#1403 ·
-
難度 5/5 一週以上 新手友好度 15/100
react-component/table#1269 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
react-component/table#1257 · 1 個 reaction ·
查看 react-component/table 的全部 Issue
相似的 Issue
-
bug engine
難度 2/5 1-3 小時 新手友好度 86/100
frostney/GocciaScript#1746 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
agilepathway/label-checker#739 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 68/100
CopilotKit/OpenBot#800 ·
維護者通常 1 天內回覆
-
Endpoint links in the tag operations list are below the 24px target size可能已有人在做 @AdzerKI 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
維護者通常 1 天內回覆