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

Method body

packages/editor-skeleton/src/widget/dock.ts:41–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 private _body: ReactNode;
40
41 get body() {
42 if (this.inited) {
43 return this._body;
44 }
45
46 const { props, content, contentProps } = this.config;
47
48 if (content) {
49 this._body = createContent(content, {
50 ...contentProps,
51 config: this.config,
52 editor: getEvent(this.skeleton.editor),
53 });
54 } else {
55 this._body = createElement(DockView, props);
56 }
57 this.inited = true;
58
59 return this._body;
60 }
61
62 constructor(readonly skeleton: ISkeleton, readonly config: DockConfig) {
63 makeObservable(this);

Callers

nothing calls this directly

Calls 2

createContentFunction · 0.85
getEventFunction · 0.85

Tested by

no test coverage detected