From 1d67d47c43106bb8fdbe910a67b37046c0386067 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, 16 Aug 2023 09:45:44 +0300 Subject: [PATCH] Refactor #4274 - For SpeedDial --- components/lib/speeddial/SpeedDial.d.ts | 12 +++++++----- components/lib/speeddial/SpeedDial.vue | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/lib/speeddial/SpeedDial.d.ts b/components/lib/speeddial/SpeedDial.d.ts index 5b4bc8c1f..5492a94d6 100644 --- a/components/lib/speeddial/SpeedDial.d.ts +++ b/components/lib/speeddial/SpeedDial.d.ts @@ -262,9 +262,10 @@ export interface SpeedDialSlots { */ item: MenuItem; /** - * ıtem click function + * Item click function + * @param {Event} event - Browser event. */ - onClick: void; + onClick(): void; }): VNode[]; /** * Custom button template. @@ -272,9 +273,10 @@ export interface SpeedDialSlots { */ button(scope: { /** - * Toggle metadata + * Button click function + * @param {Event} event - Browser event. */ - toggle(): void; + onClick(): void; }): VNode[]; /** * Custom icon template. @@ -282,7 +284,7 @@ export interface SpeedDialSlots { */ icon(scope: { /** - * + * Visible state of the item */ visible: boolean; }): VNode[]; diff --git a/components/lib/speeddial/SpeedDial.vue b/components/lib/speeddial/SpeedDial.vue index c19771d0b..2de51aad5 100644 --- a/components/lib/speeddial/SpeedDial.vue +++ b/components/lib/speeddial/SpeedDial.vue @@ -1,6 +1,6 @@