()
| 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); |
nothing calls this directly
no test coverage detected