2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
2024-03-22 08:53:44 +00:00
|
|
|
'p-inputtextarea p-component',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
|
|
|
'p-filled': instance.filled,
|
2024-01-30 11:27:56 +00:00
|
|
|
'p-inputtextarea-resizable ': props.autoResize,
|
2024-01-31 08:02:53 +00:00
|
|
|
'p-invalid': props.invalid,
|
2024-02-02 11:46:26 +00:00
|
|
|
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'textarea',
|
|
|
|
classes
|
|
|
|
});
|