Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c80045

Browse files
committed
CSS properties and their control added for segment control
1 parentf501802 commit2c80045

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

‎client/packages/lowcoder/src/comps/comps/selectInputComp/segmentedControl.tsx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ const getStyle = (style: SegmentStyleType) => {
5252
.ant-segmented-item-selected {
5353
border-radius:${style.radius};
5454
}
55+
&.ant-segmented, .ant-segmented-item-label {
56+
font-family:${style.fontFamily};
57+
font-style:${style.fontStyle};
58+
font-size:${style.textSize};
59+
font-weight:${style.textWeight};
60+
text-transform:${style.textTransform};
61+
text-decoration:${style.textDecoration};
62+
}
5563
`;
5664
};
5765

‎client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ export const RadioStyle = [
888888

889889
exportconstSegmentStyle=[
890890
LABEL,
891+
...STYLING_FIELDS_SEQUENCE.filter((style)=>['border','borderWidth'].includes(style.name)===false),
891892
{
892893
name:"indicatorBackground",
893894
label:trans("style.indicatorBackground"),
@@ -906,10 +907,7 @@ export const SegmentStyle = [
906907
depType:DEP_TYPE.CONTRAST_TEXT,
907908
transformer:contrastText,
908909
},
909-
RADIUS,
910910
VALIDATE,
911-
MARGIN,
912-
PADDING,
913911
]asconst;
914912

915913
constLinkTextStyle=[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp