mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 19:58:09 +08:00
fix(components): [input] type hidden use class (#15865)
This commit is contained in:
parent
ae4eff6c44
commit
beaac3736c
@ -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,
|
||||
])
|
||||
|
@ -464,3 +464,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@include b(input-hidden) {
|
||||
display: none !important;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user