onSave事件返回结果增加字段
This commit is contained in:
parent
966b92a527
commit
609b42613f
1
App.vue
1
App.vue
@ -15,6 +15,7 @@
|
||||
// import Markdown from './dist/simple';
|
||||
// import Markdown from 'vue-meditor';
|
||||
import Markdown from './src/pro';
|
||||
// import Markdown from './src/simple';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
@ -425,3 +425,5 @@ export default hljs;
|
||||
## 问题反馈
|
||||
|
||||
对于功能上的缺陷、使用方法和希望扩展的功能,可以提 [Issues](https://github.com/zhaoxuhui1122/vue-markdown/issues)。
|
||||
|
||||
## license: `MIT`
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vue-meditor",
|
||||
"description": "一款使用marked和highlight.js开发的一款markdown编辑器",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.3",
|
||||
"author": "zhaoxuhui<1258835133@qq.com>",
|
||||
"license": "MIT",
|
||||
"private": false,
|
||||
|
@ -105,10 +105,11 @@ export default {
|
||||
);
|
||||
},
|
||||
handleSave() {// 保存操作
|
||||
const { currentValue, themeName } = this;
|
||||
const { currentValue, themeName,html } = this;
|
||||
this.$emit('on-save', {
|
||||
theme: themeName,
|
||||
value: currentValue
|
||||
value: currentValue,
|
||||
html
|
||||
});
|
||||
},
|
||||
toggleSlideDown() {// 显示主题选项
|
||||
|
Loading…
Reference in New Issue
Block a user