Fixed #5176 - variant added

This commit is contained in:
tugcekucukoglu 2024-01-31 11:02:53 +03:00
parent d43ea02957
commit ff22cfe15e
45 changed files with 182 additions and 22 deletions

View file

@ -109,6 +109,10 @@ export default {
type: Boolean,
default: false
},
variant: {
type: String,
default: 'outlined'
},
invalid: {
type: Boolean,
default: false

View file

@ -272,6 +272,11 @@ export interface InputNumberProps {
* @defaultValue false
*/
disabled?: boolean | undefined;
/**
* Specifies the input variant of the component.
* @defaultValue outlined
*/
variant?: 'outlined' | 'filled' | undefined;
/**
* When present, it specifies that an input field is read-only.
* @defaultValue false

View file

@ -114,7 +114,8 @@ const classes = {
'p-inputnumber-buttons-stacked': props.showButtons && props.buttonLayout === 'stacked',
'p-inputnumber-buttons-horizontal': props.showButtons && props.buttonLayout === 'horizontal',
'p-inputnumber-buttons-vertical': props.showButtons && props.buttonLayout === 'vertical',
'p-invalid': props.invalid
'p-invalid': props.invalid,
'p-variant': props.variant === 'filled'
}
],
input: 'p-inputnumber-input',