mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-22 09:18:11 +00:00
fix: 修复组件面板详情加载不了的 bug
This commit is contained in:
parent
1c0b50869d
commit
cca33096d1
@ -219,6 +219,9 @@ class Prototype {
|
|||||||
readonly isPrototype = true;
|
readonly isPrototype = true;
|
||||||
readonly meta: ComponentMeta;
|
readonly meta: ComponentMeta;
|
||||||
readonly options: OldPrototypeConfig | ComponentMetadata;
|
readonly options: OldPrototypeConfig | ComponentMetadata;
|
||||||
|
get packageName() {
|
||||||
|
return this.meta.npm?.package;
|
||||||
|
}
|
||||||
|
|
||||||
constructor(input: OldPrototypeConfig | ComponentMetadata | ComponentMeta, lookup: boolean = false) {
|
constructor(input: OldPrototypeConfig | ComponentMetadata | ComponentMeta, lookup: boolean = false) {
|
||||||
if (lookup) {
|
if (lookup) {
|
||||||
@ -250,7 +253,7 @@ class Prototype {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPackageName() {
|
getPackageName() {
|
||||||
return this.meta.npm?.package;
|
return this.packageName;
|
||||||
}
|
}
|
||||||
|
|
||||||
getContextInfo(name: string): any {
|
getContextInfo(name: string): any {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user