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 }],
|
2024-04-30 13:03:20 +00:00
|
|
|
list: 'p-steps-list',
|
|
|
|
item: ({ 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-30 13:03:20 +00:00
|
|
|
itemLink: 'p-steps-item-link',
|
|
|
|
itemNumber: 'p-steps-item-number',
|
|
|
|
itemLabel: 'p-steps-item-label'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'steps',
|
|
|
|
classes
|
|
|
|
});
|