Skip to content

Commit 8487136

Browse files
committed
Added direction's default value.
1 parent b2ee751 commit 8487136

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

client/packages/lowcoder/src/api/commonSettingApi.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface ThemeDetail {
5252
borderStyle?: string;
5353
chart?: string;
5454
margin?: string;
55+
direction?: string;
5556
padding?: string;
5657
gridPaddingX?: number;
5758
gridPaddingY?: number;
@@ -91,7 +92,8 @@ export function getThemeDetailName(key: keyof ThemeDetail) {
9192
case "borderWidth": return trans("themeDetail.borderWidth");
9293
case "borderStyle": return trans("themeDetail.borderStyle");
9394
case "fontFamily": return trans("themeDetail.fontFamily");
94-
case "margin": return trans("style.margin");
95+
case "margin": return trans("style.margin");
96+
case "direction": return trans("style.direction");
9597
case "padding": return trans("style.padding");
9698
case "gridColumns": return trans("themeDetail.gridColumns");
9799
case "textSize": return trans("style.textSize");
@@ -114,7 +116,8 @@ export function isThemeColorKey(key: string) {
114116
case "borderWidth":
115117
case "borderStyle":
116118
case "fontFamily":
117-
case "margin":
119+
case "margin":
120+
case "direction":
118121
case "padding":
119122
case "gridColumns":
120123
case "textSize":

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ const MARGIN = {
556556
const DIRECTION = {
557557
name: "direction",
558558
label: trans("style.direction"),
559-
position: "direction",
559+
direction: "direction",
560560
} as const;
561561

562562
const PADDING = {

client/packages/lowcoder/src/constants/themeConstants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const theme = {
1212
borderWidth: "1px",
1313
borderStyle: "solid",
1414
margin: "3px",
15+
direction: "0 0 1 1",
1516
padding: "3px",
1617
lineHeight: "18px",
1718
gridColumns: String(DEFAULT_GRID_COLUMNS),

0 commit comments

Comments
 (0)