Fixed #5908 - InputMask: v4 no classes are passed to target inpud component
parent
3e2c905bed
commit
4ae2e25f0c
|
@ -11,6 +11,10 @@ export default {
|
|||
type: String,
|
||||
default: '_'
|
||||
},
|
||||
class: {
|
||||
type: [String, Object],
|
||||
default: null
|
||||
},
|
||||
mask: {
|
||||
type: String,
|
||||
default: null
|
||||
|
|
|
@ -111,6 +111,10 @@ export interface InputMaskProps {
|
|||
* Mask pattern.
|
||||
*/
|
||||
mask?: string | undefined;
|
||||
/**
|
||||
* Style class of the input field.
|
||||
*/
|
||||
class?: string | object | undefined;
|
||||
/**
|
||||
* Placeholder text for the input.
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<InputText
|
||||
:value="modelValue"
|
||||
:class="cx('root')"
|
||||
:class="inputClass"
|
||||
:readonly="readonly"
|
||||
:disabled="disabled"
|
||||
:invalid="invalid"
|
||||
|
@ -517,6 +517,9 @@ export default {
|
|||
filled() {
|
||||
return this.modelValue != null && this.modelValue.toString().length > 0;
|
||||
},
|
||||
inputClass() {
|
||||
return [this.cx('root'), this.class];
|
||||
},
|
||||
ptmParams() {
|
||||
return {
|
||||
context: {
|
||||
|
|
Loading…
Reference in New Issue