primevue-mirror/components/lib/inputtext/BaseInputText.vue

35 lines
657 B
Vue
Raw Normal View History

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
},
provide() {
return {
$parentInstance: this
};
2023-05-24 11:23:36 +00:00
}
};
</script>