2023-05-24 11:23:36 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
|
|
|
|
const classes = {
|
2023-07-04 09:28:31 +00:00
|
|
|
root: ({ instance, props }) => [
|
|
|
|
'p-inputtext p-component',
|
|
|
|
{
|
|
|
|
'p-filled': instance.filled,
|
|
|
|
'p-inputtext-sm': props.size === 'small',
|
|
|
|
'p-inputtext-lg': props.size === 'large'
|
|
|
|
}
|
|
|
|
]
|
2023-05-24 11:23:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseInputText',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
2023-07-04 09:28:31 +00:00
|
|
|
modelValue: null,
|
|
|
|
size: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
2023-05-24 11:23:36 +00:00
|
|
|
},
|
|
|
|
css: {
|
2023-07-03 23:28:22 +00:00
|
|
|
classes
|
2023-05-24 11:23:36 +00:00
|
|
|
},
|
2023-05-30 11:06:57 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-24 11:23:36 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|