mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 03:33:12 +08:00
refactor: fix types
This commit is contained in:
parent
4ad8bbe5f3
commit
c121d53d19
@ -1,5 +1,5 @@
|
|||||||
import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
|
import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
|
||||||
import Vue, { Component, PropType } from 'vue'
|
import Vue, { Component, CreateElement, PropType } from 'vue'
|
||||||
|
|
||||||
export interface BubbleMenuInterface extends Vue {
|
export interface BubbleMenuInterface extends Vue {
|
||||||
pluginKey: BubbleMenuPluginProps['pluginKey'],
|
pluginKey: BubbleMenuPluginProps['pluginKey'],
|
||||||
@ -60,7 +60,7 @@ export const BubbleMenu: Component = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
render(this: BubbleMenuInterface, createElement) {
|
render(this: BubbleMenuInterface, createElement: CreateElement) {
|
||||||
return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
|
return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user