@pubinfo-nightly/core 2026.3.8 → 2026.3.10

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-nightly/core",
3
3
  "type": "module",
4
- "version": "2026.03.08",
4
+ "version": "2026.03.10",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "node": "^20.19.0 || >=22.12.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@pubinfo-nightly/config": "2026.03.08",
31
- "@pubinfo-nightly/devtools": "2026.03.08",
32
- "@pubinfo-nightly/vite": "2026.03.08",
30
+ "@pubinfo-nightly/config": "2026.03.10",
31
+ "@pubinfo-nightly/devtools": "2026.03.10",
32
+ "@pubinfo-nightly/vite": "2026.03.10",
33
33
  "alova": "^3.5.0",
34
34
  "pinia": "^3.0.4",
35
35
  "vue": "^3.5.28",
@@ -42,7 +42,7 @@
42
42
  "@headlessui/vue": "^1.7.23",
43
43
  "@imengyu/vue3-context-menu": "^1.5.4",
44
44
  "@pubinfo/pro-components": "^1.8.2",
45
- "@pubinfo-nightly/shared": "2026.03.08",
45
+ "@pubinfo-nightly/shared": "2026.03.10",
46
46
  "@unocss/reset": "^66.6.0",
47
47
  "@vueuse/core": "^14.2.1",
48
48
  "@vueuse/integrations": "^14.2.1",
@@ -69,10 +69,10 @@
69
69
  "@alova/mock": "^2.0.18",
70
70
  "@iconify/json": "^2.2.437",
71
71
  "@iconify/vue": "^5.0.0",
72
- "@pubinfo-nightly/config": "2026.03.08",
72
+ "@pubinfo-nightly/config": "2026.03.10",
73
73
  "@pubinfo/openapi": "^0.9.1",
74
74
  "@pubinfo/preset-openapi": "^0.9.1",
75
- "@pubinfo-nightly/vite": "2026.03.08",
75
+ "@pubinfo-nightly/vite": "2026.03.10",
76
76
  "@types/lodash-es": "^4.17.12",
77
77
  "@types/md5": "^2.3.6",
78
78
  "@types/nprogress": "^0.2.3",
@@ -193,8 +193,9 @@ function handleMouseleave() {
193
193
  />
194
194
  <Teleport v-if="hasChildren" to="body" :disabled="!rootMenu.isMenuPopup">
195
195
  <Transition v-bind="transitionClass" v-on="transitionEvent">
196
+ <!-- Popup submenu: use OverlayScrollbars so it can scroll independently -->
196
197
  <OverlayScrollbarsComponent
197
- v-if="opened"
198
+ v-if="opened && rootMenu.isMenuPopup"
198
199
  ref="subMenuRef"
199
200
  :options="{ scrollbars: { visibility: 'hidden' } }"
200
201
  defer
@@ -215,6 +216,24 @@ function handleMouseleave() {
215
216
  />
216
217
  </template>
217
218
  </OverlayScrollbarsComponent>
219
+
220
+ <!-- Inline submenu (non-popup): render as plain container to allow parent scroll -->
221
+ <div
222
+ v-else-if="opened"
223
+ class="sub-menu"
224
+ :class="{
225
+ 'rounded-2 py-1': rootMenu.props.rounded && !rootMenu.isMenuPopup,
226
+ }"
227
+ >
228
+ <template v-for="item in menu.children" :key="item.path ?? JSON.stringify(item)">
229
+ <SubMenu
230
+ v-if="item.meta?.sidebar !== false"
231
+ :unique-key="[...uniqueKey, item.path ?? JSON.stringify(item)]"
232
+ :menu="item"
233
+ :level="level + 1"
234
+ />
235
+ </template>
236
+ </div>
218
237
  </Transition>
219
238
  </Teleport>
220
239
  </template>