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

Method title

packages/designer/src/component-meta.ts:152–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 private _isMinimalRenderUnit?: boolean;
151
152 get title(): string | IPublicTypeI18nData | ReactElement {
153 // string | i18nData | ReactElement
154 // TitleConfig title.label
155 if (isTitleConfig(this._title)) {
156 return (this._title?.label as any) || this.componentName;
157 }
158 return this._title || this.componentName;
159 }
160
161 @computed get icon() {
162 // give Slot default icon

Callers

nothing calls this directly

Calls 1

isTitleConfigFunction · 0.50

Tested by

no test coverage detected