primevue-mirror/components/lib/steps/style/StepsStyle.js

22 lines
567 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => ['p-steps p-component', { 'p-readonly': props.readonly }],
menu: 'p-steps-list',
menuitem: ({ instance, item, index }) => [
'p-steps-item',
{
2024-04-09 13:54:12 +00:00
'p-steps-item-active': instance.isActive(index),
'p-disabled': instance.isItemDisabled(item, index)
}
],
2024-04-09 13:54:12 +00:00
action: 'p-steps-item-link',
step: 'p-steps-item-number',
label: 'p-steps-item-label'
};
export default BaseStyle.extend({
name: 'steps',
classes
});