Commit 7bec8560 authored by chenqikuai's avatar chenqikuai

fix: 修复登录页 展示密码隐藏密码按钮无法显示的bug

parent ff0e1687
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
"bd_110": "vue-cli-service build & bash ./deploy_110.sh" "bd_110": "vue-cli-service build & bash ./deploy_110.sh"
}, },
"dependencies": { "dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@fingerprintjs/fingerprintjs": "^3.3.0", "@fingerprintjs/fingerprintjs": "^3.3.0",
"@quasar/extras": "^1.0.0", "@quasar/extras": "^1.0.0",
"ali-oss": "^6.16.0", "ali-oss": "^6.16.0",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
autocomplete="off" autocomplete="off"
> >
<template #button> <template #button>
<div class="flex items-center"> <div class="flex items-center h-6">
<img <img
src="@/assets/icons/close.png" src="@/assets/icons/close.png"
@click="handleClear" @click="handleClear"
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
name="cross" name="cross"
/> />
<slot name="button"></slot> <slot name="button"></slot>
<img <IconVue
size="14"
:name="showPwd ? 'icon-xianshi1': 'icon-yincang'"
color="rgb(136,153,179)"
v-if="type === 'password' && showEye" v-if="type === 'password' && showEye"
:src="showPwd ? eyeOpenIcon : eyeCloseIcon"
@click="handleClickEye" @click="handleClickEye"
name="cross"
class="ml-1 eyeIcon"
/> />
</div> </div>
</template> </template>
...@@ -33,15 +33,14 @@ ...@@ -33,15 +33,14 @@
import Vue, { PropType, defineComponent } from "vue"; import Vue, { PropType, defineComponent } from "vue";
import { Field, FieldType } from "vant"; import { Field, FieldType } from "vant";
import { tType } from "./types"; import { tType } from "./types";
import eyeOpenIcon from "@/assets/icons/eye_open.png"; import IconVue from "../Icon.vue";
import eyeCloseIcon from "@/assets/icons/eye_close.png";
// const eyeOpenIcon = require("@/assets/icons/eye_open.png");
// const eyeCloseIcon = require("@/assets/icons/eye_close.png");
export default defineComponent({ export default defineComponent({
emits: ["change", 'clear'], emits: ["change", 'clear'],
components: { components: {
Field, Field,
IconVue,
// Icon, // Icon,
}, },
props: { props: {
...@@ -68,8 +67,6 @@ export default defineComponent({ ...@@ -68,8 +67,6 @@ export default defineComponent({
data() { data() {
return { return {
showPwd: false, showPwd: false,
eyeOpenIcon,
eyeCloseIcon,
}; };
}, },
computed: { computed: {
...@@ -118,6 +115,10 @@ export default defineComponent({ ...@@ -118,6 +115,10 @@ export default defineComponent({
/deep/ input { /deep/ input {
color: @textColor; color: @textColor;
} }
.eyeContainer {
width: 14px;
height: 14px;
}
.eyeIcon { .eyeIcon {
width: 14px; width: 14px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment