mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Refactor #5176 - invalid property added
This commit is contained in:
parent
b42c9eb7ee
commit
a9a254915c
54 changed files with 198 additions and 12 deletions
|
@ -7,7 +7,11 @@ export default {
|
|||
extends: BaseComponent,
|
||||
props: {
|
||||
modelValue: null,
|
||||
autoResize: Boolean
|
||||
autoResize: Boolean,
|
||||
invalid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
style: TextareaStyle,
|
||||
provide() {
|
||||
|
|
5
components/lib/textarea/Textarea.d.ts
vendored
5
components/lib/textarea/Textarea.d.ts
vendored
|
@ -97,6 +97,11 @@ export interface TextareaProps extends TextareaHTMLAttributes {
|
|||
* @defaultValue false
|
||||
*/
|
||||
autoResize?: boolean | undefined;
|
||||
/**
|
||||
* When present, it specifies that the component should have invalid state style.
|
||||
* @defaultValue false
|
||||
*/
|
||||
invalid?: boolean | undefined;
|
||||
/**
|
||||
* Used to pass attributes to DOM elements inside the component.
|
||||
* @type {TextareaPassThroughOptions}
|
||||
|
|
|
@ -18,7 +18,8 @@ const classes = {
|
|||
'p-inputtextarea p-inputtext p-component',
|
||||
{
|
||||
'p-filled': instance.filled,
|
||||
'p-inputtextarea-resizable ': props.autoResize
|
||||
'p-inputtextarea-resizable ': props.autoResize,
|
||||
'p-invalid': props.invalid
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue