china-mobile-international-custom-components 0.0.26 → 0.0.28

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 (70) hide show
  1. package/es/ApplicationIcon.mjs +85 -0
  2. package/es/AvailableRangePreview.mjs +1 -1
  3. package/es/AvailableRangeSetting.mjs +68 -63
  4. package/es/CustomSidebar.mjs +1 -1
  5. package/es/assets/AvailableRangePreview.css +1 -0
  6. package/es/assets/AvailableRangeSetting.css +1 -0
  7. package/es/assets/CustomSidebar.css +1 -0
  8. package/es/assets/layout2.css +1 -1
  9. package/es/chunks/AvailableRangePreview.D4mZe1lQ.js +217 -0
  10. package/es/chunks/AvailableRangeSetting.BkSLnQ6N.js +215 -0
  11. package/es/chunks/CustomSidebar.BWGoPtLi.js +506 -0
  12. package/es/chunks/CustomTitle.BLZ7evms.js +5 -0
  13. package/es/chunks/CustomToggle.CP3M2_f3.js +165 -0
  14. package/es/chunks/PageContainer.D-G32lvP.js +329 -0
  15. package/es/chunks/_plugin-vue_export-helper.CVVE_0_F.js +13 -0
  16. package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +6 -0
  17. package/es/chunks/index.AHEDCg43.js +160 -0
  18. package/es/chunks/index.B67AnSJI.js +154 -0
  19. package/es/chunks/index.B9F4VYQK.js +118 -0
  20. package/es/chunks/index.BPxF6Amx.js +157 -0
  21. package/es/chunks/index.C2gKjqoA.js +209 -0
  22. package/es/chunks/index.DTtNnKDH.js +288 -0
  23. package/es/chunks/index.Dh5IGfxO.js +290 -0
  24. package/es/chunks/index.DtBeJlu6.js +142 -0
  25. package/es/chunks/index.kR57MtNP.js +211 -0
  26. package/es/chunks/index.wQj5YKPy.js +288 -0
  27. package/es/chunks/layout.BE8_kCeR.js +619 -0
  28. package/es/chunks/layout.C0EtkrZg.js +639 -0
  29. package/es/chunks/layout.C6AMos7n.js +17 -0
  30. package/es/chunks/layout.CWFXohJu.js +622 -0
  31. package/es/chunks/layout.R5FQNRjS.js +619 -0
  32. package/es/chunks/layout.nKB_kc-U.js +26 -0
  33. package/es/chunks/utils.BhlZXNZ6.js +19 -0
  34. package/es/index.mjs +643 -630
  35. package/lib/ApplicationIcon.js +1 -0
  36. package/lib/AvailableRangePreview.js +1 -1
  37. package/lib/AvailableRangeSetting.js +1 -1
  38. package/lib/CustomSidebar.js +1 -1
  39. package/lib/assets/AvailableRangePreview.css +1 -0
  40. package/lib/assets/AvailableRangeSetting.css +1 -0
  41. package/lib/assets/CustomSidebar.css +1 -0
  42. package/lib/assets/layout2.css +1 -1
  43. package/lib/chunks/AvailableRangePreview.CkgZsXP0.js +1 -0
  44. package/lib/chunks/AvailableRangeSetting.CF-jHm4x.js +1 -0
  45. package/lib/chunks/CustomSidebar.CMYJFb2P.js +1 -0
  46. package/lib/chunks/CustomTitle.BkFZ-ZIq.js +1 -0
  47. package/lib/chunks/CustomToggle.C0PpzKPP.js +1 -0
  48. package/lib/chunks/PageContainer.GH56wASV.js +1 -0
  49. package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +1 -0
  50. package/lib/chunks/_plugin-vue_export-helper.DAGvX2Jf.js +1 -0
  51. package/lib/chunks/index.BfHfKST0.js +1 -0
  52. package/lib/chunks/index.Bk55us0s.js +1 -0
  53. package/lib/chunks/index.BlXappa4.js +1 -0
  54. package/lib/chunks/index.CCxHaoi4.js +1 -0
  55. package/lib/chunks/index.CSYGhK9M.js +1 -0
  56. package/lib/chunks/index.C_IlZrzE.js +1 -0
  57. package/lib/chunks/index.DUGtabLJ.js +1 -0
  58. package/lib/chunks/index.Dakz8S3g.js +1 -0
  59. package/lib/chunks/index.DydPD8Lc.js +1 -0
  60. package/lib/chunks/index.k_hSuA6i.js +1 -0
  61. package/lib/chunks/layout.BJjU9nKW.js +1 -0
  62. package/lib/chunks/layout.BO1q-dAZ.js +1 -0
  63. package/lib/chunks/layout.BQigNrr5.js +1 -0
  64. package/lib/chunks/layout.ClFtiz-t.js +1 -0
  65. package/lib/chunks/layout.CmDwUHZo.js +1 -0
  66. package/lib/chunks/layout.CqbDoD_v.js +1 -0
  67. package/lib/chunks/layout.CwJgDGuR.js +1 -0
  68. package/lib/chunks/utils.BT5Uuz2Q.js +1 -0
  69. package/lib/index.js +6 -6
  70. package/package.json +4 -4
@@ -0,0 +1,619 @@
1
+ import { createElementBlock as h, openBlock as c, createCommentVNode as x, createElementVNode as g, createBlock as b, createVNode as m, unref as y, withCtx as v, resolveDynamicComponent as S, normalizeStyle as C, toDisplayString as N, ref as E, watch as D, nextTick as $, normalizeClass as P, withModifiers as F, Fragment as L, renderList as U, Transition as B, withDirectives as K, vShow as H } from "vue";
2
+ import { ElIcon as k, ElAutoResizer as V, ElTreeV2 as G } from "element-plus";
3
+ import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { IconRenderer as Y, iconLibraryMap as W } from "color-star-custom-components";
5
+ import '../assets/layout2.css';const q = { class: "nav-title overflow-hidden" }, J = {
6
+ key: 0,
7
+ class: "title-logo"
8
+ }, Q = /* @__PURE__ */ Object.assign({
9
+ name: "NavTitle"
10
+ }, {
11
+ __name: "NavTitle",
12
+ props: {
13
+ // 标题文本
14
+ title: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ // Logo 图标组件
19
+ logo: {
20
+ type: [Object, String],
21
+ default: null
22
+ },
23
+ // Logo 尺寸
24
+ logoSize: {
25
+ type: Number,
26
+ default: 30
27
+ },
28
+ // 标题样式
29
+ titleStyle: {
30
+ type: Object,
31
+ default: () => ({ fontSize: "16px" })
32
+ },
33
+ // 是否显示折叠按钮
34
+ showToggle: {
35
+ type: Boolean,
36
+ default: !0
37
+ },
38
+ // 折叠按钮图标
39
+ toggleIcon: {
40
+ type: [Object, String],
41
+ default: null
42
+ }
43
+ },
44
+ emits: ["toggle"],
45
+ setup(e, { emit: n }) {
46
+ const t = n, l = () => {
47
+ t("toggle");
48
+ };
49
+ return (o, f) => (c(), h("div", q, [
50
+ e.logo ? (c(), h("div", J, [
51
+ m(y(k), { size: e.logoSize }, {
52
+ default: v(() => [
53
+ (c(), b(S(e.logo)))
54
+ ]),
55
+ _: 1
56
+ }, 8, ["size"])
57
+ ])) : x("", !0),
58
+ g("span", {
59
+ class: "weight-500 text-1f2329 title-text",
60
+ style: C(e.titleStyle)
61
+ }, N(e.title), 5),
62
+ e.showToggle ? (c(), b(y(k), {
63
+ key: 1,
64
+ size: 20,
65
+ class: "collapse-unfold-icon",
66
+ onClick: l
67
+ }, {
68
+ default: v(() => [
69
+ (c(), b(S(e.toggleIcon)))
70
+ ]),
71
+ _: 1
72
+ })) : x("", !0)
73
+ ]));
74
+ }
75
+ }), X = /* @__PURE__ */ I(Q, [["__scopeId", "data-v-56e35473"]]), z = {
76
+ DIR: "DIR",
77
+ // 目录
78
+ MENU: "MENU",
79
+ // 菜单
80
+ BUTTON: "BUTTON"
81
+ // 按钮
82
+ }, Z = /* @__PURE__ */ new Map([
83
+ ["active", "#3271FE"],
84
+ ["parent_active", "#3271FE"],
85
+ ["normal", "#666666"]
86
+ ]), _ = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? _(t.children, n) : !1), ee = (e, n = 1) => e.filter((l) => [z.DIR, z.MENU].includes(l.type)).map((l) => ({
87
+ ...l,
88
+ id: l.bnid,
89
+ name: l.name,
90
+ path: l?.path || "",
91
+ children: l.children?.length > 0 ? ee(l.children || [], n + 1) : [],
92
+ level: n
93
+ })), te = (e, n) => e?.children?.length ? e.children.some(
94
+ (t) => t?.path === n || t.children?.length && te(t, n)
95
+ ) : !1, O = (e, n) => e?.children?.length ? e.children.some(
96
+ (t) => t?.id === n || t.children?.length && O(t, n)
97
+ ) : !1, ne = (e, n) => {
98
+ const t = e?.id === n, l = O(e, n);
99
+ let o = "normal";
100
+ return t ? o = "active" : l && (o = "parent_active"), Z.get(o);
101
+ }, Oe = (e, n) => e.includes(n) ? e : [...e, n], Te = (e, n) => e.filter((t) => t !== n), le = (e, n, t = []) => e.some((l) => {
102
+ if (l?.path === n)
103
+ return !0;
104
+ if (l.children?.length > 0) {
105
+ t.push(l.id);
106
+ const o = le(l.children, n, t);
107
+ return o || t.pop(), o;
108
+ }
109
+ return !1;
110
+ }), j = (e, n, t = []) => e.some((l) => {
111
+ if (l?.id === n)
112
+ return !0;
113
+ if (l.children?.length > 0) {
114
+ t.push(l.id);
115
+ const o = j(l.children, n, t);
116
+ return o || t.pop(), o;
117
+ }
118
+ return !1;
119
+ }), ze = (e, n) => {
120
+ const t = [];
121
+ return j(e, n, t), t;
122
+ }, oe = (e, n) => {
123
+ if (!Array.isArray(e) || !n) return null;
124
+ for (const t of e) {
125
+ if (t.path === n)
126
+ return t;
127
+ if (t.children?.length > 0) {
128
+ const l = oe(t.children, n);
129
+ if (l) return l;
130
+ }
131
+ }
132
+ return null;
133
+ }, ie = (e) => Array.isArray(e) ? e.map((n) => {
134
+ const t = { ...n };
135
+ return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = ie(t.children) : t.isLeaf = !0, t;
136
+ }) : [], re = (e) => {
137
+ if (!Array.isArray(e) || e.length === 0) return null;
138
+ for (const n of e) {
139
+ if (n.isLeaf && n.path)
140
+ return n;
141
+ if (n.children?.length > 0) {
142
+ const t = re(n.children);
143
+ if (t) return t;
144
+ }
145
+ }
146
+ return null;
147
+ }, Me = ["/404", "/login", "/unauthorized"], w = {
148
+ label: "name",
149
+ children: "children",
150
+ isLeaf: "isLeaf"
151
+ }, M = {
152
+ PARENT: "parent",
153
+ LEAF: "leaf"
154
+ }, Ce = {
155
+ IDLE: "idle",
156
+ LOADING: "loading",
157
+ LOADED: "loaded",
158
+ ERROR: "error"
159
+ }, ce = { class: "node-label" }, se = ["onClick"], ae = /* @__PURE__ */ Object.assign({
160
+ name: "MenuList"
161
+ }, {
162
+ __name: "MenuList",
163
+ props: {
164
+ // 菜单数据(已处理好的树形结构)
165
+ menuData: {
166
+ type: Array,
167
+ default: () => []
168
+ },
169
+ // 当前选中的菜单ID
170
+ currentMenuId: {
171
+ type: String,
172
+ default: null
173
+ },
174
+ // 展开的节点ID数组
175
+ expandedKeys: {
176
+ type: Array,
177
+ default: () => []
178
+ },
179
+ // 树形组件配置
180
+ treeProps: {
181
+ type: Object,
182
+ default: () => w
183
+ },
184
+ // 菜单项高度
185
+ itemHeight: {
186
+ type: Number,
187
+ default: 36
188
+ },
189
+ // 缩进距离
190
+ indent: {
191
+ type: Number,
192
+ default: 24
193
+ },
194
+ // 图标大小
195
+ iconSize: {
196
+ type: Number,
197
+ default: 16
198
+ },
199
+ // 展开图标组件
200
+ expandedIcon: {
201
+ type: [Object, String],
202
+ default: null
203
+ },
204
+ // 收起图标组件
205
+ collapsedIcon: {
206
+ type: [Object, String],
207
+ default: null
208
+ }
209
+ // 图标渲染器组件(可选)
210
+ // iconRenderer: {
211
+ // type: [Object, String],
212
+ // default: null,
213
+ // },
214
+ // // 图标库配置
215
+ // iconLibrary: {
216
+ // type: [String, Object],
217
+ // default: null,
218
+ // },
219
+ },
220
+ emits: ["node-click", "node-expand", "node-collapse"],
221
+ setup(e, { emit: n }) {
222
+ const t = e, l = n, o = E(null), f = (i) => i?.icon && i.level === 1 || !i.isLeaf, a = (i) => ne(i, t.currentMenuId), p = (i) => {
223
+ const A = i.isLeaf ? M.LEAF : M.PARENT;
224
+ l("node-click", i, A);
225
+ }, s = (i) => {
226
+ l("node-expand", i.id, i);
227
+ }, r = (i) => {
228
+ l("node-collapse", i.id, i);
229
+ }, u = (i) => {
230
+ if (!o.value) return;
231
+ t.expandedKeys.includes(i.data.id) ? o.value.collapseNode(i) : o.value.expandNode(i);
232
+ };
233
+ return D(
234
+ () => t.expandedKeys,
235
+ (i) => {
236
+ $(() => {
237
+ o.value && o.value.setExpandedKeys([...i]);
238
+ });
239
+ },
240
+ { deep: !0 }
241
+ ), (i, A) => (c(), b(y(V), { class: "flex-1 overflow-hidden" }, {
242
+ default: v(({ height: R }) => [
243
+ m(y(G), {
244
+ ref_key: "treeRef",
245
+ ref: o,
246
+ "node-key": "id",
247
+ data: e.menuData,
248
+ props: e.treeProps,
249
+ height: R,
250
+ "current-node-key": e.currentMenuId,
251
+ "highlight-current": !0,
252
+ "expanded-keys": e.expandedKeys,
253
+ "show-checkbox": !1,
254
+ "item-size": e.itemHeight,
255
+ "expand-on-click-node": !1,
256
+ indent: e.indent,
257
+ onNodeClick: p,
258
+ onNodeExpand: s,
259
+ onNodeCollapse: r,
260
+ class: "custom-tree"
261
+ }, {
262
+ default: v(({ node: T, data: d }) => [
263
+ g("div", {
264
+ class: P(["tree-node-content-custom", {
265
+ "has-children": !d.isLeaf,
266
+ "is-current": d.id === e.currentMenuId && d.isLeaf,
267
+ "is-parent-active": y(O)(d, e.currentMenuId) && !d.isLeaf
268
+ }])
269
+ }, [
270
+ f(d) ? (c(), b(y(k), {
271
+ key: 0,
272
+ size: e.iconSize,
273
+ class: "node-icon",
274
+ color: a(d)
275
+ }, {
276
+ default: v(() => [
277
+ m(y(Y), {
278
+ "icon-name": d?.icon,
279
+ "icon-library": y(W).aibox
280
+ }, null, 8, ["icon-name", "icon-library"])
281
+ ]),
282
+ _: 2
283
+ }, 1032, ["size", "color"])) : x("", !0),
284
+ g("span", ce, N(T.label), 1),
285
+ d.isLeaf ? x("", !0) : (c(), h("div", {
286
+ key: 1,
287
+ class: "expand-arrow",
288
+ onClick: F((Ie) => u(T), ["stop"])
289
+ }, [
290
+ m(y(k), {
291
+ size: e.iconSize,
292
+ color: a(d)
293
+ }, {
294
+ default: v(() => [
295
+ (c(), b(S(
296
+ e.expandedKeys.includes(d.id) ? e.expandedIcon : e.collapsedIcon
297
+ )))
298
+ ]),
299
+ _: 2
300
+ }, 1032, ["size", "color"])
301
+ ], 8, se))
302
+ ], 2)
303
+ ]),
304
+ _: 1
305
+ }, 8, ["data", "props", "height", "current-node-key", "expanded-keys", "item-size", "indent"])
306
+ ]),
307
+ _: 1
308
+ }));
309
+ }
310
+ }), ue = /* @__PURE__ */ I(ae, [["__scopeId", "data-v-0a105c70"]]), de = { class: "user-popup-content" }, fe = ["onClick"], pe = /* @__PURE__ */ Object.assign({
311
+ name: "UserPopup"
312
+ }, {
313
+ __name: "UserPopup",
314
+ props: {
315
+ // 操作列表配置
316
+ actions: {
317
+ type: Array,
318
+ default: () => [],
319
+ validator: (e) => e.every(
320
+ (n) => n.key && n.label && (n.icon || n.iconName)
321
+ )
322
+ }
323
+ },
324
+ emits: ["action-click"],
325
+ setup(e, { emit: n }) {
326
+ const t = n, l = (o) => {
327
+ t("action-click", o.key, o);
328
+ };
329
+ return (o, f) => (c(), h("div", de, [
330
+ (c(!0), h(L, null, U(e.actions, (a, p) => (c(), h(L, { key: p }, [
331
+ a.hidden ? x("", !0) : (c(), h("div", {
332
+ key: 0,
333
+ class: "list__item",
334
+ onClick: (s) => l(a)
335
+ }, [
336
+ m(y(k), {
337
+ class: "list__item-icon",
338
+ size: a.iconSize || 20,
339
+ color: "#262626"
340
+ }, {
341
+ default: v(() => [
342
+ (c(), b(S(a.icon)))
343
+ ]),
344
+ _: 2
345
+ }, 1032, ["size"]),
346
+ g("span", null, N(a.label), 1)
347
+ ], 8, fe))
348
+ ], 64))), 128))
349
+ ]));
350
+ }
351
+ }), ye = /* @__PURE__ */ I(pe, [["__scopeId", "data-v-e35d3c80"]]), ge = { class: "navbar-box__footer__left" }, he = { class: "name-first" }, me = { class: "name-text" }, ve = { class: "user-id" }, be = /* @__PURE__ */ Object.assign({
352
+ name: "NavFooter"
353
+ }, {
354
+ __name: "NavFooter",
355
+ props: {
356
+ // 用户信息
357
+ userInfo: {
358
+ type: Object,
359
+ default: null,
360
+ validator: (e) => e ? e.name !== void 0 : !0
361
+ },
362
+ // 用户操作列表
363
+ actions: {
364
+ type: Array,
365
+ default: () => []
366
+ },
367
+ // 弹窗显示延迟(毫秒)
368
+ popupDelay: {
369
+ type: Number,
370
+ default: 200
371
+ },
372
+ // 弹窗左侧位置(像素)
373
+ popupLeft: {
374
+ type: Number,
375
+ default: 240
376
+ }
377
+ },
378
+ emits: ["action-click"],
379
+ setup(e, { emit: n }) {
380
+ const t = e, l = n, o = E(null), f = E(!1), a = (r) => r && r[0] ? r[0] : "", p = (r) => {
381
+ r || (o.value = setTimeout(() => {
382
+ f.value = !1;
383
+ }, t.popupDelay)), r && (f.value = r, clearTimeout(o.value));
384
+ }, s = (r, u) => {
385
+ f.value = !1, l("action-click", r, u);
386
+ };
387
+ return (r, u) => (c(), h(L, null, [
388
+ e.userInfo ? (c(), h("div", {
389
+ key: 0,
390
+ class: "navbar-box__footer",
391
+ onMouseenter: u[0] || (u[0] = (i) => p(!0)),
392
+ onMouseleave: u[1] || (u[1] = (i) => p(!1))
393
+ }, [
394
+ g("div", ge, [
395
+ g("div", he, N(a(e.userInfo?.name)), 1),
396
+ g("div", null, [
397
+ g("div", me, N(e.userInfo?.name), 1),
398
+ g("div", ve, N(e.userInfo?.bnid || e.userInfo?.id || ""), 1)
399
+ ])
400
+ ])
401
+ ], 32)) : x("", !0),
402
+ m(B, { name: "fade" }, {
403
+ default: v(() => [
404
+ K(g("div", {
405
+ class: "footer-popup content-bg",
406
+ style: C({ left: e.popupLeft + "px" }),
407
+ onMouseenter: u[2] || (u[2] = (i) => p(!0)),
408
+ onMouseleave: u[3] || (u[3] = (i) => p(!1))
409
+ }, [
410
+ m(ye, {
411
+ actions: e.actions,
412
+ onActionClick: s
413
+ }, null, 8, ["actions"])
414
+ ], 36), [
415
+ [H, f.value]
416
+ ])
417
+ ]),
418
+ _: 1
419
+ })
420
+ ], 64));
421
+ }
422
+ }), xe = /* @__PURE__ */ I(be, [["__scopeId", "data-v-d1e53517"]]), Ne = { class: "sidebar h-full pd-l-12 pd-r-12 flex flex-col overflow-hidden" }, ke = /* @__PURE__ */ Object.assign({
423
+ name: "CustomSidebar"
424
+ }, {
425
+ __name: "layout",
426
+ props: {
427
+ // ========== 菜单数据 ==========
428
+ // 菜单树数据(已处理好的树形结构)
429
+ menuData: {
430
+ type: Array,
431
+ default: () => []
432
+ },
433
+ // 当前选中的菜单ID
434
+ currentMenuId: {
435
+ type: String,
436
+ default: null
437
+ },
438
+ // 展开的节点ID数组
439
+ expandedKeys: {
440
+ type: Array,
441
+ default: () => []
442
+ },
443
+ // ========== 头部配置 ==========
444
+ // 标题文本
445
+ title: {
446
+ type: String,
447
+ default: ""
448
+ },
449
+ // Logo 图标组件
450
+ logo: {
451
+ type: [Object, String],
452
+ default: null
453
+ },
454
+ // Logo 尺寸
455
+ logoSize: {
456
+ type: Number,
457
+ default: 30
458
+ },
459
+ // 是否显示折叠按钮
460
+ showToggle: {
461
+ type: Boolean,
462
+ default: !0
463
+ },
464
+ // 折叠按钮图标
465
+ toggleIcon: {
466
+ type: [Object, String],
467
+ default: null
468
+ },
469
+ // ========== 菜单配置 ==========
470
+ // 树形组件配置
471
+ treeProps: {
472
+ type: Object,
473
+ default: () => w
474
+ },
475
+ // 菜单项高度
476
+ itemHeight: {
477
+ type: Number,
478
+ default: 36
479
+ },
480
+ // 缩进距离
481
+ indent: {
482
+ type: Number,
483
+ default: 24
484
+ },
485
+ // 图标大小
486
+ iconSize: {
487
+ type: Number,
488
+ default: 16
489
+ },
490
+ // 标题样式
491
+ titleStyle: {
492
+ type: Object,
493
+ default: () => ({ fontSize: "16px" })
494
+ },
495
+ // 展开图标组件
496
+ expandedIcon: {
497
+ type: [Object, String],
498
+ default: null
499
+ },
500
+ // 收起图标组件
501
+ collapsedIcon: {
502
+ type: [Object, String],
503
+ default: null
504
+ },
505
+ // 图标渲染器组件
506
+ iconRenderer: {
507
+ type: [Object, String],
508
+ default: null
509
+ },
510
+ // 图标库配置
511
+ iconLibrary: {
512
+ type: [String, Object],
513
+ default: null
514
+ },
515
+ // ========== 底部配置 ==========
516
+ // 是否显示底部
517
+ showFooter: {
518
+ type: Boolean,
519
+ default: !0
520
+ },
521
+ // 用户信息
522
+ userInfo: {
523
+ type: Object,
524
+ default: null
525
+ },
526
+ // 用户操作列表
527
+ userActions: {
528
+ type: Array,
529
+ default: () => []
530
+ },
531
+ // 弹窗显示延迟
532
+ popupDelay: {
533
+ type: Number,
534
+ default: 200
535
+ },
536
+ // 弹窗左侧位置(像素)
537
+ popupLeft: {
538
+ type: Number,
539
+ default: 240
540
+ }
541
+ },
542
+ emits: [
543
+ "toggle",
544
+ "node-click",
545
+ "node-expand",
546
+ "node-collapse",
547
+ "user-action-click"
548
+ ],
549
+ setup(e, { emit: n }) {
550
+ const t = n, l = () => {
551
+ t("toggle");
552
+ }, o = (s, r) => {
553
+ t("node-click", s, r);
554
+ }, f = (s, r) => {
555
+ t("node-expand", s, r);
556
+ }, a = (s, r) => {
557
+ t("node-collapse", s, r);
558
+ }, p = (s, r) => {
559
+ t("user-action-click", s, r);
560
+ };
561
+ return (s, r) => (c(), h("div", Ne, [
562
+ m(X, {
563
+ "title-style": e.titleStyle,
564
+ title: e.title,
565
+ logo: e.logo,
566
+ "logo-size": e.logoSize,
567
+ "show-toggle": e.showToggle,
568
+ "toggle-icon": e.toggleIcon,
569
+ onToggle: l
570
+ }, null, 8, ["title-style", "title", "logo", "logo-size", "show-toggle", "toggle-icon"]),
571
+ m(ue, {
572
+ "menu-data": e.menuData,
573
+ "current-menu-id": e.currentMenuId,
574
+ "expanded-keys": e.expandedKeys,
575
+ "tree-props": e.treeProps,
576
+ "item-height": e.itemHeight,
577
+ indent: e.indent,
578
+ "icon-size": e.iconSize,
579
+ "expanded-icon": e.expandedIcon,
580
+ "collapsed-icon": e.collapsedIcon,
581
+ "icon-renderer": e.iconRenderer,
582
+ "icon-library": e.iconLibrary,
583
+ onNodeClick: o,
584
+ onNodeExpand: f,
585
+ onNodeCollapse: a
586
+ }, null, 8, ["menu-data", "current-menu-id", "expanded-keys", "tree-props", "item-height", "indent", "icon-size", "expanded-icon", "collapsed-icon", "icon-renderer", "icon-library"]),
587
+ e.showFooter ? (c(), b(xe, {
588
+ key: 0,
589
+ "popup-left": e.popupLeft,
590
+ "user-info": e.userInfo,
591
+ actions: e.userActions,
592
+ "popup-delay": e.popupDelay,
593
+ onActionClick: p
594
+ }, null, 8, ["popup-left", "user-info", "actions", "popup-delay"])) : x("", !0)
595
+ ]));
596
+ }
597
+ }), je = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-736b2e19"]]);
598
+ export {
599
+ z as M,
600
+ M as N,
601
+ Me as S,
602
+ w as T,
603
+ Z as a,
604
+ te as b,
605
+ O as c,
606
+ Te as d,
607
+ Oe as e,
608
+ le as f,
609
+ ne as g,
610
+ j as h,
611
+ _ as i,
612
+ ze as j,
613
+ oe as k,
614
+ je as l,
615
+ re as m,
616
+ Ce as n,
617
+ ie as p,
618
+ ee as t
619
+ };