From 2e2434cb5624935d6732eefdcabb4337cab48d77 Mon Sep 17 00:00:00 2001 From: yt0379 Date: Mon, 14 Sep 2020 16:41:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E6=97=B6label?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/option/Option.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/option/Option.vue b/packages/option/Option.vue index 8f1eaeb8d..e2486d94b 100644 --- a/packages/option/Option.vue +++ b/packages/option/Option.vue @@ -69,7 +69,7 @@ export default { }) const currentLabel = computed(() => { - return unref(label) || (isObject ? '' : unref(value)) + return unref(label) || (unref(isObject) ? '' : unref(value)) }) const currentValue = computed(() => { @@ -87,7 +87,7 @@ export default { const limitReached = computed(() => { if (select.multiple) { return ( - !itemSelected && + !unref(itemSelected) && (select.modelValue || []).length >= select.multipleLimit && select.multipleLimit > 0 )