adminforth 2.27.0-next.47 → 2.27.0-next.48

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.
@@ -90,13 +90,15 @@
90
90
  </svg>
91
91
  </button>
92
92
 
93
- <ul :id="`dropdown-example${i}`" role="none" class="af-sidebar-dropdown pt-1 space-y-1" :class="{ 'hidden': !opened.includes(i) }">
94
- <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
95
- <li class="af-sidebar-menu-link">
96
- <MenuLink :item="child" isChild="true" @click="$emit('hideSidebar')"/>
93
+ <transition name="slow-drop">
94
+ <ul v-show="opened.includes(i)" :id="`dropdown-example${i}`" role="none" class="af-sidebar-dropdown pt-1 space-y-1 overflow-hidden">
95
+ <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
96
+ <li class="af-sidebar-menu-link">
97
+ <MenuLink :item="child" isChild="true" @click="$emit('hideSidebar')"/>
97
98
  </li>
98
- </template>
99
- </ul>
99
+ </template>
100
+ </ul>
101
+ </transition>
100
102
  </li>
101
103
  <li v-else class="af-sidebar-menu-link">
102
104
  <MenuLink :item="item" @click="$emit('hideSidebar')"/>
@@ -292,6 +294,25 @@
292
294
  background-color: rgba(75, 85, 99, 0.4);
293
295
  }
294
296
 
297
+ /* Custom animation for dropdown */
298
+ .slow-drop-enter-active,
299
+ .slow-drop-leave-active {
300
+ overflow: hidden;
301
+ transition: opacity 0.2s ease, transform 0.2s ease;
302
+ }
303
+
304
+ .slow-drop-enter-from,
305
+ .slow-drop-leave-to {
306
+ opacity: 0;
307
+ transform: translateY(-4px);
308
+ }
309
+
310
+ .slow-drop-enter-to,
311
+ .slow-drop-leave-from {
312
+ opacity: 1;
313
+ transform: translateY(0);
314
+ }
315
+
295
316
  /* For browsers that support overlay scrollbars natively */
296
317
  @supports (overflow: overlay) {
297
318
  .sidebar-scroll {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.27.0-next.47",
3
+ "version": "2.27.0-next.48",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",