From 9e6091b27d00ef1a7af25c9d436bb3885bfed68b Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 15 Sep 2021 22:32:11 +0800 Subject: [PATCH] perf: automatically calculate post editor height. --- src/components/Editor/MarkdownEditor.vue | 23 ++++++------- src/mixins/mixin.js | 41 +++++++++++++++++++++- src/styles/global.less | 36 ++++++++++++------- src/views/post/PostEdit.vue | 44 ++++++++++++------------ src/views/sheet/SheetEdit.vue | 35 ++++++++++--------- 5 files changed, 115 insertions(+), 64 deletions(-) diff --git a/src/components/Editor/MarkdownEditor.vue b/src/components/Editor/MarkdownEditor.vue index 0b6008b60..4d9570ccc 100644 --- a/src/components/Editor/MarkdownEditor.vue +++ b/src/components/Editor/MarkdownEditor.vue @@ -1,22 +1,21 @@