MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / materialUsageKey

Method materialUsageKey

packages/core/src/document/node/node.ts:571–577  ·  view source on GitHub ↗

* 获取用于物料使用计数追踪的 key * 对于远程组件返回版本化名称(如 "AreaChart@1.0.0") * 对于本地组件返回原始名称

()

Source from the content-addressed store, hash-verified

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 * 判断当前节点是否为远程物料组件

Callers

nothing calls this directly

Calls 1

getExtraPropValueMethod · 0.95

Tested by

no test coverage detected