From b55b66271d006893919a8659917568c953ab2719 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Thu, 18 Aug 2022 15:09:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=94=AE=E7=9B=98?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E4=BA=8B=E4=BB=B6=E7=9A=84=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=88=A4=E6=96=AD=20#13=20#15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpns/ClipItemList.vue | 8 +++++++- src/style/cpns/file-list.less | 3 ++- src/views/Main.vue | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/cpns/ClipItemList.vue b/src/cpns/ClipItemList.vue index b63f94b..b1b0a3d 100644 --- a/src/cpns/ClipItemList.vue +++ b/src/cpns/ClipItemList.vue @@ -53,6 +53,10 @@ const props = defineProps({ showList: { type: Array, required: true + }, + fullData: { + type: Object, + required: true } }) const emit = defineEmits(['onDataChange']) @@ -104,7 +108,9 @@ onMounted(() => { ?.scrollIntoView({ block: 'nearest', inline: 'nearest' }) } } else if (isCopy) { - window.copy(props.showList[activeIndex.value]) + if (props.fullData.data === '') { + window.copy(props.showList[activeIndex.value]) + } } else if (isEnter) { window.copy(props.showList[activeIndex.value]) window.paste() diff --git a/src/style/cpns/file-list.less b/src/style/cpns/file-list.less index 973b073..20226ed 100644 --- a/src/style/cpns/file-list.less +++ b/src/style/cpns/file-list.less @@ -3,8 +3,9 @@ justify-content: flex-start; align-items: center; cursor: pointer; + font-size: 13px; &:hover { - font-weight: 600; + text-decoration: underline; &::after { content: '📤'; } diff --git a/src/views/Main.vue b/src/views/Main.vue index b3b39f7..9112ef6 100644 --- a/src/views/Main.vue +++ b/src/views/Main.vue @@ -4,7 +4,7 @@ @@ -139,6 +140,7 @@ onMounted(() => { window.focus() } else if (isExit) { filterText.value = '' + } else if (ctrlKey) { } else { window.focus() // 其他键盘事件 直接聚焦搜索框 }