fix: fix expose error when using new setup syntax (fix #1914)

This commit is contained in:
Philipp Kühn 2021-09-20 23:57:48 +02:00
parent 067d61c5dd
commit 60e7755b7f

View File

@ -92,7 +92,9 @@ class VueNodeView extends NodeView<Component, Editor, VueNodeViewRendererOptions
provide('onDragStart', onDragStart)
provide('decorationClasses', this.decorationClasses)
return (this.component as any).setup?.(props)
return (this.component as any).setup?.(props, {
expose: () => undefined,
})
},
})