(component): 调整 password 属性, 当有 length > 0 时启用

This commit is contained in:
就眠儀式 2022-07-28 10:33:03 +08:00
parent a7e0086e52
commit 31ad2ff7a3

View File

@ -155,7 +155,7 @@ const showPassword = () => {
class="layui-input-suffix-icon"
></lay-icon>
</span>
<span class="layui-input-password" v-if="password">
<span class="layui-input-password" v-if="password && hasContent">
<lay-icon
:type="isPassword ? 'layui-icon-face-smile' : 'layui-icon-face-cry'"
@click="showPassword"