Skip to content

Commit 1cd164f

Browse files
committed
component styles created
1 parent b6a4318 commit 1cd164f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,15 @@ const STYLING_FIELDS_SEQUENCE = [
476476
BORDER_WIDTH,
477477
]
478478

479+
const STYLING_FIELDS_CONTAINER_SEQUENCE = [
480+
BORDER,
481+
BORDER_STYLE,
482+
MARGIN,
483+
PADDING,
484+
RADIUS,
485+
BORDER_WIDTH,
486+
];
487+
479488
const FILL = {
480489
name: "fill",
481490
label: trans("style.fill"),
@@ -784,6 +793,11 @@ export const LabelStyle = [
784793
...replaceAndMergeMultipleStyles([...InputLikeStyle], 'text', [LABEL]).filter((style) => style.name !== 'radius' && style.name !== 'background')
785794
]
786795

796+
export const ComponentStyle = [
797+
getStaticBackground(SURFACE_COLOR),
798+
...STYLING_FIELDS_CONTAINER_SEQUENCE,
799+
] as const;
800+
787801
export const RatingStyle = [
788802
{
789803
name: "checked",

0 commit comments

Comments
 (0)