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