File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ Vue.component('vue-simplemde', VueSimplemde)
60
60
| configs | Object | {} | [ SimpleMDE's config] ( #configuration ) |
61
61
| previewRender | Function | - | configs.previewRender |
62
62
63
+ ## Events
64
+
65
+ | property | describe | arguments |
66
+ | ----| ----- | ---- |
67
+ | input | Triggered when the Input value changes | value |
68
+ | blur | Triggered when the Input loses focus | value |
69
+ | initialized | Triggered when initialization is complete | simplemde |
70
+
63
71
## Methods
64
72
65
73
``` js
Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ export default {
93
93
94
94
// 绑定事件
95
95
this .bindingEvents ();
96
+
97
+ // 初始化完成
98
+ this .$nextTick (() => {
99
+ this .$emit (' initialized' , this .simplemde );
100
+ });
96
101
},
97
102
bindingEvents () {
98
103
this .simplemde .codemirror .on (' change' , () => {
You can’t perform that action at this time.
0 commit comments