ss-component-new 1.1.264 → 1.1.265

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 (89) hide show
  1. package/dist/{array-De6v-7c8.js → array-BDeF0W9f.js} +2 -2
  2. package/dist/{array-D3xioWc3.cjs → array-C4J0REBC.cjs} +1 -1
  3. package/dist/{cloneDeep-fJrTDzM4.cjs → cloneDeep-BBm-q9zg.cjs} +1 -1
  4. package/dist/{cloneDeep-B2ByQP-n.js → cloneDeep-DkmyPpbh.js} +1 -1
  5. package/dist/{index-BCLA1nYG.cjs → index-3nmV5exu.cjs} +1 -1
  6. package/dist/{index-CCxjdgET.js → index-6vvw6VlW.js} +9 -9
  7. package/dist/{index-0TcXp8mH.cjs → index-9WpI_7dE.cjs} +1 -1
  8. package/dist/{index-BLC8ydIr.js → index-AwoY3kNB.js} +6 -6
  9. package/dist/{index-Dn9ZzQw9.js → index-B-9mTnND.js} +3 -3
  10. package/dist/{index-BjJJGDlr.cjs → index-B-9v-OGS.cjs} +1 -1
  11. package/dist/{index-SYAZCe_x.js → index-B3U--N-N.js} +10 -10
  12. package/dist/{index-hRwcFNhM.cjs → index-B3zMRbQE.cjs} +1 -1
  13. package/dist/{index-_rARCgTs.cjs → index-B5yp0MJ0.cjs} +1 -1
  14. package/dist/{index-CiPPPWoz.js → index-B89EQikK.js} +147 -134
  15. package/dist/{index-GG9AAJSa.js → index-BFiwTK0r.js} +4 -4
  16. package/dist/{index-CmiwbsGe.js → index-BUy_hb9R.js} +1 -1
  17. package/dist/{index-BRkvuCrS.cjs → index-BWcD-AvF.cjs} +1 -1
  18. package/dist/index-BWsxt1qe.cjs +1 -0
  19. package/dist/{index-Ca-dN5Cs.cjs → index-BXAN_9-v.cjs} +1 -1
  20. package/dist/index-BYxgGA_C.cjs +1 -0
  21. package/dist/{index-DSxBLvAT.cjs → index-Ba3v5Pnx.cjs} +1 -1
  22. package/dist/{index-EmmO21uK.js → index-Ba9vckoo.js} +4 -4
  23. package/dist/{index-ERfBi-RP.cjs → index-BaSmybMX.cjs} +1 -1
  24. package/dist/{index-CMMc21DE.js → index-Bexirrje.js} +7 -7
  25. package/dist/{index-CAMfVOTJ.js → index-BfMZs6GX.js} +3 -3
  26. package/dist/{index-Ctjc6Jcq.cjs → index-BihDAtWi.cjs} +1 -1
  27. package/dist/{index-ByD0b4gQ.js → index-BiiTIWm9.js} +1 -1
  28. package/dist/{index-GtWRkXjP.js → index-BjBbQixi.js} +4 -4
  29. package/dist/{index-CvvmJuAB.cjs → index-BjFQDrdw.cjs} +1 -1
  30. package/dist/{index-CACJUJNK.js → index-BsLnsDdu.js} +3 -3
  31. package/dist/{index-C7u1PeVA.cjs → index-BvRyV8Vl.cjs} +1 -1
  32. package/dist/{index-DymcJtj4.cjs → index-C2rdVtQX.cjs} +1 -1
  33. package/dist/{index-BRdg4IiT.js → index-C7nCSuLr.js} +7 -7
  34. package/dist/{index-Dcpfhw1L.cjs → index-CE_c0ycI.cjs} +1 -1
  35. package/dist/{index-DDPAMlSG.cjs → index-CMH3PNYp.cjs} +1 -1
  36. package/dist/{index-CophBMbH.cjs → index-CcG-LN0V.cjs} +1 -1
  37. package/dist/{index-BRkdObg7.cjs → index-Cfn3u5HC.cjs} +1 -1
  38. package/dist/{index-CKwpRhPM.js → index-CiUEPvSb.js} +3 -3
  39. package/dist/index-CjK23p7z.cjs +1 -0
  40. package/dist/{index-CGmFed4r.cjs → index-D1RRSpG-.cjs} +1 -1
  41. package/dist/{index-CINFGcYo.cjs → index-D5QHaKXY.cjs} +1 -1
  42. package/dist/{index-CUmxELcB.js → index-DAV1YiOv.js} +1 -1
  43. package/dist/{index-BzfDFTVJ.cjs → index-DIx9Mkjr.cjs} +1 -1
  44. package/dist/{index-CZ2mVLUS.js → index-DPPFsHho.js} +4 -4
  45. package/dist/{index-DEv2DOlH.cjs → index-DPTRfubW.cjs} +1 -1
  46. package/dist/{index-ClFJDxkW.js → index-DSitYT7k.js} +145 -141
  47. package/dist/{index-DfKXP07X.js → index-DV-_jtbC.js} +9 -9
  48. package/dist/{index-u6rAowW4.cjs → index-DbEBmWwO.cjs} +1 -1
  49. package/dist/{index-BwYoB3zY.js → index-Dbc4BP6w.js} +1 -1
  50. package/dist/{index-DCGzAKWd.js → index-DkUKAxT5.js} +4 -4
  51. package/dist/{index-DXd7EQps.js → index-DmicKsqe.js} +5 -5
  52. package/dist/{index-BDIP3GvE.js → index-DnhMKtPL.js} +5 -5
  53. package/dist/{index-B4jC_LC5.cjs → index-DqotuDvT.cjs} +1 -1
  54. package/dist/{index-B6yeLC4B.cjs → index-DqxwBkoC.cjs} +1 -1
  55. package/dist/{index-qofx0IRr.js → index-Dtt3rH52.js} +9 -9
  56. package/dist/{index-Pzfiy_pl.js → index-Nm1gBK8p.js} +1 -1
  57. package/dist/{index-CwB7I565.js → index-W0a8zgHe.js} +1 -1
  58. package/dist/{index-sVlKvvQZ.cjs → index-WTHHFOGK.cjs} +1 -1
  59. package/dist/{index-DMCUh24w.js → index-YQ-VX6hF.js} +5 -5
  60. package/dist/{index-C4k05bGp.js → index-_d23aLDP.js} +8 -8
  61. package/dist/{index--0pthhoG.js → index-e4nur009.js} +6 -6
  62. package/dist/{index-08aCULjy.cjs → index-i3SfTzb-.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-HIAfOHHq.cjs → index.vue_vue_type_script_setup_true_lang-CGNnqRgg.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js → index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-dyax8Dv5.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CW0J8V9s.js} +6 -6
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Be6r7R3U.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DMNBfALW.cjs} +1 -1
  67. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BSyTEUOh.js +662 -0
  68. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BtkSTHBG.cjs +1 -0
  69. package/dist/login-DQOJjuKW.js +101 -0
  70. package/dist/login-HZtElTta.cjs +1 -0
  71. package/dist/{main-rSkhpXGR.cjs → main-DUx-SCAV.cjs} +1 -1
  72. package/dist/{main-DWoD0Vdp.js → main-oajXOTpn.js} +7 -7
  73. package/dist/{menu-cQfDaGL1.cjs → menu-B2CHVN4m.cjs} +2 -2
  74. package/dist/{menu-CFLAcuA-.js → menu-DEplmGob.js} +3 -3
  75. package/dist/{modelComp-B7C56fRv.js → modelComp-BY5JHRXA.js} +1 -1
  76. package/dist/{modelComp-4oAkv2ok.cjs → modelComp-DMKA6wLp.cjs} +1 -1
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +2 -2
  79. package/dist/ss-component.js +7 -7
  80. package/dist/ss-component3.cjs +1 -1
  81. package/dist/ss-component3.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/index-BYUhFGra.cjs +0 -1
  84. package/dist/index-cj-WHGF0.cjs +0 -1
  85. package/dist/index-sFDoFhGY.cjs +0 -1
  86. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js +0 -662
  87. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DYSNP688.cjs +0 -1
  88. package/dist/login-Wrj9nSOa.cjs +0 -1
  89. package/dist/login-o8x8Nxaf.js +0 -89
@@ -1,15 +1,16 @@
1
- import { computed as m, ref as s, reactive as F, defineComponent as V, onMounted as j, nextTick as z, resolveComponent as M, createElementBlock as U, openBlock as W, createElementVNode as f, createVNode as g, withCtx as b, createTextVNode as S } from "vue";
2
- import { s as B, E as x, u as K, g as q, c as G, b as J, d as L } from "./menu-CFLAcuA-.js";
3
- import { u as Q } from "./modelComp-B7C56fRv.js";
4
- import { p as h } from "./index-CmiwbsGe.js";
5
- import { a as X, s as Y } from "./index-BRdg4IiT.js";
6
- import "./index-CCxjdgET.js";
7
- import { h as Z } from "./index--0pthhoG.js";
1
+ import { computed as w, ref as n, reactive as x, nextTick as K, defineComponent as W, onMounted as $, resolveComponent as F, createElementBlock as q, openBlock as G, createElementVNode as b, createVNode as d, withCtx as h, createTextVNode as B } from "vue";
2
+ import { s as N, E as R, u as P, g as J, c as L, b as Q, d as X } from "./menu-DEplmGob.js";
3
+ import { u as Y } from "./modelComp-BY5JHRXA.js";
4
+ import { p as m } from "./index-BUy_hb9R.js";
5
+ import { a as Z, s as ee } from "./index-C7nCSuLr.js";
6
+ import "./index-6vvw6VlW.js";
7
+ import { h as te } from "./index-e4nur009.js";
8
8
  import "./crypto-BRyGpjGR.js";
9
- import { c as k } from "./cloneDeep-B2ByQP-n.js";
10
- import { s as $, a as ee } from "./index-BDIP3GvE.js";
11
- import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath: y, cacheStructures: oe } = B(d), ae = m(() => {
9
+ import { f as ae } from "./login-DQOJjuKW.js";
10
+ import { c as I } from "./cloneDeep-DkmyPpbh.js";
11
+ import { s as le, a as oe } from "./index-DnhMKtPL.js";
12
+ import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const E = Y(m), O = Z(m), v = P(m), { menus: A, configMenu: D, activeMenuPath: T, cacheStructures: se } = N(v), re = w(() => {
13
14
  var t, e;
14
15
  return [
15
16
  {
@@ -63,28 +64,28 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
63
64
  },
64
65
  {
65
66
  key: "tableContents",
66
- contents: (e = (t = k(E.value)) == null ? void 0 : t.map((l) => ({
67
- ...l,
67
+ contents: (e = (t = I(A.value)) == null ? void 0 : t.map((a) => ({
68
+ ...a,
68
69
  menuType: "系统菜单"
69
- }))) == null ? void 0 : e.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
70
+ }))) == null ? void 0 : e.filter((a) => a.title !== "系统管理" && a.title !== "平台管理")
70
71
  }
71
72
  ];
72
- }), C = s([]), ne = m(() => [
73
+ }), y = n([]), _ = n([
74
+ {
75
+ // label: "新增",
76
+ label: "新建"
77
+ }
78
+ ]), ue = w(() => [
73
79
  {
74
80
  key: "extraButton",
75
- contents: [
76
- {
77
- label: "新增"
78
- // label: "新建",
79
- }
80
- ]
81
+ contents: _.value
81
82
  },
82
83
  {
83
84
  key: "rowButton",
84
85
  contents: [
85
86
  {
86
- label: "编辑"
87
- // label: "修改",
87
+ // label: "编辑",
88
+ label: "修改"
88
89
  },
89
90
  {
90
91
  label: "删除"
@@ -153,9 +154,9 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
153
154
  },
154
155
  {
155
156
  key: "tableContents",
156
- contents: C.value
157
+ contents: y.value
157
158
  }
158
- ]), O = s([]), i = s({}), P = s({}), se = s([
159
+ ]), H = n([]), g = n({}), ce = n({}), ie = n([
159
160
  // {
160
161
  // label: "配置菜单:",
161
162
  // prop: 'menu',
@@ -229,160 +230,172 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
229
230
  type: "button",
230
231
  value: "生成模块结构"
231
232
  }
232
- ]), re = (t) => {
233
+ ]), V = (t) => {
233
234
  var e;
234
- O.value = (e = se.value) == null ? void 0 : e.map((l) => l.prop === "menu" ? {
235
- ...l,
235
+ H.value = (e = ie.value) == null ? void 0 : e.map((a) => a.prop === "menu" ? {
236
+ ...a,
236
237
  // contents: options,
237
- value: t == null ? void 0 : t[l == null ? void 0 : l.prop]
238
- } : l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
239
- ...l,
240
- value: t == null ? void 0 : t[l == null ? void 0 : l.prop]
238
+ value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
239
+ } : a.prop === "dialogConfig" || a.prop === "contentConfig" || a.prop === "trigger" ? a : {
240
+ ...a,
241
+ value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
241
242
  });
242
- }, ue = s([
243
+ }, pe = n([
243
244
  {
244
245
  label: "查询"
245
246
  },
246
247
  {
247
248
  label: "重置"
248
249
  }
249
- ]), ce = async (t) => {
250
- t.singleContent && await fe(t.singleContent, t.buttonName), console.log(909, t);
251
- }, A = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
250
+ ]), ge = async (t) => {
251
+ console.log(12356, t);
252
+ }, j = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
252
253
  ...e,
253
254
  value: e == null ? void 0 : e.title,
254
255
  label: e == null ? void 0 : e.title,
255
- children: A(e.childMenus)
256
+ children: j(e.childMenus)
256
257
  } : {
257
258
  ...e,
258
259
  value: e == null ? void 0 : e.title,
259
260
  label: e == null ? void 0 : e.title
260
- }), D = F({
261
+ }), f = x({
261
262
  show: !1,
262
263
  title: "菜单配置",
263
264
  width: "30%"
264
- }), T = s([]), H = s({}), p = s(null), ie = m(() => {
265
+ }), M = n([]), p = n({}), c = n(null), z = w(() => {
265
266
  var t;
266
- return (t = A(E.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
267
- }), pe = (t) => {
267
+ return (t = j(A.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
268
+ }), ve = (t) => {
268
269
  var e;
269
- T.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/"), p.value = t, w(t);
270
- }, v = s(""), ge = async (t, e) => {
271
- if (!p.value) return x.warning("请先选择菜单");
272
- v.value = t, T.value = [], N.setSubmitCurStructure(!1), H.value = k(e), (t === "新建" || t === "修改") && t === "新建" && (R.setSelectTitle([]), d.setConfigMenu(null));
273
- }, de = (t) => {
270
+ c.value = {
271
+ ...t,
272
+ rootNode: ae(z.value, t.path)
273
+ }, (t == null ? void 0 : t.level) === 0 ? _.value.splice(0) : (_.value = [{ label: "新建" }], M.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), console.log(345, c.value), k(t);
274
+ }, C = n(""), de = async (t, e) => {
275
+ var a, o;
276
+ if (!c.value) return R.warning("请先选择菜单");
277
+ switch (C.value = t, M.value = [], E.setSubmitCurStructure(!1), p.value = I(e), t) {
278
+ case "新建":
279
+ O.setSelectTitle([]), await v.setConfigMenu(null);
280
+ break;
281
+ case "修改":
282
+ console.log("修改", t, p.value), await v.setConfigMenu(p.value), V(p.value);
283
+ break;
284
+ case "删除":
285
+ await U(p.value, t);
286
+ break;
287
+ }
288
+ await K(), f.title = `【${t === "新建" ? (a = c.value) == null ? void 0 : a.path : (o = p.value) == null ? void 0 : o.path}】菜单配置`, f.show = !0;
289
+ }, fe = async (t) => {
274
290
  var e;
275
- i.value = t, d.setConfigMenu({
276
- ...i.value,
277
- path: (e = p.value) == null ? void 0 : e.path
291
+ g.value = t, await v.setConfigMenu({
292
+ ...g.value,
293
+ path: (e = c.value) == null ? void 0 : e.path
278
294
  });
279
- }, _ = s(null), ve = (t) => {
280
- var a, r, n, o, c;
281
- d.setButtonTriggerType(t === "弹窗结构" ? "dialogConfig" : "contentConfig");
295
+ }, be = n(null), he = async (t) => {
296
+ var o, s, r, l, i;
297
+ v.setButtonTriggerType(t === "弹窗结构" ? "dialogConfig" : "contentConfig");
282
298
  let e;
283
- (a = i.value) != null && a.subMenus && ((r = i.value) == null ? void 0 : r.subMenus.length) > 0 && (e = (n = T.value) == null ? void 0 : n.map((u) => ({
299
+ (o = g.value) != null && o.subMenus && ((s = g.value) == null ? void 0 : s.subMenus.length) > 0 && (e = (r = M.value) == null ? void 0 : r.map((u) => ({
284
300
  value: u
285
301
  })), e.unshift({
286
- value: (o = H.value) == null ? void 0 : o.title
302
+ value: (l = p.value) == null ? void 0 : l.title
287
303
  }));
288
- const l = {
289
- ...i.value,
290
- path: (c = p.value) == null ? void 0 : c.path
291
- };
292
- d.setConfigMenu(l), R.setSelectTitle(e), N.setIsEdit("edit"), _.value = {
293
- dialogTitle: v.value,
294
- form: l
295
- };
296
- }, w = async (t) => {
297
- var l, a, r, n, o, c;
298
- const e = await q({
304
+ let a;
305
+ C.value === "新建" ? a = {
306
+ ...g.value,
307
+ path: (i = c.value) == null ? void 0 : i.path
308
+ } : C.value === "修改" && (a = D.value), await v.setConfigMenu(a), O.setSelectTitle(e), E.setIsEdit("edit");
309
+ }, k = async (t) => {
310
+ var a, o, s, r, l, i;
311
+ const e = await J({
299
312
  key: {
300
313
  type: "menuConfigData",
301
314
  systemKey: sessionStorage.getItem("systemKey"),
302
- pageKey: y.value + "/" + (t == null ? void 0 : t.path),
315
+ pageKey: T.value + "/" + (t == null ? void 0 : t.path),
303
316
  tableId: ""
304
317
  }
305
318
  });
306
- ((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && (a = e.data) != null && a.result && (C.value = ((n = (r = e.data) == null ? void 0 : r.result) == null ? void 0 : n.length) > 0 ? (c = (o = e.data) == null ? void 0 : o.result) == null ? void 0 : c.map((u) => {
307
- var I;
319
+ ((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && (o = e.data) != null && o.result && (y.value = ((r = (s = e.data) == null ? void 0 : s.result) == null ? void 0 : r.length) > 0 ? (i = (l = e.data) == null ? void 0 : l.result) == null ? void 0 : i.map((u) => {
320
+ var S;
308
321
  return {
309
322
  id: u == null ? void 0 : u.id,
310
- ...(I = u == null ? void 0 : u.value) == null ? void 0 : I.tableData
323
+ ...(S = u == null ? void 0 : u.value) == null ? void 0 : S.tableData
311
324
  };
312
- }) : [], console.log(123, C.value));
313
- }, fe = async (t, e) => {
314
- var r, n;
315
- let l, a;
316
- e === "新增" ? (l = {
325
+ }) : [], console.log(123, y.value));
326
+ }, U = async (t, e) => {
327
+ var s, r;
328
+ let a, o;
329
+ e === "新增" || e === "新建" ? (a = {
317
330
  key: {
318
331
  type: "menuConfigData",
319
332
  systemKey: sessionStorage.getItem("systemKey"),
320
- pageKey: y.value + "/" + ((r = p.value) == null ? void 0 : r.path),
333
+ pageKey: T.value + "/" + ((s = c.value) == null ? void 0 : s.path),
321
334
  tableId: ""
322
335
  },
323
336
  value: {
324
337
  tableData: t
325
338
  }
326
- }, a = G) : e === "编辑" ? (l = {
339
+ }, o = L) : e === "编辑" || e === "修改" ? (console.log(890, t), a = {
327
340
  id: t == null ? void 0 : t.id,
328
341
  key: {
329
342
  type: "menuConfigData",
330
343
  systemKey: sessionStorage.getItem("systemKey"),
331
- pageKey: y.value + "/" + ((n = p.value) == null ? void 0 : n.path),
344
+ pageKey: T.value + "/" + ((r = c.value) == null ? void 0 : r.path),
332
345
  tableId: ""
333
346
  },
334
347
  value: {
335
348
  tableData: t
336
349
  }
337
- }, a = J) : e === "删除" && (l = {
350
+ }, o = Q) : e === "删除" && (a = {
338
351
  id: t.id
339
- }, a = L), Z(a, l, v.value).then((o) => {
340
- P.value = e === "新增" ? {
352
+ }, o = X), te(o, a, e).then((l) => {
353
+ (e === "新增" || e === "新建") && y.value.push({
341
354
  ...t,
342
- newId: o
343
- } : null, v.value && o && x.success(v.value + "成功");
355
+ id: l
356
+ }), e && l && R.success(e + "成功"), k(c.value);
344
357
  });
345
- }, be = async () => {
346
- const t = k(oe.value);
347
- console.log("clickSubmitForm", le.value, t), i.value = {}, D.show = !1, d.setCacheStructures([]), await w(p.value), _.value = null;
348
- }, he = () => {
349
- D.show = !1;
350
- }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
358
+ }, ye = async () => {
359
+ const t = I(se.value);
360
+ console.log("clickSubmitForm", D.value, t), await U(D.value, C.value), g.value = {}, f.show = !1, v.setCacheStructures([]), await k(c.value);
361
+ }, Ce = () => {
362
+ f.show = !1;
363
+ }, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
351
364
  __proto__: null,
352
- beforeDialogDestroy: he,
353
- buttonValue: ue,
354
- changeTrigger: de,
355
- changedRow: P,
356
- clickNode: pe,
357
- clickRowButton: ge,
358
- clickSubmitForm: be,
359
- clickTrigger: ve,
360
- dialogInfo: D,
361
- formatFormData: re,
362
- getTableDataAsync: w,
363
- handleItemDataChange: ce,
364
- inputForm: i,
365
- menuPageData: ne,
366
- operatingForm: _,
367
- pageData: ae,
368
- renderFormData: O,
369
- treeData: ie
370
- }, Symbol.toStringTag, { value: "Module" })), Ce = { class: "menu-module" }, me = { class: "tree-wrap" }, ke = { class: "table-wrap" }, De = { class: "module-dialog-default" }, Te = /* @__PURE__ */ V({
365
+ beforeDialogDestroy: Ce,
366
+ buttonValue: pe,
367
+ changeTrigger: fe,
368
+ changedRow: ce,
369
+ clickNode: ve,
370
+ clickRowButton: de,
371
+ clickSubmitForm: ye,
372
+ clickTrigger: he,
373
+ dialogInfo: f,
374
+ formatFormData: V,
375
+ getTableDataAsync: k,
376
+ handleItemDataChange: ge,
377
+ inputForm: g,
378
+ menuPageData: ue,
379
+ operatingForm: be,
380
+ pageData: re,
381
+ renderFormData: H,
382
+ treeData: z
383
+ }, Symbol.toStringTag, { value: "Module" })), ke = { class: "menu-module" }, De = { class: "tree-wrap" }, Te = { class: "table-wrap" }, _e = { class: "module-dialog-default" }, we = /* @__PURE__ */ W({
371
384
  __name: "index",
372
385
  setup(t) {
373
- const e = F({ ...ye }), l = s(null), a = K(h), { configMenu: r } = B(a);
374
- return j(() => {
375
- e.formatFormData(r.value), z(() => {
376
- var n, o;
377
- (o = l.value) == null || o.setCurrentKey((n = r.value) == null ? void 0 : n.path);
386
+ const e = x({ ...me }), a = n(null), o = P(m), { configMenu: s } = N(o);
387
+ return $(() => {
388
+ e.formatFormData(s.value), console.log(9099, s.value), K(() => {
389
+ var r, l;
390
+ (l = a.value) == null || l.setCurrentKey((r = s.value) == null ? void 0 : r.path);
378
391
  });
379
- }), (n, o) => {
380
- const c = M("el-tree"), u = M("el-button");
381
- return W(), U("div", Ce, [
382
- f("div", me, [
383
- g(c, {
392
+ }), (r, l) => {
393
+ const i = F("el-tree"), u = F("el-button");
394
+ return G(), q("div", ke, [
395
+ b("div", De, [
396
+ d(i, {
384
397
  ref_key: "treeRef",
385
- ref: l,
398
+ ref: a,
386
399
  data: e.treeData,
387
400
  "expand-on-click-node": !1,
388
401
  "node-key": "path",
@@ -394,8 +407,8 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
394
407
  onNodeClick: e.clickNode
395
408
  }, null, 8, ["data", "onNodeClick"])
396
409
  ]),
397
- f("div", ke, [
398
- g(Y, {
410
+ b("div", Te, [
411
+ d(ee, {
399
412
  itemData: e.menuPageData,
400
413
  changedContent: e.changedRow,
401
414
  operatingForm: e.operatingForm,
@@ -405,16 +418,16 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
405
418
  onOnButtonClick: e.clickRowButton
406
419
  }, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
407
420
  ]),
408
- g($, {
421
+ d(le, {
409
422
  class: "module-dialog",
410
423
  title: e.dialogInfo.title,
411
424
  visible: e.dialogInfo.show,
412
425
  width: e.dialogInfo.width,
413
426
  onBeforeDestroy: e.beforeDialogDestroy
414
427
  }, {
415
- default: b(() => [
416
- f("div", De, [
417
- g(ee, {
428
+ default: h(() => [
429
+ b("div", _e, [
430
+ d(oe, {
418
431
  rowContents: e.renderFormData,
419
432
  isEnableWrap: !1,
420
433
  isEdit: !0,
@@ -423,23 +436,23 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
423
436
  }, null, 8, ["rowContents", "onChange", "onClickTrigger"])
424
437
  ])
425
438
  ]),
426
- footer: b(() => [
427
- f("div", null, [
428
- g(u, {
439
+ footer: h(() => [
440
+ b("div", null, [
441
+ d(u, {
429
442
  onClick: e.beforeDialogDestroy
430
443
  }, {
431
- default: b(() => o[0] || (o[0] = [
432
- S("取消")
444
+ default: h(() => l[0] || (l[0] = [
445
+ B("取消")
433
446
  ])),
434
447
  _: 1,
435
448
  __: [0]
436
449
  }, 8, ["onClick"]),
437
- g(u, {
450
+ d(u, {
438
451
  type: "primary",
439
452
  onClick: e.clickSubmitForm
440
453
  }, {
441
- default: b(() => o[1] || (o[1] = [
442
- S(" 确认 ")
454
+ default: h(() => l[1] || (l[1] = [
455
+ B(" 确认 ")
443
456
  ])),
444
457
  _: 1,
445
458
  __: [1]
@@ -451,7 +464,7 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
451
464
  ]);
452
465
  };
453
466
  }
454
- }), Ee = /* @__PURE__ */ te(Te, [["__scopeId", "data-v-1db0bf7b"]]);
467
+ }), Ae = /* @__PURE__ */ ne(we, [["__scopeId", "data-v-712949e2"]]);
455
468
  export {
456
- Ee as default
469
+ Ae as default
457
470
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as $, computed as F, ref as y, watch as P, createElementBlock as E, openBlock as b, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as B, resolveComponent as k, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
2
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js";
3
- import { d as H, u as L } from "./index-CUmxELcB.js";
4
- import { E as N } from "./menu-CFLAcuA-.js";
2
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js";
3
+ import { d as H, u as L } from "./index-DAV1YiOv.js";
4
+ import { E as N } from "./menu-DEplmGob.js";
5
5
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { S as M } from "./index-BDIP3GvE.js";
6
+ import { S as M } from "./index-DnhMKtPL.js";
7
7
  import { S as x } from "./index-BHtNKL1L.js";
8
8
  const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
9
9
  __name: "index",
@@ -1,4 +1,4 @@
1
- import { h as A } from "./menu-CFLAcuA-.js";
1
+ import { h as A } from "./menu-DEplmGob.js";
2
2
  const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
3
3
  function h(r, t) {
4
4
  if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-cQfDaGL1.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-B2CHVN4m.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;