Fixed #6505
parent
934d83b436
commit
1016d2df5f
|
@ -19,6 +19,10 @@ export default {
|
|||
type: [String, Object],
|
||||
default: null
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
mask: {
|
||||
type: String,
|
||||
default: null
|
||||
|
|
|
@ -124,6 +124,11 @@ export interface InputMaskProps {
|
|||
* Style class of the input field.
|
||||
*/
|
||||
class?: string | object | undefined;
|
||||
/**
|
||||
* Type of the input field.
|
||||
* @defaultValue null
|
||||
*/
|
||||
type?: string | undefined;
|
||||
/**
|
||||
* Placeholder text for the input.
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<InputText
|
||||
:id="id"
|
||||
:value="currentVal"
|
||||
:type="type"
|
||||
:class="inputClass"
|
||||
:readonly="readonly"
|
||||
:disabled="disabled"
|
||||
|
|
|
@ -7,6 +7,10 @@ export default {
|
|||
extends: BaseComponent,
|
||||
props: {
|
||||
modelValue: null,
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
default: null
|
||||
|
|
|
@ -87,6 +87,11 @@ export interface InputTextProps extends InputHTMLAttributes {
|
|||
* Value of the component.
|
||||
*/
|
||||
modelValue?: Nullable<string>;
|
||||
/**
|
||||
* Type of the input field.
|
||||
* @defaultValue text
|
||||
*/
|
||||
type?: string | undefined;
|
||||
/**
|
||||
* Defines the size of the component.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<input type="text" :class="cx('root')" :value="modelValue" :aria-invalid="invalid || undefined" @input="onInput" v-bind="getPTOptions('root')" />
|
||||
<input :type="type" :class="cx('root')" :value="modelValue" :aria-invalid="invalid || undefined" @input="onInput" v-bind="getPTOptions('root')" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue