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',
|
|
|
|
{
|
2024-04-09 13:54:12 +00:00
|
|
|
'p-steps-item-active': instance.isActive(index),
|
2023-11-08 12:52:43 +00:00
|
|
|
'p-disabled': instance.isItemDisabled(item, index)
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
],
|
2024-04-09 13:54:12 +00:00
|
|
|
action: 'p-steps-item-link',
|
|
|
|
step: 'p-steps-item-number',
|
|
|
|
label: 'p-steps-item-label'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'steps',
|
|
|
|
classes
|
|
|
|
});
|