MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / title

Method title

packages/designer/src/document/node/node.ts:278–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276 }
277
278 @computed get title(): string | IPublicTypeI18nData | ReactElement {
279 let t = this.getExtraProp('title');
280 // TODO: 暂时走不到这个分支
281 // if (!t && this.componentMeta.descriptor) {
282 // t = this.getProp(this.componentMeta.descriptor, false);
283 // }
284 if (t) {
285 const v = t.getAsString();
286 if (v) {
287 return v;
288 }
289 }
290 return this.componentMeta.title;
291 }
292
293 get icon() {
294 return this.componentMeta.icon;

Callers

nothing calls this directly

Calls 2

getExtraPropMethod · 0.95
getAsStringMethod · 0.65

Tested by

no test coverage detected