Skip to content

Commit

Permalink
fix: 新增时label为空
Browse files Browse the repository at this point in the history
  • Loading branch information
yt0379 committed Sep 14, 2020
1 parent e2ed7af commit 2e2434c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/option/Option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -87,7 +87,7 @@ export default {
const limitReached = computed(() => {
if (select.multiple) {
return (
!itemSelected &&
!unref(itemSelected) &&
(select.modelValue || []).length >= select.multipleLimit &&
select.multipleLimit > 0
)
Expand Down

0 comments on commit 2e2434c

Please sign in to comment.