Skip to content

Commit 37a901a

Browse files
committed
font style property created and added in textDisplay component
1 parent 2f38c64 commit 37a901a

File tree

5 files changed

+371
-341
lines changed

5 files changed

+371
-341
lines changed

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"scripts": {
1313
"start": "yarn workspace lowcoder start",
14+
"start-win":"LOWCODER_API_SERVICE_URL=http://localhost:3000 yarn start",
1415
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace lowcoder start",
1516
"start:ee-global": "REACT_APP_EDITION=enterprise-global yarn workspace lowcoder start",
1617
"build": "yarn node ./scripts/build.js",

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const getStyle = (style: TextStyleType) => {
2929
font-size: ${style.textSize} !important;
3030
font-weight: ${style.textWeight} !important;
3131
font-family: ${style.fontFamily} !important;
32+
font-style:${style.fontStyle} !important;
3233
background-color: ${style.background};
3334
.markdown-body a {
3435
color: ${style.links};
@@ -111,7 +112,7 @@ const VerticalAlignmentOptions = [
111112
] as const;
112113

113114

114-
let TextTmpComp = (function () {
115+
let TextTmpComp = (function () {
115116

116117
const childrenMap = {
117118
text: stringExposingStateControl(
@@ -123,7 +124,7 @@ let TextTmpComp = (function () {
123124
horizontalAlignment: alignWithJustifyControl(),
124125
verticalAlignment: dropdownControl(VerticalAlignmentOptions, "center"),
125126
style: styleControl(TextStyle),
126-
margin: MarginControl,
127+
margin: MarginControl,
127128
padding: PaddingControl,
128129
};
129130
return new UICompBuilder(childrenMap, (props) => {
@@ -145,7 +146,7 @@ let TextTmpComp = (function () {
145146
.setPropertyViewFn((children) => {
146147
return (
147148
<>
148-
149+
149150
<Section name={sectionNames.basic}>
150151
{children.type.propertyView({
151152
label: trans("value"),
@@ -160,7 +161,7 @@ let TextTmpComp = (function () {
160161
{hiddenPropertyView(children)}
161162
</Section>
162163
)}
163-
164+
164165
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
165166
<>
166167
<Section name={sectionNames.layout}>

0 commit comments

Comments
 (0)