epic-designer-gold 0.0.46 → 0.0.48

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 (45) hide show
  1. package/dist/{attributeView-NViG1QIW.cjs → attributeView-CMbZBZIS.cjs} +1 -1
  2. package/dist/{attributeView-DtpDKBv3.js → attributeView-DvYRuXDB.js} +1 -1
  3. package/dist/{index-CEWzIISV.cjs → index-2_PG24En.cjs} +1 -1
  4. package/dist/{index-Cr0fs3qQ.cjs → index-3oFTJubt.cjs} +1 -1
  5. package/dist/{index-orcBQmhb.cjs → index-BIfS14i1.cjs} +1 -1
  6. package/dist/{index-CwevnKNM.js → index-BizWKLWZ.js} +1 -1
  7. package/dist/{index-D1mKcGjX.js → index-Bjj1uygU.js} +1 -1
  8. package/dist/{index-B0mkrnRU.cjs → index-BsyFZeFI.cjs} +1 -1
  9. package/dist/{index-Cbdo388f.cjs → index-C8eSqkwT.cjs} +1 -1
  10. package/dist/index-CqirvAEP.js +4 -0
  11. package/dist/index-CtK_8YxJ.cjs +10 -0
  12. package/dist/{index-Xym112zw.js → index-D0xByXxW.js} +1 -1
  13. package/dist/index-DEPx91yu.cjs +1 -0
  14. package/dist/{index-DXzERji1.js → index-DiYy4kUz.js} +65 -63
  15. package/dist/index-Dy65ngnp.js +1633 -0
  16. package/dist/{index-DgI4MFJ_.cjs → index-FUj4O0Wm.cjs} +1 -1
  17. package/dist/{index-0zDuNn0Q.js → index-JhxJizMR.js} +171 -171
  18. package/dist/{index-Deui5A5E.js → index-SmoMBzHL.js} +1 -1
  19. package/dist/{index-CeB5DFBE.js → index-WBW2xl-M.js} +1 -1
  20. package/dist/index-YV7i1gyI.cjs +1 -0
  21. package/dist/{index-QyL4F13K.js → index-ijn3b5rF.js} +1 -1
  22. package/dist/{index-B3SPoHbr.cjs → index-zyeRTxj7.cjs} +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/{sign-CJJd-ctq.js → sign-BRchUdJt.js} +29 -29
  26. package/dist/sign-CnQtsTLr.cjs +1 -0
  27. package/dist/style.css +1 -1
  28. package/dist/{styleView-B-yx1iR4.js → styleView-BbQxI-Nr.js} +1 -1
  29. package/dist/{styleView-BD_oQt7b.cjs → styleView-CF34Ddn9.cjs} +1 -1
  30. package/dist/ui/elementPlus/index.cjs +1 -1
  31. package/dist/ui/elementPlus/index.js +3 -3
  32. package/dist/uploadFile-CYDDVa_x.js +76 -0
  33. package/dist/uploadFile-eWBMdZ9d.cjs +1 -0
  34. package/dist/{uploadImage-Bi0bWSnb.js → uploadImage-742IA7ei.js} +29 -27
  35. package/dist/uploadImage-BXcN2FA_.cjs +1 -0
  36. package/package.json +1 -1
  37. package/dist/index-BYMDoYaj.js +0 -4
  38. package/dist/index-BenbgJD8.cjs +0 -1
  39. package/dist/index-CLpKjuat.cjs +0 -10
  40. package/dist/index-W-UeQAtk.js +0 -1613
  41. package/dist/index-zASDVLOl.cjs +0 -1
  42. package/dist/sign-Bfrdd-6m.cjs +0 -1
  43. package/dist/uploadFile-BU5cBhab.js +0 -67
  44. package/dist/uploadFile-z7Ko58XG.cjs +0 -1
  45. package/dist/uploadImage-DoBUv8Bc.cjs +0 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as w, inject as T, resolveComponent as j, openBlock as v, createBlock as I, unref as r, isRef as E, withCtx as D, createElementVNode as p, normalizeClass as z, createVNode as m, createCommentVNode as A, createElementBlock as g, ref as J, reactive as B, onMounted as K, watch as L, provide as P, Fragment as R, renderList as F, toDisplayString as q, withDirectives as G, vShow as H, createTextVNode as Q } from "vue";
2
- import { d as W } from "./vuedraggable.umd-D2S7Eo7p.js";
3
- import { p as f, E as X, a as Y, b as $ } from "./js.cookie-oHpRFPCO.js";
1
+ import { defineComponent as D, inject as j, resolveComponent as J, openBlock as v, createBlock as I, unref as r, isRef as E, withCtx as z, createElementVNode as p, normalizeClass as M, createVNode as m, createCommentVNode as A, createElementBlock as g, ref as K, reactive as B, onMounted as L, watch as P, provide as R, Fragment as F, renderList as q, toDisplayString as G, withDirectives as H, vShow as Q, createTextVNode as W } from "vue";
2
+ import { d as X } from "./vuedraggable.umd-D2S7Eo7p.js";
3
+ import { p as f, E as $, a as Y, b as w } from "./js.cookie-oHpRFPCO.js";
4
4
  import { _ as S } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
5
- import { n as N } from "./index-W-UeQAtk.js";
5
+ import { n as N } from "./index-Dy65ngnp.js";
6
6
  import { ElMessage as Z } from "element-plus";
7
7
  import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const le = {
9
9
  key: 0,
10
10
  class: "pl-4"
11
- }, te = /* @__PURE__ */ w({
11
+ }, te = /* @__PURE__ */ D({
12
12
  name: "EOptionItem",
13
13
  __name: "optionItem",
14
14
  props: {
@@ -16,22 +16,22 @@ const le = {
16
16
  },
17
17
  emits: ["update:modelValue"],
18
18
  setup(y, { emit: k }) {
19
- const C = y, b = f.getComponent("input"), c = T("tree", !1), s = N(C, "modelValue", k);
20
- function x(n) {
19
+ const C = y, b = f.getComponent("input"), c = j("tree", !1), s = N(C, "modelValue", k);
20
+ function x(t) {
21
21
  const d = {
22
22
  label: "",
23
23
  value: ""
24
24
  };
25
- n.children ? n.children.push(d) : n.children = [d];
25
+ t.children ? t.children.push(d) : t.children = [d];
26
26
  }
27
- function o(n) {
28
- s.value = s.value.filter((d, V) => V !== n);
27
+ function o(t) {
28
+ s.value = s.value.filter((d, V) => V !== t);
29
29
  }
30
- return (n, d) => {
31
- const V = j("EOptionItem");
32
- return v(), I(r(W), {
30
+ return (t, d) => {
31
+ const V = J("EOptionItem");
32
+ return v(), I(r(X), {
33
33
  modelValue: r(s),
34
- "onUpdate:modelValue": d[0] || (d[0] = (a) => E(s) ? s.value = a : null),
34
+ "onUpdate:modelValue": d[0] || (d[0] = (n) => E(s) ? s.value = n : null),
35
35
  "item-key": "id",
36
36
  "component-data": {
37
37
  type: "transition-group"
@@ -40,34 +40,34 @@ const le = {
40
40
  handle: ".handle",
41
41
  animation: 200
42
42
  }, {
43
- item: D(({ element: a, index: _ }) => [
43
+ item: z(({ element: n, index: _ }) => [
44
44
  p("div", null, [
45
45
  p("div", {
46
- class: z([r(c) ? "grid-cols-[16px_auto_auto_16px_16px]" : "grid-cols-[16px_auto_auto_16px]", "option-item text-16px grid text-$epic-text-secondary gap-2 items-center mb-2"])
46
+ class: M([r(c) ? "grid-cols-[16px_auto_auto_16px_16px]" : "grid-cols-[16px_auto_auto_16px]", "option-item text-16px grid text-$epic-text-secondary gap-2 items-center mb-2"])
47
47
  }, [
48
48
  m(r(S), {
49
49
  class: "mr-2 cursor-move handle",
50
50
  name: "icon--epic--drag"
51
51
  }),
52
52
  m(r(b), {
53
- modelValue: a.label,
54
- "onUpdate:modelValue": (i) => a.label = i,
55
- value: a.label,
56
- "onUpdate:value": (i) => a.label = i,
53
+ modelValue: n.label,
54
+ "onUpdate:modelValue": (i) => n.label = i,
55
+ value: n.label,
56
+ "onUpdate:value": (i) => n.label = i,
57
57
  placeholder: "label"
58
58
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
59
59
  m(r(b), {
60
- modelValue: a.value,
61
- "onUpdate:modelValue": (i) => a.value = i,
62
- value: a.value,
63
- "onUpdate:value": (i) => a.value = i,
60
+ modelValue: n.value,
61
+ "onUpdate:modelValue": (i) => n.value = i,
62
+ value: n.value,
63
+ "onUpdate:value": (i) => n.value = i,
64
64
  placeholder: "value"
65
65
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
66
66
  r(c) ? (v(), I(r(S), {
67
67
  key: 0,
68
68
  class: "cursor-pointer text-lg!",
69
69
  name: "icon--epic--add-rounded",
70
- onClick: (i) => x(a)
70
+ onClick: (i) => x(n)
71
71
  }, null, 8, ["onClick"])) : A("", !0),
72
72
  m(r(S), {
73
73
  class: "hover:text-red cursor-pointer",
@@ -75,10 +75,10 @@ const le = {
75
75
  onClick: (i) => o(_)
76
76
  }, null, 8, ["onClick"])
77
77
  ], 2),
78
- a.children ? (v(), g("div", le, [
78
+ n.children ? (v(), g("div", le, [
79
79
  m(V, {
80
- modelValue: a.children,
81
- "onUpdate:modelValue": (i) => a.children = i
80
+ modelValue: n.children,
81
+ "onUpdate:modelValue": (i) => n.children = i
82
82
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
83
83
  ])) : A("", !0)
84
84
  ])
@@ -87,7 +87,7 @@ const le = {
87
87
  }, 8, ["modelValue"]);
88
88
  };
89
89
  }
90
- }), ae = { class: "" }, ne = { class: "epic-tabs-box" }, oe = ["title", "onClick"], re = { key: 0 }, ie = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ue = { key: 1 }, se = /* @__PURE__ */ w({
90
+ }), ae = { class: "" }, ne = { class: "epic-tabs-box" }, oe = ["title", "onClick"], re = { key: 0 }, ie = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ue = { key: 1 }, se = /* @__PURE__ */ D({
91
91
  __name: "index",
92
92
  props: {
93
93
  tree: { type: Boolean },
@@ -97,37 +97,39 @@ const le = {
97
97
  },
98
98
  emits: ["update:modelValue", "update:EOptionsEditor"],
99
99
  setup(y, { emit: k }) {
100
- const C = f.getComponent("button"), b = f.getComponent("select"), c = J([]), h = B({
100
+ const C = f.getComponent("button"), b = f.getComponent("select"), c = K([]), h = B({
101
101
  title: "静态"
102
102
  }), s = y, x = k;
103
- X.on("updateSource", (l) => {
103
+ $.on("deleteSourceData", (l) => {
104
+ t.value === l && (t.value = "", o.value = []);
105
+ }), $.on("updateSource", (l) => {
104
106
  c.value = f.sourceData.map((e) => ({
105
107
  ...e,
106
108
  label: e.apiName,
107
109
  value: e.id
108
- })), _(n.value);
109
- }), K(() => {
110
+ })), _(t.value);
111
+ }), L(() => {
110
112
  c.value = f.sourceData.map((l) => ({
111
113
  ...l,
112
114
  label: l.apiName,
113
115
  value: l.id
114
- })), _(n.value);
116
+ })), _(t.value);
115
117
  });
116
- const o = N(s, "modelValue", x), n = N(s, "dynamicId", x);
118
+ const o = N(s, "modelValue", x), t = N(s, "dynamicId", x);
117
119
  function d(l, e, u) {
118
- return l && Object.prototype.toString.call(l) === "[object Array]" ? l.map((t) => t.children && t.children.length ? {
119
- label: t[e],
120
- value: t[u] + "",
121
- children: d(t.children, e, u)
120
+ return l && Object.prototype.toString.call(l) === "[object Array]" ? l.map((a) => a.children && a.children.length ? {
121
+ label: a[e],
122
+ value: a[u] + "",
123
+ children: d(a.children, e, u)
122
124
  } : {
123
- label: t[e],
124
- value: t[u] + ""
125
+ label: a[e],
126
+ value: a[u] + ""
125
127
  }) : (Z.info("请检查数据位置是否配置准确"), []);
126
128
  }
127
- L(
128
- () => n.value,
129
+ P(
130
+ () => t.value,
129
131
  async () => {
130
- n.value ? h.title = "动态" : h.title = "静态";
132
+ t.value ? h.title = "动态" : h.title = "静态";
131
133
  },
132
134
  {
133
135
  immediate: !0
@@ -141,8 +143,8 @@ const le = {
141
143
  title: "动态"
142
144
  }
143
145
  ];
144
- async function a(l) {
145
- h.title = l.title, l.title === "静态" ? (o.value = [], n.value = "") : (o.value = [], c.value = f.sourceData.map((e) => ({
146
+ async function n(l) {
147
+ h.title = l.title, l.title === "静态" ? (o.value = [], t.value = "") : (o.value = [], c.value = f.sourceData.map((e) => ({
146
148
  ...e,
147
149
  label: e.apiName,
148
150
  value: e.id
@@ -159,19 +161,19 @@ const le = {
159
161
  data: e != null && e.data ? JSON.parse(e == null ? void 0 : e.data) : {},
160
162
  headers: e != null && e.header ? {
161
163
  ...JSON.parse(e == null ? void 0 : e.header),
162
- Authorization: "Bearer " + $.get("Admin-Token")
164
+ Authorization: "Bearer " + w.get("Admin-Token")
163
165
  } : {
164
- Authorization: "Bearer " + $.get("Admin-Token")
166
+ Authorization: "Bearer " + w.get("Admin-Token")
165
167
  }
166
168
  });
167
169
  if (e && (e != null && e.dataPath)) {
168
- const U = e.dataPath.split(".").reduce((O, M) => O[M], u.data);
170
+ const U = e.dataPath.split(".").reduce((O, T) => O[T], u.data);
169
171
  o.value = d(U, e.dataKey, e.dataValue);
170
172
  } else
171
173
  o.value = d(u.data, e.dataKey, e.dataValue);
172
174
  }
173
175
  }
174
- s.modelValue, P("tree", s.tree);
176
+ s.modelValue, R("tree", s.tree);
175
177
  function i() {
176
178
  const l = B({
177
179
  label: "",
@@ -184,32 +186,32 @@ const le = {
184
186
  return v(), g("div", ae, [
185
187
  p("div", null, [
186
188
  p("div", ne, [
187
- (v(), g(R, null, F(V, (t, U) => p("div", {
188
- class: z(["epic-tab cursor-pointer truncate", { checked: h.title === t.title }]),
189
+ (v(), g(F, null, q(V, (a, U) => p("div", {
190
+ class: M(["epic-tab cursor-pointer truncate", { checked: h.title === a.title }]),
189
191
  key: U,
190
- title: t.title,
191
- onClick: (O) => a(t)
192
- }, q(t.title), 11, oe)), 64))
192
+ title: a.title,
193
+ onClick: (O) => n(a)
194
+ }, G(a.title), 11, oe)), 64))
193
195
  ]),
194
196
  h.title === "静态" ? (v(), g("div", re, [
195
- G(p("div", ie, "暂无选项", 512), [
196
- [H, !((u = r(o)) != null && u.length)]
197
+ H(p("div", ie, "暂无选项", 512), [
198
+ [Q, !((u = r(o)) != null && u.length)]
197
199
  ]),
198
200
  m(te, {
199
201
  modelValue: r(o),
200
- "onUpdate:modelValue": e[0] || (e[0] = (t) => E(o) ? o.value = t : null)
202
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => E(o) ? o.value = a : null)
201
203
  }, null, 8, ["modelValue"]),
202
204
  m(r(C), { onClick: i }, {
203
- default: D(() => e[2] || (e[2] = [
204
- Q("添加选项")
205
+ default: z(() => e[2] || (e[2] = [
206
+ W("添加选项")
205
207
  ])),
206
208
  _: 1
207
209
  })
208
210
  ])) : (v(), g("div", ue, [
209
211
  e[3] || (e[3] = p("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
210
212
  m(r(b), {
211
- modelValue: r(n),
212
- "onUpdate:modelValue": e[1] || (e[1] = (t) => E(n) ? n.value = t : null),
213
+ modelValue: r(t),
214
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => E(t) ? t.value = a : null),
213
215
  placeholder: "请选择数据源",
214
216
  clearable: "",
215
217
  options: c.value,
@@ -220,7 +222,7 @@ const le = {
220
222
  ]);
221
223
  };
222
224
  }
223
- }), Ve = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-0637fd15"]]);
225
+ }), Ve = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-5a353824"]]);
224
226
  export {
225
227
  Ve as default
226
228
  };