漏洞
[Vue 警告]:挂载钩子中的错误:“TypeError:没有‘new’就不能调用类构造函数节点”
应用程序.vue
<template>
<v-container>
<tiptap-vuetify
v-model="content"
:extensions="extensions" />
</v-container>
</template>
<script>
// import the component and the necessary extensions
import { TiptapVuetify, Heading, Bold, Italic, Strike, Underline, Code, Paragraph, BulletList, OrderedList, ListItem, Link, Blockquote, HardBreak, HorizontalRule, History ,TodoList,TodoItem} from 'tiptap-vuetify'
export default {
// specify TiptapVuetify component in "components"
components: { TiptapVuetify },
data: () => ({
content: `
<h3>TIPTAP</h3>`,
// declare extensions you want to use
extensions: [
History,
Blockquote,
Link,
Underline,
Strike,
Italic,
ListItem,
BulletList,
OrderedList,
[Heading, {
options: {
levels: [1, 2, 3]
}
}],
Bold,
Code,
HorizontalRule,
Paragraph,
HardBreak,
TodoList,
[TodoItem, {
options: {nested: true}
}],],
}),}
</script>
系统信息
- 操作系统:Windows10
- Node.js 版本:v14.15.1
依赖项
- "core-js": "^3.6.5",
- "tiptap-vuetify": "^2.24.0",
- "vue": "^2.6.11",
- “vuetify”:“^2.2.11”