change exports

This commit is contained in:
Philipp Kühn
2021-02-28 23:24:26 +01:00
parent 4721fe451f
commit 00e673f700
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import Vue from 'vue'
export default Vue.extend({
export const EditorContent = Vue.extend({
name: 'EditorContent',
props: {

View File

@@ -313,7 +313,7 @@ class VueNodeView implements NodeView {
}
export default function VueNodeViewRenderer(component: Vue | VueConstructor, options?: Partial<VueNodeViewRendererOptions>): NodeViewRenderer {
export function VueNodeViewRenderer(component: Vue | VueConstructor, options?: Partial<VueNodeViewRendererOptions>): NodeViewRenderer {
return (props: NodeViewRendererProps) => {
// try to get the parent component
// this is important for vue devtools to show the component hierarchy correctly

View File

@@ -1,7 +1,7 @@
import Vue from 'vue'
import { VueConstructor } from 'vue/types/umd'
export default class VueRenderer {
export class VueRenderer {
vm!: Vue
constructor(component: Vue | VueConstructor, props: any) {

View File

@@ -1,4 +1,4 @@
export * from '@tiptap/core'
export { default as VueRenderer } from './VueRenderer'
export { default as VueNodeViewRenderer } from './VueNodeViewRenderer'
export { default as EditorContent } from './EditorContent'
export * from './VueRenderer'
export * from './VueNodeViewRenderer'
export * from './EditorContent'