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