Refactor #4190 - For Steps

pull/4208/head
Tuğçe Küçükoğlu 2023-07-25 12:11:49 +03:00
parent a7f0366b6a
commit b947b4860f
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,10 @@ export interface StepsPassThroughAttributes {
* Defines current options in Steps component.
*/
export interface StepsContext {
/**
* Current menuitem
*/
item: any;
/**
* Index of the menuitem.
*/

View File

@ -46,6 +46,7 @@ export default {
getPTOptions(key, item, index) {
return this.ptm(key, {
context: {
item,
index,
active: this.isActive(item),
disabled: this.isItemDisabled(item)