2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => ['p-steps p-component', { 'p-readonly': props.readonly }],
|
|
|
|
menu: 'p-steps-list',
|
2023-11-08 12:52:43 +00:00
|
|
|
menuitem: ({ instance, item, index }) => [
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-steps-item',
|
|
|
|
{
|
2023-11-08 12:52:43 +00:00
|
|
|
'p-highlight p-steps-current': instance.isActive(index),
|
|
|
|
'p-disabled': instance.isItemDisabled(item, index)
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
],
|
2023-11-08 12:52:43 +00:00
|
|
|
action: 'p-menuitem-link',
|
2023-10-02 10:46:09 +00:00
|
|
|
step: 'p-steps-number',
|
|
|
|
label: 'p-steps-title'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'steps',
|
|
|
|
classes
|
|
|
|
});
|