mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Refactor #5266
This commit is contained in:
parent
2f353f2c19
commit
15c7860624
2 changed files with 3 additions and 3 deletions
|
@ -232,12 +232,12 @@ export default {
|
||||||
},
|
},
|
||||||
prevCallback(event, index) {
|
prevCallback(event, index) {
|
||||||
if (index !== 0) {
|
if (index !== 0) {
|
||||||
this.onItemClick(event, index - 1);
|
this.updateActiveStep(event, index - 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nextCallback(event, index) {
|
nextCallback(event, index) {
|
||||||
if (index !== this.stepperpanels.length - 1) {
|
if (index !== this.stepperpanels.length - 1) {
|
||||||
this.onItemClick(event, index + 1);
|
this.updateActiveStep(event, index + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,7 +15,7 @@ const classes = {
|
||||||
'p-stepper-header',
|
'p-stepper-header',
|
||||||
{
|
{
|
||||||
'p-highlight': instance.isStepActive(index),
|
'p-highlight': instance.isStepActive(index),
|
||||||
'p-disabled': instance.isItemDisabled(step, index)
|
'p-disabled': instance.isItemDisabled(index)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
action: 'p-stepper-action',
|
action: 'p-stepper-action',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue