Client - fix password input
This commit is contained in:
parent
6371fb0622
commit
dfe50b5287
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="password-input">
|
<div class="password-input">
|
||||||
<input
|
<input
|
||||||
id="password"
|
:id="id"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:required="required"
|
:required="required"
|
||||||
@ -35,6 +35,7 @@
|
|||||||
interface Props {
|
interface Props {
|
||||||
checkStrength?: boolean
|
checkStrength?: boolean
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
|
id?: string
|
||||||
password?: string
|
password?: string
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
required?: boolean
|
required?: boolean
|
||||||
@ -43,10 +44,11 @@
|
|||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
checkStrength: false,
|
checkStrength: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
id: 'password',
|
||||||
password: '',
|
password: '',
|
||||||
required: false,
|
required: false,
|
||||||
})
|
})
|
||||||
const { checkStrength, disabled, password, placeholder, required } =
|
const { checkStrength, disabled, id, password, placeholder, required } =
|
||||||
toRefs(props)
|
toRefs(props)
|
||||||
|
|
||||||
const showPassword: Ref<boolean> = ref(false)
|
const showPassword: Ref<boolean> = ref(false)
|
||||||
|
@ -136,10 +136,14 @@
|
|||||||
|
|
||||||
.password-slider::-webkit-slider-thumb,
|
.password-slider::-webkit-slider-thumb,
|
||||||
.password-slider::-moz-range-thumb {
|
.password-slider::-moz-range-thumb {
|
||||||
-webkit-appearance: none;
|
|
||||||
appearance: none;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
.password-slider::-webkit-slider-thumb {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
.password-slider::-moz-range-thumb {
|
||||||
|
appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
.password-strength-details {
|
.password-strength-details {
|
||||||
margin-bottom: $default-margin * 0.5;
|
margin-bottom: $default-margin * 0.5;
|
||||||
|
Loading…
Reference in New Issue
Block a user