change exports
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user