Skip to content

Commit bd99271

Browse files
committed
Fix some compile issues
1 parent f4ea8de commit bd99271

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { CSSProperties, lazy, ReactNode, Suspense } from "react";
3434
import {
3535
showTransform,
3636
toArrayJSONObject,
37-
toBoolean, toBooleanOrCss,
37+
toBoolean, toBooleanOrCss, toBooleanOrJsonObject,
3838
toJSONArray,
3939
toJSONObject,
4040
toJSONObjectArray,
@@ -319,6 +319,7 @@ export const StringControl = codeControl<string>(toString);
319319
export const NumberControl = codeControl<number>(toNumber);
320320
export const StringOrNumberControl = codeControl<string | number>(toStringOrNumber);
321321
export const MaskControl = codeControl<boolean | { style?: CSSProperties | undefined; color?: string | undefined; } | undefined>(toBooleanOrCss);
322+
export const ArrowControl = codeControl<boolean | { pointAtCenter: boolean } | undefined>(toBooleanOrJsonObject);
322323

323324
// rangeCheck, don't support Infinity temporarily
324325
export class RangeControl {

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { ViewDocIcon } from "assets/icons";
2-
import { ArrayControl, BoolCodeControl, RadiusControl, StringControl } from "comps/controls/codeControl";
2+
import {
3+
ArrayControl,
4+
BoolCodeControl,
5+
RadiusControl,
6+
StringControl
7+
} from "comps/controls/codeControl";
38
import { dropdownControl, LeftRightControl } from "comps/controls/dropdownControl";
49
import { IconControl } from "comps/controls/iconControl";
510
import { MultiCompBuilder, valueComp, withContext, withDefault } from "comps/generators";

0 commit comments

Comments
 (0)