Skip to content

Commit b2d5862

Browse files
theme: components styling
1 parent 117a277 commit b2d5862

File tree

15 files changed

+737
-117
lines changed

15 files changed

+737
-117
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface ThemeDetail {
5959
boxShadow?: string;
6060
boxShadowColor?: string;
6161
animationIterationCount?: string;
62+
components?: Record<string, object>;
6263
}
6364

6465
export function getThemeDetailName(key: keyof ThemeDetail) {

client/packages/lowcoder/src/components/PreviewApp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export default function PreviewApp(props: {
5656

5757
return (
5858
<Preview style={props.style}>
59-
<ThemeContext.Provider value={{ previewTheme: theme }}>{view}</ThemeContext.Provider>
59+
<ThemeContext.Provider value={{ previewTheme: theme }}>
60+
{view}
61+
</ThemeContext.Provider>
6062
</Preview>
6163
);
6264
}

0 commit comments

Comments
 (0)