ss-component-new 1.1.16 → 1.1.18

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, onMounted as A, resolveComponent as l, createElementBlock as d, openBlock as o, Fragment as m, renderList as M, createBlock as r, withCtx as s, createVNode as b, createSlots as g, renderSlot as u, mergeProps as O, computed as I } from "vue";
2
- import { u as R, s as q, _ as E } from "./menu-3a4UTvU1.js";
2
+ import { u as R, s as q, _ as E } from "./menu-hS9inuNL.js";
3
3
  const F = /* @__PURE__ */ S({
4
4
  __name: "menuItem",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent as B, computed as E, onMounted as F, resolveComponent as L, createBlock as f, openBlock as _, withCtx as S, resolveDynamicComponent as N, defineComponent as U, ref as G, watch as V, unref as q, createVNode as v, createElementVNode as z, toDisplayString as H } from "vue";
2
- import { E as M, u as J, s as C, c as D, _ as K } from "./menu-3a4UTvU1.js";
3
- import { u as Q } from "./modelComp-CFwQm9Yp.js";
4
- const A = B(() => import("./index-hjkvqVVf.js"));
2
+ import { E as M, u as J, s as C, c as D, _ as K } from "./menu-hS9inuNL.js";
3
+ import { u as Q } from "./modelComp-Eh2O6nl8.js";
4
+ const A = B(() => import("./index-BFdnTJMh.js"));
5
5
  A.install = (n) => {
6
6
  n.component("ssMenu", A);
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { ref as y, watch as M, createElementBlock as m, openBlock as u, createVNode as F, createCommentVNode as D, Fragment as K, renderList as L, createBlock as E, unref as N, toDisplayString as P, resolveDynamicComponent as W, createElementVNode as x } from "vue";
2
- import { p as j, u as Y, d as q, e as z, g as H, m as Q, a as X, b as Z, c as ee, s as te } from "./array-Dm3HqOxD.js";
3
- import { u as U } from "./modelComp-CFwQm9Yp.js";
4
- import { _ as O, u as R, s as A, c as I } from "./menu-3a4UTvU1.js";
5
- import ae from "./index-CeOZHsL0.js";
2
+ import { p as j, u as Y, d as q, e as z, g as H, m as Q, a as X, b as Z, c as ee, s as ae } from "./array-DLhSgLgc.js";
3
+ import { u as U } from "./modelComp-Eh2O6nl8.js";
4
+ import { _ as O, u as R, s as A, c as I } from "./menu-hS9inuNL.js";
5
+ import te from "./index-DM0qZDHo.js";
6
6
  const se = { class: "system-wrap" }, oe = {
7
7
  key: 0,
8
8
  class: "show-content"
@@ -17,15 +17,15 @@ const se = { class: "system-wrap" }, oe = {
17
17
  },
18
18
  emits: ["change"],
19
19
  setup(T, { emit: $ }) {
20
- const t = T, V = $, g = U(j);
20
+ const a = T, V = $, g = U(j);
21
21
  Y(j);
22
- const C = R(), { itemData: d } = A(g), p = q(j), { selectIndex: S } = A(p), { activeMenuPath: w, activeMenuOpenPaths: J, menuTriggerType: G } = A(C), v = y([]), _ = y([]), b = (a) => {
22
+ const C = R(), { itemData: d } = A(g), p = q(j), { selectIndex: S } = A(p), { activeMenuPath: w, activeMenuOpenPaths: J, menuTriggerType: G } = A(C), v = y([]), _ = y([]), b = (t) => {
23
23
  V("change", {
24
24
  wholeValue: v.value,
25
- editValue: a
25
+ editValue: t
26
26
  });
27
- }, B = (a) => {
28
- const r = I(v.value), l = r == null ? void 0 : r.map((e, s) => (s === (a == null ? void 0 : a.index) && (e.compData = a == null ? void 0 : a.contents), e));
27
+ }, B = (t) => {
28
+ const r = I(v.value), l = r == null ? void 0 : r.map((e, s) => (s === (t == null ? void 0 : t.index) && (e.compData = t == null ? void 0 : t.contents), e));
29
29
  v.value = l;
30
30
  };
31
31
  M(
@@ -33,51 +33,51 @@ const se = { class: "system-wrap" }, oe = {
33
33
  () => {
34
34
  var r, l, e, s, o, n, i, f;
35
35
  if (!d.value || ((r = d.value) == null ? void 0 : r.length) === 0) return;
36
- let a = null;
36
+ let t = null;
37
37
  if (!w.value)
38
- a = (e = (l = I(d.value)) == null ? void 0 : l.filter((h) => (h == null ? void 0 : h.comp) === "Group")) == null ? void 0 : e[0], C.setActiveMenuPath(a == null ? void 0 : a.name);
38
+ t = (e = (l = I(d.value)) == null ? void 0 : l.filter((h) => (h == null ? void 0 : h.comp) === "Group")) == null ? void 0 : e[0], C.setActiveMenuPath(t == null ? void 0 : t.name);
39
39
  else {
40
40
  const h = (s = I(d.value)) == null ? void 0 : s.filter((c) => (c == null ? void 0 : c.comp) === "Group");
41
- a = h == null ? void 0 : h.find((c) => c.name === w.value);
41
+ t = h == null ? void 0 : h.find((c) => c.name === w.value);
42
42
  }
43
- _.value = (n = (o = a == null ? void 0 : a.compData) == null ? void 0 : o[0]) == null ? void 0 : n.contents, v.value = (f = (i = a == null ? void 0 : a.compData) == null ? void 0 : i[0]) == null ? void 0 : f.contents, console.log("itemData监听", w.value, d.value);
43
+ _.value = (n = (o = t == null ? void 0 : t.compData) == null ? void 0 : o[0]) == null ? void 0 : n.contents, v.value = (f = (i = t == null ? void 0 : t.compData) == null ? void 0 : i[0]) == null ? void 0 : f.contents, console.log("itemData监听", w.value, d.value);
44
44
  },
45
45
  { deep: !0, immediate: !0 }
46
- ), M(() => w.value, (a) => {
46
+ ), M(() => w.value, (t) => {
47
47
  var r, l, e, s, o;
48
- if (console.log("点击-新-data2:", a), a) {
49
- const n = (r = I(d.value)) == null ? void 0 : r.find((i) => i.name === a);
50
- a && n ? (_.value = (e = (l = n == null ? void 0 : n.compData) == null ? void 0 : l[0]) == null ? void 0 : e.contents, v.value = (o = (s = n == null ? void 0 : n.compData) == null ? void 0 : s[0]) == null ? void 0 : o.contents, console.log("点击-新-data:", a, _.value)) : (_.value = [], v.value = []), p.setSelectIndex(""), p.setSelectMenu("");
48
+ if (console.log("点击-新-data2:", t), t) {
49
+ const n = (r = I(d.value)) == null ? void 0 : r.find((i) => i.name === t);
50
+ t && n ? (_.value = (e = (l = n == null ? void 0 : n.compData) == null ? void 0 : l[0]) == null ? void 0 : e.contents, v.value = (o = (s = n == null ? void 0 : n.compData) == null ? void 0 : s[0]) == null ? void 0 : o.contents, console.log("点击-新-data:", t, _.value)) : (_.value = [], v.value = []), p.setSelectIndex(""), p.setSelectMenu("");
51
51
  }
52
52
  }), M(
53
- () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
53
+ () => [a == null ? void 0 : a.content, a == null ? void 0 : a.jsonContents],
54
54
  () => {
55
55
  var e;
56
- if (((e = t == null ? void 0 : t.jsonContents) == null ? void 0 : e.length) > 0) {
57
- g.setOriginalData(t == null ? void 0 : t.jsonContents), g.setItemData(t == null ? void 0 : t.jsonContents);
56
+ if (((e = a == null ? void 0 : a.jsonContents) == null ? void 0 : e.length) > 0) {
57
+ g.setOriginalData(a == null ? void 0 : a.jsonContents), g.setItemData(a == null ? void 0 : a.jsonContents);
58
58
  return;
59
59
  }
60
- if (!(t != null && t.content) || (t == null ? void 0 : t.content) === "") return;
61
- const a = z(t == null ? void 0 : t.content);
62
- console.log("newViewContents", a);
63
- const r = Array.isArray(a) && (a == null ? void 0 : a.find((s) => {
60
+ if (!(a != null && a.content) || (a == null ? void 0 : a.content) === "") return;
61
+ const t = z(a == null ? void 0 : a.content);
62
+ console.log("newViewContents", t);
63
+ const r = Array.isArray(t) && (t == null ? void 0 : t.find((s) => {
64
64
  var o;
65
65
  return ((o = s.comp) == null ? void 0 : o.toUpperCase()) === "MENU";
66
66
  }));
67
67
  C.setRawMenu(r ?? {});
68
- const l = Array.isArray(a) && (a == null ? void 0 : a.find((s) => {
68
+ const l = Array.isArray(t) && (t == null ? void 0 : t.find((s) => {
69
69
  var o;
70
70
  return ((o = s.comp) == null ? void 0 : o.toUpperCase()) === "SYSTEM";
71
71
  }));
72
- C.setSystemKey((l == null ? void 0 : l.name) ?? ""), g.setOriginalData(a), g.setItemData(a);
72
+ C.setSystemKey((l == null ? void 0 : l.name) ?? ""), g.setOriginalData(t), g.setItemData(t);
73
73
  },
74
74
  { deep: !0, immediate: !0 }
75
75
  );
76
- const k = (a) => H(a);
77
- return (a, r) => {
76
+ const k = (t) => H(t);
77
+ return (t, r) => {
78
78
  var l;
79
79
  return u(), m("div", se, [
80
- F(ae, { class: "sys-aside" }),
80
+ F(te, { class: "sys-aside" }),
81
81
  ((l = _.value) == null ? void 0 : l.length) > 0 ? (u(), m("div", oe, [
82
82
  (u(!0), m(K, null, L(_.value, (e, s) => (u(), m("div", {
83
83
  class: "item-content",
@@ -97,7 +97,7 @@ const se = { class: "system-wrap" }, oe = {
97
97
  ]);
98
98
  };
99
99
  }
100
- }, re = /* @__PURE__ */ O(le, [["__scopeId", "data-v-941a4d4f"]]), ce = { class: "add-model-content" }, ue = {
100
+ }, re = /* @__PURE__ */ O(le, [["__scopeId", "data-v-979a28e7"]]), ce = { class: "add-model-content" }, ue = {
101
101
  key: 0,
102
102
  class: "model-import-data"
103
103
  }, ie = { class: "import-button" }, me = { key: 0 }, de = {
@@ -128,7 +128,7 @@ const se = { class: "system-wrap" }, oe = {
128
128
  },
129
129
  emits: ["change"],
130
130
  setup(T, { emit: $ }) {
131
- const t = T, V = $, g = y(""), C = y([]), d = y(0), p = U(j), S = R(j), { itemData: w, originalData: J } = A(p), { activeMenuPath: G } = A(S), v = y(null), _ = y(0), b = y(""), B = (e) => {
131
+ const a = T, V = $, g = y(""), C = y([]), d = y(0), p = U(j), S = R(j), { itemData: w, originalData: J } = A(p), { activeMenuPath: G } = A(S), v = y(null), _ = y(0), b = y(""), B = (e) => {
132
132
  var o, n, i;
133
133
  const s = (o = I(e == null ? void 0 : e.wholeValue)) == null ? void 0 : o.map((f) => {
134
134
  var h;
@@ -139,8 +139,8 @@ const se = { class: "system-wrap" }, oe = {
139
139
  currentContents: e == null ? void 0 : e.wholeValue,
140
140
  editContent: e == null ? void 0 : e.editValue,
141
141
  arrayToContents: s
142
- }), te(e == null ? void 0 : e.wholeValue, (n = e == null ? void 0 : e.editValue) == null ? void 0 : n.content, (i = e == null ? void 0 : e.editValue) == null ? void 0 : i.buttonName), console.log("change123", e == null ? void 0 : e.editValue, e == null ? void 0 : e.wholeValue);
143
- }, k = y([]), a = () => {
142
+ }), ae(e == null ? void 0 : e.wholeValue, (n = e == null ? void 0 : e.editValue) == null ? void 0 : n.content, (i = e == null ? void 0 : e.editValue) == null ? void 0 : i.buttonName), console.log("change123", e == null ? void 0 : e.editValue, e == null ? void 0 : e.wholeValue);
143
+ }, k = y([]), t = () => {
144
144
  v.value.click();
145
145
  }, r = (e) => {
146
146
  const s = e.target.files[0];
@@ -157,9 +157,9 @@ const se = { class: "system-wrap" }, oe = {
157
157
  }, o.readAsText(s);
158
158
  };
159
159
  M(
160
- () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
160
+ () => [a == null ? void 0 : a.content, a == null ? void 0 : a.jsonContents],
161
161
  () => {
162
- g.value = t == null ? void 0 : t.content, C.value = t == null ? void 0 : t.jsonContents;
162
+ g.value = a == null ? void 0 : a.content, C.value = a == null ? void 0 : a.jsonContents;
163
163
  },
164
164
  { deep: !0, immediate: !0 }
165
165
  ), M(
@@ -189,7 +189,7 @@ const se = { class: "system-wrap" }, oe = {
189
189
  return (e, s) => {
190
190
  var o;
191
191
  return u(), m("div", ce, [
192
- ((o = t == null ? void 0 : t.jsonContents) == null ? void 0 : o.length) === 0 && (t != null && t.showButton) ? (u(), m("div", ue, [
192
+ ((o = a == null ? void 0 : a.jsonContents) == null ? void 0 : o.length) === 0 && (a != null && a.showButton) ? (u(), m("div", ue, [
193
193
  x("div", ie, [
194
194
  x("input", {
195
195
  type: "file",
@@ -200,13 +200,13 @@ const se = { class: "system-wrap" }, oe = {
200
200
  style: { display: "none" }
201
201
  }, null, 544),
202
202
  x("button", {
203
- onClick: a,
203
+ onClick: t,
204
204
  class: "import-button-content"
205
205
  }, "导入文件"),
206
206
  b.value ? (u(), m("span", me, P(b.value), 1)) : D("", !0)
207
207
  ])
208
208
  ])) : D("", !0),
209
- (t == null ? void 0 : t.mode) === "edit" ? (u(), m("div", de, [
209
+ (a == null ? void 0 : a.mode) === "edit" ? (u(), m("div", de, [
210
210
  x("div", he, [
211
211
  F(Q)
212
212
  ]),
@@ -220,7 +220,7 @@ const se = { class: "system-wrap" }, oe = {
220
220
  F(Z)
221
221
  ])
222
222
  ])) : D("", !0),
223
- (t == null ? void 0 : t.mode) === "view" ? (u(), m("div", ve, [
223
+ (a == null ? void 0 : a.mode) === "view" ? (u(), m("div", ve, [
224
224
  (u(), E(re, {
225
225
  content: g.value,
226
226
  onChange: B,
@@ -231,10 +231,10 @@ const se = { class: "system-wrap" }, oe = {
231
231
  ]);
232
232
  };
233
233
  }
234
- }, fe = /* @__PURE__ */ O(_e, [["__scopeId", "data-v-073c3b72"]]), ye = {
234
+ }, fe = /* @__PURE__ */ O(_e, [["__scopeId", "data-v-c8a54bd8"]]), ye = {
235
235
  __name: "index",
236
236
  setup(T) {
237
- return ($, t) => (u(), E(fe, { class: "ssComponent" }));
237
+ return ($, a) => (u(), E(fe, { class: "ssComponent" }));
238
238
  }
239
239
  }, we = /* @__PURE__ */ O(ye, [["__scopeId", "data-v-f196ec9f"]]);
240
240
  export {