diff --git a/src/components/steps/Steps.vue b/src/components/steps/Steps.vue
index 2dd5c5f2a..0fa274520 100644
--- a/src/components/steps/Steps.vue
+++ b/src/components/steps/Steps.vue
@@ -1,6 +1,13 @@
@@ -17,7 +24,25 @@ export default {
}
},
methods: {
+ onItemClick(event, item) {
+ if (item.disabled || this.readonly) {
+ event.preventDefault();
+ return;
+ }
+ if (item.command) {
+ item.command({
+ originalEvent: event,
+ item: item
+ });
+ }
+ },
+ getItemClass(item) {
+ return ['p-steps-item', item.class, {
+ 'p-highlight p-steps-current': (this.activeRoute === item.to),
+ 'p-disabled': (item.disabled || (this.activeRoute !== item.to && this.readonly))
+ }];
+ }
},
computed: {
activeRoute() {
@@ -45,8 +70,6 @@ export default {
.p-steps .p-steps-item {
float: left;
- box-sizing: border-box;
- cursor: pointer;
}
.p-steps.p-steps-readonly .p-steps-item {
diff --git a/src/views/steps/ConfirmationDemo.vue b/src/views/steps/ConfirmationDemo.vue
index af057be64..b01d2b1ec 100644
--- a/src/views/steps/ConfirmationDemo.vue
+++ b/src/views/steps/ConfirmationDemo.vue
@@ -1,6 +1,6 @@
-