Skip to content

Commit

Permalink
Add mask value in prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nisha Mishra authored and Nisha Mishra committed Dec 7, 2023
1 parent 275e1b4 commit 8a4c37f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions es-vue-base/src/lib-components/EsFormInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<b-form-input
:id="id"
v-bind="$attrs"
v-mask="type === 'maskedTel' ? maskValue : null"
v-mask="type === 'maskedTel' ? phoneMaskValue : null"
:type="type === 'maskedTel' ? 'tel' : type"
class="es-form-input w-100"
:class="{ 'has-prefix-icon': $slots.prefixIcon }"
Expand Down Expand Up @@ -142,9 +142,11 @@ export default {
type: Boolean,
default: false,
},
},
data() {
return { maskValue: '(###)-###-####' };
phoneMaskValue: {
type: String,
default: '(###)-###-####',
required: false,
},
},
computed: {
hasSuccess() {
Expand Down

0 comments on commit 8a4c37f

Please sign in to comment.