adminforth 1.0.45 → 1.0.46

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.
@@ -73,6 +73,9 @@
73
73
  <template v-for="(item, i) in coreStore.menu" :key="`menu-${i}`">
74
74
  <div v-if="item.type === 'divider'" class="border-t border-gray-200 dark:border-gray-700"></div>
75
75
  <div v-else-if="item.type === 'gap'" class="flex items-center justify-center h-8"></div>
76
+ <div v-else-if="item.type === 'heading'" class="flex items-center justify-left pl-2 h-8 opacity-40
77
+ ">{{ item.label }}</div>
78
+
76
79
 
77
80
  <li v-else-if="item.children">
78
81
  <button type="button" class="flex items-center w-full p-2 text-base text-gray-900 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
@@ -87,7 +90,7 @@
87
90
  </svg>
88
91
  </button>
89
92
 
90
- <ul :id="`dropdown-example${i}`" role="none" class="py-2 space-y-2" :class="{ 'hidden': !item.open }">
93
+ <ul :id="`dropdown-example${i}`" role="none" class="pt-1 space-y-1" :class="{ 'hidden': !item.open }">
91
94
  <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
92
95
  <li>
93
96
  <MenuLink :item="child" isChild="true" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spa/src/App.vue CHANGED
@@ -73,6 +73,9 @@
73
73
  <template v-for="(item, i) in coreStore.menu" :key="`menu-${i}`">
74
74
  <div v-if="item.type === 'divider'" class="border-t border-gray-200 dark:border-gray-700"></div>
75
75
  <div v-else-if="item.type === 'gap'" class="flex items-center justify-center h-8"></div>
76
+ <div v-else-if="item.type === 'heading'" class="flex items-center justify-left pl-2 h-8 opacity-40
77
+ ">{{ item.label }}</div>
78
+
76
79
 
77
80
  <li v-else-if="item.children">
78
81
  <button type="button" class="flex items-center w-full p-2 text-base text-gray-900 transition duration-75 rounded-lg group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
@@ -87,7 +90,7 @@
87
90
  </svg>
88
91
  </button>
89
92
 
90
- <ul :id="`dropdown-example${i}`" role="none" class="py-2 space-y-2" :class="{ 'hidden': !item.open }">
93
+ <ul :id="`dropdown-example${i}`" role="none" class="pt-1 space-y-1" :class="{ 'hidden': !item.open }">
91
94
  <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
92
95
  <li>
93
96
  <MenuLink :item="child" isChild="true" />
@@ -1,6 +1,7 @@
1
1
 
2
2
 
3
3
  export type AdminForthConfigMenuItem = {
4
+ type: 'heading' | 'group' | 'resource' | 'page' | undefined,
4
5
  label: string,
5
6
  icon?: string,
6
7
  path?: string,