diff --git a/packages/designer/src/document/node/props/props.ts b/packages/designer/src/document/node/props/props.ts index d21982de2..3c40d17fd 100644 --- a/packages/designer/src/document/node/props/props.ts +++ b/packages/designer/src/document/node/props/props.ts @@ -41,10 +41,9 @@ export class Props implements IPropParent { return this; } - private stash = new PropStash(this, prop => { - this.items.push(prop); - prop.parent = this; - }); + readonly owner: Node; + + private stash: PropStash; /** * 元素个数 @@ -55,7 +54,12 @@ export class Props implements IPropParent { @obx type: 'map' | 'list' = 'map'; - constructor(readonly owner: Node, value?: PropsMap | PropsList | null, extras?: object) { + constructor(owner: Node, value?: PropsMap | PropsList | null, extras?: object) { + this.owner = owner; + this.stash = new PropStash(this, prop => { + this.items.push(prop); + prop.parent = this; + }); if (Array.isArray(value)) { this.type = 'list'; this.items = value.map(item => new Prop(this, item.value, item.name, item.spread, { skipSetSlot: true })); diff --git a/packages/ignitor/build.json b/packages/ignitor/build.json index f86c93cb1..9262596f3 100644 --- a/packages/ignitor/build.json +++ b/packages/ignitor/build.json @@ -1,6 +1,6 @@ { "entry": { - "engine-core": "../engine/src/index-core.ts", + "engine-core": "../engine/src/index.ts", "vision-polyfill": "../vision-polyfill/src/index.ts", "react-simulator-renderer": "../react-simulator-renderer/src/index.ts", "rax-simulator-renderer": "../rax-simulator-renderer/src/index.ts"