From 3e3bac2a6af064264c42442a3b4b4516d14a30e4 Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Tue, 30 Mar 2021 14:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20cl-codemirror,=20cl-menu-f?= =?UTF-8?q?ile=20=E7=AD=89=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../base/components/codemirror/index.vue | 90 +++++++++---------- .../modules/base/components/dept/tree.vue | 5 +- .../base/components/editor-quill/index.vue | 4 + .../modules/base/components/menu/file.vue | 23 ++--- .../modules/base/components/menu/topbar.vue | 4 +- src/cool/modules/chat/components/notice.vue | 2 +- .../modules/task/components/cron/cron.vue | 4 +- src/cool/modules/upload/components/index.vue | 11 ++- src/core/utils/index.ts | 9 ++ src/pages/layout/slider.vue | 33 +++++-- src/pages/layout/topbar.vue | 54 +++++++---- src/shims-vue.d.ts | 72 +++++++-------- 13 files changed, 181 insertions(+), 132 deletions(-) diff --git a/package.json b/package.json index b05d59f..eb6cff1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "front-next-vue3", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/cool/modules/base/components/codemirror/index.vue b/src/cool/modules/base/components/codemirror/index.vue index 9c8a8f5..d97a389 100644 --- a/src/cool/modules/base/components/codemirror/index.vue +++ b/src/cool/modules/base/components/codemirror/index.vue @@ -1,11 +1,11 @@ diff --git a/src/cool/modules/base/components/dept/tree.vue b/src/cool/modules/base/components/dept/tree.vue index 1198d93..cb5a69c 100644 --- a/src/cool/modules/base/components/dept/tree.vue +++ b/src/cool/modules/base/components/dept/tree.vue @@ -391,10 +391,6 @@ export default defineComponent({ } } - :deep(.el-tree-node__content) { - height: 36px; - } - &__op { display: flex; @@ -419,6 +415,7 @@ export default defineComponent({ overflow-x: hidden; :deep(.el-tree-node__content) { + height: 36px; margin: 0 5px; } } diff --git a/src/cool/modules/base/components/editor-quill/index.vue b/src/cool/modules/base/components/editor-quill/index.vue index 4c02c93..f83ff9c 100644 --- a/src/cool/modules/base/components/editor-quill/index.vue +++ b/src/cool/modules/base/components/editor-quill/index.vue @@ -56,11 +56,15 @@ export default defineComponent({ // 文件确认 function onUploadSpaceConfirm(files: any[]) { if (files.length > 0) { + // 批量插入图片 files.forEach((file, i) => { const [type] = file.type.split("/"); quill.insertEmbed(cursorIndex.value + i, type, file.url, Quill.sources.USER); }); + + // 移动光标到图片后一位 + quill.setSelection(cursorIndex.value + files.length); } } diff --git a/src/cool/modules/base/components/menu/file.vue b/src/cool/modules/base/components/menu/file.vue index 2f11ee9..7c8d082 100644 --- a/src/cool/modules/base/components/menu/file.vue +++ b/src/cool/modules/base/components/menu/file.vue @@ -15,9 +15,18 @@