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