@opentinyvue/vue-nav-menu 3.28.0 → 3.29.1

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.
Files changed (3) hide show
  1. package/lib/pc.js +269 -260
  2. package/package.json +6 -6
  3. package/src/pc.vue.d.ts +3 -3
package/lib/pc.js CHANGED
@@ -55,10 +55,7 @@ var _sfc_main = defineComponent({
55
55
  });
56
56
  }
57
57
  });
58
- var _hoisted_1 = {
59
- class: "tiny-nav-menu",
60
- ref: "navMenu"
61
- };
58
+ var _hoisted_1 = ["aria-label"];
62
59
  var _hoisted_2 = {
63
60
  key: 1,
64
61
  class: "slot-logo"
@@ -66,331 +63,343 @@ var _hoisted_2 = {
66
63
  var _hoisted_3 = {
67
64
  class: "menu-container"
68
65
  };
69
- var _hoisted_4 = {
66
+ var _hoisted_4 = ["aria-label"];
67
+ var _hoisted_5 = {
70
68
  key: 2,
71
69
  class: "slot-toolbar"
72
70
  };
73
- var _hoisted_5 = {
71
+ var _hoisted_6 = {
74
72
  key: 3,
75
73
  class: "slot-mobile-menu"
76
74
  };
77
- var _hoisted_6 = {
75
+ var _hoisted_7 = ["aria-label"];
76
+ var _hoisted_8 = {
78
77
  key: 0,
79
78
  class: "more-menu"
80
79
  };
81
- var _hoisted_7 = {
82
- class: "sub-menu-ul"
80
+ var _hoisted_9 = {
81
+ class: "sub-menu-ul",
82
+ role: "menu"
83
83
  };
84
- var _hoisted_8 = {
84
+ var _hoisted_10 = {
85
85
  class: "group"
86
86
  };
87
- var _hoisted_9 = {
88
- key: 0
87
+ var _hoisted_11 = {
88
+ key: 0,
89
+ role: "menu"
89
90
  };
90
91
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
91
92
  var _component_icon_chevron_right = resolveComponent("icon-chevron-right");
92
93
  var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
93
- return openBlock(), createElementBlock(
94
+ return openBlock(), createElementBlock("div", {
95
+ class: "tiny-nav-menu",
96
+ ref: "navMenu",
97
+ role: "navigation",
98
+ "aria-label": _ctx.t("ui.navMenu.navigation")
99
+ }, [/^(retract|fixed)$/.test(_ctx.overflow) ? (openBlock(), createElementBlock(
94
100
  "div",
95
- _hoisted_1,
96
- [/^(retract|fixed)$/.test(_ctx.overflow) ? (openBlock(), createElementBlock(
97
- "div",
98
- {
99
- key: 0,
100
- class: normalizeClass(["more-button", {
101
- mobile: _ctx.slots["mobile-menu"]
102
- }]),
103
- onMouseenter: _cache[0] || (_cache[0] = function($event) {
104
- return _ctx.showSubMenu(_ctx.state.data[0].children, {
105
- more: true
106
- });
101
+ {
102
+ key: 0,
103
+ class: normalizeClass(["more-button", {
104
+ mobile: _ctx.slots["mobile-menu"]
105
+ }]),
106
+ onMouseenter: _cache[0] || (_cache[0] = function($event) {
107
+ return _ctx.showSubMenu(_ctx.state.data[0].children, {
108
+ more: true
109
+ });
110
+ }),
111
+ onMouseleave: _cache[1] || (_cache[1] = function() {
112
+ return _ctx.willHideSubMenu && _ctx.willHideSubMenu.apply(_ctx, arguments);
113
+ })
114
+ },
115
+ [(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.showMore ? "IconSandwichExpand" : "IconSandwichCollapse"), {
116
+ "aria-hidden": "true"
117
+ }))],
118
+ 34
119
+ /* CLASS, NEED_HYDRATION */
120
+ )) : createCommentVNode("v-if", true), _ctx.slots.logo ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [_ctx.state.data && _ctx.state.data.length ? (openBlock(), createElementBlock("ul", {
121
+ key: 0,
122
+ style: normalizeStyle(_ctx.state.isSaaSTheme ? {} : _ctx.state.menuStyle),
123
+ class: "menu",
124
+ role: "menubar",
125
+ "aria-label": _ctx.t("ui.navMenu.mainMenu")
126
+ }, [(openBlock(true), createElementBlock(
127
+ Fragment,
128
+ null,
129
+ renderList(_ctx.state.data, function(item, index) {
130
+ return openBlock(), createElementBlock("li", {
131
+ key: index + (item.title || ""),
132
+ role: "listitem"
133
+ }, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
134
+ to: _ctx.getRoute(item),
135
+ role: "menuitem",
136
+ "aria-haspopup": item.children ? "true" : void 0,
137
+ "aria-expanded": item.children ? _ctx.state.showPopmenu && _ctx.state.subIndex === index : void 0,
138
+ class: normalizeClass({
139
+ active: index === _ctx.state.activeIndex,
140
+ selected: _ctx.getTabSelected(item, index)
141
+ }),
142
+ onMouseenter: function onMouseenter($event) {
143
+ return _ctx.showSubMenu(item.children, {
144
+ index
145
+ }, $event);
146
+ },
147
+ onMouseleave: _ctx.willHideSubMenu,
148
+ onClick: function onClick($event) {
149
+ return _ctx.clickMenu(item, index);
150
+ }
151
+ }, {
152
+ default: withCtx(function() {
153
+ return [createTextVNode(
154
+ toDisplayString(item.title),
155
+ 1
156
+ /* TEXT */
157
+ )];
107
158
  }),
108
- onMouseleave: _cache[1] || (_cache[1] = function() {
159
+ _: 2
160
+ /* DYNAMIC */
161
+ }, 1064, ["to", "aria-haspopup", "aria-expanded", "class", "onMouseenter", "onMouseleave", "onClick"]))]);
162
+ }),
163
+ 128
164
+ /* KEYED_FRAGMENT */
165
+ ))], 12, _hoisted_4)) : createCommentVNode("v-if", true)]), withDirectives(createElementVNode(
166
+ "div",
167
+ {
168
+ class: normalizeClass({
169
+ more: true,
170
+ selected: _ctx.state.enterMoreMenu || _ctx.getMoreSelected()
171
+ }),
172
+ onMouseenter: _cache[2] || (_cache[2] = function($event) {
173
+ return _ctx.showSubMenu(_ctx.state.more[0].children, {
174
+ more: true
175
+ });
176
+ }),
177
+ onMouseleave: _cache[3] || (_cache[3] = function() {
178
+ return _ctx.willHideSubMenu && _ctx.willHideSubMenu.apply(_ctx, arguments);
179
+ })
180
+ },
181
+ toDisplayString(_ctx.t("ui.navMenu.moreText")),
182
+ 35
183
+ /* TEXT, CLASS, NEED_HYDRATION */
184
+ ), [[vShow, _ctx.state.isShowMore]]), _ctx.slots.toolbar ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "toolbar")])) : createCommentVNode("v-if", true), _ctx.slots["mobile-menu"] ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "mobile-menu")])) : createCommentVNode("v-if", true), createVNode(Transition, {
185
+ name: "tiny-transition-zoom-in-top",
186
+ mode: "out-in",
187
+ persisted: ""
188
+ }, {
189
+ default: withCtx(function() {
190
+ return [withDirectives(createElementVNode("div", {
191
+ class: normalizeClass([[_ctx.state.popClass, {
192
+ slide: _ctx.state.showPopmenu
193
+ }, {
194
+ "show-left-menu": _ctx.state.showMore
195
+ }], "popmenu tiny-min-scrollbar"]),
196
+ style: normalizeStyle(_ctx.state.popStyle),
197
+ role: "menu",
198
+ "aria-label": _ctx.t("ui.navMenu.subMenu"),
199
+ onMouseenter: _cache[5] || (_cache[5] = function() {
200
+ return _ctx.stopHideSubMenu && _ctx.stopHideSubMenu.apply(_ctx, arguments);
201
+ }),
202
+ onMouseleave: _cache[6] || (_cache[6] = function() {
109
203
  return _ctx.willHideSubMenu && _ctx.willHideSubMenu.apply(_ctx, arguments);
110
204
  })
111
- },
112
- [(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.showMore ? "IconSandwichExpand" : "IconSandwichCollapse")))],
113
- 34
114
- /* CLASS, NEED_HYDRATION */
115
- )) : createCommentVNode("v-if", true), _ctx.slots.logo ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [_ctx.state.data && _ctx.state.data.length ? (openBlock(), createElementBlock(
116
- "ul",
117
- {
118
- key: 0,
119
- style: normalizeStyle(_ctx.state.isSaaSTheme ? {} : _ctx.state.menuStyle),
120
- class: "menu"
121
- },
122
- [(openBlock(true), createElementBlock(
205
+ }, [_ctx.state.showMore ? (openBlock(), createElementBlock("div", _hoisted_8, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
123
206
  Fragment,
124
207
  null,
125
- renderList(_ctx.state.data, function(item, index) {
126
- return openBlock(), createElementBlock("li", {
127
- key: index + (item.title || "")
128
- }, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
129
- to: _ctx.getRoute(item),
130
- class: normalizeClass({
131
- active: index === _ctx.state.activeIndex,
132
- selected: _ctx.getTabSelected(item, index)
133
- }),
134
- onMouseenter: function onMouseenter($event) {
135
- return _ctx.showSubMenu(item.children, {
136
- index
137
- }, $event);
208
+ renderList(_ctx.state.more, function(item, index) {
209
+ return openBlock(), createElementBlock(
210
+ "li",
211
+ {
212
+ key: index + (item.title || ""),
213
+ class: normalizeClass({
214
+ active: index === _ctx.state.subActiveIndex,
215
+ selected: _ctx.getLeftSelected(item, index)
216
+ }),
217
+ role: "listitem"
138
218
  },
139
- onMouseleave: _ctx.willHideSubMenu,
140
- onClick: function onClick($event) {
141
- return _ctx.clickMenu(item, index);
142
- }
143
- }, {
144
- default: withCtx(function() {
145
- return [createTextVNode(
146
- toDisplayString(item.title),
147
- 1
148
- /* TEXT */
149
- )];
150
- }),
151
- _: 2
152
- /* DYNAMIC */
153
- }, 1064, ["to", "class", "onMouseenter", "onMouseleave", "onClick"]))]);
219
+ [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
220
+ to: _ctx.getRoute(item),
221
+ role: "menuitem",
222
+ "aria-haspopup": item.children ? "true" : void 0,
223
+ class: normalizeClass({
224
+ showicon: item.children
225
+ }),
226
+ onMouseenter: function onMouseenter($event) {
227
+ return _ctx.setSubMenu(item.children, index);
228
+ },
229
+ onMouseleave: _ctx.leaveMoreMune,
230
+ onClick: function onClick($event) {
231
+ return _ctx.clickMenu(item, index);
232
+ }
233
+ }, {
234
+ default: withCtx(function() {
235
+ return [createTextVNode(
236
+ toDisplayString(item.title),
237
+ 1
238
+ /* TEXT */
239
+ )];
240
+ }),
241
+ _: 2
242
+ /* DYNAMIC */
243
+ }, 1064, ["to", "aria-haspopup", "class", "onMouseenter", "onMouseleave", "onClick"])), item.children ? (openBlock(), createBlock(_component_icon_chevron_right, {
244
+ key: 0,
245
+ class: "more-icon",
246
+ "aria-hidden": "true"
247
+ })) : createCommentVNode("v-if", true)],
248
+ 2
249
+ /* CLASS */
250
+ );
154
251
  }),
155
252
  128
156
253
  /* KEYED_FRAGMENT */
157
- ))],
158
- 4
159
- /* STYLE */
160
- )) : createCommentVNode("v-if", true)]), withDirectives(createElementVNode(
161
- "div",
162
- {
163
- class: normalizeClass({
164
- more: true,
165
- selected: _ctx.state.enterMoreMenu || _ctx.getMoreSelected()
166
- }),
167
- onMouseenter: _cache[2] || (_cache[2] = function($event) {
168
- return _ctx.showSubMenu(_ctx.state.more[0].children, {
169
- more: true
170
- });
171
- }),
172
- onMouseleave: _cache[3] || (_cache[3] = function() {
173
- return _ctx.willHideSubMenu && _ctx.willHideSubMenu.apply(_ctx, arguments);
174
- })
175
- },
176
- toDisplayString(_ctx.t("ui.navMenu.moreText")),
177
- 35
178
- /* TEXT, CLASS, NEED_HYDRATION */
179
- ), [[vShow, _ctx.state.isShowMore]]), _ctx.slots.toolbar ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "toolbar")])) : createCommentVNode("v-if", true), _ctx.slots["mobile-menu"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "mobile-menu")])) : createCommentVNode("v-if", true), createVNode(Transition, {
180
- name: "tiny-transition-zoom-in-top",
181
- mode: "out-in",
182
- persisted: ""
183
- }, {
184
- default: withCtx(function() {
185
- return [withDirectives(createElementVNode(
186
- "div",
187
- {
188
- class: normalizeClass([[_ctx.state.popClass, {
189
- slide: _ctx.state.showPopmenu
190
- }, {
191
- "show-left-menu": _ctx.state.showMore
192
- }], "popmenu tiny-min-scrollbar"]),
193
- style: normalizeStyle(_ctx.state.popStyle),
194
- onMouseenter: _cache[5] || (_cache[5] = function() {
195
- return _ctx.stopHideSubMenu && _ctx.stopHideSubMenu.apply(_ctx, arguments);
196
- }),
197
- onMouseleave: _cache[6] || (_cache[6] = function() {
198
- return _ctx.willHideSubMenu && _ctx.willHideSubMenu.apply(_ctx, arguments);
199
- })
200
- },
201
- [_ctx.state.showMore ? (openBlock(), createElementBlock("div", _hoisted_6, [createElementVNode("ul", null, [(openBlock(true), createElementBlock(
202
- Fragment,
203
- null,
204
- renderList(_ctx.state.more, function(item, index) {
205
- return openBlock(), createElementBlock(
254
+ ))])])) : createCommentVNode("v-if", true), _ctx.state.subMenus && _ctx.state.subMenus.length ? (openBlock(), createElementBlock(
255
+ "div",
256
+ {
257
+ key: 1,
258
+ class: normalizeClass([{
259
+ "full-width": !_ctx.state.showMore
260
+ }, "sub-menu"])
261
+ },
262
+ [createElementVNode("ul", _hoisted_9, [(openBlock(true), createElementBlock(
263
+ Fragment,
264
+ null,
265
+ renderList(_ctx.state.subMenus, function(group, index) {
266
+ return openBlock(), createElementBlock(
267
+ "li",
268
+ {
269
+ key: index + (group.title || ""),
270
+ class: normalizeClass(["sub-menu-li", {
271
+ "col-xs-24 col-sm-12 col-md-8 col-lg-6 col-xl-4": !_ctx.state.isSaaSTheme && !_ctx.state.popClass.includes("single")
272
+ }])
273
+ },
274
+ [createElementVNode("ul", _hoisted_10, [createElementVNode(
206
275
  "li",
207
276
  {
208
- key: index + (item.title || ""),
209
- class: normalizeClass({
210
- active: index === _ctx.state.subActiveIndex,
211
- selected: _ctx.getLeftSelected(item, index)
212
- })
277
+ class: normalizeClass(["tiny-nav-menu__sub-menu-title", !!group.title ? "" : "tiny-nav-menu__sub-menu-title-blank"]),
278
+ role: "none"
213
279
  },
214
- [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
215
- to: _ctx.getRoute(item),
216
- class: normalizeClass({
217
- showicon: item.children
218
- }),
219
- onMouseenter: function onMouseenter($event) {
220
- return _ctx.setSubMenu(item.children, index);
221
- },
222
- onMouseleave: _ctx.leaveMoreMune,
280
+ [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(group)), {
281
+ to: _ctx.getRoute(group),
282
+ role: "menuitem",
223
283
  onClick: function onClick($event) {
224
- return _ctx.clickMenu(item, index);
225
- }
284
+ return _ctx.clickMenu(group, -1, index);
285
+ },
286
+ onMouseenter: _cache[4] || (_cache[4] = function($event) {
287
+ return _ctx.handleTitleMouseenter($event);
288
+ }),
289
+ onMouseleave: _ctx.handleTitleMouseleave,
290
+ class: normalizeClass({
291
+ selected: index === _ctx.state.subIndex && _ctx.state.subItemSelectedIndex === -1
292
+ })
226
293
  }, {
227
294
  default: withCtx(function() {
228
295
  return [createTextVNode(
229
- toDisplayString(item.title),
296
+ toDisplayString(group.title),
230
297
  1
231
298
  /* TEXT */
232
299
  )];
233
300
  }),
234
301
  _: 2
235
302
  /* DYNAMIC */
236
- }, 1064, ["to", "class", "onMouseenter", "onMouseleave", "onClick"])), item.children ? (openBlock(), createBlock(_component_icon_chevron_right, {
303
+ }, 1064, ["to", "onClick", "onMouseleave", "class"])), group.url ? (openBlock(), createBlock(_component_icon_chevron_right, {
237
304
  key: 0,
238
- class: "more-icon"
305
+ class: "go-to-icon",
306
+ "aria-hidden": "true"
239
307
  })) : createCommentVNode("v-if", true)],
240
308
  2
241
309
  /* CLASS */
242
- );
243
- }),
244
- 128
245
- /* KEYED_FRAGMENT */
246
- ))])])) : createCommentVNode("v-if", true), _ctx.state.subMenus && _ctx.state.subMenus.length ? (openBlock(), createElementBlock(
247
- "div",
248
- {
249
- key: 1,
250
- class: normalizeClass([{
251
- "full-width": !_ctx.state.showMore
252
- }, "sub-menu"])
253
- },
254
- [createElementVNode("ul", _hoisted_7, [(openBlock(true), createElementBlock(
255
- Fragment,
256
- null,
257
- renderList(_ctx.state.subMenus, function(group, index) {
258
- return openBlock(), createElementBlock(
259
- "li",
260
- {
261
- key: index + (group.title || ""),
262
- class: normalizeClass(["sub-menu-li", {
263
- "col-xs-24 col-sm-12 col-md-8 col-lg-6 col-xl-4": !_ctx.state.isSaaSTheme && !_ctx.state.popClass.includes("single")
264
- }])
265
- },
266
- [createElementVNode("ul", _hoisted_8, [createElementVNode(
310
+ ), (openBlock(true), createElementBlock(
311
+ Fragment,
312
+ null,
313
+ renderList(group.children, function(item, i) {
314
+ return openBlock(), createElementBlock(
267
315
  "li",
268
316
  {
269
- class: normalizeClass(["tiny-nav-menu__sub-menu-title", !!group.title ? "" : "tiny-nav-menu__sub-menu-title-blank"])
317
+ key: i + (item.title || ""),
318
+ class: normalizeClass(["sub-item", {
319
+ "only-secondary-title": !group.title && !_ctx.state.subMenu[i].children,
320
+ "third-title": item.children && item.children.length
321
+ }]),
322
+ role: "listitem"
270
323
  },
271
- [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(group)), {
272
- to: _ctx.getRoute(group),
324
+ [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
325
+ to: _ctx.getRoute(item),
326
+ role: "menuitem",
273
327
  onClick: function onClick($event) {
274
- return _ctx.clickMenu(group, -1, index);
328
+ return _ctx.clickMenu(item, i, index);
275
329
  },
276
- onMouseenter: _cache[4] || (_cache[4] = function($event) {
277
- return _ctx.handleTitleMouseenter($event);
278
- }),
279
- onMouseleave: _ctx.handleTitleMouseleave,
280
330
  class: normalizeClass({
281
- selected: index === _ctx.state.subIndex && _ctx.state.subItemSelectedIndex === -1
331
+ selected: _ctx.getLastChildSelected(item, i, index)
282
332
  })
283
333
  }, {
284
334
  default: withCtx(function() {
285
335
  return [createTextVNode(
286
- toDisplayString(group.title),
336
+ toDisplayString(item.title),
287
337
  1
288
338
  /* TEXT */
289
339
  )];
290
340
  }),
291
341
  _: 2
292
342
  /* DYNAMIC */
293
- }, 1064, ["to", "onClick", "onMouseleave", "class"])), group.url ? (openBlock(), createBlock(_component_icon_chevron_right, {
294
- key: 0,
295
- class: "go-to-icon"
296
- })) : createCommentVNode("v-if", true)],
297
- 2
298
- /* CLASS */
299
- ), (openBlock(true), createElementBlock(
300
- Fragment,
301
- null,
302
- renderList(group.children, function(item, i) {
303
- return openBlock(), createElementBlock(
304
- "li",
305
- {
306
- key: i + (item.title || ""),
307
- class: normalizeClass(["sub-item", {
308
- "only-secondary-title": !group.title && !_ctx.state.subMenu[i].children,
309
- "third-title": item.children && item.children.length
310
- }])
311
- },
312
- [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(item)), {
313
- to: _ctx.getRoute(item),
343
+ }, 1032, ["to", "onClick", "class"])), item.children && item.children.length ? (openBlock(), createElementBlock("ul", _hoisted_11, [(openBlock(true), createElementBlock(
344
+ Fragment,
345
+ null,
346
+ renderList(item.children, function(subItem, j) {
347
+ return openBlock(), createElementBlock("li", {
348
+ key: j + (subItem.title || ""),
349
+ class: "sub-item",
350
+ role: "listitem"
351
+ }, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(subItem)), {
352
+ to: _ctx.getRoute(subItem),
353
+ role: "menuitem",
314
354
  onClick: function onClick($event) {
315
- return _ctx.clickMenu(item, i, index);
316
- },
317
- class: normalizeClass({
318
- selected: _ctx.getLastChildSelected(item, i, index)
319
- })
355
+ return _ctx.clickMenu(subItem);
356
+ }
320
357
  }, {
321
358
  default: withCtx(function() {
322
359
  return [createTextVNode(
323
- toDisplayString(item.title),
360
+ toDisplayString(subItem.title),
324
361
  1
325
362
  /* TEXT */
326
363
  )];
327
364
  }),
328
365
  _: 2
329
366
  /* DYNAMIC */
330
- }, 1032, ["to", "onClick", "class"])), item.children && item.children.length ? (openBlock(), createElementBlock("ul", _hoisted_9, [(openBlock(true), createElementBlock(
331
- Fragment,
332
- null,
333
- renderList(item.children, function(subItem, j) {
334
- return openBlock(), createElementBlock("li", {
335
- key: j + (subItem.title || ""),
336
- class: "sub-item"
337
- }, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.getTag(subItem)), {
338
- to: _ctx.getRoute(subItem),
339
- onClick: function onClick($event) {
340
- return _ctx.clickMenu(subItem);
341
- }
342
- }, {
343
- default: withCtx(function() {
344
- return [createTextVNode(
345
- toDisplayString(subItem.title),
346
- 1
347
- /* TEXT */
348
- )];
349
- }),
350
- _: 2
351
- /* DYNAMIC */
352
- }, 1032, ["to", "onClick"]))]);
353
- }),
354
- 128
355
- /* KEYED_FRAGMENT */
356
- ))])) : createCommentVNode("v-if", true)],
357
- 2
358
- /* CLASS */
359
- );
360
- }),
361
- 128
362
- /* KEYED_FRAGMENT */
363
- ))])],
364
- 2
365
- /* CLASS */
366
- );
367
- }),
368
- 128
369
- /* KEYED_FRAGMENT */
370
- ))])],
371
- 2
372
- /* CLASS */
373
- )) : createCommentVNode("v-if", true)],
374
- 38
375
- /* CLASS, STYLE, NEED_HYDRATION */
376
- ), [[vShow, _ctx.state.showPopmenu]])];
377
- }),
378
- _: 1
379
- /* STABLE */
380
- }), createVNode(_component_tiny_tooltip, {
381
- ref: "tooltip",
382
- modelValue: _ctx.state.tooltipVisible,
383
- "onUpdate:modelValue": _cache[7] || (_cache[7] = function($event) {
384
- return _ctx.state.tooltipVisible = $event;
385
- }),
386
- manual: true,
387
- effect: "light",
388
- content: _ctx.state.tooltipContent,
389
- placement: "top"
390
- }, null, 8, ["modelValue", "content"])],
391
- 512
392
- /* NEED_PATCH */
393
- );
367
+ }, 1032, ["to", "onClick"]))]);
368
+ }),
369
+ 128
370
+ /* KEYED_FRAGMENT */
371
+ ))])) : createCommentVNode("v-if", true)],
372
+ 2
373
+ /* CLASS */
374
+ );
375
+ }),
376
+ 128
377
+ /* KEYED_FRAGMENT */
378
+ ))])],
379
+ 2
380
+ /* CLASS */
381
+ );
382
+ }),
383
+ 128
384
+ /* KEYED_FRAGMENT */
385
+ ))])],
386
+ 2
387
+ /* CLASS */
388
+ )) : createCommentVNode("v-if", true)], 46, _hoisted_7), [[vShow, _ctx.state.showPopmenu]])];
389
+ }),
390
+ _: 1
391
+ /* STABLE */
392
+ }), createVNode(_component_tiny_tooltip, {
393
+ ref: "tooltip",
394
+ modelValue: _ctx.state.tooltipVisible,
395
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = function($event) {
396
+ return _ctx.state.tooltipVisible = $event;
397
+ }),
398
+ manual: true,
399
+ effect: "light",
400
+ content: _ctx.state.tooltipContent,
401
+ placement: "top"
402
+ }, null, 8, ["modelValue", "content"])], 8, _hoisted_1);
394
403
  }
395
404
  var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
396
405
 
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-nav-menu",
3
- "version": "3.28.0",
3
+ "version": "3.29.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.28.0",
11
- "@opentinyvue/vue-renderless": "~3.28.0",
12
- "@opentinyvue/vue-tooltip": "~3.28.0",
13
- "@opentinyvue/vue-theme": "~3.28.0",
14
- "@opentinyvue/vue-icon": "~3.28.0"
10
+ "@opentinyvue/vue-common": "~3.29.0",
11
+ "@opentinyvue/vue-renderless": "~3.29.0",
12
+ "@opentinyvue/vue-tooltip": "~3.29.0",
13
+ "@opentinyvue/vue-theme": "~3.29.0",
14
+ "@opentinyvue/vue-icon": "~3.29.0"
15
15
  },
16
16
  "license": "MIT",
17
17
  "types": "index.d.ts",
package/src/pc.vue.d.ts CHANGED
@@ -10,8 +10,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
10
10
  tiny_theme?: any;
11
11
  tiny_chart_theme?: any;
12
12
  tiny_mcp_config?: any;
13
- fields?: any;
14
13
  fetchMenuData?: any;
14
+ fields?: any;
15
15
  beforeSkip?: any;
16
16
  prevent?: any;
17
17
  allowFullUrl?: any;
@@ -37,8 +37,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
37
37
  tiny_theme?: any;
38
38
  tiny_chart_theme?: any;
39
39
  tiny_mcp_config?: any;
40
- fields?: any;
41
40
  fetchMenuData?: any;
41
+ fields?: any;
42
42
  beforeSkip?: any;
43
43
  prevent?: any;
44
44
  allowFullUrl?: any;
@@ -55,8 +55,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
55
55
  readonly tiny_theme?: any;
56
56
  readonly tiny_chart_theme?: any;
57
57
  readonly tiny_mcp_config?: any;
58
- readonly fields?: any;
59
58
  readonly fetchMenuData?: any;
59
+ readonly fields?: any;
60
60
  readonly beforeSkip?: any;
61
61
  readonly prevent?: any;
62
62
  readonly allowFullUrl?: any;