chore: ts 报错处理

This commit is contained in:
力皓 2021-03-22 09:54:33 +08:00
parent ca85c6a6e7
commit 424b239e45

View File

@ -119,7 +119,7 @@ export class Prop implements IPropParent {
} }
if (type === 'slot') { if (type === 'slot') {
const schema = this._slotNode?.export(stage) || {}; const schema = this._slotNode?.export(stage) || {} as any;
if (stage === TransformStage.Render) { if (stage === TransformStage.Render) {
return { return {
type: 'JSSlot', type: 'JSSlot',