Skip to content

Commit 2f159bc

Browse files
authored
docs: improve form.table doc (#331)
1 parent 2173c3c commit 2f159bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/form/demos/basic.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
22
import { EllipsisText, Form } from 'dt-react-component';
3-
import { Button, Input, message } from 'antd';
3+
import { Button, Input, message, Space } from 'antd';
44
import getMockData from './data';
55

66
export default () => {
@@ -30,8 +30,8 @@ export default () => {
3030
}, []);
3131

3232
return (
33-
<>
34-
<Form form={form} layout="vertical" style={{ height: 400 }}>
33+
<Space direction="vertical" size={8} align="center" style={{ marginBottom: 8 }}>
34+
<Form form={form} layout="vertical">
3535
<Form.Table
3636
name="data"
3737
loading={loading}
@@ -89,9 +89,9 @@ export default () => {
8989
]}
9090
/>
9191
</Form>
92-
<Button type="primary" onClick={handleSubmit} style={{ marginBottom: 16 }}>
92+
<Button type="primary" onClick={handleSubmit}>
9393
Submit
9494
</Button>
95-
</>
95+
</Space>
9696
);
9797
};

0 commit comments

Comments
 (0)