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