fix(components): [input] type hidden use class (#15865)

This commit is contained in:
Xc 2024-02-20 13:02:20 +08:00 committed by GitHub
parent ae4eff6c44
commit beaac3736c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,5 @@
<template>
<div
v-show="type !== 'hidden'"
v-bind="containerAttrs"
:class="containerKls"
:style="containerStyle"
@ -223,6 +222,7 @@ const containerKls = computed(() => [
slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
[nsInput.bm('suffix', 'password-clear')]:
showClear.value && showPwdVisible.value,
[nsInput.b('hidden')]: props.type === 'hidden',
},
rawAttrs.class,
])

View File

@ -464,3 +464,8 @@
}
}
}
@include b(input-hidden) {
display: none !important;
}