mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
fix: fix reactive props, see #1728
This commit is contained in:
parent
9ed883edd4
commit
7f7f93dc1b
@ -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,
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user