fix: fix reactive props, see #1728
This commit is contained in:
@@ -88,11 +88,11 @@ class VueNodeView extends NodeView<Component, Editor, VueNodeViewRendererOptions
|
|||||||
const extendedComponent = defineComponent({
|
const extendedComponent = defineComponent({
|
||||||
extends: { ...this.component },
|
extends: { ...this.component },
|
||||||
props: Object.keys(props),
|
props: Object.keys(props),
|
||||||
setup: () => {
|
setup: reactiveProps => {
|
||||||
provide('onDragStart', onDragStart)
|
provide('onDragStart', onDragStart)
|
||||||
provide('decorationClasses', this.decorationClasses)
|
provide('decorationClasses', this.decorationClasses)
|
||||||
|
|
||||||
return (this.component as any).setup?.(props, {
|
return (this.component as any).setup?.(reactiveProps, {
|
||||||
expose: () => undefined,
|
expose: () => undefined,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user