Closed myfaraway closed 2 years ago
<template> <div> <div > <mavon-editor style="height: 100%"></mavon-editor> </div> </div> </template> <script> import { mavonEditor } from 'mavon-editor' import 'mavon-editor/dist/css/index.css' export default { name: 'Markdown', data() { //选项 / 数据 return { } }, methods: { //事件处理器 }, components: { //定义组件 "mavon-editor":mavonEditor }, created() { //生命周期函数 } } </script> <style> </style>
This problem may be due to the vue2 used