From 1232f269703c64fede92d85f0d51deefb737eb77 Mon Sep 17 00:00:00 2001 From: leecason Date: Mon, 30 Mar 2020 17:47:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20temporarily=20remove=20Ed?= =?UTF-8?q?itorView=20type=20check,=20https://github.com/Leecason/element-?= =?UTF-8?q?tiptap/issues/21#issuecomment-605615966?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ExtensionViews/ImageView.vue | 4 +++- src/components/ExtensionViews/TodoItemView.vue | 2 +- src/components/MenuBubble/ImageBubbleMenu.vue | 2 +- .../MenuCommands/Image/RemoveImageCommandButton.vue | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/ExtensionViews/ImageView.vue b/src/components/ExtensionViews/ImageView.vue index 784876a7..cb960963 100644 --- a/src/components/ExtensionViews/ImageView.vue +++ b/src/components/ExtensionViews/ImageView.vue @@ -91,7 +91,9 @@ export default class ImageView extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + // TODO: EditorView type check failed + // issue: https://github.com/Leecason/element-tiptap/issues/21#issuecomment-605615966 + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/ExtensionViews/TodoItemView.vue b/src/components/ExtensionViews/TodoItemView.vue index dd26048a..49741579 100644 --- a/src/components/ExtensionViews/TodoItemView.vue +++ b/src/components/ExtensionViews/TodoItemView.vue @@ -46,7 +46,7 @@ export default class TodoItemView extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/MenuBubble/ImageBubbleMenu.vue b/src/components/MenuBubble/ImageBubbleMenu.vue index 3f23dd2f..aa2302b9 100644 --- a/src/components/MenuBubble/ImageBubbleMenu.vue +++ b/src/components/MenuBubble/ImageBubbleMenu.vue @@ -39,7 +39,7 @@ export default class ImageBubbleMenu extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/MenuCommands/Image/RemoveImageCommandButton.vue b/src/components/MenuCommands/Image/RemoveImageCommandButton.vue index 8d956b6d..bd601b43 100644 --- a/src/components/MenuCommands/Image/RemoveImageCommandButton.vue +++ b/src/components/MenuCommands/Image/RemoveImageCommandButton.vue @@ -20,7 +20,7 @@ import CommandButton from '../CommandButton.vue'; }) export default class RemoveImageCommandButton extends Mixins(i18nMixin) { @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView;