mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
fix bug
This commit is contained in:
parent
21b2d422fb
commit
2608294d04
@ -97,7 +97,7 @@ export type NodeViewRendererProps = {
|
||||
extension: Node,
|
||||
}
|
||||
|
||||
export type NodeViewRenderer = (props: NodeViewRendererProps) => (NodeView | undefined)
|
||||
export type NodeViewRenderer = (props: NodeViewRendererProps) => (NodeView | {})
|
||||
|
||||
export type UnfilteredCommands = {
|
||||
[Item in keyof AllExtensions]: AllExtensions[Item] extends Extension<any, infer ExtensionCommands>
|
||||
|
@ -324,7 +324,7 @@ export default function VueRenderer(component: Vue | VueConstructor, options?: P
|
||||
: undefined
|
||||
|
||||
if (!parent) {
|
||||
return undefined
|
||||
return {}
|
||||
}
|
||||
|
||||
return new VueNodeView(component, props, options) as NodeView
|
||||
|
Loading…
Reference in New Issue
Block a user