refactor: delete useless code (#20759)

* refactor: delete useless code

A && B && C && ( C || D ) === A && B && C 所以第四个判断完全没意义

* chore: format code

---------

Co-authored-by: warmthsea <2586244885@qq.com>
This commit is contained in:
IllegalCreed
2025-05-19 09:07:05 +08:00
committed by GitHub
parent 25277cea0e
commit aab2df4b40

View File

@ -293,11 +293,7 @@ const showClear = computed(
(isFocused.value || hovering.value)
)
const showPwdVisible = computed(
() =>
props.showPassword &&
!inputDisabled.value &&
!!nativeInputValue.value &&
(!!nativeInputValue.value || isFocused.value)
() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value
)
const isWordLimitVisible = computed(
() =>