From dd5bffe0711721ddb7585bfc6812ccac065aa469 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 5 Feb 2023 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E6=89=80=E6=9C=89=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=B7=BB=E5=8A=A0=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E7=B2=98=E8=B4=B4=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/components/base/Input.vue | 44 ++++++++++++++++++- .../components/common/ListAddModal.vue | 10 ++--- .../common/ListAddMultipleModal.vue | 9 ++-- .../components/material/SearchInput.vue | 1 + .../List/MusicList/components/SearchList.vue | 17 +++++-- src/renderer/views/List/MyList/index.vue | 23 +++++----- src/renderer/views/List/MyList/useEditList.ts | 2 +- .../Setting/components/PlayTimeoutModal.vue | 4 +- .../Setting/components/SettingHotKey.vue | 4 +- .../views/Setting/components/SettingSync.vue | 2 +- 11 files changed, 82 insertions(+), 35 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 553ef572..65bda55e 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -10,6 +10,7 @@ - 微调了桌面歌词逐行字体阴影,使其看起来更匀称 - 调整了桌面歌词在启用滚动到顶部时的距离,现在滚动到顶部的歌词更靠边,不再受字体大小、歌词间距影响 - 优化更新弹窗内容的显示,添加了自动更新失败时的更新指引 +- 为所有文本输入框添加右键快速粘贴的功能,右击输入框可以自动粘贴剪贴板的文字,若选中文字时将粘贴并替换选中文字 ### 修复 diff --git a/src/renderer/components/base/Input.vue b/src/renderer/components/base/Input.vue index ad2fddde..5f440f89 100644 --- a/src/renderer/components/base/Input.vue +++ b/src/renderer/components/base/Input.vue @@ -10,10 +10,13 @@ @input="handleInput" @change="$emit('change', $event.target.value.trim())" @keyup.enter="$emit('submit', $event.target.value.trim())" + @contextmenu="handleContextMenu" > diff --git a/src/renderer/components/common/ListAddModal.vue b/src/renderer/components/common/ListAddModal.vue index b563263f..c653bab8 100644 --- a/src/renderer/components/common/ListAddModal.vue +++ b/src/renderer/components/common/ListAddModal.vue @@ -8,7 +8,7 @@ - + @@ -170,7 +170,7 @@ export default { handleSaveList(event) { let name = event.target.value this.newListName = event.target.value = '' - this.isEditing = false + // this.isEditing = false if (!name) return createUserList({ name }) }, @@ -256,16 +256,14 @@ export default { top: 0; width: 100%; height: 34px; - border: none; - padding: 0; line-height: 34px; - background: none; - outline: none; + background: none !important; font-size: 14px; text-align: center; font-family: inherit; box-sizing: border-box; padding: 0 10px; + border-radius: 0; display: none; } diff --git a/src/renderer/components/common/ListAddMultipleModal.vue b/src/renderer/components/common/ListAddMultipleModal.vue index d31a9f22..de81ea37 100644 --- a/src/renderer/components/common/ListAddMultipleModal.vue +++ b/src/renderer/components/common/ListAddMultipleModal.vue @@ -8,7 +8,7 @@ - + @@ -213,16 +213,13 @@ export default { top: 0; width: 100%; height: 34px; - border: none; - padding: 0; line-height: 34px; - background: none; - outline: none; + background: none !important; font-size: 14px; text-align: center; - font-family: inherit; box-sizing: border-box; padding: 0 10px; + border-radius: 0; display: none; } diff --git a/src/renderer/components/material/SearchInput.vue b/src/renderer/components/material/SearchInput.vue index 791549e6..d8ef0f4b 100644 --- a/src/renderer/components/material/SearchInput.vue +++ b/src/renderer/components/material/SearchInput.vue @@ -11,6 +11,7 @@ @input="$emit('update:modelValue', text)" @change="sendEvent('change')" @keyup.enter="handleSearch" + @keydown.arrow-down.arrow-up.prevent @keyup.arrow-down.prevent="handleKeyDown" @keyup.arrow-up.prevent="handleKeyUp" @contextmenu="handleContextMenu" diff --git a/src/renderer/views/List/MusicList/components/SearchList.vue b/src/renderer/views/List/MusicList/components/SearchList.vue index 3667d85d..c7489d90 100644 --- a/src/renderer/views/List/MusicList/components/SearchList.vue +++ b/src/renderer/views/List/MusicList/components/SearchList.vue @@ -6,13 +6,14 @@