From b947b4860f227f3f982831d173c5904a00afa624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 25 Jul 2023 12:11:49 +0300 Subject: [PATCH] Refactor #4190 - For Steps --- components/lib/steps/Steps.d.ts | 4 ++++ components/lib/steps/Steps.vue | 1 + 2 files changed, 5 insertions(+) diff --git a/components/lib/steps/Steps.d.ts b/components/lib/steps/Steps.d.ts index 9c5461334..87e7c8d3b 100755 --- a/components/lib/steps/Steps.d.ts +++ b/components/lib/steps/Steps.d.ts @@ -70,6 +70,10 @@ export interface StepsPassThroughAttributes { * Defines current options in Steps component. */ export interface StepsContext { + /** + * Current menuitem + */ + item: any; /** * Index of the menuitem. */ diff --git a/components/lib/steps/Steps.vue b/components/lib/steps/Steps.vue index fcdac9553..c32c160d3 100755 --- a/components/lib/steps/Steps.vue +++ b/components/lib/steps/Steps.vue @@ -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)