From 637b3b398c1055e42770e14973b05a27e28fa05a 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: Wed, 30 Aug 2023 17:29:26 +0300 Subject: [PATCH] Refactor #4351 - For Steps --- components/lib/steps/Steps.d.ts | 12 ++++++++++++ components/lib/steps/Steps.vue | 34 +++++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/components/lib/steps/Steps.d.ts b/components/lib/steps/Steps.d.ts index 389f3b91e..3b2563b6e 100755 --- a/components/lib/steps/Steps.d.ts +++ b/components/lib/steps/Steps.d.ts @@ -137,6 +137,18 @@ export interface StepsSlots { * Menuitem instance */ item: MenuItem; + /** + * Label property of the menuitem + */ + label: string | ((...args: any) => string) | undefined; + /** + * Order of the menuitem + */ + index: number; + /** + * Binding properties of the menuitem + */ + props: (...args: any) => string; }): VNode[]; } diff --git a/components/lib/steps/Steps.vue b/components/lib/steps/Steps.vue index c32c160d3..447b4c0a1 100755 --- a/components/lib/steps/Steps.vue +++ b/components/lib/steps/Steps.vue @@ -23,7 +23,7 @@ {{ label(item) }} - + @@ -32,11 +32,17 @@