Fixed #6025 - InputMask: Passed props are not set
parent
f26bb8d023
commit
00e879e304
|
@ -64,6 +64,11 @@ export interface InputMaskPassThroughOptions {
|
|||
* @see {@link InputTextPassThroughOptions}
|
||||
*/
|
||||
root?: InputTextPassThroughOptions<InputMaskSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the InputText component.
|
||||
* @see {@link InputTextPassThroughOptions}
|
||||
*/
|
||||
pcInputText?: InputTextPassThroughOptions<InputMaskSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to manage all lifecycle hooks.
|
||||
* @see {@link BaseComponent.ComponentHooks}
|
||||
|
|
|
@ -15,13 +15,14 @@
|
|||
@keydown="onKeyDown"
|
||||
@keypress="onKeyPress"
|
||||
@paste="onPaste"
|
||||
:pt="ptmi('root', ptmParams)"
|
||||
:pt="rootPTOptions"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserAgent } from '@primeuix/utils/dom';
|
||||
import InputText from 'primevue/inputtext';
|
||||
import { mergeProps } from 'vue';
|
||||
import BaseInputMask from './BaseInputMask.vue';
|
||||
|
||||
export default {
|
||||
|
@ -521,6 +522,9 @@ export default {
|
|||
inputClass() {
|
||||
return [this.cx('root'), this.class];
|
||||
},
|
||||
rootPTOptions() {
|
||||
return mergeProps(this.ptmi('root', this.ptmParams), this.ptm('pcInputText', this.ptmParams));
|
||||
},
|
||||
ptmParams() {
|
||||
return {
|
||||
context: {
|
||||
|
|
Loading…
Reference in New Issue