perf[markdown-editor]

This commit is contained in:
Pan 2018-01-29 14:45:43 +08:00
parent 94ae1f8719
commit d754eae662

View file

@ -73,47 +73,44 @@ export default {
}) })
}, },
destroyed() { destroyed() {
this.simplemde.toTextArea()
this.simplemde = null this.simplemde = null
} }
} }
</script> </script>
<style> <style scoped>
.simplemde-container .CodeMirror { .simplemde-container>>>.CodeMirror {
min-height: 150px;
line-height: 20px;
}
.simplemde-container>>>.CodeMirror-scroll {
min-height: 150px; min-height: 150px;
} }
.simplemde-container .CodeMirror-scroll { .simplemde-container>>>.CodeMirror-code {
min-height: 150px;
}
.simplemde-container .CodeMirror-code {
padding-bottom: 40px; padding-bottom: 40px;
} }
.simplemde-container .editor-statusbar { .simplemde-container>>>.editor-statusbar {
display: none; display: none;
} }
.simplemde-container .CodeMirror .CodeMirror-code .cm-link { .simplemde-container>>>.CodeMirror .CodeMirror-code .cm-link {
color: #1482F0; color: #1890ff;
} }
.simplemde-container .CodeMirror .CodeMirror-code .cm-string.cm-url { .simplemde-container>>>.CodeMirror .CodeMirror-code .cm-string.cm-url {
color: #2d3b4d; color: #2d3b4d;
font-weight: bold;
} }
.simplemde-container .CodeMirror .CodeMirror-code .cm-formatting-link-string.cm-url { .simplemde-container>>>.CodeMirror .CodeMirror-code .cm-formatting-link-string.cm-url {
padding: 0 2px; padding: 0 2px;
font-weight: bold;
color: #E61E1E; color: #E61E1E;
} }
.simplemde-container >>> .editor-toolbar.fullscreen,
.simplemde-container .editor-toolbar.fullscreen, .simplemde-container >>> .CodeMirror-fullscreen {
.simplemde-container .CodeMirror-fullscreen {
z-index: 1003; z-index: 1003;
} }
</style> </style>