Skip to content

Commit 756ba81

Browse files
committed
field style added to signature
1 parent c7c8ed8 commit 756ba81

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import {
1111
LabelStyle,
1212
SignatureStyleType,
1313
widthCalculator,
14-
heightCalculator
14+
heightCalculator,
15+
ComponentStyle
1516
} from "comps/controls/styleControlConstants";
1617
import { stateComp, withDefault } from "comps/generators/simpleGenerators";
1718
import { hiddenPropertyView } from "comps/utils/propertyUtils";
@@ -103,7 +104,7 @@ const childrenMap = {
103104
showUndo: withDefault(BoolControl, true),
104105
showClear: withDefault(BoolControl, true),
105106
value: stateComp(""),
106-
107+
field:styleControl(ComponentStyle),
107108
...formDataChildren,
108109
};
109110

@@ -128,7 +129,8 @@ let SignatureTmpComp = (function () {
128129
};
129130
return props.label({
130131
style: props.style,
131-
labelStyle:props.labelStyle,
132+
labelStyle: props.labelStyle,
133+
field:props.field,
132134
children: (
133135
<ReactResizeDetector
134136
onResize={(width, height) => {
@@ -228,6 +230,9 @@ let SignatureTmpComp = (function () {
228230
<Section name={sectionNames.labelStyle}>
229231
{children.labelStyle.getPropertyView()}
230232
</Section>
233+
<Section name={sectionNames.field}>
234+
{children.field.getPropertyView()}
235+
</Section>
231236
</>
232237
)}
233238
</>

0 commit comments

Comments
 (0)