File tree 1 file changed +23
-6
lines changed
client/packages/lowcoder/src/comps/comps/formComp
1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ import log from "loglevel";
57
57
import { DisabledContext } from "comps/generators/uiCompBuilder" ;
58
58
import { LoadingOutlined } from "@ant-design/icons" ;
59
59
import { messageInstance } from "lowcoder-design" ;
60
+ import { styled } from "styled-components" ;
61
+
62
+ const FormWrapper = styled . div `
63
+ height: 100%;
64
+ .ant-spin-nested-loading {
65
+ height: 100%;
66
+ .ant-spin-container {
67
+ height: 100%;
68
+ }
69
+ }
70
+ ` ;
60
71
61
72
const eventOptions = [ submitEvent ] as const ;
62
73
@@ -172,12 +183,18 @@ const FormBaseComp = (function () {
172
183
return new ContainerCompBuilder ( childrenMap , ( props , dispatch ) => {
173
184
return (
174
185
< DisabledContext . Provider value = { props . disabled } >
175
- < Spin indicator = { loadingIcon } spinning = { props . loading } >
176
- < TriContainer
177
- { ...props }
178
- hintPlaceholder = { < BodyPlaceholder { ...props } dispatch = { dispatch } /> }
179
- />
180
- </ Spin >
186
+ < FormWrapper >
187
+ < Spin
188
+ indicator = { loadingIcon }
189
+ spinning = { props . loading }
190
+ style = { { height : '100%' } }
191
+ >
192
+ < TriContainer
193
+ { ...props }
194
+ hintPlaceholder = { < BodyPlaceholder { ...props } dispatch = { dispatch } /> }
195
+ />
196
+ </ Spin >
197
+ </ FormWrapper >
181
198
</ DisabledContext . Provider >
182
199
) ;
183
200
} )
You can’t perform that action at this time.
0 commit comments