diff --git a/components/lib/inputmask/BaseInputMask.vue b/components/lib/inputmask/BaseInputMask.vue index e630210ee..6793411d8 100644 --- a/components/lib/inputmask/BaseInputMask.vue +++ b/components/lib/inputmask/BaseInputMask.vue @@ -15,6 +15,10 @@ export default { type: String, default: null }, + placeholder: { + type: String, + default: null + }, autoClear: { type: Boolean, default: true diff --git a/components/lib/inputmask/InputMask.d.ts b/components/lib/inputmask/InputMask.d.ts index 017204381..5cd23b4a4 100755 --- a/components/lib/inputmask/InputMask.d.ts +++ b/components/lib/inputmask/InputMask.d.ts @@ -111,6 +111,10 @@ export interface InputMaskProps { * Mask pattern. */ mask?: string | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * Clears the incomplete value on blur. * @defaultValue true diff --git a/components/lib/inputmask/InputMask.vue b/components/lib/inputmask/InputMask.vue index 20ae6c937..553d362a1 100755 --- a/components/lib/inputmask/InputMask.vue +++ b/components/lib/inputmask/InputMask.vue @@ -6,6 +6,7 @@ :disabled="disabled" :invalid="invalid" :variant="variant" + :placeholder="placeholder" :unstyled="unstyled" @input="onInput" @focus="onFocus"