mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-04 03:29:03 +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'
|
import { Editor } from './Editor.js'
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ export const EditorContent: Component = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
render(createElement) {
|
render(createElement: CreateElement) {
|
||||||
return createElement('div')
|
return createElement('div')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
|
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 {
|
export interface FloatingMenuInterface extends Vue {
|
||||||
pluginKey: FloatingMenuPluginProps['pluginKey'],
|
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)
|
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 {
|
export interface NodeViewContentInterface extends Vue {
|
||||||
as: string,
|
as: string,
|
||||||
@ -12,7 +12,7 @@ export const NodeViewContent: Component = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
render(this: NodeViewContentInterface, createElement) {
|
render(this: NodeViewContentInterface, createElement: CreateElement) {
|
||||||
return createElement(this.as, {
|
return createElement(this.as, {
|
||||||
style: {
|
style: {
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import Vue, { Component } from 'vue'
|
import Vue, { Component, CreateElement } from 'vue'
|
||||||
|
|
||||||
export interface NodeViewWrapperInterface extends Vue {
|
export interface NodeViewWrapperInterface extends Vue {
|
||||||
as: string,
|
as: string,
|
||||||
@ -18,7 +18,7 @@ export const NodeViewWrapper: Component = {
|
|||||||
|
|
||||||
inject: ['onDragStart', 'decorationClasses'],
|
inject: ['onDragStart', 'decorationClasses'],
|
||||||
|
|
||||||
render(this: NodeViewWrapperInterface, createElement) {
|
render(this: NodeViewWrapperInterface, createElement: CreateElement) {
|
||||||
return createElement(
|
return createElement(
|
||||||
this.as,
|
this.as,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user