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' import Vue from 'vue'
export default Vue.extend({ export const EditorContent = Vue.extend({
name: 'EditorContent', name: 'EditorContent',
props: { 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) => { return (props: NodeViewRendererProps) => {
// try to get the parent component // try to get the parent component
// this is important for vue devtools to show the component hierarchy correctly // this is important for vue devtools to show the component hierarchy correctly

View File

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

View File

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