Refactor #2801 - Password

pull/2809/head
Tuğçe Küçükoğlu 2022-07-27 13:22:10 +03:00
parent 0eddc7f2eb
commit 60bee46015
1 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
</span> </span>
<Portal :appendTo="appendTo"> <Portal :appendTo="appendTo">
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave"> <transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
<div :ref="overlayRef" :class="panelStyleClass" v-if="overlayVisible" @click="onOverlayClick"> <div :ref="overlayRef" :class="panelStyleClass" :style="panelStyle" v-if="overlayVisible" @click="onOverlayClick" v-bind="panelProps">
<slot name="header"></slot> <slot name="header"></slot>
<slot name="content"> <slot name="content">
<div class="p-password-meter"> <div class="p-password-meter">
@ -33,10 +33,6 @@ export default {
emits: ['update:modelValue', 'change', 'focus', 'blur'], emits: ['update:modelValue', 'change', 'focus', 'blur'],
props: { props: {
modelValue: String, modelValue: String,
inputId: {
type: String,
default: null
},
promptLabel: { promptLabel: {
type: String, type: String,
default: null default: null
@ -81,14 +77,18 @@ export default {
type: String, type: String,
default: 'pi pi-eye' default: 'pi pi-eye'
}, },
panelClass: String,
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false
}, },
inputId: null,
inputClass: null, inputClass: null,
inputStyle: null, inputStyle: null,
inputProps: null, inputProps: null,
panelClass: String,
panelStyle: String,
panelProps: null,
'aria-labelledby': { 'aria-labelledby': {
type: String, type: String,
default: null default: null