Skip to content

Commit d6b9bb0

Browse files
authored
docs(useAntdTable&useDynamicList): table style overflow auto (#2438)
1 parent 3b2c058 commit d6b9bb0

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

packages/hooks/src/useAntdTable/demo/cache.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const UserList = () => {
136136
return (
137137
<div>
138138
{type === 'simple' ? searchForm : advanceSearchForm}
139-
<Table columns={columns} rowKey="email" {...tableProps} />
139+
<Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />
140140

141141
<div style={{ background: '#f5f5f5', padding: 8 }}>
142142
<p>Current Table:</p>

packages/hooks/src/useAntdTable/demo/form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default () => {
122122
return (
123123
<div>
124124
{type === 'simple' ? searchForm : advanceSearchForm}
125-
<Table columns={columns} rowKey="email" {...tableProps} />
125+
<Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />
126126

127127
<div style={{ background: '#f5f5f5', padding: 8 }}>
128128
<p>Current Table:</p>

packages/hooks/src/useAntdTable/demo/init.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default () => {
126126
return (
127127
<div>
128128
{type === 'simple' ? searchForm : advanceSearchForm}
129-
<Table columns={columns} rowKey="email" {...tableProps} />
129+
<Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />
130130

131131
<div style={{ background: '#f5f5f5', padding: 8 }}>
132132
<p>Current Table:</p>

packages/hooks/src/useAntdTable/demo/ready.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default () => {
131131
<div>
132132
<Button onClick={() => setReady((r) => !r)}>toggle ready</Button>
133133
{type === 'simple' ? searchForm : advanceSearchForm}
134-
<Table columns={columns} rowKey="email" {...tableProps} />
134+
<Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />
135135

136136
<div style={{ background: '#f5f5f5', padding: 8 }}>
137137
<p>Current Table:</p>

packages/hooks/src/useAntdTable/demo/table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ export default () => {
4949
},
5050
];
5151

52-
return <Table columns={columns} rowKey="email" {...tableProps} />;
52+
return <Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />;
5353
};

packages/hooks/src/useAntdTable/demo/validate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default () => {
8888
return (
8989
<div>
9090
{searchForm}
91-
<Table columns={columns} rowKey="email" {...tableProps} />
91+
<Table columns={columns} rowKey="email" style={{ overflow: 'auto' }} {...tableProps} />
9292

9393
<div style={{ background: '#f5f5f5', padding: 8 }}>
9494
<p>Current Table:</p>

packages/hooks/src/useDynamicList/demo/demo4.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default () => {
8484
dataSource={list}
8585
rowKey={(r: Item, index: number) => getKey(index).toString()}
8686
pagination={false}
87+
style={{ overflow: 'auto' }}
8788
/>
8889
</ReactDragListView>
8990
</Form>

0 commit comments

Comments
 (0)