ketekny-ui-kit 1.0.64 → 1.0.65
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
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<component
|
|
84
84
|
v-for="item in normalizedMainMenu"
|
|
85
85
|
:key="item.key"
|
|
86
|
-
:is="item
|
|
86
|
+
:is="menuItemTag(item)"
|
|
87
87
|
v-bind="item.bindings"
|
|
88
88
|
class="flex w-full items-start gap-3 rounded-2xl border px-4 py-4 text-left transition-all duration-200"
|
|
89
89
|
:class="item.classes"
|
|
@@ -325,6 +325,11 @@ export default {
|
|
|
325
325
|
this.isSidebarCollapsed = !this.isSidebarCollapsed
|
|
326
326
|
this.persistSidebarState()
|
|
327
327
|
},
|
|
328
|
+
menuItemTag(item) {
|
|
329
|
+
if (item?.isLink) return 'RouterLink'
|
|
330
|
+
if (item?.isExternal) return 'a'
|
|
331
|
+
return 'button'
|
|
332
|
+
},
|
|
328
333
|
},
|
|
329
334
|
computed: {
|
|
330
335
|
normalizedMainMenu() {
|