Skip to content

Commit 2fc7262

Browse files
committed
fix(view): 引入并注册 mavon-editor 组件
1 parent 4376da5 commit 2fc7262

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

admin/src/views/markdown/index.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@
66
</template>
77

88
<script>
9+
// import with ES6
10+
// import mavonEditor from 'mavon-editor'
11+
import { mavonEditor } from 'mavon-editor'
12+
// markdown-it对象:md.s_markdown, md => mavonEditor 实例
13+
// or
14+
// mavonEditor.markdownIt
15+
import 'mavon-editor/dist/css/index.css'
16+
// use
17+
// Vue.use(mavonEditor)
918
import axios from 'axios'
1019
1120
export default {
21+
components: {
22+
mavonEditor
23+
},
1224
data() {
1325
return {
1426
'value': ''

0 commit comments

Comments
 (0)