From 8f5b10ec0356bd42921d77bc039bc660dbeddee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=92=83=E7=99=BD?= <18511759309@163.com> Date: Tue, 31 Aug 2021 15:37:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=A0=8F=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 ++ src/assets/style/markdown.less | 1 + src/components/content/md-textarea.vue | 3 +++ 3 files changed, 6 insertions(+) diff --git a/src/App.vue b/src/App.vue index dfc7017..bbaa603 100644 --- a/src/App.vue +++ b/src/App.vue @@ -230,7 +230,9 @@ export default { _this.text = newText; _this.$refs.mdUploadFile.value = ""; _this.uploadImgPercent = 100; + _this.$refs["md_textarea" + _this.id].waiting = false; } else { + _this.$refs["md_textarea" + _this.id].waiting = true; _this.uploadImgPercent = parseInt(url); } _this.$refs["md_header" + _this.id].loading( diff --git a/src/assets/style/markdown.less b/src/assets/style/markdown.less index 753b49f..7921333 100644 --- a/src/assets/style/markdown.less +++ b/src/assets/style/markdown.less @@ -35,6 +35,7 @@ } img { max-width: 100%; + display: block; // height: auto; &.right { border: 1px solid #ccc; diff --git a/src/components/content/md-textarea.vue b/src/components/content/md-textarea.vue index 95e9cef..6c7b7cb 100644 --- a/src/components/content/md-textarea.vue +++ b/src/components/content/md-textarea.vue @@ -27,6 +27,8 @@ overflow: editorOverFlow, cursor: disabled ? 'not-allowed' + : waiting + ? 'wait' : formatType ? `url(https://codechina.csdn.net/codechina/operation-work/uploads/a1b7c2a995b2320dca911e2f2ecb9b88/format.png),text` : 'text' @@ -145,6 +147,7 @@ export default { endPosition: "", keyWord: "" }, + waiting: false, activeUserIndex: 0, selectUserPosition: { left: 0, top: 0 } }; -- GitLab