mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4106 - InputText: size property
This commit is contained in:
parent
3d49b11814
commit
019f1607e9
3 changed files with 23 additions and 2 deletions
|
@ -2,14 +2,25 @@
|
|||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
const classes = {
|
||||
root: ({ instance }) => ['p-inputtext p-component', { 'p-filled': instance.filled }]
|
||||
root: ({ instance, props }) => [
|
||||
'p-inputtext p-component',
|
||||
{
|
||||
'p-filled': instance.filled,
|
||||
'p-inputtext-sm': props.size === 'small',
|
||||
'p-inputtext-lg': props.size === 'large'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default {
|
||||
name: 'BaseInputText',
|
||||
extends: BaseComponent,
|
||||
props: {
|
||||
modelValue: null
|
||||
modelValue: null,
|
||||
size: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
css: {
|
||||
classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue