1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2026-01-07 23:47:00 +08:00

fix(markdown): update markdown demo props usage

This commit is contained in:
itsimddc 2025-09-14 00:35:25 +08:00
parent d201243b5a
commit 943d2419ca

View File

@ -20,14 +20,19 @@
<el-tag class="tag-title">
Markdown Mode:
</el-tag>
<markdown-editor ref="markdownEditor" v-model="content2" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" />
<markdown-editor
ref="markdownEditor"
v-model="content2"
:options="{ hideModeSwitch: true, previewStyle: 'tab' }"
height="200px"
/>
</div>
<div class="editor-container">
<el-tag class="tag-title">
Customize Toolbar:
</el-tag>
<markdown-editor v-model="content3" :options="{ toolbarItems: ['heading','bold','italic']}" />
<markdown-editor v-model="content3" :options="{ toolbarItems: [['heading', 'bold', 'italic']] }" />
</div>
<div class="editor-container">
@ -92,10 +97,11 @@ export default {
</script>
<style scoped>
.editor-container{
.editor-container {
margin-bottom: 30px;
}
.tag-title{
.tag-title {
margin-bottom: 5px;
}
</style>