提交 f96ba1af 编写于 作者: L lin-xin

Add vue-simplemde replace vue-markdown

上级 512566e9
......@@ -7,39 +7,33 @@
</el-breadcrumb>
</div>
<div class="plugins-tips">
vue-markdown:一个基于vue.js的markdown语法解析插件。
访问地址:<a href="https://github.com/miaolz123/vue-markdown" target="_blank">vue-markdown</a>
Vue-SimpleMDE:Vue.js的Markdown Editor组件。
访问地址:<a href="https://github.com/F-loat/vue-simplemde" target="_blank">Vue-SimpleMDE</a>
</div>
<textarea class="markdown-left" v-model="content"></textarea>
<vue-markdown class="markdown-right" :source="content"></vue-markdown>
<markdown-editor v-model="content" :configs="configs" ref="markdownEditor"></markdown-editor>
</div>
</template>
<script>
import VueMarkdown from 'vue-markdown';
import { markdownEditor } from 'vue-simplemde';
export default {
data: function(){
return {
content:'# Hello BBK'
content:'',
configs: {
status: false,
initialValue: 'Hello BBK',
renderingConfig: {
codeSyntaxHighlighting: true,
highlightingTheme: 'atom-one-light'
}
}
}
},
components: {
VueMarkdown
markdownEditor
}
}
</script>
<style scoped>
.markdown-left,.markdown-right{
width:48%;
height: 700px;
float: left;
padding:10px;
box-sizing: border-box;
border: 1px solid #ddd;
overflow-y: scroll;
}
.markdown-right{
margin-left: 3%;
}
</style>
\ No newline at end of file
<style></style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册