From c82805a80c5773e94f1e21174199e7d9d4d5c5d8 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 20 Apr 2021 23:52:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B:=20fix=20the=20renaming=20prob?= =?UTF-8?q?lem=20=20=20=20fix=20the=20response=20problem=20of=20the=20inte?= =?UTF-8?q?rface=20after=20deletion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 7a25ba4..e9ee1bf 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -2274,6 +2274,9 @@ export default { }, // 重命名 rowRename(newFileName, row) { + //去掉回车换行 + newFileName = newFileName.replace(/[\r\n]/g,""); + console.log('newFileName', newFileName) if (newFileName) { if (/[\/\\"<>\?\*]/gi.test(newFileName)) { this.$message({ @@ -2931,7 +2934,7 @@ export default { setTimeout(() => { // 再执行移除 for (let i = 0; i < removeFileIndexList.length; i++) { - this.splice(removeFileIndexList[i], 1) + this.fileList.splice(removeFileIndexList[i], 1) } // 改变拖拽目标 this.rowDrop() From 7a63a998e4403535036d4017cafbdcae30231c30 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 22 Apr 2021 14:01:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E6=94=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/home-index.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/styles/home-index.scss b/src/styles/home-index.scss index f56b654..8f17a76 100644 --- a/src/styles/home-index.scss +++ b/src/styles/home-index.scss @@ -1,7 +1,7 @@ .dashboard { &-container { min-width: 500px; - margin: 10px 0px 0px 0px; + margin: 10px 0 0 0; } &-text { font-size: 30px; @@ -45,7 +45,7 @@ .newFileMenu ul { list-style: none; - padding-inline-start: 0px; + padding-inline-start: 0; margin-top: 0; margin-bottom: 0; } @@ -70,6 +70,7 @@ .newFileMenu li > .menuitem > .text { cursor: pointer; font-weight: normal; + margin-left: 15px; } .newFileMenu li > .menuitem > .svg-icon { cursor: pointer; @@ -293,7 +294,6 @@ color: #606266; font-size: smaller; word-wrap: break-word; - width: -webkit-fill-available; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -336,7 +336,7 @@ .grid-item-icon-image { width: 100%; height: 100%; - top: 0px; + top: 0; border-radius: 5px; margin: 0; -webkit-backdrop-filter: contrast(0.5); From c78e20e2b8da8991aaf5ac88913a92050baaea29 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 22 Apr 2021 14:03:38 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E2=AC=86=20=E5=8D=87=E7=BA=A7=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d43a6d9..779debd 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "vue-aplayer": "^1.6.1", "vue-runtime-helpers": "^1.1.2", "vue-simple-uploader": "^0.7.4", + "vue-template-compiler": "^2.6.12", "vue-video-player": "^5.0.2", "vue-wechat-title": "^2.0.5", "vuedraggable": "^2.23.2", @@ -58,13 +59,13 @@ "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.6.0", "@vue/cli-plugin-eslint": "^3.9.1", - "@vue/cli-plugin-unit-jest": "3.6.3", - "@vue/cli-service": "3.6.0", + "@vue/cli-plugin-unit-jest": "^4.5.12", + "@vue/cli-service": "^4.5.12", "@vue/test-utils": "1.0.0-beta.29", "autoprefixer": "^9.5.1", "babel-core": "7.0.0-bridge.0", "babel-eslint": "10.0.1", - "babel-jest": "23.6.0", + "babel-jest": "^26.6.3", "babel-plugin-import": "^1.13.0", "chalk": "2.4.2", "connect": "3.6.6", @@ -78,8 +79,7 @@ "script-loader": "0.7.2", "serve-static": "^1.13.2", "svg-sprite-loader": "4.1.3", - "svgo": "1.2.2", - "vue-template-compiler": "2.6.10" + "svgo": "1.2.2" }, "engines": { "node": ">=8.9",