File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import React , { useEffect , useState } from 'react' ;
22import { EllipsisText , Form } from 'dt-react-component' ;
3- import { Button , Input , message } from 'antd' ;
3+ import { Button , Input , message , Space } from 'antd' ;
44import getMockData from './data' ;
55
66export 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} ;
You can’t perform that action at this time.
0 commit comments