2024-01-30 08:02:22 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
2024-02-14 07:33:56 +00:00
|
|
|
'p-icon-field',
|
2024-01-30 08:02:22 +00:00
|
|
|
{
|
2024-02-14 07:33:56 +00:00
|
|
|
'p-icon-field-right': props.iconPosition === 'right',
|
|
|
|
'p-icon-field-left': props.iconPosition === 'left'
|
2024-01-30 08:02:22 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'iconfield',
|
|
|
|
classes
|
|
|
|
});
|