diff --git a/package.json b/package.json index bdb659d..aee68c1 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "jshint": "^2.11.1", "less-loader": "^6.1.0", "lib-flexible": "^0.3.2", - "mavon-editor": "^2.7.7", "monaco-editor-vue": "^1.0.10", "monaco-editor-webpack-plugin": "^1.9.0", "monaco-languages": "^1.10.0", diff --git a/src/components/Icon/Icon.vue b/src/components/Icon/Icon.vue index 86dac45..e088ec1 100644 --- a/src/components/Icon/Icon.vue +++ b/src/components/Icon/Icon.vue @@ -5,7 +5,7 @@ import { Icon } from 'ant-design-vue' const IconFont = Icon.createFromIconfontCN({ - scriptUrl: '//at.alicdn.com/t/font_2024484_3royfgdezl.js' + scriptUrl: '//at.alicdn.com/t/font_2024484_7y6nutfxwm5.js' }) export default { diff --git a/src/components/backtop/AlBackTop.vue b/src/components/backtop/AlBackTop.vue index 20c7ee4..4b9da07 100644 --- a/src/components/backtop/AlBackTop.vue +++ b/src/components/backtop/AlBackTop.vue @@ -9,7 +9,7 @@ }" class="el-backtop"> - + diff --git a/src/components/preview/SimTextPreview.vue b/src/components/preview/SimTextPreview.vue index d7eeb9d..c097993 100644 --- a/src/components/preview/SimTextPreview.vue +++ b/src/components/preview/SimTextPreview.vue @@ -95,17 +95,11 @@ > {{item.title}}
- >> .fancytree-expander { margin-top: 5px; } + .content-body { + overflow-y: scroll; + padding: 20px 30px; + background-color: #ffffff; + } diff --git a/src/components/preview/VditorPreview.vue b/src/components/preview/VditorPreview.vue new file mode 100644 index 0000000..299bf6f --- /dev/null +++ b/src/components/preview/VditorPreview.vue @@ -0,0 +1,66 @@ + + + + diff --git a/src/main.js b/src/main.js index adc92a1..7e1ba90 100644 --- a/src/main.js +++ b/src/main.js @@ -26,10 +26,6 @@ import contentmenu from 'v-contextmenu' import 'v-contextmenu/dist/index.css' Vue.use(contentmenu) -// mavonEditor -import mavonEditor from 'mavon-editor' -import 'mavon-editor/dist/css/index.css' - import '@/icons' // icon import '@/permission' // permission control @@ -92,8 +88,6 @@ Vue.use(CheckboxGroup); Vue.use(Grid); Vue.use(GridItem); -Vue.use(mavonEditor); - Vue.use(uploader) Vue.use(EVueContextmenu) diff --git a/src/styles/markdown.scss b/src/styles/markdown.scss index e4d38e0..5b6cebe 100644 --- a/src/styles/markdown.scss +++ b/src/styles/markdown.scss @@ -241,14 +241,7 @@ align-items: stretch; } -/deep/ .v-note-wrapper { - position: unset; - .show { - border-radius: 1rem; - } - .v-note-panel { - border-radius: 1rem; - } +/deep/ .article-body { .note-update-date { padding: 0.75rem; border-left: 0.35rem solid; @@ -501,12 +494,12 @@ font-size: 14px; color: #333; } -/deep/ .right-menu > div.titleList li.active a { - color: #13C2C2; -} -/deep/ .right-menu > div.titleList li:hover a { - color: #13C2C2; -} +///deep/ .right-menu > div.titleList li.active a { +// color: #13C2C2; +//} +///deep/ .right-menu > div.titleList li:hover a { +// color: #13C2C2; +//} /deep/ .right-menu > div.titleList { .h-1 { padding-left: 10px; @@ -534,10 +527,6 @@ color: #6a737d; } } -/deep/ .right-menu > div.titleList .pl a { - font-size: 13px; - color: #777; -} /deep/ .right-menu > div.titleList .j-bj { background: linear-gradient(to right, #5d9eea, #afcafd); position: absolute; diff --git a/src/views/markdown/index.vue b/src/views/markdown/index.vue index c320cf7..3c08b21 100644 --- a/src/views/markdown/index.vue +++ b/src/views/markdown/index.vue @@ -1,36 +1,55 @@