mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
feat(components): [form-item]Label attribute for judging modification (#14344)
This commit is contained in:
@@ -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>(() => {
|
||||
|
||||
Reference in New Issue
Block a user