Skip to content

Commit 32fcd8e

Browse files
committed
field style added to number input
1 parent 79aeeda commit 32fcd8e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { formDataChildren, FormDataPropertyView } from "../formComp/formDataCons
3030
import { withMethodExposing, refMethods } from "../../generators/withMethodExposing";
3131
import { RefControl } from "../../controls/refControl";
3232
import { styleControl } from "comps/controls/styleControl";
33-
import { InputLikeStyle, InputLikeStyleType, LabelStyle, heightCalculator, widthCalculator } from "comps/controls/styleControlConstants";
33+
import { ComponentStyle, InputLikeStyle, InputLikeStyleType, LabelStyle, heightCalculator, widthCalculator } from "comps/controls/styleControlConstants";
3434
import {
3535
disabledPropertyView,
3636
hiddenPropertyView,
@@ -260,7 +260,7 @@ const childrenMap = {
260260
style: styleControl(InputLikeStyle),
261261
labelStyle:styleControl(LabelStyle),
262262
prefixIcon: IconControl,
263-
263+
field:styleControl(ComponentStyle),
264264
// validation
265265
required: BoolControl,
266266
min: UndefinedNumberControl,
@@ -381,7 +381,8 @@ let NumberInputTmpComp = (function () {
381381
required: props.required,
382382
children: <CustomInputNumber {...props} />,
383383
style: props.style,
384-
labelStyle:props.labelStyle,
384+
labelStyle: props.labelStyle,
385+
field:props.field,
385386
...validate(props),
386387
});
387388
})
@@ -436,6 +437,9 @@ let NumberInputTmpComp = (function () {
436437
<Section name={sectionNames.labelStyle}>
437438
{children.labelStyle.getPropertyView()}
438439
</Section>
440+
<Section name={sectionNames.field}>
441+
{children.field.getPropertyView()}
442+
</Section>
439443
</>
440444
)}
441445
</>

0 commit comments

Comments
 (0)