Merge branch 'development' of github.com:defuj/eis into dev-bagus

This commit is contained in:
kur0nek-o
2023-10-27 20:25:22 +07:00
12 changed files with 59 additions and 51 deletions

View File

@ -106,7 +106,7 @@ const closeSideBar = () => menu.toggleSidebar()
<span v-if="menu.sidebarShowed" class="px-4 mt-4 text-sm font-semibold text-primary-800">
Menu
</span>
<div :class="[menu.sidebarShowed ? 'flex flex-col flex-grow overflow-y-auto' : 'hidden', '']">
<div :class="[menu.sidebarShowed ? 'flex flex-col flex-grow overflow-y-auto' : 'hidden']">
<div class="flex flex-col flex-grow mt-3">
<nav class="flex-1 px-2 pb-4 space-y-1">
<template v-for="item in menu.navigation" :key="item.name">

View File

@ -33,8 +33,7 @@ const isMenuSelected = computed(() => {
<template>
<div :class="[isChildren ? 'ml-2 mt-1 bg-primary-100 rounded-xl' : '']">
<Disclosure :defaultOpen="item.expanded" as="dev">
<!-- Nested item with children -->
<Disclosure :defaultOpen="item.expanded">
<DisclosureButton @click="menu.toggleSidebarMenu(item.path, !item.expanded)"
:class="[(isMenuSelected || item.expanded || isChildren) ? 'bg-primary-100 font-bold' : 'font-semibold text-aside hover:bg-primary-100 hover:text-primary-500', isMenuSelected ? 'text-primary-500' : 'text-gray-600', isChildren ? 'pl-1 pr-2' : 'px-2', 'group w-full flex items-center py-2 text-left text-xs rounded-lg focus:outline-none focus:ring-0']">
<component v-if="isChildren" :is="IconDotOutline"