mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
fix: patch prototype
This commit is contained in:
parent
6d0a8ffde6
commit
f20bfaa884
@ -249,6 +249,9 @@ export class ComponentMeta {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// compatiable vision
|
||||||
|
prototype?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isComponentMeta(obj: any): obj is ComponentMeta {
|
export function isComponentMeta(obj: any): obj is ComponentMeta {
|
||||||
|
|||||||
@ -744,7 +744,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPrototype() {
|
getPrototype() {
|
||||||
return this;
|
return this.componentMeta.prototype;
|
||||||
}
|
}
|
||||||
|
|
||||||
getIcon() {
|
getIcon() {
|
||||||
|
|||||||
@ -229,6 +229,7 @@ class Prototype {
|
|||||||
const metadata = isNewSpec(input) ? input : upgradeMetadata(input);
|
const metadata = isNewSpec(input) ? input : upgradeMetadata(input);
|
||||||
this.meta = designer.createComponentMeta(metadata);
|
this.meta = designer.createComponentMeta(metadata);
|
||||||
}
|
}
|
||||||
|
(this.meta as any).prototype = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
getId() {
|
getId() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user