style: 增加注释

This commit is contained in:
mario.gk 2020-07-23 18:00:35 +08:00
parent 8f453bdcc5
commit a140f9bc69

View File

@ -66,6 +66,7 @@ export class Prop implements IPropParent {
const type = this._type; const type = this._type;
if (type === 'unset') { if (type === 'unset') {
// return UNSET; @康为 之后 review 下这块改造
return undefined; return undefined;
} }
@ -98,6 +99,10 @@ export class Prop implements IPropParent {
const maps: any = {}; const maps: any = {};
this.items!.forEach((prop, key) => { this.items!.forEach((prop, key) => {
const v = prop.export(stage); const v = prop.export(stage);
// if (v !== UNSET) {
// maps[prop.key == null ? key : prop.key] = v;
// }
// @康为 之后 review 下这块改造
maps[prop.key == null ? key : prop.key] = v; maps[prop.key == null ? key : prop.key] = v;
}); });
return maps; return maps;