china-mobile-international-custom-components 0.1.22 → 0.1.24

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