fix: fix reactive props, see #1728

This commit is contained in:
Philipp Kühn 2021-10-02 23:18:12 +02:00
parent 9ed883edd4
commit 7f7f93dc1b

View File

@ -88,11 +88,11 @@ class VueNodeView extends NodeView<Component, Editor, VueNodeViewRendererOptions
const extendedComponent = defineComponent({
extends: { ...this.component },
props: Object.keys(props),
setup: () => {
setup: reactiveProps => {
provide('onDragStart', onDragStart)
provide('decorationClasses', this.decorationClasses)
return (this.component as any).setup?.(props, {
return (this.component as any).setup?.(reactiveProps, {
expose: () => undefined,
})
},