From f2d6c4b8e83786cc462f1974b754aed168fc9030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 30 Jun 2022 23:50:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D:=20=E6=9B=B4=E6=96=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/component/transfer/index.vue | 63 ++++++++++++++----- .../src/document/zh-CN/guide/changelog.md | 1 + package/layer/src/utils/index.ts | 14 +++-- 3 files changed, 60 insertions(+), 18 deletions(-) diff --git a/package/component/src/component/transfer/index.vue b/package/component/src/component/transfer/index.vue index f50d6e7e..9611736a 100644 --- a/package/component/src/component/transfer/index.vue +++ b/package/component/src/component/transfer/index.vue @@ -69,9 +69,7 @@ watch( } else { allLeftChecked.value = false; } - if ( - leftSelectedKeys.value.length > 0 && leftDataSource.value.length != 0 - ) { + if (leftSelectedKeys.value.length > 0 && leftDataSource.value.length != 0) { hasLeftChecked.value = true; } else { hasLeftChecked.value = false; @@ -103,7 +101,8 @@ watch( allRightChecked.value = false; } if ( - rightSelectedKeys.value.length > 0 && rightDataSource.value.length != 0 + rightSelectedKeys.value.length > 0 && + rightDataSource.value.length != 0 ) { hasRightChecked.value = true; } else { @@ -200,16 +199,30 @@ const dataStyle = computed(() => {