Refactor #4190 - For Steps

This commit is contained in:
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. * Defines current options in Steps component.
*/ */
export interface StepsContext { export interface StepsContext {
/**
* Current menuitem
*/
item: any;
/** /**
* Index of the menuitem. * Index of the menuitem.
*/ */

View file

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