@@ -23,6 +23,7 @@ import { getNpmPackageMeta } from "../utils/remote";
23
23
import { getPromiseAfterDispatch } from "@lowcoder-ee/util/promiseUtils" ;
24
24
import type { AppState } from "@lowcoder-ee/redux/reducers" ;
25
25
import { ColorControl } from "../controls/colorControl" ;
26
+ import { DEFAULT_ROW_COUNT } from "@lowcoder-ee/layout/calculateUtils" ;
26
27
27
28
const TITLE = trans ( "appSetting.title" ) ;
28
29
const USER_DEFINE = "__USER_DEFINE" ;
@@ -127,6 +128,7 @@ const DivStyled = styled.div`
127
128
flex: 0 0 24px;
128
129
}
129
130
> div:nth-child(2) {
131
+ flex: 1;
130
132
> div:nth-child(2) {
131
133
width: 100%;
132
134
}
@@ -212,9 +214,9 @@ const childrenMap = {
212
214
maxWidth : dropdownInputSimpleControl ( OPTIONS , USER_DEFINE , "1920" ) ,
213
215
gridColumns : RangeControl . closed ( 8 , 48 , 24 ) ,
214
216
gridRowHeight : RangeControl . closed ( 6 , 20 , 8 ) ,
215
- gridRowCount : NumberControl ,
216
- gridPaddingX : NumberControl ,
217
- gridPaddingY : NumberControl ,
217
+ gridRowCount : withDefault ( NumberControl , DEFAULT_ROW_COUNT ) ,
218
+ gridPaddingX : withDefault ( NumberControl , 20 ) ,
219
+ gridPaddingY : withDefault ( NumberControl , 20 ) ,
218
220
gridBg : ColorControl ,
219
221
gridBgImage : StringControl ,
220
222
gridBgImageRepeat : StringControl ,
0 commit comments