ketekny-ui-kit 1.0.87 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
@signup="handleSignup"
|
|
53
53
|
@signout="handleSignout"
|
|
54
54
|
@edit-profile="handleEditProfile"
|
|
55
|
+
@item-click="handleItemClick"
|
|
55
56
|
>
|
|
56
57
|
<template #sidebar-header>
|
|
57
58
|
<slot name="sidebar-header" />
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
:show-menu-search="showMenuSearch"
|
|
104
105
|
:menu-search-placeholder="menuSearchPlaceholder"
|
|
105
106
|
@logo-click="handleLogoClick"
|
|
106
|
-
@item-click="
|
|
107
|
+
@item-click="handleItemClick"
|
|
107
108
|
@signin="handleSignin"
|
|
108
109
|
@signup="handleSignup"
|
|
109
110
|
@signout="handleSignout"
|
|
@@ -141,7 +142,7 @@ export default {
|
|
|
141
142
|
kIcon,
|
|
142
143
|
SidebarPanel,
|
|
143
144
|
},
|
|
144
|
-
emits: ["logo-click", "signin", "signup", "signout", "edit-profile"],
|
|
145
|
+
emits: ["logo-click", "signin", "signup", "signout", "edit-profile", "item-click"],
|
|
145
146
|
props: {
|
|
146
147
|
title: { type: String, default: "" },
|
|
147
148
|
collapsedLogoSrc: {
|
|
@@ -275,6 +276,10 @@ export default {
|
|
|
275
276
|
this.closeMobileMenu();
|
|
276
277
|
this.$emit("edit-profile");
|
|
277
278
|
},
|
|
279
|
+
handleItemClick(item) {
|
|
280
|
+
this.closeMobileMenu();
|
|
281
|
+
this.$emit("item-click", item);
|
|
282
|
+
},
|
|
278
283
|
persistSidebarState() {
|
|
279
284
|
if (typeof window === "undefined") return;
|
|
280
285
|
|