mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: prop type=UNSET 时返回 undefined
This commit is contained in:
parent
2aa6b9c185
commit
f437f30642
@ -66,7 +66,7 @@ export class Prop implements IPropParent {
|
||||
const type = this._type;
|
||||
|
||||
if (type === 'unset') {
|
||||
return UNSET;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (type === 'literal' || type === 'expression') {
|
||||
@ -98,9 +98,7 @@ export class Prop implements IPropParent {
|
||||
const maps: any = {};
|
||||
this.items!.forEach((prop, key) => {
|
||||
const v = prop.export(stage);
|
||||
if (v !== UNSET) {
|
||||
maps[prop.key == null ? key : prop.key] = v;
|
||||
}
|
||||
maps[prop.key == null ? key : prop.key] = v;
|
||||
});
|
||||
return maps;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user