forked from zhaoxuhui1122/vue-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
executable file
·48 lines (44 loc) · 1003 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<div>
<Markdown
v-model="val"
@on-ready="onReady"
@on-copy="onCopy"
@on-upload-image="onUpladImage"
@on-save="onSave"
:height="500"
/>
</div>
</template>
<script>
// import Markdown from './dist/simple';
// import Markdown from 'vue-meditor';
import Markdown from './src/pro';
// import Markdown from './src/simple';
export default {
components: {
Markdown
},
data: function () {
return {
val: ''
}
},
methods: {
onReady(data) {
console.log(data)
},
onCopy(text) {
console.log(text);
},
onUpladImage(file) {
console.log(file)
},
onSave(data) {
console.log(data);
}
}
}
</script>
<style lang="less">
</style>