ss-component-new 1.1.113 → 1.1.115

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 (53) hide show
  1. package/dist/{array-DyxKeexo.js → array-B1nKYchL.js} +269 -266
  2. package/dist/array-Bv_j-DQ6.cjs +7 -0
  3. package/dist/cloneDeep-BkHxCZQ6.cjs +1 -0
  4. package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-DDG2sYfV.js} +2 -8
  5. package/dist/{index-BTt24r3U.cjs → index-B2YxsOFS.cjs} +1 -1
  6. package/dist/{index-CVBCwf2F.cjs → index-B9CeiT-K.cjs} +1 -1
  7. package/dist/{index-COPrDtid.js → index-BDQh7_bN.js} +1 -1
  8. package/dist/index-BKH3emIo.js +400 -0
  9. package/dist/{index-CbphQpiC.cjs → index-BOMVVmWM.cjs} +1 -1
  10. package/dist/index-BZEbgud2.cjs +6 -0
  11. package/dist/index-BeUperzd.cjs +1 -0
  12. package/dist/index-BgZXex98.js +199 -0
  13. package/dist/{index-BH3F6_ql.js → index-BrXeR-w4.js} +1025 -1121
  14. package/dist/{index-DWiZqfBA.js → index-Bx4Vzo3K.js} +3 -3
  15. package/dist/{index-5dGTUAu_.cjs → index-ByH4hihL.cjs} +1 -1
  16. package/dist/{index-CyQkKXnK.js → index-C1474J4s.js} +2 -2
  17. package/dist/{index-DVEWSdUo.cjs → index-CfR4fhRH.cjs} +1 -1
  18. package/dist/index-CosMCnZD.js +456 -0
  19. package/dist/{index-CBHJLZo4.cjs → index-DGEVn6kJ.cjs} +1 -1
  20. package/dist/index-DHZKgJQ-.cjs +1 -0
  21. package/dist/{index-b_11tfuG.js → index-DbEFJXIu.js} +4 -4
  22. package/dist/{index-CdEEK8I0.js → index-DcJXJfJq.js} +68 -69
  23. package/dist/{index-B3iQoZwc.js → index-DmZPczSP.js} +3 -3
  24. package/dist/{index-QWm4yJ7u.js → index-FuXHUCO7.js} +2 -2
  25. package/dist/index-PctLLbfg.cjs +1 -0
  26. package/dist/{index-DxyREQkR.js → index-RTJn4TlV.js} +5 -5
  27. package/dist/{index-BpJeYb4X.js → index-RUWVqYLT.js} +1 -1
  28. package/dist/{index-ChXKNVG8.cjs → index-fstYT4Ji.cjs} +1 -1
  29. package/dist/{index-EQOXj03f.cjs → index-pKfoDOT3.cjs} +1 -1
  30. package/dist/{index-CqJa9o1o.cjs → index-tXx4uqsB.cjs} +1 -1
  31. package/dist/{index-B4WYIlOz.cjs → index-xFolZMqB.cjs} +1 -1
  32. package/dist/{index-DLartnmY.js → index-x_myaReY.js} +1 -1
  33. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Bwb6U8rC.js} +22 -22
  34. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CF3B2HoM.cjs} +1 -1
  35. package/dist/{main-DS-YP1Wn.cjs → main-BhZ-c5nF.cjs} +1 -1
  36. package/dist/{main-DAPxADXM.js → main-CaHX_enG.js} +4 -4
  37. package/dist/{request-BrHEv9dn.cjs → request-CNnOyEMG.cjs} +1 -1
  38. package/dist/{request-BK6KCyS9.js → request-_jH8DsLJ.js} +1 -1
  39. package/dist/ss-component.cjs +1 -1
  40. package/dist/ss-component.css +1 -1
  41. package/dist/ss-component.js +6 -6
  42. package/dist/ss-component2.cjs +1 -1
  43. package/dist/ss-component2.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/array-BYRvPg11.cjs +0 -7
  46. package/dist/cloneDeep-WwDap0fL.cjs +0 -1
  47. package/dist/index-BIRKKGuW.cjs +0 -1
  48. package/dist/index-BUxzwz5l.cjs +0 -1
  49. package/dist/index-CumtOgAw.cjs +0 -7
  50. package/dist/index-DmoecEm1.js +0 -205
  51. package/dist/index-EIbm0jBZ.js +0 -2707
  52. package/dist/index-smYHb1Ta.js +0 -456
  53. package/dist/index-uMboxmjq.cjs +0 -6
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, computed as m, createElementBlock as I, openBlock as g, normalizeClass as y, unref as n, renderSlot as z, createVNode as L, Transition as W, withCtx as M, withDirectives as q, createElementVNode as _, normalizeStyle as K, createTextVNode as ce, toDisplayString as J, vShow as Q, watch as X, shallowReactive as pe, ref as N, onMounted as fe, createBlock as T, createCommentVNode as k, resolveDynamicComponent as me, Fragment as ge, withModifiers as ye, nextTick as ve, isVNode as Y, render as H } from "vue";
2
- import { f as D, h as v, _ as ee, x as be, e as S, K as V, F as Ce, ab as he, k as Te, ac as Se, d as se, j as we, U as Be, W as R, s as Ee, A as Ne, B as U, T as ke, ad as Me, G as ze, g as Z, w as x, v as $e, m as Oe, ae as G, af as Ie } from "./index-BH3F6_ql.js";
1
+ import { defineComponent as w, computed as m, createElementBlock as I, openBlock as g, normalizeClass as y, unref as n, renderSlot as k, createVNode as L, Transition as q, withCtx as M, withDirectives as J, createElementVNode as _, normalizeStyle as K, createTextVNode as ce, toDisplayString as Q, vShow as W, watch as X, shallowReactive as pe, ref as E, onMounted as fe, createBlock as T, createCommentVNode as z, resolveDynamicComponent as me, Fragment as ge, withModifiers as ye, nextTick as ve, isVNode as Y, render as A } from "vue";
2
+ import { n as D, o as v, _ as ee, p as Ce, q as S, s as V, w as be, v as he, x as Te, y as Se, z as se, A as we, B as Ne, T as R, C as Be, D as Ee, F as U, G as ze, H as Me, I as ke, J as Z, K as x, N as Oe, O as $e, P as G, Q as Ie } from "./index-BrXeR-w4.js";
3
3
  const _e = (o) => o, xe = D({
4
4
  value: {
5
5
  type: [String, Number],
@@ -37,13 +37,13 @@ const _e = (o) => o, xe = D({
37
37
  ...Le,
38
38
  props: xe,
39
39
  setup(o, { expose: a }) {
40
- const e = o, s = be("badge"), r = m(() => e.isDot ? "" : S(e.value) && S(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), p = m(() => {
41
- var t, u, b, h, f;
40
+ const e = o, s = Ce("badge"), r = m(() => e.isDot ? "" : S(e.value) && S(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), p = m(() => {
41
+ var t, u, C, h, f;
42
42
  return [
43
43
  {
44
44
  backgroundColor: e.color,
45
45
  marginRight: V(-((u = (t = e.offset) == null ? void 0 : t[0]) != null ? u : 0)),
46
- marginTop: V((h = (b = e.offset) == null ? void 0 : b[1]) != null ? h : 0)
46
+ marginTop: V((h = (C = e.offset) == null ? void 0 : C[1]) != null ? h : 0)
47
47
  },
48
48
  (f = e.badgeStyle) != null ? f : {}
49
49
  ];
@@ -53,13 +53,13 @@ const _e = (o) => o, xe = D({
53
53
  }), (t, u) => (g(), I("div", {
54
54
  class: y(n(s).b())
55
55
  }, [
56
- z(t.$slots, "default"),
57
- L(W, {
56
+ k(t.$slots, "default"),
57
+ L(q, {
58
58
  name: `${n(s).namespace.value}-zoom-in-center`,
59
59
  persisted: ""
60
60
  }, {
61
61
  default: M(() => [
62
- q(_("sup", {
62
+ J(_("sup", {
63
63
  class: y([
64
64
  n(s).e("content"),
65
65
  n(s).em("content", t.type),
@@ -70,11 +70,11 @@ const _e = (o) => o, xe = D({
70
70
  ]),
71
71
  style: K(n(p))
72
72
  }, [
73
- z(t.$slots, "content", { value: n(r) }, () => [
74
- ce(J(n(r)), 1)
73
+ k(t.$slots, "content", { value: n(r) }, () => [
74
+ ce(Q(n(r)), 1)
75
75
  ])
76
76
  ], 6), [
77
- [Q, !t.hidden && (n(r) || t.isDot || t.$slots.content)]
77
+ [W, !t.hidden && (n(r) || t.isDot || t.$slots.content)]
78
78
  ])
79
79
  ]),
80
80
  _: 3
@@ -83,7 +83,7 @@ const _e = (o) => o, xe = D({
83
83
  }
84
84
  });
85
85
  var Pe = /* @__PURE__ */ ee(De, [["__file", "badge.vue"]]);
86
- const Fe = Ce(Pe), je = D({
86
+ const Fe = be(Pe), He = D({
87
87
  a11y: {
88
88
  type: Boolean,
89
89
  default: !0
@@ -114,13 +114,13 @@ const Fe = Ce(Pe), je = D({
114
114
  }), d = {};
115
115
  w({
116
116
  name: "ElConfigProvider",
117
- props: je,
117
+ props: He,
118
118
  setup(o, { slots: a }) {
119
119
  X(() => o.message, (s) => {
120
120
  Object.assign(d, s ?? {});
121
121
  }, { immediate: !0, deep: !0 });
122
122
  const e = Se(o);
123
- return () => z(a, "default", { config: e == null ? void 0 : e.value });
123
+ return () => k(a, "default", { config: e == null ? void 0 : e.value });
124
124
  }
125
125
  });
126
126
  const te = ["success", "info", "warning", "error"], i = _e({
@@ -139,7 +139,7 @@ const te = ["success", "info", "warning", "error"], i = _e({
139
139
  grouping: !1,
140
140
  repeatNum: 1,
141
141
  appendTo: se ? document.body : void 0
142
- }), Ae = D({
142
+ }), je = D({
143
143
  customClass: {
144
144
  type: String,
145
145
  default: i.customClass
@@ -201,7 +201,7 @@ const te = ["success", "info", "warning", "error"], i = _e({
201
201
  type: Number,
202
202
  default: i.repeatNum
203
203
  }
204
- }), He = {
204
+ }), Ae = {
205
205
  destroy: () => !0
206
206
  }, c = pe([]), Ve = (o) => {
207
207
  const a = c.findIndex((r) => r.id === o), e = c[a];
@@ -214,46 +214,46 @@ const te = ["success", "info", "warning", "error"], i = _e({
214
214
  name: "ElMessage"
215
215
  }), Ge = /* @__PURE__ */ w({
216
216
  ...Ze,
217
- props: Ae,
218
- emits: He,
217
+ props: je,
218
+ emits: Ae,
219
219
  setup(o, { expose: a, emit: e }) {
220
- const s = o, { Close: r } = ke, p = N(!1), { ns: t, zIndex: u } = Be("message"), { currentZIndex: b, nextZIndex: h } = u, f = N(), B = N(!1), P = N(0);
221
- let $;
220
+ const s = o, { Close: r } = ze, p = E(!1), { ns: t, zIndex: u } = Ne("message"), { currentZIndex: C, nextZIndex: h } = u, f = E(), N = E(!1), P = E(0);
221
+ let O;
222
222
  const ne = m(() => s.type ? s.type === "error" ? "danger" : s.type : "info"), ae = m(() => {
223
223
  const l = s.type;
224
224
  return { [t.bm("icon", l)]: l && R[l] };
225
- }), F = m(() => s.icon || R[s.type] || ""), le = m(() => Re(s.id)), j = m(() => Ue(s.id, s.offset) + le.value), re = m(() => P.value + j.value), ie = m(() => ({
226
- top: `${j.value}px`,
227
- zIndex: b.value
225
+ }), F = m(() => s.icon || R[s.type] || ""), le = m(() => Re(s.id)), H = m(() => Ue(s.id, s.offset) + le.value), re = m(() => P.value + H.value), ie = m(() => ({
226
+ top: `${H.value}px`,
227
+ zIndex: C.value
228
228
  }));
229
- function O() {
230
- s.duration !== 0 && ({ stop: $ } = Me(() => {
231
- E();
229
+ function $() {
230
+ s.duration !== 0 && ({ stop: O } = Me(() => {
231
+ B();
232
232
  }, s.duration));
233
233
  }
234
- function A() {
235
- $ == null || $();
234
+ function j() {
235
+ O == null || O();
236
236
  }
237
- function E() {
238
- B.value = !1, ve(() => {
237
+ function B() {
238
+ N.value = !1, ve(() => {
239
239
  var l;
240
240
  p.value || ((l = s.onClose) == null || l.call(s), e("destroy"));
241
241
  });
242
242
  }
243
243
  function ue({ code: l }) {
244
- l === ze.esc && E();
244
+ l === ke.esc && B();
245
245
  }
246
246
  return fe(() => {
247
- O(), h(), B.value = !0;
247
+ $(), h(), N.value = !0;
248
248
  }), X(() => s.repeatNum, () => {
249
- A(), O();
250
- }), Ee(document, "keydown", ue), Ne(f, () => {
249
+ j(), $();
250
+ }), Be(document, "keydown", ue), Ee(f, () => {
251
251
  P.value = f.value.getBoundingClientRect().height;
252
252
  }), a({
253
- visible: B,
253
+ visible: N,
254
254
  bottom: re,
255
- close: E
256
- }), (l, Xe) => (g(), T(W, {
255
+ close: B
256
+ }), (l, Xe) => (g(), T(q, {
257
257
  name: n(t).b("fade"),
258
258
  onBeforeEnter: (de) => p.value = !0,
259
259
  onBeforeLeave: l.onClose,
@@ -261,7 +261,7 @@ const te = ["success", "info", "warning", "error"], i = _e({
261
261
  persisted: ""
262
262
  }, {
263
263
  default: M(() => [
264
- q(_("div", {
264
+ J(_("div", {
265
265
  id: l.id,
266
266
  ref_key: "messageRef",
267
267
  ref: f,
@@ -274,15 +274,15 @@ const te = ["success", "info", "warning", "error"], i = _e({
274
274
  ]),
275
275
  style: K(n(ie)),
276
276
  role: "alert",
277
- onMouseenter: A,
278
- onMouseleave: O
277
+ onMouseenter: j,
278
+ onMouseleave: $
279
279
  }, [
280
280
  l.repeatNum > 1 ? (g(), T(n(Fe), {
281
281
  key: 0,
282
282
  value: l.repeatNum,
283
283
  type: n(ne),
284
284
  class: y(n(t).e("badge"))
285
- }, null, 8, ["value", "type", "class"])) : k("v-if", !0),
285
+ }, null, 8, ["value", "type", "class"])) : z("v-if", !0),
286
286
  n(F) ? (g(), T(n(U), {
287
287
  key: 1,
288
288
  class: y([n(t).e("icon"), n(ae)])
@@ -291,10 +291,10 @@ const te = ["success", "info", "warning", "error"], i = _e({
291
291
  (g(), T(me(n(F))))
292
292
  ]),
293
293
  _: 1
294
- }, 8, ["class"])) : k("v-if", !0),
295
- z(l.$slots, "default", {}, () => [
294
+ }, 8, ["class"])) : z("v-if", !0),
295
+ k(l.$slots, "default", {}, () => [
296
296
  l.dangerouslyUseHTMLString ? (g(), I(ge, { key: 1 }, [
297
- k(" Caution here, message could've been compromised, never use user's input as message "),
297
+ z(" Caution here, message could've been compromised, never use user's input as message "),
298
298
  _("p", {
299
299
  class: y(n(t).e("content")),
300
300
  innerHTML: l.message
@@ -302,28 +302,28 @@ const te = ["success", "info", "warning", "error"], i = _e({
302
302
  ], 2112)) : (g(), I("p", {
303
303
  key: 0,
304
304
  class: y(n(t).e("content"))
305
- }, J(l.message), 3))
305
+ }, Q(l.message), 3))
306
306
  ]),
307
307
  l.showClose ? (g(), T(n(U), {
308
308
  key: 2,
309
309
  class: y(n(t).e("closeBtn")),
310
- onClick: ye(E, ["stop"])
310
+ onClick: ye(B, ["stop"])
311
311
  }, {
312
312
  default: M(() => [
313
313
  L(n(r))
314
314
  ]),
315
315
  _: 1
316
- }, 8, ["class", "onClick"])) : k("v-if", !0)
316
+ }, 8, ["class", "onClick"])) : z("v-if", !0)
317
317
  ], 46, ["id"]), [
318
- [Q, B.value]
318
+ [W, N.value]
319
319
  ])
320
320
  ]),
321
321
  _: 3
322
322
  }, 8, ["name", "onBeforeEnter", "onBeforeLeave", "onAfterLeave"]));
323
323
  }
324
324
  });
325
- var We = /* @__PURE__ */ ee(Ge, [["__file", "message.vue"]]);
326
- let qe = 1;
325
+ var qe = /* @__PURE__ */ ee(Ge, [["__file", "message.vue"]]);
326
+ let Je = 1;
327
327
  const oe = (o) => {
328
328
  const a = !o || Z(o) || Y(o) || x(o) ? { message: o } : o, e = {
329
329
  ...i,
@@ -333,7 +333,7 @@ const oe = (o) => {
333
333
  e.appendTo = document.body;
334
334
  else if (Z(e.appendTo)) {
335
335
  let s = document.querySelector(e.appendTo);
336
- $e(s) || (Oe("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), s = document.body), e.appendTo = s;
336
+ Oe(s) || ($e("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), s = document.body), e.appendTo = s;
337
337
  }
338
338
  return G(d.grouping) && !e.grouping && (e.grouping = d.grouping), S(d.duration) && e.duration === 3e3 && (e.duration = d.duration), S(d.offset) && e.offset === 16 && (e.offset = d.offset), G(d.showClose) && !e.showClose && (e.showClose = d.showClose), e;
339
339
  }, Ke = (o) => {
@@ -343,33 +343,33 @@ const oe = (o) => {
343
343
  c.splice(a, 1);
344
344
  const { handler: e } = o;
345
345
  e.close();
346
- }, Je = ({ appendTo: o, ...a }, e) => {
347
- const s = `message_${qe++}`, r = a.onClose, p = document.createElement("div"), t = {
346
+ }, Qe = ({ appendTo: o, ...a }, e) => {
347
+ const s = `message_${Je++}`, r = a.onClose, p = document.createElement("div"), t = {
348
348
  ...a,
349
349
  id: s,
350
350
  onClose: () => {
351
351
  r == null || r(), Ke(f);
352
352
  },
353
353
  onDestroy: () => {
354
- H(null, p);
354
+ A(null, p);
355
355
  }
356
- }, u = L(We, t, x(t.message) || Y(t.message) ? {
356
+ }, u = L(qe, t, x(t.message) || Y(t.message) ? {
357
357
  default: x(t.message) ? t.message : () => t.message
358
358
  } : null);
359
- u.appContext = e || C._context, H(u, p), o.appendChild(p.firstElementChild);
360
- const b = u.component, f = {
359
+ u.appContext = e || b._context, A(u, p), o.appendChild(p.firstElementChild);
360
+ const C = u.component, f = {
361
361
  id: s,
362
362
  vnode: u,
363
- vm: b,
363
+ vm: C,
364
364
  handler: {
365
365
  close: () => {
366
- b.exposed.close();
366
+ C.exposed.close();
367
367
  }
368
368
  },
369
369
  props: u.component.props
370
370
  };
371
371
  return f;
372
- }, C = (o = {}, a) => {
372
+ }, b = (o = {}, a) => {
373
373
  if (!se)
374
374
  return { close: () => {
375
375
  } };
@@ -385,24 +385,23 @@ const oe = (o) => {
385
385
  if (S(d.max) && c.length >= d.max)
386
386
  return { close: () => {
387
387
  } };
388
- const s = Je(e, a);
388
+ const s = Qe(e, a);
389
389
  return c.push(s), s.handler;
390
390
  };
391
391
  te.forEach((o) => {
392
- C[o] = (a = {}, e) => {
392
+ b[o] = (a = {}, e) => {
393
393
  const s = oe(a);
394
- return C({ ...s, type: o }, e);
394
+ return b({ ...s, type: o }, e);
395
395
  };
396
396
  });
397
- function Qe(o) {
397
+ function We(o) {
398
398
  const a = [...c];
399
399
  for (const e of a)
400
400
  (!o || o === e.props.type) && e.handler.close();
401
401
  }
402
- C.closeAll = Qe;
403
- C._context = null;
404
- const ss = Ie(C, "$message");
402
+ b.closeAll = We;
403
+ b._context = null;
404
+ const ss = Ie(b, "$message");
405
405
  export {
406
- ss as E,
407
- _e as m
406
+ ss as E
408
407
  };
@@ -1,8 +1,8 @@
1
1
  import { ref as W, watch as xe, nextTick as ft, resolveComponent as X, createBlock as F, openBlock as b, withCtx as P, createElementVNode as ce, renderSlot as de, createElementBlock as R, Fragment as re, renderList as te, createTextVNode as ht, toDisplayString as be, createCommentVNode as J, resolveDynamicComponent as at, createSlots as Xe, mergeProps as Wt, onMounted as xt, normalizeProps as xn, guardReactiveProps as Cn, createVNode as we, unref as Vt, normalizeStyle as pe, normalizeClass as $n, defineComponent as rn } from "vue";
2
- import { Z as Gt, $ as Tn } from "./index-BH3F6_ql.js";
2
+ import { a as Gt, f as Tn } from "./index-BrXeR-w4.js";
3
3
  import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { c as Ct } from "./cloneDeep-BfzU0pBe.js";
5
- import { E as ln } from "./index-CdEEK8I0.js";
4
+ import { c as Ct } from "./cloneDeep-DDG2sYfV.js";
5
+ import { E as ln } from "./index-DcJXJfJq.js";
6
6
  import kn from "./index-BMLnfdpX.js";
7
7
  function On(n) {
8
8
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
@@ -1,6 +1,6 @@
1
1
  import { ref as a, defineComponent as n, reactive as l, onMounted as s, createElementBlock as r, openBlock as c, createVNode as o } from "vue";
2
- import { s as u } from "./index-B3iQoZwc.js";
3
- import { s as i } from "./index-smYHb1Ta.js";
2
+ import { s as u } from "./index-DmZPczSP.js";
3
+ import { s as i } from "./index-CosMCnZD.js";
4
4
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const b = a([
6
6
  {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),F=require("./index-B9CeiT-K.cjs"),z=require("./index-BeUperzd.cjs"),f=require("./menu-B_Az9K_F.cjs"),b=require("./index-tXx4uqsB.cjs"),_=require("./cloneDeep-BkHxCZQ6.cjs"),N=require("./index-ByH4hihL.cjs"),P=require("./modelComp-DY1RniW6.cjs"),$=require("vue-router"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=f.useMenuState(),{activeMenuPath:y}=f.storeToRefs(j),K=e.ref([{label:"角色名称",value:"",name:"a0"}]),Q=e.ref([{label:"查询"},{label:"重置"}]),T=e.reactive({isFilter:!1,filterForm:{}}),U=e.ref(!1),H=n=>{console.log("handleQueryChange",n),T.isFilter=!0,T.filterForm=n},u=e.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"角色名称"},{label:"角色状态",formType:"Radio",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"角色排序",formType:"Number"},{label:"权限",isHidden:!0},{label:"操作"}]},{key:"tableContents"}]),W=e.computed(()=>u.value),G=n=>{var o;u.value=(o=u.value)==null?void 0:o.map(t=>t.key==="tableContents"?{...t,contents:n.content}:t),console.log("handleItemDataChange",n),S(n.singleContent,n.buttonName)},L=n=>{var l,a,r;console.log("handleContentChange",n);const o=_.cloneDeep(n);let t=(a=(l=o==null?void 0:o.contents)==null?void 0:l.find(c=>c.key==="tableContents"))==null?void 0:a.contents;u.value=(r=u.value)==null?void 0:r.map(c=>c.key==="tableContents"?{...c,contents:t==null?void 0:t.map(s=>Object.keys(s).filter(g=>g.startsWith("a")).map(g=>s[g]))}:c),console.log("rawData",u.value)},D=e.ref({}),A=e.ref(),C=async(n,o)=>{var l,a;const t=await n(o);if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200)return t.data.result||((a=t==null?void 0:t.data)==null?void 0:a.code)===200},J=async(n,o)=>{var t,l,a;switch(console.log("clickRowButton",n,o,x.value),D.value=_.cloneDeep(o),n){case"授权":w.show=!0;const r=(a=(l=(t=u.value)==null?void 0:t.find(s=>s.key==="header"))==null?void 0:l.contents)==null?void 0:a.findIndex(s=>s.label==="权限"),c=o["a"+r];(c==null?void 0:c.length)>0,console.log("clickRowButton-authorityIndex",u.value,c,A.value);break}},X=()=>{w.show=!1},m=e.ref(),Y=async n=>{const o=await C(b.getInsofDataApi,{key:{compKey:n}}),t=o==null?void 0:o.map(l=>{var a;return{id:l.id,rowData:(a=l==null?void 0:l.value)==null?void 0:a.rowData}});return console.log("tempRes",t),t==null?void 0:t.map(l=>{var a;if(Array.isArray(l==null?void 0:l.rowData)){let r={id:l.id};return(a=l==null?void 0:l.rowData)==null||a.forEach((c,s)=>{r[`a${s}`]=c}),r}else return{...l.rowData,id:l.id}})},S=(n,o)=>{o==="新增"?C(b.createInsofDataApi,{key:{compKey:y.value,rowKey:`${y.value}/${n.a0}`},value:{rowData:n}}).then(t=>{m.value={...n,newId:t},o&&t&&N.ElMessage.success(o+"成功")}):o==="编辑"?C(b.updateInsofDataApi,{key:{compKey:y.value,rowKey:`${y.value}/${n.a0}`},value:{rowData:n}}).then(t=>{o&&t&&N.ElMessage.success(o+"成功"),w.show=!1}):o==="删除"&&(console.log(222,n),C(b.deleteInsofDataApi,{id:n.id}).then(t=>{o&&t&&N.ElMessage.success(o+"成功")}))},I=n=>{let o=[];return n==null||n.forEach(t=>{t.checkedButtons&&(o=o.concat(t.checkedButtons)),t.children&&(o=o.concat(I(t.children)))}),o},Z=()=>{var o,t,l,a;(o=A.value)==null||o.getCheckedKeys();const n=(a=(l=(t=u.value)==null?void 0:t.find(r=>r.key==="header"))==null?void 0:l.contents)==null?void 0:a.findIndex(r=>r.label==="权限");console.log(122,D.value,I(x.value)),m.value={...D.value,["a"+n]:I(x.value)},e.nextTick(()=>{var r,c;(c=(r=u.value)==null?void 0:r.find(s=>s.key==="tableContents"))==null||c.contents,console.log("clickSubmitAuthority",m.value,u.value),S(m.value,"编辑")})},w=e.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),ee=({isPenultimate:n})=>n?"is-penultimate":"",x=e.ref([]),te=e.ref([{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),oe=(n,o)=>{var t;n.checkedButtons=o?(t=n.renderButtons)==null?void 0:t.map(l=>l.path):[],console.log("handleNodeCheckChange",n,o)};e.ref([]);const ne=(n,o)=>{o.checkedButtons=n,console.log("handleNodeBtnChange",o)},q=(n,o)=>{if(Array.isArray(n))return n==null?void 0:n.map(t=>t.children&&t.children.length>0?{...t,renderButtons:t.carryData?o==null?void 0:o.map(l=>({title:l,path:t.path+"/"+l})):[],checkedButtons:[],children:q(t.children,o)}:{...t,renderButtons:t.carryData?o==null?void 0:o.map(l=>({title:l,path:t.path+"/"+l})):[],checkedButtons:[]})},E=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:q,authorizeDialog:w,buttonValue:Q,changedRow:m,clickRow:D,clickRowButton:J,clickSubmitAuthority:Z,closeAuthorizeDialog:X,customNodeClass:ee,getPageDataAsync:Y,handleContentChange:L,handleItemDataChange:G,handleNodeBtnChange:ne,handleNodeCheckChange:oe,handleQueryChange:H,handleSubmitAsync:C,isPageDataExist:U,menuData:x,menusButtons:te,pageData:u,pageDataFiltered:W,queryFormData:K,submitTableAsyncByVerify:S,treeRef:A},Symbol.toStringTag,{value:"Module"})),ae={class:"role-wrapper"},le={class:"role-dialog-header"},ce={class:"node-text"},re={class:"dialog-footer"},se=e.defineComponent({__name:"index",setup(n){const o=f.useMenuState(),{menus:t,activeMenuPath:l}=f.storeToRefs(o),a=e.reactive({...E}),{treeRef:r}=E,c=P.useModelComp(),{itemData:s}=f.storeToRefs(c),g=$.useRoute();return e.onMounted(()=>{console.log("state",a);const h=_.cloneDeep(s.value),i={comp:"Group",name:g.path,pageData:a.pageData};console.log(123,[...h,i]),c.setItemData([...h,i]),l.value&&a.getPageDataAsync(l.value).then(B=>{var k;a.pageData=(k=a.pageData)==null?void 0:k.map(p=>p.key==="tableContents"?{...p,contents:B}:p),console.log(111,a.pageData)})}),e.watch(()=>t.value,h=>{const i=_.cloneDeep(h);a.menuData=a.addButtonsToTree(i,["查询","新增","编辑","删除"]),console.log("menus123",a.menuData,h)},{immediate:!0,deep:!0}),(h,i)=>{const B=e.resolveComponent("el-checkbox"),k=e.resolveComponent("el-checkbox-group"),p=e.resolveComponent("el-tree"),R=e.resolveComponent("el-button"),M=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ae,[e.createVNode(F.ssForm,{class:"role-header",rowContents:a.queryFormData,isEnableWrap:!0,isEdit:!0,onChange:a.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(z.ssTable,{class:"role-body",itemData:a.pageDataFiltered,changedContent:a.changedRow,onChange:a.handleItemDataChange,onContentChange:a.handleContentChange,onOnButtonClick:a.clickRowButton},null,8,["itemData","changedContent","onChange","onContentChange","onOnButtonClick"])]),e.createVNode(M,{modelValue:a.authorizeDialog.show,"onUpdate:modelValue":i[0]||(i[0]=V=>a.authorizeDialog.show=V),width:a.authorizeDialog.width,draggable:a.authorizeDialog.draggable,"before-close":a.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",le,e.toDisplayString(a.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",re,[e.createVNode(R,{onClick:a.closeAuthorizeDialog},{default:e.withCtx(()=>i[1]||(i[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(R,{type:"primary",onClick:a.clickSubmitAuthority},{default:e.withCtx(()=>i[2]||(i[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(p,{class:"role-tree",ref_key:"treeRef",ref:r,data:a.menuData,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"",style:{height:"500px","overflow-y":"auto"},"check-on-click-leaf":!1,onCheckChange:a.handleNodeCheckChange},{default:e.withCtx(({node:V,data:v})=>[e.createElementVNode("span",ce,e.toDisplayString(V.label),1),e.createVNode(k,{modelValue:v.checkedButtons,"onUpdate:modelValue":d=>v.checkedButtons=d,onChange:d=>a.handleNodeBtnChange(d,v),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.renderButtons,d=>(e.openBlock(),e.createBlock(B,{key:d.title,label:d.title,value:d.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])],64)}}}),ue=O._export_sfc(se,[["__scopeId","data-v-9becc629"]]);exports.default=ue;
@@ -1,13 +1,13 @@
1
1
  import { ref as k, onMounted as ae, watch as J, createElementBlock as _, openBlock as m, Fragment as Y, renderList as Z, createElementVNode as N, createCommentVNode as M, toDisplayString as G, resolveComponent as F, createVNode as B, withCtx as H, createBlock as U, unref as S, resolveDynamicComponent as oe } from "vue";
2
- import { m as le, a as re, b as se } from "./index-b_11tfuG.js";
3
- import ce from "./index-BpJeYb4X.js";
4
- import { p as O, u as ue, a as ie } from "./index-smYHb1Ta.js";
2
+ import { m as le, a as re, b as se } from "./index-DbEFJXIu.js";
3
+ import ce from "./index-RUWVqYLT.js";
4
+ import { p as O, u as ue, a as ie } from "./index-CosMCnZD.js";
5
5
  import { u as ee } from "./modelComp-CHWFvhCq.js";
6
6
  import { u as te, s as R } from "./menu-BIINB-0Y.js";
7
- import { i as de, e as me, b as X, c as he, g as ve, a as fe } from "./array-DyxKeexo.js";
7
+ import { i as de, e as me, b as X, c as he, g as ve, a as fe } from "./array-B1nKYchL.js";
8
8
  import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js";
9
9
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { c as P } from "./cloneDeep-BfzU0pBe.js";
10
+ import { c as P } from "./cloneDeep-DDG2sYfV.js";
11
11
  const ye = { class: "bread-content" }, _e = ["onClick"], ge = { key: 0 }, Ce = {
12
12
  __name: "index",
13
13
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js";
1
+ import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Bwb6U8rC.js";
2
2
  import { resolveComponent as o, createBlock as a, openBlock as u, withCtx as r, createVNode as l, createElementVNode as i, toDisplayString as p } from "vue";
3
3
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  function M(e, _, d, f, C, y) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-WwDap0fL.cjs");/*! *****************************************************************************
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-BkHxCZQ6.cjs");/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any