feat(components): [form-item]Label attribute for judging modification (#14344)

This commit is contained in:
Chen juan
2023-09-21 11:27:15 +08:00
committed by GitHub
parent 3c0a0aa0ad
commit 99e8736c6a

View File

@@ -159,9 +159,9 @@ const hasLabel = computed<boolean>(() => {
})
const labelFor = computed<string | undefined>(() => {
return props.for || inputIds.value.length === 1
? inputIds.value[0]
: undefined
return (
props.for || (inputIds.value.length === 1 ? inputIds.value[0] : undefined)
)
})
const isGroup = computed<boolean>(() => {