From 223141a8e7fbb259db622e7ae74cb1d30fbeea6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Tue, 9 Aug 2022 17:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=80(component):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20input=20=E7=BB=84=E4=BB=B6=20password=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E9=BB=98=E8=AE=A4=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/input/index.vue | 10 +++++----- package/component/src/component/input/svg/Password.vue | 3 +++ .../component/src/component/input/svg/unPassword.vue | 3 +++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 package/component/src/component/input/svg/Password.vue create mode 100644 package/component/src/component/input/svg/unPassword.vue diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index b75af195..cca33b2e 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -9,6 +9,8 @@ import "./index.less"; import { LayIcon } from "@layui/icons-vue"; import { computed, ref, useSlots, watch } from "vue"; import { useI18n } from "../../language"; +import PasswordIcon from "./svg/Password.vue"; +import UnPasswordIcon from "./svg/unPassword.vue" export interface LayInputProps { name?: string; @@ -157,11 +159,9 @@ const showPassword = () => { class="layui-input-suffix-icon" > - - + + + diff --git a/package/component/src/component/input/svg/Password.vue b/package/component/src/component/input/svg/Password.vue new file mode 100644 index 00000000..4380c6c6 --- /dev/null +++ b/package/component/src/component/input/svg/Password.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/package/component/src/component/input/svg/unPassword.vue b/package/component/src/component/input/svg/unPassword.vue new file mode 100644 index 00000000..bb6b95db --- /dev/null +++ b/package/component/src/component/input/svg/unPassword.vue @@ -0,0 +1,3 @@ + \ No newline at end of file