* 获取用于物料使用计数追踪的 key * 对于远程组件返回版本化名称(如 "AreaChart@1.0.0") * 对于本地组件返回原始名称
()
| 569 | * 对于本地组件返回原始名称 |
| 570 | */ |
| 571 | get materialUsageKey(): string { |
| 572 | if (this.isRemote) { |
| 573 | const version = this.getExtraPropValue('npm.version') |
| 574 | return `${this.componentName}@${version}` |
| 575 | } |
| 576 | return this.componentName |
| 577 | } |
| 578 | |
| 579 | /** |
| 580 | * 判断当前节点是否为远程物料组件 |
nothing calls this directly
no test coverage detected