no message
Former-commit-id: f0207a1b3d4a0b29e414db4e6b7162631f0521ca Former-commit-id: 6c35c139c51e3077b285c7b2e7c64c197d5165f4 Former-commit-id: 082fdb8222ff834150dee83fbf18d2a3b5369003
This commit is contained in:
36
src/pages/demo/components/editor-simpleMDE/index.vue
Normal file
36
src/pages/demo/components/editor-simpleMDE/index.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<Container type="ghost">
|
||||
<el-card class="dd-mb">
|
||||
<PageHeader
|
||||
slot="header"
|
||||
title="基本示例"
|
||||
url="https://github.com/sparksuite/simplemde-markdown-editor">
|
||||
</PageHeader>
|
||||
<SimpleMDE
|
||||
v-model="text"
|
||||
class="mde">
|
||||
</SimpleMDE>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<template slot="header">输出</template>
|
||||
<pre>{{text}}</pre>
|
||||
</el-card>
|
||||
</Container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import text from './text'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
text
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mde {
|
||||
margin-bottom: -16px;
|
||||
}
|
||||
</style>
|
||||
10
src/pages/demo/components/editor-simpleMDE/text.js
Normal file
10
src/pages/demo/components/editor-simpleMDE/text.js
Normal file
@@ -0,0 +1,10 @@
|
||||
export default `# 标题
|
||||
|
||||
- 列表
|
||||
- 列表
|
||||
|
||||
\`\`\`
|
||||
alert('Hello')
|
||||
\`\`\`
|
||||
|
||||
[D2Admin in github](https://github.com/FairyEver/d2admin-vue-element)`
|
||||
Reference in New Issue
Block a user