ss-component-new 1.1.36 → 1.1.38

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.
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
@@ -6,8 +6,8 @@ function Et(t) {
6
6
  var n = !0;
7
7
  } catch {
8
8
  }
9
- var s = Ct.call(t);
10
- return n && (e ? t[w] = r : delete t[w]), s;
9
+ var c = Ct.call(t);
10
+ return n && (e ? t[w] = r : delete t[w]), c;
11
11
  }
12
12
  var It = Object.prototype, Mt = It.toString;
13
13
  function Dt(t) {
@@ -162,12 +162,12 @@ var vt = typeof exports == "object" && exports && !exports.nodeType && exports,
162
162
  }
163
163
  }(), Q = v && v.isTypedArray, Ke = Q ? L(Q) : Ve, We = Object.prototype, qe = We.hasOwnProperty;
164
164
  function Xe(t, e) {
165
- var r = N(t), n = !r && de(t), s = !r && !n && Tt(t), c = !r && !n && !s && Ke(t), i = r || n || s || c, _ = i ? pe(t.length, String) : [], g = _.length;
165
+ var r = N(t), n = !r && de(t), c = !r && !n && Tt(t), s = !r && !n && !c && Ke(t), i = r || n || c || s, _ = i ? pe(t.length, String) : [], g = _.length;
166
166
  for (var u in t)
167
167
  qe.call(t, u) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
168
168
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
169
- s && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
170
- c && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
169
+ c && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
170
+ s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
171
171
  ne(u, g))) && _.push(u);
172
172
  return _;
173
173
  }
@@ -310,8 +310,8 @@ $.prototype.get = vr;
310
310
  $.prototype.has = $r;
311
311
  $.prototype.set = mr;
312
312
  function wr(t, e) {
313
- for (var r = -1, n = e.length, s = t.length; ++r < n; )
314
- t[s + r] = e[r];
313
+ for (var r = -1, n = e.length, c = t.length; ++r < n; )
314
+ t[c + r] = e[r];
315
315
  return t;
316
316
  }
317
317
  var Ar = $t(Object.getPrototypeOf, Object);
@@ -354,11 +354,11 @@ function Mr(t, e) {
354
354
  return t.slice();
355
355
  }
356
356
  function Dr(t, e) {
357
- for (var r = -1, n = t == null ? 0 : t.length, s = 0, c = []; ++r < n; ) {
357
+ for (var r = -1, n = t == null ? 0 : t.length, c = 0, s = []; ++r < n; ) {
358
358
  var i = t[r];
359
- e(i, r, t) && (c[s++] = i);
359
+ e(i, r, t) && (s[c++] = i);
360
360
  }
361
- return c;
361
+ return s;
362
362
  }
363
363
  function Fr() {
364
364
  return [];
@@ -468,7 +468,7 @@ function Sn(t) {
468
468
  var pt = v && v.isSet, xn = pt ? L(pt) : Sn, wt = "[object Arguments]", Pn = "[object Array]", Cn = "[object Boolean]", En = "[object Date]", In = "[object Error]", At = "[object Function]", Mn = "[object GeneratorFunction]", Dn = "[object Map]", Fn = "[object Number]", Ot = "[object Object]", Un = "[object RegExp]", Bn = "[object Set]", zn = "[object String]", Gn = "[object Symbol]", Nn = "[object WeakMap]", Ln = "[object ArrayBuffer]", Rn = "[object DataView]", Vn = "[object Float32Array]", Hn = "[object Float64Array]", Kn = "[object Int8Array]", Wn = "[object Int16Array]", qn = "[object Int32Array]", Xn = "[object Uint8Array]", Yn = "[object Uint8ClampedArray]", Jn = "[object Uint16Array]", Zn = "[object Uint32Array]", a = {};
469
469
  a[wt] = a[Pn] = a[Ln] = a[Rn] = a[Cn] = a[En] = a[Vn] = a[Hn] = a[Kn] = a[Wn] = a[qn] = a[Dn] = a[Fn] = a[Ot] = a[Un] = a[Bn] = a[zn] = a[Gn] = a[Xn] = a[Yn] = a[Jn] = a[Zn] = !0;
470
470
  a[In] = a[At] = a[Nn] = !1;
471
- function C(t, e, r, n, s, c) {
471
+ function C(t, e, r, n, c, s) {
472
472
  var i;
473
473
  if (i !== void 0)
474
474
  return i;
@@ -481,42 +481,35 @@ function C(t, e, r, n, s, c) {
481
481
  var g = p(t), u = g == At || g == Mn;
482
482
  if (Tt(t))
483
483
  return Mr(t);
484
- if (g == Ot || g == wt || u && !s)
484
+ if (g == Ot || g == wt || u && !c)
485
485
  i = u ? {} : $n(t);
486
486
  else {
487
487
  if (!a[g])
488
- return s ? t : {};
488
+ return c ? t : {};
489
489
  i = vn(t, g);
490
490
  }
491
491
  }
492
- c || (c = new m());
493
- var V = c.get(t);
492
+ s || (s = new m());
493
+ var V = s.get(t);
494
494
  if (V)
495
495
  return V;
496
- c.set(t, i), xn(t) ? t.forEach(function(b) {
497
- i.add(C(b, e, r, b, t, c));
496
+ s.set(t, i), xn(t) ? t.forEach(function(b) {
497
+ i.add(C(b, e, r, b, t, s));
498
498
  }) : An(t) && t.forEach(function(b, d) {
499
- i.set(d, C(b, e, r, d, t, c));
499
+ i.set(d, C(b, e, r, d, t, s));
500
500
  });
501
501
  var St = Nr, H = _ ? void 0 : St(t);
502
502
  return te(H || t, function(b, d) {
503
- H && (d = b, b = t[d]), se(i, d, C(b, e, r, d, t, c));
503
+ H && (d = b, b = t[d]), se(i, d, C(b, e, r, d, t, s));
504
504
  }), i;
505
505
  }
506
506
  var Qn = 1, kn = 4;
507
507
  function ta(t) {
508
508
  return C(t, Qn | kn);
509
509
  }
510
- const ea = (t, e) => {
511
- const r = t.__vccOpts || t;
512
- for (const [n, s] of e)
513
- r[n] = s;
514
- return r;
515
- };
516
510
  export {
517
511
  $ as M,
518
512
  T as S,
519
- ea as _,
520
513
  N as a,
521
514
  x as b,
522
515
  ta as c,
@@ -1,7 +1,8 @@
1
1
  import { getCurrentInstance as rt, inject as tt, ref as R, computed as X, unref as M, readonly as Vo, getCurrentScope as Fo, onScopeDispose as zo, onMounted as wt, nextTick as nt, watch as we, isRef as Lo, warn as Yo, provide as jo, defineComponent as Ge, createElementBlock as P, openBlock as _, mergeProps as Zn, renderSlot as ce, normalizeClass as Me, createVNode as he, Transition as Jn, withCtx as F, withDirectives as qn, createElementVNode as ae, normalizeStyle as ue, createTextVNode as ht, toDisplayString as ge, vShow as Qn, shallowReactive as Wo, createBlock as Y, createCommentVNode as q, resolveDynamicComponent as at, Fragment as me, withModifiers as Uo, isVNode as eo, render as _n, resolveComponent as Q, renderList as be, createSlots as to, normalizeProps as Ho, guardReactiveProps as Xo } from "vue";
2
2
  import { i as Go, a as Ko, w as Zo, b as Jo, e as qo, f as wn, h as Qo } from "./menu-oGClEGzK.js";
3
- import { i as er, b as tr, a as sn, S as En, M as no, _ as Ke, c as Wt } from "./_plugin-vue_export-helper-B7R8Jogt.js";
4
- import nr from "./index-BvoThyOF.js";
3
+ import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { i as er, b as tr, a as sn, S as En, M as no, c as Wt } from "./cloneDeep-BM4uyVh0.js";
5
+ import nr from "./index-B8-IVIQ5.js";
5
6
  /**!
6
7
  * Sortable 1.15.6
7
8
  * @author RubaXa <trash@rubaxa.org>
@@ -2872,7 +2873,7 @@ const Ao = $a(lt, "$message"), ii = {
2872
2873
  }, 8, ["modelValue"]);
2873
2874
  };
2874
2875
  }
2875
- }, Ro = /* @__PURE__ */ Ke(gi, [["__scopeId", "data-v-c1c693d0"]]), Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2876
+ }, Ro = /* @__PURE__ */ Ke(gi, [["__scopeId", "data-v-c1c693d0"]]), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2876
2877
  __proto__: null,
2877
2878
  default: Ro
2878
2879
  }, Symbol.toStringTag, { value: "Module" })), mi = {
@@ -3229,7 +3230,7 @@ const Ao = $a(lt, "$message"), ii = {
3229
3230
  function bn(t) {
3230
3231
  return Ii[t.toUpperCase()] || null;
3231
3232
  }
3232
- const el = (t) => t.match(/\((.*)\)/)[1], ki = (t) => {
3233
+ const tl = (t) => t.match(/\((.*)\)/)[1], ki = (t) => {
3233
3234
  try {
3234
3235
  return No(t).format("YYYY-MM-DD") !== "Invalid Date";
3235
3236
  } catch {
@@ -3740,7 +3741,7 @@ export {
3740
3741
  Ao as E,
3741
3742
  Di as a,
3742
3743
  Bo as b,
3743
- el as f,
3744
- Qi as i,
3744
+ tl as f,
3745
+ el as i,
3745
3746
  Gi as s
3746
3747
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, onMounted as A, resolveComponent as l, createElementBlock as _, openBlock as o, Fragment as d, renderList as m, createBlock as r, withCtx as s, createVNode as I, createSlots as b, renderSlot as u, mergeProps as O, computed as S } from "vue";
2
2
  import { u as q, s as E } from "./menu-oGClEGzK.js";
3
- import { _ as F } from "./_plugin-vue_export-helper-B7R8Jogt.js";
3
+ import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = /* @__PURE__ */ g({
5
5
  __name: "menuItem",
6
6
  props: {
@@ -1,5 +1,6 @@
1
1
  import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
2
- import { _ as Lb, c as Ki } from "./_plugin-vue_export-helper-B7R8Jogt.js";
2
+ import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { c as Ki } from "./cloneDeep-BM4uyVh0.js";
3
4
  /*! *****************************************************************************
4
5
  Copyright (c) Microsoft Corporation.
5
6
 
@@ -44004,7 +44005,7 @@ const d7 = {
44004
44005
  pL(g7, { optionContents: t.value }, null, 8, ["optionContents"])
44005
44006
  ]));
44006
44007
  }
44007
- }, w7 = /* @__PURE__ */ Lb(_7, [["__scopeId", "data-v-0440fac3"]]);
44008
+ }, b7 = /* @__PURE__ */ Lb(_7, [["__scopeId", "data-v-0440fac3"]]);
44008
44009
  export {
44009
- w7 as default
44010
+ b7 as default
44010
44011
  };
@@ -1,10 +1,11 @@
1
- import { defineAsyncComponent as j, computed as E, onMounted as O, resolveComponent as A, createBlock as C, openBlock as b, withCtx as F, resolveDynamicComponent as B, defineComponent as U, ref as $, watch as G, createVNode as V, createElementVNode as q, toDisplayString as z } from "vue";
2
- import { E as y, u as H, s as v } from "./menu-oGClEGzK.js";
1
+ import { defineAsyncComponent as j, computed as $, onMounted as O, resolveComponent as A, createBlock as C, openBlock as b, withCtx as F, resolveDynamicComponent as B, defineComponent as U, ref as T, watch as G, createVNode as V, createElementVNode as q, toDisplayString as z } from "vue";
2
+ import { E as y, u as H, s as E } from "./menu-oGClEGzK.js";
3
3
  import { u as J } from "./modelComp-CqA1NVfH.js";
4
- import { c as _, _ as K } from "./_plugin-vue_export-helper-B7R8Jogt.js";
5
- const D = j(() => import("./index-BvoThyOF.js"));
6
- D.install = (r) => {
7
- r.component("ssMenu", D);
4
+ import { c as _ } from "./cloneDeep-BM4uyVh0.js";
5
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const v = j(() => import("./index-B8-IVIQ5.js"));
7
+ v.install = (r) => {
8
+ r.component("ssMenu", v);
8
9
  };
9
10
  const Q = {
10
11
  __name: "index",
@@ -12,7 +13,7 @@ const Q = {
12
13
  name: String
13
14
  },
14
15
  setup(r) {
15
- const c = r, p = E(() => y[c.name]);
16
+ const c = r, p = $(() => y[c.name]);
16
17
  return O(() => {
17
18
  const m = Object.keys(y);
18
19
  console.log("iconComponent", p.value, c.name, y, m);
@@ -29,11 +30,11 @@ const Q = {
29
30
  }, W = U({
30
31
  name: "menu",
31
32
  components: {
32
- ssMenu: D,
33
+ ssMenu: v,
33
34
  DynamicIcon: Q
34
35
  },
35
36
  setup() {
36
- const r = H(), c = J(), { rawMenu: p, menuTriggerType: m } = v(r), { itemData: f } = v(c), d = $([]);
37
+ const r = H(), c = J(), { rawMenu: p, menuTriggerType: m } = E(r), { itemData: f } = E(c), d = T([]);
37
38
  let M;
38
39
  ((e) => {
39
40
  e[e.Menu = 0] = "Menu", e[e.FolderOpened = 1] = "FolderOpened";
@@ -48,8 +49,8 @@ const Q = {
48
49
  e == null || e.forEach((t) => {
49
50
  Array.isArray(t) ? s.push({ children: h(t, []) }) : s.push({ title: t });
50
51
  });
51
- let u = s.reduce((t, a) => (Object.entries(a).forEach(([i, l]) => {
52
- t[i] === void 0 ? l != null && l.title ? t[i] = [l] : t[i] = l : (Array.isArray(t[i]) || (t[i] = [{ title: t[i] }]), l != null && l.title ? t[i].push({ title: l == null ? void 0 : l.title }) : Array.isArray(l) ? t[i].push(l) : t[i].push({ title: l }));
52
+ let u = s.reduce((t, a) => (Object.entries(a).forEach(([l, i]) => {
53
+ t[l] === void 0 ? i != null && i.title ? t[l] = [i] : t[l] = i : (Array.isArray(t[l]) || (t[l] = [{ title: t[l] }]), i != null && i.title || Array.isArray(i) ? t[l].push(i) : t[l].push({ title: i }));
53
54
  }), t), {});
54
55
  return u = I(_(u)), n.push(u), Array.isArray(n) && (n == null ? void 0 : n.length) > 1 ? n : n == null ? void 0 : n[0];
55
56
  }, I = (e) => {
@@ -62,24 +63,24 @@ const Q = {
62
63
  var u;
63
64
  return (u = s == null ? void 0 : s.title) != null && u.children ? s == null ? void 0 : s.title : s;
64
65
  }), o;
65
- }, S = (e, o = "", n = 0) => {
66
+ }, D = (e, o = "", n = 0) => {
66
67
  var t;
67
68
  const s = _(f.value), u = (t = s == null ? void 0 : s.filter((a) => {
68
- var i;
69
- return ((i = a.comp) == null ? void 0 : i.toUpperCase()) === "GROUP";
69
+ var l;
70
+ return ((l = a.comp) == null ? void 0 : l.toUpperCase()) === "GROUP";
70
71
  })) == null ? void 0 : t.map((a) => a.name);
71
72
  return e == null ? void 0 : e.map((a) => {
72
- const i = o ? `${o}/${a.title}` : a.title, l = {
73
+ const l = o ? `${o}/${a.title}` : a.title, i = {
73
74
  ...a,
74
- path: i,
75
+ path: l,
75
76
  level: n,
76
77
  icon: M[`${n}`],
77
- carryData: u == null ? void 0 : u.includes(i)
78
+ carryData: u == null ? void 0 : u.includes(l)
78
79
  };
79
- return a.children && a.children.length > 0 && (l.children = S(a.children, i, n + 1)), l;
80
+ return a.children && a.children.length > 0 && (i.children = D(a.children, l, n + 1)), i;
80
81
  });
81
- }, T = E(() => {
82
- const e = S(d.value);
82
+ }, S = $(() => {
83
+ const e = D(d.value);
83
84
  return console.log("temps", e), r.setMenus(e), e;
84
85
  }), k = (e) => {
85
86
  console.log("clickMenu", e), r.setMenuTriggerType("click"), r.setActiveMenuPath(e == null ? void 0 : e.path);
@@ -87,7 +88,7 @@ const Q = {
87
88
  m.value === "click" ? r.setActiveMenuPath(e) : r.setMenuTriggerType("click");
88
89
  }, L = (e) => {
89
90
  r.setActiveMenuPath(e);
90
- }, N = $([
91
+ }, N = T([
91
92
  {
92
93
  name: "--ssComponent-menu-bg",
93
94
  value: "#426ec4"
@@ -124,13 +125,13 @@ const Q = {
124
125
  var o, n, s;
125
126
  if (e) {
126
127
  const u = (s = (n = (o = _(e)) == null ? void 0 : o.compData) == null ? void 0 : n[0]) == null ? void 0 : s.contents;
127
- d.value = g(u), console.log("rawMenu", T.value);
128
+ d.value = g(u), console.log("rawMenu", S.value);
128
129
  } else
129
130
  r.setActiveMenuPath("");
130
131
  }, {
131
132
  immediate: !0
132
133
  }), {
133
- renderMenuList: T,
134
+ renderMenuList: S,
134
135
  clickMenu: k,
135
136
  openMenu: w,
136
137
  closeMenu: L,
@@ -157,7 +158,7 @@ function X(r, c, p, m, f, d) {
157
158
  _: 1
158
159
  }, 8, ["menuList", "onClickMenu", "onOpenMenu", "onCloseMenu", "onChangeMenuStyle"]);
159
160
  }
160
- const ne = /* @__PURE__ */ K(W, [["render", X], ["__scopeId", "data-v-dc84a8f7"]]);
161
+ const se = /* @__PURE__ */ K(W, [["render", X], ["__scopeId", "data-v-dc84a8f7"]]);
161
162
  export {
162
- ne as default
163
+ se as default
163
164
  };
@@ -0,0 +1,14 @@
1
+ import { resolveComponent as o, createBlock as t, openBlock as r } from "vue";
2
+ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const n = {
4
+ __name: "index",
5
+ setup(c) {
6
+ return (p, s) => {
7
+ const e = o("router-view");
8
+ return r(), t(e);
9
+ };
10
+ }
11
+ }, i = /* @__PURE__ */ _(n, [["__scopeId", "data-v-f49b26ea"]]);
12
+ export {
13
+ i as default
14
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as u, ref as e, resolveComponent as a, createBlock as _, openBlock as f, withCtx as o, createVNode as v, renderSlot as s } from "vue";
2
+ const C = /* @__PURE__ */ u({
3
+ __name: "index",
4
+ props: {
5
+ name: {
6
+ // 注意prop变量类型定义的写法:PropType
7
+ type: String,
8
+ default: ""
9
+ }
10
+ },
11
+ setup(c) {
12
+ const i = e("left"), t = e(""), p = e(!1);
13
+ return (n, l) => {
14
+ const m = a("el-collapse-item"), r = a("el-collapse");
15
+ return f(), _(r, {
16
+ "expand-icon-position": i.value,
17
+ modelValue: t.value,
18
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => t.value = d),
19
+ accordion: p.value
20
+ }, {
21
+ default: o(() => [
22
+ v(m, {
23
+ title: "Consistency",
24
+ name: c.name
25
+ }, {
26
+ title: o(() => [
27
+ s(n.$slots, "title")
28
+ ]),
29
+ default: o(() => [
30
+ s(n.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 8, ["name"])
34
+ ]),
35
+ _: 3
36
+ }, 8, ["expand-icon-position", "modelValue", "accordion"]);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ C as _
42
+ };