Merge pull request #37 from zhaoxuhui1122/feature/20191213

onSave事件返回结果增加字段
This commit is contained in:
zhaoxuhui 2019-12-13 17:34:42 +08:00 committed by GitHub
commit aea214b424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -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: {

View File

@ -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`

View File

@ -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,

View File

@ -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() {// 显示主题选项