mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
chore: update types
This commit is contained in:
parent
c121d53d19
commit
45f58cae06
@ -1,4 +1,4 @@
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
import Vue, { Component, CreateElement, PropType } from 'vue'
|
||||
|
||||
import { Editor } from './Editor.js'
|
||||
|
||||
@ -42,7 +42,7 @@ export const EditorContent: Component = {
|
||||
},
|
||||
},
|
||||
|
||||
render(createElement) {
|
||||
render(createElement: CreateElement) {
|
||||
return createElement('div')
|
||||
},
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
|
||||
import Vue, { Component, PropType } from 'vue'
|
||||
import Vue, { Component, CreateElement, PropType } from 'vue'
|
||||
|
||||
export interface FloatingMenuInterface extends Vue {
|
||||
pluginKey: FloatingMenuPluginProps['pluginKey'],
|
||||
@ -54,7 +54,7 @@ export const FloatingMenu: Component = {
|
||||
},
|
||||
},
|
||||
|
||||
render(this: FloatingMenuInterface, createElement) {
|
||||
render(this: FloatingMenuInterface, createElement: CreateElement) {
|
||||
return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
|
||||
},
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Vue, { Component } from 'vue'
|
||||
import Vue, { Component, CreateElement } from 'vue'
|
||||
|
||||
export interface NodeViewContentInterface extends Vue {
|
||||
as: string,
|
||||
@ -12,7 +12,7 @@ export const NodeViewContent: Component = {
|
||||
},
|
||||
},
|
||||
|
||||
render(this: NodeViewContentInterface, createElement) {
|
||||
render(this: NodeViewContentInterface, createElement: CreateElement) {
|
||||
return createElement(this.as, {
|
||||
style: {
|
||||
whiteSpace: 'pre-wrap',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Vue, { Component } from 'vue'
|
||||
import Vue, { Component, CreateElement } from 'vue'
|
||||
|
||||
export interface NodeViewWrapperInterface extends Vue {
|
||||
as: string,
|
||||
@ -18,7 +18,7 @@ export const NodeViewWrapper: Component = {
|
||||
|
||||
inject: ['onDragStart', 'decorationClasses'],
|
||||
|
||||
render(this: NodeViewWrapperInterface, createElement) {
|
||||
render(this: NodeViewWrapperInterface, createElement: CreateElement) {
|
||||
return createElement(
|
||||
this.as,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user