This commit is contained in:
2025-11-17 18:45:35 +01:00
parent 0f58e3bdff
commit 14d6f9aa73
7607 changed files with 1969407 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import {
UICompBuilder,
stringExposingStateControl,
Section,
withExposingConfigs,
NameConfig,
} from "lowcoder-sdk";
import styles from "./style.module.css";
const childrenMap = {
text: stringExposingStateControl("text", "world"),
};
const HelloWorldCompBase = new UICompBuilder(childrenMap, (props: any) => {
const text = props.text.value;
return <div className={styles.wrapper}>Hello {text}</div>;
})
.setPropertyViewFn((children: any) => {
return <Section name="Basic">{children.text.propertyView({ label: "Text" })}</Section>;
})
.build();
export default withExposingConfigs(HelloWorldCompBase, [new NameConfig("text", "")]);