primevue-mirror/components/lib/inputotp/BaseInputOtp.vue

55 lines
1.1 KiB
Vue
Raw Normal View History

2024-02-21 18:38:16 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import InputOtpStyle from 'primevue/inputotp/style';
export default {
name: 'BaseInputOtp',
extends: BaseComponent,
props: {
modelValue: {
type: null,
default: false
},
invalid: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
readonly: {
type: Boolean,
default: false
},
variant: {
type: String,
default: null
},
tabindex: {
type: Number,
default: null
},
length: {
type: Number,
default: 4
},
mask: {
type: Boolean,
default: false
},
integerOnly: {
type: Boolean,
default: false
}
},
style: InputOtpStyle,
provide() {
return {
$pcInputOtp: this,
2024-02-21 18:38:16 +00:00
$parentInstance: this
};
}
};
</script>