Skip to content

Commit 02327cf

Browse files
author
FalkWolsky
committed
Updated Component Plugin Demo
1 parent efa905a commit 02327cf

File tree

5 files changed

+1436
-139
lines changed

5 files changed

+1436
-139
lines changed
Binary file not shown.

client/packages/lowcoder-plugin-demo/src/HelloWorldComp.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import {
99
NameConfig,
1010
eventHandlerControl,
1111
withMethodExposing,
12+
EditorContext,
1213
} from "lowcoder-sdk";
14+
import React, { useContext } from "react";
1315

1416
import styles from "./styles.module.css";
1517

@@ -58,7 +60,9 @@ const HelloWorldCompBase = new UICompBuilder(childrenMap, (props: any) => {
5860
{children.value.propertyView({ label: "Initial Value" })}
5961
{children.step.propertyView({ label: "Step" })}
6062
</Section>
61-
<Section name="Interaction">{children.onEvent.propertyView()}</Section>
63+
{/* {["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && ( */}
64+
<Section name="Interaction">{children.onEvent.propertyView()}</Section>
65+
{/* {[ )} */}
6266
</>
6367
);
6468
})

0 commit comments

Comments
 (0)