MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / body

Method body

packages/editor-skeleton/src/widget/widget.ts:51–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 private _body: ReactNode;
50
51 get body() {
52 if (this.inited) {
53 return this._body;
54 }
55 this.inited = true;
56 const { content, contentProps } = this.config;
57 this._body = createContent(content, {
58 ...contentProps,
59 config: this.config,
60 editor: getEvent(this.skeleton.editor),
61 });
62 return this._body;
63 }
64
65 get content(): ReactNode {
66 return createElement(WidgetView, {

Callers

nothing calls this directly

Calls 2

createContentFunction · 0.85
getEventFunction · 0.85

Tested by

no test coverage detected