kouxiangtang 0.0.47 → 0.0.49

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 (50) hide show
  1. package/dist/{AttachmentUploader-DAja7sl_.js → AttachmentUploader-DCyshkG0.js} +2 -2
  2. package/dist/{AttachmentUploader-DAja7sl_.js.map → AttachmentUploader-DCyshkG0.js.map} +1 -1
  3. package/dist/{ImageUploader-Cj9hnc_a.js → ImageUploader-B1_mID5R.js} +2 -2
  4. package/dist/{ImageUploader-Cj9hnc_a.js.map → ImageUploader-B1_mID5R.js.map} +1 -1
  5. package/dist/{ImagesUploader-2UytVh7o.js → ImagesUploader-D-XPUBP2.js} +2 -2
  6. package/dist/{ImagesUploader-2UytVh7o.js.map → ImagesUploader-D-XPUBP2.js.map} +1 -1
  7. package/dist/{RichTextEditor-09H-buel.js → RichTextEditor-B_0MIOKx.js} +2 -2
  8. package/dist/{RichTextEditor-09H-buel.js.map → RichTextEditor-B_0MIOKx.js.map} +1 -1
  9. package/dist/{config-Il-cSavZ.js → config-B7lceYyH.js} +2 -2
  10. package/dist/{config-Il-cSavZ.js.map → config-B7lceYyH.js.map} +1 -1
  11. package/dist/{config-DyjbA8rr.js → config-BCAUAyF7.js} +29 -29
  12. package/dist/config-BCAUAyF7.js.map +1 -0
  13. package/dist/{config-Bysdg4Tn.js → config-BLvYyM3T.js} +12 -12
  14. package/dist/config-BLvYyM3T.js.map +1 -0
  15. package/dist/{config-BY8u7elp.js → config-BRxoZQ52.js} +3 -3
  16. package/dist/{config-BY8u7elp.js.map → config-BRxoZQ52.js.map} +1 -1
  17. package/dist/{config-DZmjKHd6.js → config-BW9jvuW5.js} +3 -3
  18. package/dist/{config-DZmjKHd6.js.map → config-BW9jvuW5.js.map} +1 -1
  19. package/dist/{config-CFk5wLMH.js → config-B_RLj9Hv.js} +2 -2
  20. package/dist/{config-CFk5wLMH.js.map → config-B_RLj9Hv.js.map} +1 -1
  21. package/dist/{config-CebKIlk_.js → config-BbKfNDqe.js} +2 -2
  22. package/dist/{config-CebKIlk_.js.map → config-BbKfNDqe.js.map} +1 -1
  23. package/dist/{config-mTP6jlfg.js → config-C5JzH89W.js} +2 -2
  24. package/dist/{config-mTP6jlfg.js.map → config-C5JzH89W.js.map} +1 -1
  25. package/dist/{config-DmuYRga0.js → config-CAot7p98.js} +2 -2
  26. package/dist/{config-DmuYRga0.js.map → config-CAot7p98.js.map} +1 -1
  27. package/dist/{config-B3FxL_gf.js → config-CNtiXWZ8.js} +2 -2
  28. package/dist/{config-B3FxL_gf.js.map → config-CNtiXWZ8.js.map} +1 -1
  29. package/dist/{config-GvQDMYuk.js → config-CRAIqQDi.js} +3 -3
  30. package/dist/{config-GvQDMYuk.js.map → config-CRAIqQDi.js.map} +1 -1
  31. package/dist/{config-RKJFSbGR.js → config-D43m9_jf.js} +2 -2
  32. package/dist/{config-RKJFSbGR.js.map → config-D43m9_jf.js.map} +1 -1
  33. package/dist/{config-kYIoJHgD.js → config-DW9zXh7I.js} +2 -2
  34. package/dist/{config-kYIoJHgD.js.map → config-DW9zXh7I.js.map} +1 -1
  35. package/dist/{config-Dr2HM5A2.js → config-D_6sEq9t.js} +2 -2
  36. package/dist/{config-Dr2HM5A2.js.map → config-D_6sEq9t.js.map} +1 -1
  37. package/dist/{config-B5nYLQCA.js → config-Dyr3ggPP.js} +2 -2
  38. package/dist/{config-B5nYLQCA.js.map → config-Dyr3ggPP.js.map} +1 -1
  39. package/dist/{config-BVDfZ3ym.js → config-JvrjLObh.js} +2 -2
  40. package/dist/{config-BVDfZ3ym.js.map → config-JvrjLObh.js.map} +1 -1
  41. package/dist/{index-EHhiwbjo.js → index-VhXXlvT7.js} +430 -435
  42. package/dist/index-VhXXlvT7.js.map +1 -0
  43. package/dist/kouxiangtang.js +1 -1
  44. package/dist/kouxiangtang.umd.cjs +7 -7
  45. package/dist/kouxiangtang.umd.cjs.map +1 -1
  46. package/dist/style.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/config-Bysdg4Tn.js.map +0 -1
  49. package/dist/config-DyjbA8rr.js.map +0 -1
  50. package/dist/index-EHhiwbjo.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { openBlock as c, createBlock as E, unref as f, createSlots as Ce, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as He, withDirectives as he, createElementBlock as $, normalizeStyle as Ge, createVNode as x, createTextVNode as B, computed as I, Fragment as L, renderList as M, ref as A, reactive as $e, watch as P, resolveDynamicComponent as K, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as Se, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as xt, useSlots as Ae, onMounted as ln, normalizeProps as kt, guardReactiveProps as Ct, getCurrentScope as Qn, onScopeDispose as Gn, getCurrentInstance as Yn, nextTick as Kn, useCssVars as Xn } from "vue";
1
+ import { openBlock as c, createBlock as E, unref as f, createSlots as Ce, withCtx as w, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as He, withDirectives as he, createElementBlock as $, normalizeStyle as Ge, createVNode as O, createTextVNode as B, computed as N, Fragment as L, renderList as M, ref as A, reactive as $e, watch as P, resolveDynamicComponent as K, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as Se, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as xt, useSlots as Ae, onMounted as ln, normalizeProps as kt, guardReactiveProps as Ct, getCurrentScope as Qn, onScopeDispose as Gn, getCurrentInstance as Yn, nextTick as Kn, useCssVars as Xn } from "vue";
2
2
  import { ElCard as un, ElLink as Zn, vLoading as ge, ElRow as Oe, ElCol as we, ElForm as cn, ElFormItem as nt, ElAlert as es, ElButton as te, ElMessageBox as ts, ElMessage as Ne, ElDialog as ns, ElLoading as Pe, ElTooltip as ss, ElText as At, ElImage as dn, ElTabs as pn, ElTabPane as fn, ElDropdown as st, ElDropdownMenu as ot, ElDropdownItem as ue, ElIcon as G, ElSubMenu as os, ElMenuItem as rs, ElScrollbar as as, ElMenu as is, ElConfigProvider as ls, ElContainer as Rt, ElHeader as us, ElAside as cs, ElMain as ds, ElInputNumber as Dt, ElSelect as Tt, ElOption as Ye, ElSelectV2 as ps, ElDatePicker as Ft, ElInput as fs, ElButtonGroup as de, ElEmpty as ms, ElTable as hs, ElTableColumn as Le, ElPagination as gs, ElCollapse as _s, ElCollapseItem as ys } from "element-plus";
3
3
  import { useRoute as z, useRouter as _e } from "vue-router";
4
4
  import { defineStore as mt, storeToRefs as pe } from "pinia";
@@ -165,8 +165,8 @@ const Ys = (t) => {
165
165
  e[o] = s;
166
166
  const r = ye(s) ? [] : {};
167
167
  return Re(s, (a, i) => {
168
- const l = n(a, o + 1);
169
- !xe(l) && (r[i] = l);
168
+ const u = n(a, o + 1);
169
+ !xe(u) && (r[i] = u);
170
170
  }), e[o] = void 0, r;
171
171
  }
172
172
  }
@@ -273,8 +273,8 @@ Object.defineProperties(R, $n);
273
273
  Object.defineProperty(En, "isAxiosError", { value: !0 });
274
274
  R.from = (t, e, n, s, o, r) => {
275
275
  const a = Object.create(En);
276
- return v.toFlatObject(t, a, function(l) {
277
- return l !== Error.prototype;
276
+ return v.toFlatObject(t, a, function(u) {
277
+ return u !== Error.prototype;
278
278
  }, (i) => i !== "isAxiosError"), R.call(a, t.message, e, n, s, o), a.cause = t, a.name = t.name, r && Object.assign(a, r), a;
279
279
  };
280
280
  const Zs = null;
@@ -302,10 +302,10 @@ function Qe(t, e, n) {
302
302
  metaTokens: !0,
303
303
  dots: !1,
304
304
  indexes: !1
305
- }, !1, function(u, _) {
306
- return !v.isUndefined(_[u]);
305
+ }, !1, function(l, _) {
306
+ return !v.isUndefined(_[l]);
307
307
  });
308
- const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
308
+ const s = n.metaTokens, o = n.visitor || d, r = n.dots, a = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
309
309
  if (!v.isFunction(o))
310
310
  throw new TypeError("visitor must be a function");
311
311
  function h(m) {
@@ -313,49 +313,49 @@ function Qe(t, e, n) {
313
313
  return "";
314
314
  if (v.isDate(m))
315
315
  return m.toISOString();
316
- if (!l && v.isBlob(m))
316
+ if (!u && v.isBlob(m))
317
317
  throw new R("Blob is not supported. Use a Buffer instead.");
318
- return v.isArrayBuffer(m) || v.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
318
+ return v.isArrayBuffer(m) || v.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
319
319
  }
320
- function d(m, u, _) {
320
+ function d(m, l, _) {
321
321
  let g = m;
322
322
  if (m && !_ && typeof m == "object") {
323
- if (v.endsWith(u, "{}"))
324
- u = s ? u : u.slice(0, -2), m = JSON.stringify(m);
325
- else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(u, "[]")) && (g = v.toArray(m)))
326
- return u = Sn(u), g.forEach(function(b, k) {
323
+ if (v.endsWith(l, "{}"))
324
+ l = s ? l : l.slice(0, -2), m = JSON.stringify(m);
325
+ else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(l, "[]")) && (g = v.toArray(m)))
326
+ return l = Sn(l), g.forEach(function(b, k) {
327
327
  !(v.isUndefined(b) || b === null) && e.append(
328
328
  // eslint-disable-next-line no-nested-ternary
329
- a === !0 ? jt([u], k, r) : a === null ? u : u + "[]",
329
+ a === !0 ? jt([l], k, r) : a === null ? l : l + "[]",
330
330
  h(b)
331
331
  );
332
332
  }), !1;
333
333
  }
334
- return at(m) ? !0 : (e.append(jt(_, u, r), h(m)), !1);
334
+ return at(m) ? !0 : (e.append(jt(_, l, r), h(m)), !1);
335
335
  }
336
336
  const p = [], S = Object.assign(to, {
337
337
  defaultVisitor: d,
338
338
  convertValue: h,
339
339
  isVisitable: at
340
340
  });
341
- function O(m, u) {
341
+ function x(m, l) {
342
342
  if (!v.isUndefined(m)) {
343
343
  if (p.indexOf(m) !== -1)
344
- throw Error("Circular reference detected in " + u.join("."));
344
+ throw Error("Circular reference detected in " + l.join("."));
345
345
  p.push(m), v.forEach(m, function(g, y) {
346
346
  (!(v.isUndefined(g) || g === null) && o.call(
347
347
  e,
348
348
  g,
349
349
  v.isString(y) ? y.trim() : y,
350
- u,
350
+ l,
351
351
  S
352
- )) === !0 && O(g, u ? u.concat(y) : [y]);
352
+ )) === !0 && x(g, l ? l.concat(y) : [y]);
353
353
  }), p.pop();
354
354
  }
355
355
  }
356
356
  if (!v.isObject(t))
357
357
  throw new TypeError("data must be an object");
358
- return O(t), e;
358
+ return x(t), e;
359
359
  }
360
360
  function Bt(t) {
361
361
  const e = {
@@ -500,8 +500,8 @@ function An(t) {
500
500
  let a = n[r++];
501
501
  if (a === "__proto__")
502
502
  return !0;
503
- const i = Number.isFinite(+a), l = r >= n.length;
504
- return a = !a && v.isArray(o) ? o.length : a, l ? (v.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !i) : ((!o[a] || !v.isObject(o[a])) && (o[a] = []), e(n, s, o[a], r) && v.isArray(o[a]) && (o[a] = fo(o[a])), !i);
503
+ const i = Number.isFinite(+a), u = r >= n.length;
504
+ return a = !a && v.isArray(o) ? o.length : a, u ? (v.hasOwnProp(o, a) ? o[a] = [o[a], s] : o[a] = s, !i) : ((!o[a] || !v.isObject(o[a])) && (o[a] = []), e(n, s, o[a], r) && v.isArray(o[a]) && (o[a] = fo(o[a])), !i);
505
505
  }
506
506
  if (v.isFormData(t) && v.isFunction(t.entries)) {
507
507
  const n = {};
@@ -539,10 +539,10 @@ const De = {
539
539
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
540
540
  return co(e, this.formSerializer).toString();
541
541
  if ((i = v.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
542
- const l = this.env && this.env.FormData;
542
+ const u = this.env && this.env.FormData;
543
543
  return Qe(
544
544
  i ? { "files[]": e } : e,
545
- l && new l(),
545
+ u && new u(),
546
546
  this.formSerializer
547
547
  );
548
548
  }
@@ -658,14 +658,14 @@ class Z {
658
658
  }
659
659
  set(e, n, s) {
660
660
  const o = this;
661
- function r(i, l, h) {
662
- const d = be(l);
661
+ function r(i, u, h) {
662
+ const d = be(u);
663
663
  if (!d)
664
664
  throw new Error("header name must be a non-empty string");
665
665
  const p = v.findKey(o, d);
666
- (!p || o[p] === void 0 || h === !0 || h === void 0 && o[p] !== !1) && (o[p || l] = Be(i));
666
+ (!p || o[p] === void 0 || h === !0 || h === void 0 && o[p] !== !1) && (o[p || u] = Be(i));
667
667
  }
668
- const a = (i, l) => v.forEach(i, (h, d) => r(h, d, l));
668
+ const a = (i, u) => v.forEach(i, (h, d) => r(h, d, u));
669
669
  return v.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : v.isString(e) && (e = e.trim()) && !yo(e) ? a(go(e), n) : e != null && r(n, e, s), this;
670
670
  }
671
671
  get(e, n) {
@@ -874,31 +874,31 @@ function ko(t, e) {
874
874
  t = t || 10;
875
875
  const n = new Array(t), s = new Array(t);
876
876
  let o = 0, r = 0, a;
877
- return e = e !== void 0 ? e : 1e3, function(l) {
877
+ return e = e !== void 0 ? e : 1e3, function(u) {
878
878
  const h = Date.now(), d = s[r];
879
- a || (a = h), n[o] = l, s[o] = h;
879
+ a || (a = h), n[o] = u, s[o] = h;
880
880
  let p = r, S = 0;
881
881
  for (; p !== o; )
882
882
  S += n[p++], p = p % t;
883
883
  if (o = (o + 1) % t, o === r && (r = (r + 1) % t), h - a < e)
884
884
  return;
885
- const O = d && h - d;
886
- return O ? Math.round(S * 1e3 / O) : void 0;
885
+ const x = d && h - d;
886
+ return x ? Math.round(S * 1e3 / x) : void 0;
887
887
  };
888
888
  }
889
889
  function Vt(t, e) {
890
890
  let n = 0;
891
891
  const s = ko(50, 250);
892
892
  return (o) => {
893
- const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n, l = s(i), h = r <= a;
893
+ const r = o.loaded, a = o.lengthComputable ? o.total : void 0, i = r - n, u = s(i), h = r <= a;
894
894
  n = r;
895
895
  const d = {
896
896
  loaded: r,
897
897
  total: a,
898
898
  progress: a ? r / a : void 0,
899
899
  bytes: i,
900
- rate: l || void 0,
901
- estimated: l && a && h ? (a - r) / l : void 0,
900
+ rate: u || void 0,
901
+ estimated: u && a && h ? (a - r) / u : void 0,
902
902
  event: o
903
903
  };
904
904
  d[e ? "download" : "upload"] = !0, t(d);
@@ -908,36 +908,36 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
908
908
  return new Promise(function(n, s) {
909
909
  let o = t.data;
910
910
  const r = Z.from(t.headers).normalize();
911
- let { responseType: a, withXSRFToken: i } = t, l;
911
+ let { responseType: a, withXSRFToken: i } = t, u;
912
912
  function h() {
913
- t.cancelToken && t.cancelToken.unsubscribe(l), t.signal && t.signal.removeEventListener("abort", l);
913
+ t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
914
914
  }
915
915
  let d;
916
916
  if (v.isFormData(o)) {
917
917
  if (ne.hasStandardBrowserEnv || ne.hasStandardBrowserWebWorkerEnv)
918
918
  r.setContentType(!1);
919
919
  else if ((d = r.getContentType()) !== !1) {
920
- const [u, ..._] = d ? d.split(";").map((g) => g.trim()).filter(Boolean) : [];
921
- r.setContentType([u || "multipart/form-data", ..._].join("; "));
920
+ const [l, ..._] = d ? d.split(";").map((g) => g.trim()).filter(Boolean) : [];
921
+ r.setContentType([l || "multipart/form-data", ..._].join("; "));
922
922
  }
923
923
  }
924
924
  let p = new XMLHttpRequest();
925
925
  if (t.auth) {
926
- const u = t.auth.username || "", _ = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
- r.set("Authorization", "Basic " + btoa(u + ":" + _));
926
+ const l = t.auth.username || "", _ = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
+ r.set("Authorization", "Basic " + btoa(l + ":" + _));
928
928
  }
929
929
  const S = Dn(t.baseURL, t.url);
930
930
  p.open(t.method.toUpperCase(), xn(S, t.params, t.paramsSerializer), !0), p.timeout = t.timeout;
931
- function O() {
931
+ function x() {
932
932
  if (!p)
933
933
  return;
934
- const u = Z.from(
934
+ const l = Z.from(
935
935
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
936
936
  ), g = {
937
937
  data: !a || a === "text" || a === "json" ? p.responseText : p.response,
938
938
  status: p.status,
939
939
  statusText: p.statusText,
940
- headers: u,
940
+ headers: l,
941
941
  config: t,
942
942
  request: p
943
943
  };
@@ -947,8 +947,8 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
947
947
  s(b), h();
948
948
  }, g), p = null;
949
949
  }
950
- if ("onloadend" in p ? p.onloadend = O : p.onreadystatechange = function() {
951
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(O);
950
+ if ("onloadend" in p ? p.onloadend = x : p.onreadystatechange = function() {
951
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(x);
952
952
  }, p.onabort = function() {
953
953
  p && (s(new R("Request aborted", R.ECONNABORTED, t, p)), p = null);
954
954
  }, p.onerror = function() {
@@ -963,14 +963,14 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
963
963
  p
964
964
  )), p = null;
965
965
  }, ne.hasStandardBrowserEnv && (i && v.isFunction(i) && (i = i(t)), i || i !== !1 && Oo(S))) {
966
- const u = t.xsrfHeaderName && t.xsrfCookieName && Eo.read(t.xsrfCookieName);
967
- u && r.set(t.xsrfHeaderName, u);
966
+ const l = t.xsrfHeaderName && t.xsrfCookieName && Eo.read(t.xsrfCookieName);
967
+ l && r.set(t.xsrfHeaderName, l);
968
968
  }
969
969
  o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(_, g) {
970
970
  p.setRequestHeader(g, _);
971
- }), v.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), a && a !== "json" && (p.responseType = t.responseType), typeof t.onDownloadProgress == "function" && p.addEventListener("progress", Vt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", Vt(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (u) => {
972
- p && (s(!u || u.type ? new Te(null, t, p) : u), p.abort(), p = null);
973
- }, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
971
+ }), v.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), a && a !== "json" && (p.responseType = t.responseType), typeof t.onDownloadProgress == "function" && p.addEventListener("progress", Vt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", Vt(t.onUploadProgress)), (t.cancelToken || t.signal) && (u = (l) => {
972
+ p && (s(!l || l.type ? new Te(null, t, p) : l), p.abort(), p = null);
973
+ }, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
974
974
  const m = xo(S);
975
975
  if (m && ne.protocols.indexOf(m) === -1) {
976
976
  s(new R("Unsupported protocol " + m + ":", R.ERR_BAD_REQUEST, t));
@@ -1008,7 +1008,7 @@ const Ut = (t) => `- ${t}`, Ro = (t) => v.isFunction(t) || t === null || t === !
1008
1008
  }
1009
1009
  if (!s) {
1010
1010
  const r = Object.entries(o).map(
1011
- ([i, l]) => `adapter ${i} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1011
+ ([i, u]) => `adapter ${i} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1012
1012
  );
1013
1013
  let a = e ? r.length > 1 ? `since :
1014
1014
  ` + r.map(Ut).join(`
@@ -1075,7 +1075,7 @@ function me(t, e) {
1075
1075
  if (p in t)
1076
1076
  return s(void 0, h);
1077
1077
  }
1078
- const l = {
1078
+ const u = {
1079
1079
  url: r,
1080
1080
  method: r,
1081
1081
  data: r,
@@ -1107,7 +1107,7 @@ function me(t, e) {
1107
1107
  headers: (h, d) => o(Mt(h), Mt(d), !0)
1108
1108
  };
1109
1109
  return v.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
1110
- const p = l[d] || o, S = p(t[d], e[d], d);
1110
+ const p = u[d] || o, S = p(t[d], e[d], d);
1111
1111
  v.isUndefined(S) && p !== i || (n[d] = S);
1112
1112
  }), n;
1113
1113
  }
@@ -1144,9 +1144,9 @@ function Do(t, e, n) {
1144
1144
  for (; o-- > 0; ) {
1145
1145
  const r = s[o], a = e[r];
1146
1146
  if (a) {
1147
- const i = t[r], l = i === void 0 || a(i, r, t);
1148
- if (l !== !0)
1149
- throw new R("option " + r + " must be " + l, R.ERR_BAD_OPTION_VALUE);
1147
+ const i = t[r], u = i === void 0 || a(i, r, t);
1148
+ if (u !== !0)
1149
+ throw new R("option " + r + " must be " + u, R.ERR_BAD_OPTION_VALUE);
1150
1150
  continue;
1151
1151
  }
1152
1152
  if (n !== !0)
@@ -1210,34 +1210,34 @@ class ce {
1210
1210
  }
1211
1211
  ), n.headers = Z.concat(a, r);
1212
1212
  const i = [];
1213
- let l = !0;
1214
- this.interceptors.request.forEach(function(u) {
1215
- typeof u.runWhen == "function" && u.runWhen(n) === !1 || (l = l && u.synchronous, i.unshift(u.fulfilled, u.rejected));
1213
+ let u = !0;
1214
+ this.interceptors.request.forEach(function(l) {
1215
+ typeof l.runWhen == "function" && l.runWhen(n) === !1 || (u = u && l.synchronous, i.unshift(l.fulfilled, l.rejected));
1216
1216
  });
1217
1217
  const h = [];
1218
- this.interceptors.response.forEach(function(u) {
1219
- h.push(u.fulfilled, u.rejected);
1218
+ this.interceptors.response.forEach(function(l) {
1219
+ h.push(l.fulfilled, l.rejected);
1220
1220
  });
1221
1221
  let d, p = 0, S;
1222
- if (!l) {
1222
+ if (!u) {
1223
1223
  const m = [zt.bind(this), void 0];
1224
1224
  for (m.unshift.apply(m, i), m.push.apply(m, h), S = m.length, d = Promise.resolve(n); p < S; )
1225
1225
  d = d.then(m[p++], m[p++]);
1226
1226
  return d;
1227
1227
  }
1228
1228
  S = i.length;
1229
- let O = n;
1229
+ let x = n;
1230
1230
  for (p = 0; p < S; ) {
1231
- const m = i[p++], u = i[p++];
1231
+ const m = i[p++], l = i[p++];
1232
1232
  try {
1233
- O = m(O);
1233
+ x = m(x);
1234
1234
  } catch (_) {
1235
- u.call(this, _);
1235
+ l.call(this, _);
1236
1236
  break;
1237
1237
  }
1238
1238
  }
1239
1239
  try {
1240
- d = zt.call(this, O);
1240
+ d = zt.call(this, x);
1241
1241
  } catch (m) {
1242
1242
  return Promise.reject(m);
1243
1243
  }
@@ -1519,25 +1519,25 @@ var Pn = { exports: {} };
1519
1519
  typeof zo == "function" ? t.exports = s() : n.pluralize = s();
1520
1520
  })(Vo, function() {
1521
1521
  var n = [], s = [], o = {}, r = {}, a = {};
1522
- function i(u) {
1523
- return typeof u == "string" ? new RegExp("^" + u + "$", "i") : u;
1522
+ function i(l) {
1523
+ return typeof l == "string" ? new RegExp("^" + l + "$", "i") : l;
1524
1524
  }
1525
- function l(u, _) {
1526
- return u === _ ? _ : u === u.toLowerCase() ? _.toLowerCase() : u === u.toUpperCase() ? _.toUpperCase() : u[0] === u[0].toUpperCase() ? _.charAt(0).toUpperCase() + _.substr(1).toLowerCase() : _.toLowerCase();
1525
+ function u(l, _) {
1526
+ return l === _ ? _ : l === l.toLowerCase() ? _.toLowerCase() : l === l.toUpperCase() ? _.toUpperCase() : l[0] === l[0].toUpperCase() ? _.charAt(0).toUpperCase() + _.substr(1).toLowerCase() : _.toLowerCase();
1527
1527
  }
1528
- function h(u, _) {
1529
- return u.replace(/\$(\d{1,2})/g, function(g, y) {
1528
+ function h(l, _) {
1529
+ return l.replace(/\$(\d{1,2})/g, function(g, y) {
1530
1530
  return _[y] || "";
1531
1531
  });
1532
1532
  }
1533
- function d(u, _) {
1534
- return u.replace(_[0], function(g, y) {
1533
+ function d(l, _) {
1534
+ return l.replace(_[0], function(g, y) {
1535
1535
  var b = h(_[1], arguments);
1536
- return l(g === "" ? u[y - 1] : g, b);
1536
+ return u(g === "" ? l[y - 1] : g, b);
1537
1537
  });
1538
1538
  }
1539
- function p(u, _, g) {
1540
- if (!u.length || o.hasOwnProperty(u))
1539
+ function p(l, _, g) {
1540
+ if (!l.length || o.hasOwnProperty(l))
1541
1541
  return _;
1542
1542
  for (var y = g.length; y--; ) {
1543
1543
  var b = g[y];
@@ -1546,27 +1546,27 @@ var Pn = { exports: {} };
1546
1546
  }
1547
1547
  return _;
1548
1548
  }
1549
- function S(u, _, g) {
1549
+ function S(l, _, g) {
1550
1550
  return function(y) {
1551
1551
  var b = y.toLowerCase();
1552
- return _.hasOwnProperty(b) ? l(y, b) : u.hasOwnProperty(b) ? l(y, u[b]) : p(b, y, g);
1552
+ return _.hasOwnProperty(b) ? u(y, b) : l.hasOwnProperty(b) ? u(y, l[b]) : p(b, y, g);
1553
1553
  };
1554
1554
  }
1555
- function O(u, _, g, y) {
1555
+ function x(l, _, g, y) {
1556
1556
  return function(b) {
1557
1557
  var k = b.toLowerCase();
1558
- return _.hasOwnProperty(k) ? !0 : u.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
1558
+ return _.hasOwnProperty(k) ? !0 : l.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
1559
1559
  };
1560
1560
  }
1561
- function m(u, _, g) {
1562
- var y = _ === 1 ? m.singular(u) : m.plural(u);
1561
+ function m(l, _, g) {
1562
+ var y = _ === 1 ? m.singular(l) : m.plural(l);
1563
1563
  return (g ? _ + " " : "") + y;
1564
1564
  }
1565
1565
  return m.plural = S(
1566
1566
  a,
1567
1567
  r,
1568
1568
  n
1569
- ), m.isPlural = O(
1569
+ ), m.isPlural = x(
1570
1570
  a,
1571
1571
  r,
1572
1572
  n
@@ -1574,22 +1574,22 @@ var Pn = { exports: {} };
1574
1574
  r,
1575
1575
  a,
1576
1576
  s
1577
- ), m.isSingular = O(
1577
+ ), m.isSingular = x(
1578
1578
  r,
1579
1579
  a,
1580
1580
  s
1581
- ), m.addPluralRule = function(u, _) {
1582
- n.push([i(u), _]);
1583
- }, m.addSingularRule = function(u, _) {
1584
- s.push([i(u), _]);
1585
- }, m.addUncountableRule = function(u) {
1586
- if (typeof u == "string") {
1587
- o[u.toLowerCase()] = !0;
1581
+ ), m.addPluralRule = function(l, _) {
1582
+ n.push([i(l), _]);
1583
+ }, m.addSingularRule = function(l, _) {
1584
+ s.push([i(l), _]);
1585
+ }, m.addUncountableRule = function(l) {
1586
+ if (typeof l == "string") {
1587
+ o[l.toLowerCase()] = !0;
1588
1588
  return;
1589
1589
  }
1590
- m.addPluralRule(u, "$0"), m.addSingularRule(u, "$0");
1591
- }, m.addIrregularRule = function(u, _) {
1592
- _ = _.toLowerCase(), u = u.toLowerCase(), a[u] = _, r[_] = u;
1590
+ m.addPluralRule(l, "$0"), m.addSingularRule(l, "$0");
1591
+ }, m.addIrregularRule = function(l, _) {
1592
+ _ = _.toLowerCase(), l = l.toLowerCase(), a[l] = _, r[_] = l;
1593
1593
  }, [
1594
1594
  // Pronouns.
1595
1595
  ["I", "we"],
@@ -1643,8 +1643,8 @@ var Pn = { exports: {} };
1643
1643
  ["groove", "grooves"],
1644
1644
  ["pickaxe", "pickaxes"],
1645
1645
  ["passerby", "passersby"]
1646
- ].forEach(function(u) {
1647
- return m.addIrregularRule(u[0], u[1]);
1646
+ ].forEach(function(l) {
1647
+ return m.addIrregularRule(l[0], l[1]);
1648
1648
  }), [
1649
1649
  [/s?$/i, "s"],
1650
1650
  [/[^\u0000-\u007F]$/i, "$0"],
@@ -1671,8 +1671,8 @@ var Pn = { exports: {} };
1671
1671
  [/eaux$/i, "$0"],
1672
1672
  [/m[ae]n$/i, "men"],
1673
1673
  ["thou", "you"]
1674
- ].forEach(function(u) {
1675
- return m.addPluralRule(u[0], u[1]);
1674
+ ].forEach(function(l) {
1675
+ return m.addPluralRule(l[0], l[1]);
1676
1676
  }), [
1677
1677
  [/s$/i, ""],
1678
1678
  [/(ss)$/i, "$1"],
@@ -1697,8 +1697,8 @@ var Pn = { exports: {} };
1697
1697
  [/(child)ren$/i, "$1"],
1698
1698
  [/(eau)x?$/i, "$1"],
1699
1699
  [/men$/i, "man"]
1700
- ].forEach(function(u) {
1701
- return m.addSingularRule(u[0], u[1]);
1700
+ ].forEach(function(l) {
1701
+ return m.addSingularRule(l[0], l[1]);
1702
1702
  }), [
1703
1703
  // Singular words with no plurals.
1704
1704
  "adulthood",
@@ -1927,12 +1927,7 @@ class Go {
1927
1927
  if ("showInList" in this.defaultConfig())
1928
1928
  return () => this.defaultConfig().showInList;
1929
1929
  if (typeof n > "u")
1930
- return (s) => {
1931
- const o = JSON.parse(JSON.stringify(s));
1932
- return o.association && o.association.split("-").forEach((a) => {
1933
- delete o[a + "Id"];
1934
- }), !o[e.code];
1935
- };
1930
+ return () => !0;
1936
1931
  throw new Exception(`invalid showInList : ${n}`);
1937
1932
  }
1938
1933
  _showInDetail(e) {
@@ -2010,7 +2005,7 @@ const tt = {
2010
2005
  component: { config: "component" }
2011
2006
  };
2012
2007
  async function qt(t, e, n) {
2013
- const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-GvQDMYuk.js"), "./field/belongs-to/config.js": () => import("./config-DyjbA8rr.js"), "./field/boolean/config.js": () => import("./config-B3FxL_gf.js"), "./field/cascader/config.js": () => import("./config-B5nYLQCA.js"), "./field/component/config.js": () => import("./config-CebKIlk_.js"), "./field/datetime/config.js": () => import("./config-kYIoJHgD.js"), "./field/image/config.js": () => import("./config-DZmjKHd6.js"), "./field/images/config.js": () => import("./config-Il-cSavZ.js"), "./field/json/config.js": () => import("./config-Bysdg4Tn.js"), "./field/rich-text/config.js": () => import("./config-BY8u7elp.js"), "./field/row-id/config.js": () => import("./config-CFk5wLMH.js"), "./field/select/config.js": () => import("./config-Dr2HM5A2.js"), "./field/string/config.js": () => import("./config-DmuYRga0.js"), "./field/switch/config.js": () => import("./config-BVDfZ3ym.js"), "./field/text/config.js": () => import("./config-RKJFSbGR.js"), "./field/tree-select/config.js": () => import("./config-mTP6jlfg.js") }), `./field/${t}/config.js`, 4);
2008
+ const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-CRAIqQDi.js"), "./field/belongs-to/config.js": () => import("./config-BCAUAyF7.js"), "./field/boolean/config.js": () => import("./config-CNtiXWZ8.js"), "./field/cascader/config.js": () => import("./config-Dyr3ggPP.js"), "./field/component/config.js": () => import("./config-BbKfNDqe.js"), "./field/datetime/config.js": () => import("./config-DW9zXh7I.js"), "./field/image/config.js": () => import("./config-BW9jvuW5.js"), "./field/images/config.js": () => import("./config-B7lceYyH.js"), "./field/json/config.js": () => import("./config-BLvYyM3T.js"), "./field/rich-text/config.js": () => import("./config-BRxoZQ52.js"), "./field/row-id/config.js": () => import("./config-B_RLj9Hv.js"), "./field/select/config.js": () => import("./config-D_6sEq9t.js"), "./field/string/config.js": () => import("./config-CAot7p98.js"), "./field/switch/config.js": () => import("./config-JvrjLObh.js"), "./field/text/config.js": () => import("./config-D43m9_jf.js"), "./field/tree-select/config.js": () => import("./config-C5JzH89W.js") }), `./field/${t}/config.js`, 4);
2014
2009
  return new s.default(e, n);
2015
2010
  }
2016
2011
  function Wt(t, e = "unknown") {
@@ -2194,11 +2189,11 @@ const j = (t, e) => {
2194
2189
  style: Ge(`text-align: ${e.align};`)
2195
2190
  }, [
2196
2191
  e.link ? (c(), $("span", rr, [
2197
- x(a, {
2192
+ O(a, {
2198
2193
  to: e.link
2199
2194
  }, {
2200
2195
  default: w(() => [
2201
- x(f(Zn), { type: "primary" }, {
2196
+ O(f(Zn), { type: "primary" }, {
2202
2197
  default: w(() => [
2203
2198
  B(F(e.title), 1)
2204
2199
  ]),
@@ -2240,7 +2235,7 @@ const j = (t, e) => {
2240
2235
  const e = t;
2241
2236
  return (n, s) => (c(), E(nr, null, {
2242
2237
  default: w(() => [
2243
- x(lr, {
2238
+ O(lr, {
2244
2239
  title: e.title,
2245
2240
  value: e.value,
2246
2241
  icon: e.icon,
@@ -2294,7 +2289,7 @@ const hr = {
2294
2289
  fields: Array
2295
2290
  },
2296
2291
  setup(t) {
2297
- const e = t, n = I(() => {
2292
+ const e = t, n = N(() => {
2298
2293
  if (e.layout.length == 0) {
2299
2294
  if (e.fields.length <= 6) {
2300
2295
  const a = o(e.fields, 1);
@@ -2309,20 +2304,20 @@ const hr = {
2309
2304
  return e.fields.find((i) => i.code == r);
2310
2305
  }
2311
2306
  function o(r, a = 2) {
2312
- const i = r.map((h) => h.code), l = [];
2307
+ const i = r.map((h) => h.code), u = [];
2313
2308
  for (let h = 0; h < i.length; h += a)
2314
- l.push(i.slice(h, h + a));
2315
- return l;
2309
+ u.push(i.slice(h, h + a));
2310
+ return u;
2316
2311
  }
2317
2312
  return (r, a) => (c(), $("div", null, [
2318
2313
  (c(!0), $(L, null, M(n.value, (i) => (c(), E(f(Oe), { gutter: 20 }, {
2319
2314
  default: w(() => [
2320
- (c(!0), $(L, null, M(i.cols, (l) => (c(), E(f(we), {
2321
- span: l.span
2315
+ (c(!0), $(L, null, M(i.cols, (u) => (c(), E(f(we), {
2316
+ span: u.span
2322
2317
  }, {
2323
2318
  default: w(() => [
2324
2319
  J(r.$slots, "default", {
2325
- field: s(l.field)
2320
+ field: s(u.field)
2326
2321
  })
2327
2322
  ]),
2328
2323
  _: 2
@@ -2348,30 +2343,30 @@ const hr = {
2348
2343
  },
2349
2344
  emits: ["submit", "remove"],
2350
2345
  setup(t, { emit: e }) {
2351
- const n = z(), s = Y(n), o = e, r = A(!1), a = t, i = pt(a.config.formLayout || []), l = $e({ ...a.data }), h = A(null), d = a.config.fields.filter((y) => y.rules).reduce((y, b) => (y[b.code] = O(b.rules), y), {}), p = I(g), S = I(() => a.config.fields.filter((y) => {
2352
- const b = y.editable(l, s), k = y.visible(l, s);
2346
+ const n = z(), s = Y(n), o = e, r = A(!1), a = t, i = pt(a.config.formLayout || []), u = $e({ ...a.data }), h = A(null), d = a.config.fields.filter((y) => y.rules).reduce((y, b) => (y[b.code] = x(b.rules), y), {}), p = N(g), S = N(() => a.config.fields.filter((y) => {
2347
+ const b = y.editable(u, s), k = y.visible(u, s);
2353
2348
  return y.disabled = k && !b, b || k;
2354
2349
  }));
2355
- function O(y) {
2356
- return typeof y == "object" ? y : typeof y == "function" ? y(l) : [];
2350
+ function x(y) {
2351
+ return typeof y == "object" ? y : typeof y == "function" ? y(u) : [];
2357
2352
  }
2358
2353
  async function m() {
2359
2354
  await h.value.validate((y, b) => {
2360
2355
  var W, q;
2361
2356
  if (!y)
2362
2357
  return console.log("error submit!", b), !1;
2363
- const k = (W = a.config.fields.find((oe) => ["images", "attachments", "attachment"].includes(oe.type))) == null ? void 0 : W.code, V = { ...l };
2358
+ const k = (W = a.config.fields.find((oe) => ["images", "attachments", "attachment"].includes(oe.type))) == null ? void 0 : W.code, V = { ...u };
2364
2359
  k && (V[k] = (q = V[k]) == null ? void 0 : q.map((oe) => oe.id)), r.value = !0, o("submit", V, () => {
2365
2360
  r.value = !1;
2366
2361
  });
2367
2362
  });
2368
2363
  }
2369
- function u() {
2370
- o("remove", l);
2364
+ function l() {
2365
+ o("remove", u);
2371
2366
  }
2372
2367
  function _() {
2373
2368
  if (a.config.removeConfirm) {
2374
- a.config.removeConfirm(l, u);
2369
+ a.config.removeConfirm(u, l);
2375
2370
  return;
2376
2371
  }
2377
2372
  ts.confirm("确定要删除该条数据吗?", "提示", {
@@ -2380,7 +2375,7 @@ const hr = {
2380
2375
  type: "warning",
2381
2376
  appendTo: "#form"
2382
2377
  }).then(() => {
2383
- u();
2378
+ l();
2384
2379
  }).catch(() => {
2385
2380
  Ne({
2386
2381
  type: "info",
@@ -2390,10 +2385,10 @@ const hr = {
2390
2385
  }
2391
2386
  function g() {
2392
2387
  const y = a.config.showSubmit;
2393
- return typeof y == "boolean" ? y : typeof y == "function" ? y(s, l) : !0;
2388
+ return typeof y == "boolean" ? y : typeof y == "function" ? y(s, u) : !0;
2394
2389
  }
2395
2390
  return P(
2396
- () => ({ ...l }),
2391
+ () => ({ ...u }),
2397
2392
  (y, b) => {
2398
2393
  const V = Object.keys(y).filter((q) => b[q] !== y[q]).map((q) => {
2399
2394
  var oe;
@@ -2404,14 +2399,14 @@ const hr = {
2404
2399
  };
2405
2400
  });
2406
2401
  S.value.filter((q) => !q.disabled).forEach((q) => {
2407
- q.formChange && q.formChange(l, V);
2402
+ q.formChange && q.formChange(u, V);
2408
2403
  });
2409
2404
  }
2410
2405
  ), P(
2411
2406
  () => a.data,
2412
2407
  (y) => {
2413
2408
  Object.keys(y).forEach((b) => {
2414
- l[b] = y[b];
2409
+ u[b] = y[b];
2415
2410
  });
2416
2411
  },
2417
2412
  { immediate: !0 }
@@ -2419,13 +2414,13 @@ const hr = {
2419
2414
  id: "form",
2420
2415
  ref_key: "formRef",
2421
2416
  ref: h,
2422
- model: l,
2417
+ model: u,
2423
2418
  "label-width": "100px",
2424
2419
  "label-position": "top",
2425
2420
  rules: f(d)
2426
2421
  }, {
2427
2422
  default: w(() => [
2428
- x(hr, {
2423
+ O(hr, {
2429
2424
  layout: f(i),
2430
2425
  fields: S.value
2431
2426
  }, {
@@ -2439,11 +2434,11 @@ const hr = {
2439
2434
  C("div", gr, [
2440
2435
  k != null && k.editor ? (c(), E(K(k.editor), {
2441
2436
  key: 0,
2442
- modelValue: l[k.code],
2443
- "onUpdate:modelValue": (V) => l[k.code] = V,
2437
+ modelValue: u[k.code],
2438
+ "onUpdate:modelValue": (V) => u[k.code] = V,
2444
2439
  field: k,
2445
2440
  disabled: k.disabled,
2446
- "form-data": l,
2441
+ "form-data": u,
2447
2442
  "domain-config": a.config
2448
2443
  }, null, 8, ["modelValue", "onUpdate:modelValue", "field", "disabled", "form-data", "domain-config"])) : (c(), E(f(es), {
2449
2444
  key: 1,
@@ -2460,7 +2455,7 @@ const hr = {
2460
2455
  _: 1
2461
2456
  }, 8, ["layout", "fields"]),
2462
2457
  C("div", _r, [
2463
- l.id && !l.deletedAt && a.removable ? (c(), E(f(te), {
2458
+ u.id && !u.deletedAt && a.removable ? (c(), E(f(te), {
2464
2459
  key: 0,
2465
2460
  size: "default",
2466
2461
  type: "danger",
@@ -2516,48 +2511,48 @@ const Ee = {
2516
2511
  },
2517
2512
  emits: ["update:modelValue", "submit", "remove"],
2518
2513
  setup(t, { emit: e }) {
2519
- const n = z(), s = Y(n), o = e, r = t, a = I(() => ({ ...r.data, idempotentToken: l.value })), i = I(() => r.config.fields.filter((m) => m.visible(a, s)).length >= 6 ? "60%" : "40%"), l = A(""), h = I({
2514
+ const n = z(), s = Y(n), o = e, r = t, a = A(r.data), i = N(() => ({ ...a.value, idempotentToken: h.value })), u = N(() => r.config.fields.filter((l) => l.visible(i, s)).length >= 6 ? "60%" : "40%"), h = A(""), d = N({
2520
2515
  get() {
2521
2516
  return r.modelValue;
2522
2517
  },
2523
- set(O) {
2524
- o("update:modelValue", O);
2518
+ set(m) {
2519
+ o("update:modelValue", m);
2525
2520
  }
2526
- }), d = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2527
- function p(O, m) {
2528
- o("submit", O, async () => {
2529
- l.value = await Ee.getValue(), m();
2521
+ }), p = N(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2522
+ function S(m, l) {
2523
+ a.value = m, o("submit", m, async () => {
2524
+ h.value = await Ee.getValue(), l();
2530
2525
  });
2531
2526
  }
2532
- function S(O, m) {
2533
- o("remove", O, async () => {
2534
- l.value = await Ee.getValue(), m();
2527
+ function x(m, l) {
2528
+ o("remove", m, async () => {
2529
+ h.value = await Ee.getValue(), l();
2535
2530
  });
2536
2531
  }
2537
2532
  return P(
2538
- () => h,
2533
+ () => d,
2539
2534
  async () => {
2540
- l.value = await Ee.getValue();
2535
+ h.value = await Ee.getValue();
2541
2536
  },
2542
2537
  { immediate: !0 }
2543
- ), (O, m) => (c(), E(f(ns), {
2544
- modelValue: h.value,
2545
- "onUpdate:modelValue": m[0] || (m[0] = (u) => h.value = u),
2546
- width: i.value,
2538
+ ), (m, l) => (c(), E(f(ns), {
2539
+ modelValue: d.value,
2540
+ "onUpdate:modelValue": l[0] || (l[0] = (_) => d.value = _),
2541
+ width: u.value,
2547
2542
  top: "20px",
2548
- title: d.value,
2543
+ title: p.value,
2549
2544
  "close-on-click-modal": !1,
2550
2545
  "append-to-body": !0,
2551
2546
  "destroy-on-close": "",
2552
2547
  "z-index": 1e3
2553
2548
  }, {
2554
2549
  default: w(() => [
2555
- x(br, {
2550
+ O(br, {
2556
2551
  config: r.config,
2557
- data: a.value,
2552
+ data: i.value,
2558
2553
  removable: r.removable,
2559
- onSubmit: p,
2560
- onRemove: S
2554
+ onSubmit: S,
2555
+ onRemove: x
2561
2556
  }, null, 8, ["config", "data", "removable"])
2562
2557
  ]),
2563
2558
  _: 1
@@ -2599,14 +2594,14 @@ const Ee = {
2599
2594
  code: e.code,
2600
2595
  fields: e.fields
2601
2596
  });
2602
- Promise.all(r.fields).then((l) => {
2603
- r.fields = l, r.restRepeat = e.restRepeat, r.rest = e.rest, o.value = r;
2597
+ Promise.all(r.fields).then((u) => {
2598
+ r.fields = u, r.restRepeat = e.restRepeat, r.rest = e.rest, o.value = r;
2604
2599
  });
2605
2600
  async function a() {
2606
2601
  s.value = !0;
2607
2602
  }
2608
- function i(l, h) {
2609
- e.onSubmit(l).then(() => {
2603
+ function i(u, h) {
2604
+ e.onSubmit(u).then(() => {
2610
2605
  s.value = !1, ElMessage({
2611
2606
  showClose: !0,
2612
2607
  grouping: !0,
@@ -2617,7 +2612,7 @@ const Ee = {
2617
2612
  console.log("请求失败"), h();
2618
2613
  });
2619
2614
  }
2620
- return (l, h) => (c(), E(f(te), {
2615
+ return (u, h) => (c(), E(f(te), {
2621
2616
  type: e.type,
2622
2617
  onClick: a
2623
2618
  }, {
@@ -2662,8 +2657,8 @@ const Ee = {
2662
2657
  },
2663
2658
  emits: ["update:modelValue"],
2664
2659
  setup(t, { emit: e }) {
2665
- const n = Jn(() => import("./ImagesUploader-2UytVh7o.js")), s = Me().fileUploadUrl, o = e, r = t, a = $e({ value: r.modelValue }), i = r.field.converter;
2666
- function l(d) {
2660
+ const n = Jn(() => import("./ImagesUploader-D-XPUBP2.js")), s = Me().fileUploadUrl, o = e, r = t, a = $e({ value: r.modelValue }), i = r.field.converter;
2661
+ function u(d) {
2667
2662
  const p = a.value.findIndex((S) => S.id === d.id);
2668
2663
  a.value.splice(p, 1), o("update:modelValue", a.value);
2669
2664
  }
@@ -2689,11 +2684,11 @@ const Ee = {
2689
2684
  },
2690
2685
  { immediate: !0 }
2691
2686
  ), (d, p) => (c(), $("div", null, [
2692
- x(f(n), {
2687
+ O(f(n), {
2693
2688
  images: a.value,
2694
2689
  props: r.field.props,
2695
2690
  onOnUpload: h,
2696
- onOnRemove: l
2691
+ onOnRemove: u
2697
2692
  }, null, 8, ["images", "props"])
2698
2693
  ]));
2699
2694
  }
@@ -2861,7 +2856,7 @@ const Or = {
2861
2856
  }
2862
2857
  },
2863
2858
  setup(t) {
2864
- const e = t, n = I(() => e.content ? e.content.toString() : "");
2859
+ const e = t, n = N(() => e.content ? e.content.toString() : "");
2865
2860
  return (s, o) => (c(), $("div", null, [
2866
2861
  n.value.length > e.tipShowLength ? (c(), E(f(ss), {
2867
2862
  key: 0,
@@ -2869,7 +2864,7 @@ const Or = {
2869
2864
  effect: "light"
2870
2865
  }, {
2871
2866
  default: w(() => [
2872
- x(f(At), {
2867
+ O(f(At), {
2873
2868
  class: Se(e.className),
2874
2869
  type: e.textType,
2875
2870
  "line-clamp": e.lineClamp
@@ -3186,14 +3181,14 @@ const Gt = 10, Et = mt("route-history", {
3186
3181
  }
3187
3182
  },
3188
3183
  setup(t) {
3189
- const e = _e(), n = z(), s = Et(), o = A("首页"), r = t, a = n.fullPath.split("/")[1], i = O();
3184
+ const e = _e(), n = z(), s = Et(), o = A("首页"), r = t, a = n.fullPath.split("/")[1], i = x();
3190
3185
  s.setupRootPath("首页", `/${a}/home`);
3191
- function l(m) {
3186
+ function u(m) {
3192
3187
  var b, k;
3193
- const u = m.meta.side, _ = m.params.domain;
3188
+ const l = m.meta.side, _ = m.params.domain;
3194
3189
  let g = (b = m.meta) == null ? void 0 : b.title, y = (k = m.meta) == null ? void 0 : k.code;
3195
- if (u && _)
3196
- g = vt()[u][m.params.domain].name, y = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, y = `${m.params.domain}-${m.params.id}`);
3190
+ if (l && _)
3191
+ g = vt()[l][m.params.domain].name, y = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, y = `${m.params.domain}-${m.params.id}`);
3197
3192
  else {
3198
3193
  const V = i.find((W) => W.route === m.path);
3199
3194
  V && (g = V.title, y = V.route);
@@ -3201,22 +3196,22 @@ const Gt = 10, Et = mt("route-history", {
3201
3196
  g && y && (s.push(g, y, m.fullPath), o.value = y);
3202
3197
  }
3203
3198
  function h(m) {
3204
- const u = s.history.find((_) => _.code == m.props.name);
3205
- e.push(u.path);
3199
+ const l = s.history.find((_) => _.code == m.props.name);
3200
+ e.push(l.path);
3206
3201
  }
3207
3202
  function d(m) {
3208
3203
  if (s.remove(m), m == o.value) {
3209
- const u = s.getLast();
3210
- o.value = u.title, e.push(u.path);
3204
+ const l = s.getLast();
3205
+ o.value = l.title, e.push(l.path);
3211
3206
  }
3212
3207
  }
3213
- const p = (m, u) => {
3208
+ const p = (m, l) => {
3214
3209
  const _ = s.history.length;
3215
- return m === 0 && u === "self" || m < 2 && u === "left" || m === _ - 1 && u === "right" || _ === 1 && u === "all" ? !1 : !(_ < 2 && u === "other");
3210
+ return m === 0 && l === "self" || m < 2 && l === "left" || m === _ - 1 && l === "right" || _ === 1 && l === "all" ? !1 : !(_ < 2 && l === "other");
3216
3211
  };
3217
- function S(m, u) {
3212
+ function S(m, l) {
3218
3213
  const _ = [], g = s.history;
3219
- switch (u) {
3214
+ switch (l) {
3220
3215
  case "self":
3221
3216
  _.push(g[m].code);
3222
3217
  break;
@@ -3240,19 +3235,19 @@ const Gt = 10, Et = mt("route-history", {
3240
3235
  for (let y = 0; y < _.length; y++)
3241
3236
  d(_[y]);
3242
3237
  }
3243
- function O() {
3238
+ function x() {
3244
3239
  return r.config.sideMenus[a].map((m) => m.children ? m.children : m).flat();
3245
3240
  }
3246
3241
  return P(
3247
3242
  () => e.currentRoute.value,
3248
3243
  () => {
3249
- l(n);
3244
+ u(n);
3250
3245
  },
3251
3246
  { immediate: !0 }
3252
- ), (m, u) => (c(), $("div", Kr, [
3247
+ ), (m, l) => (c(), $("div", Kr, [
3253
3248
  C("div", null, [
3254
3249
  C("div", Xr, [
3255
- x(f(dn), {
3250
+ O(f(dn), {
3256
3251
  class: "header-img",
3257
3252
  src: r.config.logo,
3258
3253
  fit: "scale-down"
@@ -3261,9 +3256,9 @@ const Gt = 10, Et = mt("route-history", {
3261
3256
  ])
3262
3257
  ]),
3263
3258
  C("div", ea, [
3264
- x(f(pn), {
3259
+ O(f(pn), {
3265
3260
  modelValue: o.value,
3266
- "onUpdate:modelValue": u[0] || (u[0] = (_) => o.value = _),
3261
+ "onUpdate:modelValue": l[0] || (l[0] = (_) => o.value = _),
3267
3262
  type: "card",
3268
3263
  class: "tabs",
3269
3264
  onTabClick: h,
@@ -3276,18 +3271,18 @@ const Gt = 10, Et = mt("route-history", {
3276
3271
  name: _.code
3277
3272
  }, {
3278
3273
  label: w(() => [
3279
- x(f(st), { trigger: "contextmenu" }, {
3274
+ O(f(st), { trigger: "contextmenu" }, {
3280
3275
  dropdown: w(() => [
3281
- x(f(ot), null, {
3276
+ O(f(ot), null, {
3282
3277
  default: w(() => [
3283
3278
  p(g, "self") ? (c(), E(f(ue), {
3284
3279
  key: 0,
3285
3280
  onClick: (y) => S(g, "self")
3286
3281
  }, {
3287
3282
  default: w(() => [
3288
- x(f(G), null, {
3283
+ O(f(G), null, {
3289
3284
  default: w(() => [
3290
- x(f(Rr))
3285
+ O(f(Rr))
3291
3286
  ]),
3292
3287
  _: 1
3293
3288
  }),
@@ -3300,9 +3295,9 @@ const Gt = 10, Et = mt("route-history", {
3300
3295
  onClick: (y) => S(g, "left")
3301
3296
  }, {
3302
3297
  default: w(() => [
3303
- x(f(G), null, {
3298
+ O(f(G), null, {
3304
3299
  default: w(() => [
3305
- x(f(Jt))
3300
+ O(f(Jt))
3306
3301
  ]),
3307
3302
  _: 1
3308
3303
  }),
@@ -3315,9 +3310,9 @@ const Gt = 10, Et = mt("route-history", {
3315
3310
  onClick: (y) => S(g, "right")
3316
3311
  }, {
3317
3312
  default: w(() => [
3318
- x(f(G), null, {
3313
+ O(f(G), null, {
3319
3314
  default: w(() => [
3320
- x(f(Fr))
3315
+ O(f(Fr))
3321
3316
  ]),
3322
3317
  _: 1
3323
3318
  }),
@@ -3330,9 +3325,9 @@ const Gt = 10, Et = mt("route-history", {
3330
3325
  onClick: (y) => S(g, "all")
3331
3326
  }, {
3332
3327
  default: w(() => [
3333
- x(f(G), null, {
3328
+ O(f(G), null, {
3334
3329
  default: w(() => [
3335
- x(f(Ur))
3330
+ O(f(Ur))
3336
3331
  ]),
3337
3332
  _: 1
3338
3333
  }),
@@ -3345,9 +3340,9 @@ const Gt = 10, Et = mt("route-history", {
3345
3340
  onClick: (y) => S(g, "other")
3346
3341
  }, {
3347
3342
  default: w(() => [
3348
- x(f(G), null, {
3343
+ O(f(G), null, {
3349
3344
  default: w(() => [
3350
- x(f(Mr))
3345
+ O(f(Mr))
3351
3346
  ]),
3352
3347
  _: 1
3353
3348
  }),
@@ -3360,7 +3355,7 @@ const Gt = 10, Et = mt("route-history", {
3360
3355
  }, 1024)
3361
3356
  ]),
3362
3357
  default: w(() => [
3363
- x(Or, {
3358
+ O(Or, {
3364
3359
  content: _.title,
3365
3360
  "line-clamp": 1,
3366
3361
  "class-name": "tab-pane-label",
@@ -3377,11 +3372,11 @@ const Gt = 10, Et = mt("route-history", {
3377
3372
  }, 8, ["modelValue"]),
3378
3373
  C("span", {
3379
3374
  class: "back-icon",
3380
- onClick: u[1] || (u[1] = (_) => f(e).back())
3375
+ onClick: l[1] || (l[1] = (_) => f(e).back())
3381
3376
  }, [
3382
- x(f(G), null, {
3377
+ O(f(G), null, {
3383
3378
  default: w(() => [
3384
- x(f(Jt))
3379
+ O(f(Jt))
3385
3380
  ]),
3386
3381
  _: 1
3387
3382
  })
@@ -3420,7 +3415,7 @@ const Gt = 10, Et = mt("route-history", {
3420
3415
  _: 1
3421
3416
  })) : (c(), E(f(G), { key: 1 }, {
3422
3417
  default: w(() => [
3423
- x(f(Qt))
3418
+ O(f(Qt))
3424
3419
  ]),
3425
3420
  _: 1
3426
3421
  })),
@@ -3447,7 +3442,7 @@ const Gt = 10, Et = mt("route-history", {
3447
3442
  _: 1
3448
3443
  })) : e.hasParent ? (c(), $("span", ra, ia)) : (c(), E(f(G), { key: 1 }, {
3449
3444
  default: w(() => [
3450
- x(f(Qt))
3445
+ O(f(Qt))
3451
3446
  ]),
3452
3447
  _: 1
3453
3448
  })),
@@ -3470,15 +3465,15 @@ const Gt = 10, Et = mt("route-history", {
3470
3465
  () => {
3471
3466
  var i;
3472
3467
  if ((i = n.meta) != null && i.side) {
3473
- const l = n.meta.side;
3474
- s.value = `/${l}/${n.params.domain}/list`;
3468
+ const u = n.meta.side;
3469
+ s.value = `/${u}/${n.params.domain}/list`;
3475
3470
  } else
3476
3471
  s.value = n.fullPath;
3477
3472
  },
3478
3473
  { immediate: !0 }
3479
- ), (i, l) => (c(), E(f(as), null, {
3474
+ ), (i, u) => (c(), E(f(as), null, {
3480
3475
  default: w(() => [
3481
- x(f(is), {
3476
+ O(f(is), {
3482
3477
  class: "menu",
3483
3478
  router: !0,
3484
3479
  "default-active": s.value
@@ -3501,16 +3496,16 @@ const Gt = 10, Et = mt("route-history", {
3501
3496
  }
3502
3497
  },
3503
3498
  setup(t) {
3504
- const e = z(), n = t, s = { ...Me(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
3499
+ const e = z(), n = t, s = { ...Me(), ...n.config }, o = N(() => e.params.domain ? e.params.domain : e.fullPath);
3505
3500
  return (r, a) => {
3506
3501
  const i = He("router-view");
3507
3502
  return c(), E(f(ls), { locale: f(Sr) }, {
3508
3503
  default: w(() => [
3509
- x(f(Rt), { style: { height: "100%" } }, {
3504
+ O(f(Rt), { style: { height: "100%" } }, {
3510
3505
  default: w(() => [
3511
- x(f(us), { class: "page-header" }, {
3506
+ O(f(us), { class: "page-header" }, {
3512
3507
  default: w(() => [
3513
- x(sa, { config: s }, {
3508
+ O(sa, { config: s }, {
3514
3509
  "user-profile": w(() => [
3515
3510
  J(r.$slots, "user-profile", {}, void 0, !0)
3516
3511
  ]),
@@ -3519,17 +3514,17 @@ const Gt = 10, Et = mt("route-history", {
3519
3514
  ]),
3520
3515
  _: 3
3521
3516
  }),
3522
- x(f(Rt), { class: "page-content-container" }, {
3517
+ O(f(Rt), { class: "page-content-container" }, {
3523
3518
  default: w(() => [
3524
- x(f(cs), { class: "page-content-aside" }, {
3519
+ O(f(cs), { class: "page-content-aside" }, {
3525
3520
  default: w(() => [
3526
- x(ca, {
3521
+ O(ca, {
3527
3522
  "side-menus": s.sideMenus
3528
3523
  }, null, 8, ["side-menus"])
3529
3524
  ]),
3530
3525
  _: 1
3531
3526
  }),
3532
- x(f(ds), { class: "page-content-main" }, {
3527
+ O(f(ds), { class: "page-content-main" }, {
3533
3528
  default: w(() => [
3534
3529
  (c(), E(i, { key: o.value }))
3535
3530
  ]),
@@ -3640,25 +3635,25 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3640
3635
  );
3641
3636
  function a() {
3642
3637
  if (s.value.length > 0)
3643
- for (let l = 0; l < o.value.length; l++) {
3644
- const h = o.value[l];
3638
+ for (let u = 0; u < o.value.length; u++) {
3639
+ const h = o.value[u];
3645
3640
  for (let d = 0; d < s.value.length; d++) {
3646
3641
  const p = s.value[d];
3647
3642
  h.field === p.field && (h.order = p.order);
3648
3643
  }
3649
3644
  }
3650
3645
  else
3651
- for (let l = 0; l < o.value.length; l++)
3652
- o.value[l].order = "";
3646
+ for (let u = 0; u < o.value.length; u++)
3647
+ o.value[u].order = "";
3653
3648
  }
3654
- function i(l, h) {
3649
+ function i(u, h) {
3655
3650
  const d = o.value;
3656
- h ? d[l].order = h : d[l].order ? d[l].order === "ASC" ? d[l].order = "DESC" : d[l].order === "DESC" && (d[l].order = "") : d[l].order = "ASC", n(
3651
+ h ? d[u].order = h : d[u].order ? d[u].order === "ASC" ? d[u].order = "DESC" : d[u].order === "DESC" && (d[u].order = "") : d[u].order = "ASC", n(
3657
3652
  "updateSorters",
3658
3653
  d.filter((p) => p.order)
3659
3654
  );
3660
3655
  }
3661
- return (l, h) => (c(), $("div", ha, [
3656
+ return (u, h) => (c(), $("div", ha, [
3662
3657
  (c(!0), $(L, null, M(o.value, (d, p) => (c(), $("div", {
3663
3658
  class: "sorters-item",
3664
3659
  onClick: (S) => i(p, "")
@@ -3701,27 +3696,27 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3701
3696
  );
3702
3697
  function r() {
3703
3698
  s.value && s.value.length > 0 ? o.forEach((i) => {
3704
- s.value.forEach((l) => {
3705
- i.field === l.field && (i.min = l.min ? Number(l.min) : null, i.max = l.max ? Number(l.max) : null);
3699
+ s.value.forEach((u) => {
3700
+ i.field === u.field && (i.min = u.min ? Number(u.min) : null, i.max = u.max ? Number(u.max) : null);
3706
3701
  });
3707
3702
  }) : o.forEach((i) => {
3708
3703
  i.min = null, i.max = null;
3709
3704
  });
3710
3705
  }
3711
- function a(i, l, h) {
3706
+ function a(i, u, h) {
3712
3707
  const d = [...o];
3713
3708
  d.forEach((p) => {
3714
- p.field === l && (p[h] = i);
3709
+ p.field === u && (p[h] = i);
3715
3710
  }), n(
3716
3711
  "updateRanges",
3717
3712
  d.filter((p) => p.min || p.max)
3718
3713
  );
3719
3714
  }
3720
- return r(), (i, l) => (c(), $("div", $a, [
3715
+ return r(), (i, u) => (c(), $("div", $a, [
3721
3716
  (c(!0), $(L, null, M(o, (h) => (c(), $("div", Sa, [
3722
3717
  C("div", Oa, F(h.name), 1),
3723
3718
  C("div", xa, [
3724
- x(f(Dt), {
3719
+ O(f(Dt), {
3725
3720
  modelValue: h.min,
3726
3721
  "onUpdate:modelValue": (d) => h.min = d,
3727
3722
  "controls-position": "right",
@@ -3730,7 +3725,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3730
3725
  a(d, h.field, "min");
3731
3726
  }
3732
3727
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
3733
- x(f(Dt), {
3728
+ O(f(Dt), {
3734
3729
  modelValue: h.max,
3735
3730
  "onUpdate:modelValue": (d) => h.max = d,
3736
3731
  "controls-position": "right",
@@ -3763,7 +3758,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3763
3758
  r[b] = void 0;
3764
3759
  }), r.isDeleted = y.filters.isDeleted);
3765
3760
  });
3766
- function l(g) {
3761
+ function u(g) {
3767
3762
  return typeof g == "boolean" ? g : typeof g == "function" ? g(s) : !0;
3768
3763
  }
3769
3764
  async function h(g, y) {
@@ -3813,15 +3808,15 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3813
3808
  };
3814
3809
  }
3815
3810
  function p(g) {
3816
- r.sorters = g, u();
3811
+ r.sorters = g, l();
3817
3812
  }
3818
3813
  function S(g) {
3819
3814
  r.filters = g;
3820
3815
  }
3821
- function O() {
3816
+ function x() {
3822
3817
  Object.keys(r).forEach((g) => {
3823
3818
  r[g] = void 0;
3824
- }), o.value = Object.keys(e.settings.filters).filter((g) => l(e.settings.filters[g].visible)).map((g) => {
3819
+ }), o.value = Object.keys(e.settings.filters).filter((g) => u(e.settings.filters[g].visible)).map((g) => {
3825
3820
  const y = { ...e.settings.filters[g], code: g };
3826
3821
  return r[g] = m(g), (y.type === "select" || y.type === "selectV2" || y.type === "tree") && h(y), y;
3827
3822
  }).filter((g) => g.code !== "isDeleted");
@@ -3830,22 +3825,22 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3830
3825
  const y = e.settings.filters[g], b = i.validFilters[g];
3831
3826
  return y.type === "boolean" && typeof b != "boolean" ? y.value : b;
3832
3827
  }
3833
- function u() {
3828
+ function l() {
3834
3829
  let g = JSON.parse(JSON.stringify(r));
3835
3830
  const y = e.settings.filterHook;
3836
3831
  y != null && y.preSubmit && (g = y.preSubmit(g, s)), i.change(g);
3837
3832
  }
3838
3833
  function _() {
3839
- i.$reset({}), O(), u();
3834
+ i.$reset({}), x(), l();
3840
3835
  }
3841
3836
  return P(
3842
3837
  () => e.settings,
3843
3838
  () => {
3844
- O(), u();
3839
+ x(), l();
3845
3840
  },
3846
3841
  { immediate: !0 }
3847
3842
  ), (g, y) => Object.keys(e.settings.filters).length > 0 ? (c(), $("div", Aa, [
3848
- x(f(cn), {
3843
+ O(f(cn), {
3849
3844
  model: r,
3850
3845
  inline: "",
3851
3846
  class: "form-editor"
@@ -3861,14 +3856,14 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3861
3856
  clearable: "",
3862
3857
  placeholder: `是否${b.name}`,
3863
3858
  "value-on-clear": null,
3864
- onChange: u
3859
+ onChange: l
3865
3860
  }, {
3866
3861
  default: w(() => [
3867
- x(f(Ye), {
3862
+ O(f(Ye), {
3868
3863
  value: !0,
3869
3864
  label: `已${b.name}`
3870
3865
  }, null, 8, ["label"]),
3871
- x(f(Ye), {
3866
+ O(f(Ye), {
3872
3867
  value: !1,
3873
3868
  label: `未${b.name}`
3874
3869
  }, null, 8, ["label"])
@@ -3891,7 +3886,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3891
3886
  "multiple-limit": b.multipleLimit ? b.multipleLimit : 0,
3892
3887
  "remote-method": d(b),
3893
3888
  "value-on-clear": null,
3894
- onChange: u
3889
+ onChange: l
3895
3890
  }, {
3896
3891
  default: w(() => [
3897
3892
  (c(!0), $(L, null, M(a[b.code], (k) => (c(), E(f(Ye), {
@@ -3913,7 +3908,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3913
3908
  placeholder: b.name,
3914
3909
  clearable: "",
3915
3910
  "value-on-clear": null,
3916
- onChange: u
3911
+ onChange: l
3917
3912
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "multiple", "placeholder"])) : b.type === "sorters" ? (c(), E(Ea, {
3918
3913
  key: 3,
3919
3914
  value: r[b.code],
@@ -3956,16 +3951,16 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3956
3951
  }, 1024))), 256)),
3957
3952
  o.value.length > 0 ? (c(), E(f(nt), { key: 0 }, {
3958
3953
  default: w(() => [
3959
- x(f(te), {
3954
+ O(f(te), {
3960
3955
  type: "primary",
3961
- onClick: u
3956
+ onClick: l
3962
3957
  }, {
3963
3958
  default: w(() => [
3964
3959
  B(" 查询 ")
3965
3960
  ]),
3966
3961
  _: 1
3967
3962
  }),
3968
- x(f(te), { onClick: _ }, {
3963
+ O(f(te), { onClick: _ }, {
3969
3964
  default: w(() => [
3970
3965
  B(" 重置 ")
3971
3966
  ]),
@@ -3992,8 +3987,8 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3992
3987
  s.path,
3993
3988
  e.settings.filters,
3994
3989
  e.settings.filterHook
3995
- )(), a = Ae(), i = I(() => r.validFilters.isDeleted || !1);
3996
- function l() {
3990
+ )(), a = Ae(), i = N(() => r.validFilters.isDeleted || !1);
3991
+ function u() {
3997
3992
  r.$reset({ isDeleted: !i.value });
3998
3993
  }
3999
3994
  function h() {
@@ -4018,26 +4013,26 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4018
4013
  ]),
4019
4014
  _: 3
4020
4015
  })) : T("", !0),
4021
- x(f(de), { class: "button-groups" }, {
4016
+ O(f(de), { class: "button-groups" }, {
4022
4017
  default: w(() => [
4023
4018
  J(p.$slots, "tools", {}, void 0, !0)
4024
4019
  ]),
4025
4020
  _: 3
4026
4021
  }),
4027
- x(f(st), {
4022
+ O(f(st), {
4028
4023
  trigger: "click",
4029
4024
  onCommand: d
4030
4025
  }, {
4031
4026
  dropdown: w(() => [
4032
- x(f(ot), null, {
4027
+ O(f(ot), null, {
4033
4028
  default: w(() => [
4034
- x(f(ue), { command: "list" }, {
4029
+ O(f(ue), { command: "list" }, {
4035
4030
  default: w(() => [
4036
4031
  B(" 列表 ")
4037
4032
  ]),
4038
4033
  _: 1
4039
4034
  }),
4040
- x(f(ue), { command: "grid" }, {
4035
+ O(f(ue), { command: "grid" }, {
4041
4036
  default: w(() => [
4042
4037
  B(" 网格 ")
4043
4038
  ]),
@@ -4048,17 +4043,17 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4048
4043
  })
4049
4044
  ]),
4050
4045
  default: w(() => [
4051
- x(f(te), null, {
4046
+ O(f(te), null, {
4052
4047
  default: w(() => [
4053
- x(f(G), null, {
4048
+ O(f(G), null, {
4054
4049
  default: w(() => [
4055
- x(f(Nr))
4050
+ O(f(Nr))
4056
4051
  ]),
4057
4052
  _: 1
4058
4053
  }),
4059
- x(f(G), { class: "el-icon--right" }, {
4054
+ O(f(G), { class: "el-icon--right" }, {
4060
4055
  default: w(() => [
4061
- x(f(kr))
4056
+ O(f(kr))
4062
4057
  ]),
4063
4058
  _: 1
4064
4059
  })
@@ -4073,11 +4068,11 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4073
4068
  trigger: "click"
4074
4069
  }, {
4075
4070
  dropdown: w(() => [
4076
- x(f(ot), null, {
4071
+ O(f(ot), null, {
4077
4072
  default: w(() => [
4078
- x(f(ue), {
4073
+ O(f(ue), {
4079
4074
  command: "deleted",
4080
- onClick: l
4075
+ onClick: u
4081
4076
  }, {
4082
4077
  default: w(() => [
4083
4078
  C("div", null, F(i.value ? "未删除" : "已删除"), 1)
@@ -4089,11 +4084,11 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4089
4084
  })
4090
4085
  ]),
4091
4086
  default: w(() => [
4092
- x(f(te), null, {
4087
+ O(f(te), null, {
4093
4088
  default: w(() => [
4094
- x(f(G), null, {
4089
+ O(f(G), null, {
4095
4090
  default: w(() => [
4096
- x(f(Qr))
4091
+ O(f(Qr))
4097
4092
  ]),
4098
4093
  _: 1
4099
4094
  })
@@ -4105,7 +4100,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4105
4100
  })) : T("", !0)
4106
4101
  ])
4107
4102
  ]),
4108
- x(Da, {
4103
+ O(Da, {
4109
4104
  settings: e.settings
4110
4105
  }, null, 8, ["settings"])
4111
4106
  ], 64));
@@ -4127,17 +4122,17 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4127
4122
  }
4128
4123
  },
4129
4124
  setup(t) {
4130
- const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a = I(() => ({
4131
- path: `/${o}/${s.field.domain}/${r}`,
4125
+ const e = Ae(), n = z(), s = t, o = n.meta.side, r = N(() => s.row[s.field.code]), a = N(() => ({
4126
+ path: `/${o}/${s.field.domain}/${r.value}`,
4132
4127
  query: { ...Y(n), ...s.field.rowQuery(s.row) }
4133
4128
  }));
4134
4129
  function i() {
4135
4130
  return s.field.isRouter(s.row, Y(n));
4136
4131
  }
4137
- return (l, h) => {
4132
+ return (u, h) => {
4138
4133
  const d = He("RouterLink");
4139
4134
  return c(), $("div", Ba, [
4140
- f(r) ? (c(), $("span", Na, [
4135
+ r.value ? (c(), $("span", Na, [
4141
4136
  i() ? (c(), E(d, {
4142
4137
  key: 0,
4143
4138
  class: "bld-link mono-data",
@@ -4145,26 +4140,26 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4145
4140
  }, {
4146
4141
  default: w(() => [
4147
4142
  f(e).name ? (c(), $(L, { key: 0 }, [
4148
- J(l.$slots, "name", {}, void 0, !0),
4149
- B("(#" + F(f(r)) + ") ", 1)
4143
+ J(u.$slots, "name", {}, void 0, !0),
4144
+ B("(#" + F(r.value) + ") ", 1)
4150
4145
  ], 64)) : (c(), $(L, { key: 1 }, [
4151
- B(" #" + F(f(r)), 1)
4146
+ B(" #" + F(r.value), 1)
4152
4147
  ], 64))
4153
4148
  ]),
4154
4149
  _: 3
4155
4150
  }, 8, ["to"])) : (c(), $("span", Ia, [
4156
4151
  f(e).name ? (c(), $(L, { key: 0 }, [
4157
- J(l.$slots, "name", {}, void 0, !0),
4158
- B("(" + F(f(r)) + ") ", 1)
4152
+ J(u.$slots, "name", {}, void 0, !0),
4153
+ B("(" + F(r.value) + ") ", 1)
4159
4154
  ], 64)) : (c(), $(L, { key: 1 }, [
4160
- B(F(f(r)), 1)
4155
+ B(F(r.value), 1)
4161
4156
  ], 64))
4162
4157
  ]))
4163
4158
  ])) : (c(), $("span", Va, " NO ID "))
4164
4159
  ]);
4165
4160
  };
4166
4161
  }
4167
- }, za = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-4defcffa"]]);
4162
+ }, za = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-00021e61"]]);
4168
4163
  function Ma(t) {
4169
4164
  Ne(t);
4170
4165
  }
@@ -4191,52 +4186,52 @@ const Ha = {
4191
4186
  },
4192
4187
  setup(t) {
4193
4188
  var m;
4194
- const e = Et(), n = re(), s = z(), o = _e(), r = Y(s), a = t, i = A({}), l = A(!1), h = I(() => {
4195
- var u, _;
4196
- return a.row.deletedAt ? !1 : (u = a.operations) != null && u.updatable ? !0 : !!((_ = a.operations) != null && _.removable);
4189
+ const e = Et(), n = re(), s = z(), o = _e(), r = Y(s), a = t, i = A({}), u = A(!1), h = N(() => {
4190
+ var l, _;
4191
+ return a.row.deletedAt ? !1 : (l = a.operations) != null && l.updatable ? !0 : !!((_ = a.operations) != null && _.removable);
4197
4192
  }), d = A((m = a.operations) == null ? void 0 : m.removable);
4198
4193
  async function p() {
4199
- const u = a.settings.formHook, _ = a.settings.btnVisible, g = a.settings.rest, { data: y } = await g.getOne({
4194
+ const l = a.settings.formHook, _ = a.settings.btnVisible, g = a.settings.rest, { data: y } = await g.getOne({
4200
4195
  ...a.row,
4201
4196
  ...r
4202
4197
  });
4203
- i.value = y, u.setupUpdate && (i.value = u.setupUpdate(i.value)), _.showRemove && (d.value = _.showRemove(i.value)), l.value = !0;
4198
+ i.value = y, l.setupUpdate && (i.value = l.setupUpdate(i.value)), _.showRemove && (d.value = _.showRemove(i.value)), u.value = !0;
4204
4199
  }
4205
- function S(u, _) {
4200
+ function S(l, _) {
4206
4201
  const g = a.settings.formHook, y = a.settings.rest;
4207
4202
  Object.keys(r).forEach((b) => {
4208
- u[b] = r[b];
4209
- }), g != null && g.preUpdateSubmit && (u = g.preUpdateSubmit(u)), y.update(u).then(() => {
4210
- l.value = !1, n.fireUpdated();
4203
+ l[b] = r[b];
4204
+ }), g != null && g.preUpdateSubmit && (l = g.preUpdateSubmit(l)), y.update(l).then(() => {
4205
+ u.value = !1, n.fireUpdated();
4211
4206
  }).catch(async () => {
4212
4207
  _();
4213
4208
  });
4214
4209
  }
4215
- function O(u, _) {
4216
- a.settings.rest.remove(u).then(() => {
4217
- Ha.show({ type: "success", message: "删除成功" }), l.value = !1, a.isDetail && e.history.forEach((y) => {
4210
+ function x(l, _) {
4211
+ a.settings.rest.remove(l).then(() => {
4212
+ Ha.show({ type: "success", message: "删除成功" }), u.value = !1, a.isDetail && e.history.forEach((y) => {
4218
4213
  s.fullPath.includes(y.path) && (e.remove(y.code), o.back());
4219
4214
  }), n.fireRemoved();
4220
4215
  }).catch(() => {
4221
4216
  _();
4222
4217
  });
4223
4218
  }
4224
- return (u, _) => h.value ? (c(), E(f(te), {
4219
+ return (l, _) => h.value ? (c(), E(f(te), {
4225
4220
  key: 0,
4226
4221
  type: "primary",
4227
4222
  onClick: p
4228
4223
  }, {
4229
4224
  default: w(() => [
4230
4225
  B(" 编辑 "),
4231
- l.value ? (c(), E(wt, {
4226
+ u.value ? (c(), E(wt, {
4232
4227
  key: 0,
4233
- modelValue: l.value,
4234
- "onUpdate:modelValue": _[0] || (_[0] = (g) => l.value = g),
4228
+ modelValue: u.value,
4229
+ "onUpdate:modelValue": _[0] || (_[0] = (g) => u.value = g),
4235
4230
  config: a.settings,
4236
4231
  data: i.value,
4237
4232
  removable: d.value,
4238
4233
  onSubmit: S,
4239
- onRemove: O
4234
+ onRemove: x
4240
4235
  }, null, 8, ["modelValue", "config", "data", "removable"])) : T("", !0)
4241
4236
  ]),
4242
4237
  _: 1
@@ -4269,19 +4264,19 @@ const Ha = {
4269
4264
  e.path,
4270
4265
  o.settings.filters,
4271
4266
  o.settings.filterHook
4272
- )(), { filters: a } = pe(r), i = A(a.value), l = Q([]), h = Q(null), d = I(() => {
4273
- var O, m;
4274
- return !!((O = o.operations) != null && O.updatable || (m = o.operations) != null && m.removable);
4267
+ )(), { filters: a } = pe(r), i = A(a.value), u = Q([]), h = Q(null), d = N(() => {
4268
+ var x, m;
4269
+ return !!((x = o.operations) != null && x.updatable || (m = o.operations) != null && m.removable);
4275
4270
  });
4276
4271
  function p() {
4277
- h.value = o.settings.fields.find((O) => O.code === "id"), l.value = o.settings.fields.filter((O) => O.code === o.settings.coverField || O.code === o.settings.nameField || O.code === "id" ? !1 : O.showInList(n, i.value));
4272
+ h.value = o.settings.fields.find((x) => x.code === "id"), u.value = o.settings.fields.filter((x) => x.code === o.settings.coverField || x.code === o.settings.nameField || x.code === "id" ? !1 : x.showInList(n, i.value));
4278
4273
  }
4279
- function S(O) {
4280
- return o.settings.nameField ? O[o.settings.nameField] : O.name ? O.name : `${O.id}`;
4274
+ function S(x) {
4275
+ return o.settings.nameField ? x[o.settings.nameField] : x.name ? x.name : `${x.id}`;
4281
4276
  }
4282
- return P(a, (O) => {
4283
- i.value = O, p();
4284
- }), p(), (O, m) => (c(), $("div", Wa, [
4277
+ return P(a, (x) => {
4278
+ i.value = x, p();
4279
+ }), p(), (x, m) => (c(), $("div", Wa, [
4285
4280
  t.data.length === 0 ? (c(), E(f(ms), {
4286
4281
  key: 0,
4287
4282
  description: "暂无数据"
@@ -4290,7 +4285,7 @@ const Ha = {
4290
4285
  gutter: 20
4291
4286
  }, {
4292
4287
  default: w(() => [
4293
- (c(!0), $(L, null, M(t.data, (u) => (c(), E(f(we), {
4288
+ (c(!0), $(L, null, M(t.data, (l) => (c(), E(f(we), {
4294
4289
  style: { "margin-bottom": "20px" },
4295
4290
  xs: 24,
4296
4291
  sm: 12,
@@ -4299,18 +4294,18 @@ const Ha = {
4299
4294
  xl: 4
4300
4295
  }, {
4301
4296
  default: w(() => [
4302
- x(f(un), {
4297
+ O(f(un), {
4303
4298
  "body-style": { padding: "0px" },
4304
4299
  shadow: "hover"
4305
4300
  }, {
4306
4301
  default: w(() => [
4307
4302
  f(s).cover || o.settings.coverField ? (c(), $("div", Ja, [
4308
- f(s).cover ? J(O.$slots, "cover", {
4303
+ f(s).cover ? J(x.$slots, "cover", {
4309
4304
  key: 0,
4310
- row: u
4305
+ row: l
4311
4306
  }, void 0, !0) : (c(), E(f(dn), {
4312
4307
  key: 1,
4313
- src: u[o.settings.coverField],
4308
+ src: l[o.settings.coverField],
4314
4309
  fit: "contain"
4315
4310
  }, {
4316
4311
  error: w(() => [
@@ -4320,14 +4315,14 @@ const Ha = {
4320
4315
  }, 1032, ["src"]))
4321
4316
  ])) : T("", !0),
4322
4317
  C("div", Ga, [
4323
- x(za, {
4318
+ O(za, {
4324
4319
  field: h.value,
4325
- row: u
4320
+ row: l
4326
4321
  }, Ce({ _: 2 }, [
4327
- u[o.settings.nameField] ? {
4322
+ l[o.settings.nameField] ? {
4328
4323
  name: "name",
4329
4324
  fn: w(() => [
4330
- B(F(S(u)), 1)
4325
+ B(F(S(l)), 1)
4331
4326
  ]),
4332
4327
  key: "0"
4333
4328
  } : void 0
@@ -4335,8 +4330,8 @@ const Ha = {
4335
4330
  ]),
4336
4331
  C("div", Ya, [
4337
4332
  f(s).body ? (c(), $("div", Ka, [
4338
- J(O.$slots, "body", { row: u }, void 0, !0)
4339
- ])) : (c(!0), $(L, { key: 1 }, M(l.value, (_) => (c(), $("div", {
4333
+ J(x.$slots, "body", { row: l }, void 0, !0)
4334
+ ])) : (c(!0), $(L, { key: 1 }, M(u.value, (_) => (c(), $("div", {
4340
4335
  key: _.code,
4341
4336
  class: "field mono-data"
4342
4337
  }, [
@@ -4344,7 +4339,7 @@ const Ha = {
4344
4339
  C("div", Za, [
4345
4340
  (c(), E(K(_.display), {
4346
4341
  field: _,
4347
- row: u,
4342
+ row: l,
4348
4343
  mode: "grid"
4349
4344
  }, null, 8, ["field", "row"]))
4350
4345
  ])
@@ -4356,7 +4351,7 @@ const Ha = {
4356
4351
  size: "small"
4357
4352
  }, {
4358
4353
  default: w(() => [
4359
- J(O.$slots, "actions", { row: u }, void 0, !0)
4354
+ J(x.$slots, "actions", { row: l }, void 0, !0)
4360
4355
  ]),
4361
4356
  _: 2
4362
4357
  }, 1024)) : T("", !0),
@@ -4365,8 +4360,8 @@ const Ha = {
4365
4360
  size: "small"
4366
4361
  }, {
4367
4362
  default: w(() => [
4368
- x($t, {
4369
- row: u,
4363
+ O($t, {
4364
+ row: l,
4370
4365
  settings: o.settings,
4371
4366
  operations: o.operations
4372
4367
  }, null, 8, ["row", "settings", "operations"])
@@ -4423,20 +4418,20 @@ const oi = {
4423
4418
  n.path,
4424
4419
  a.settings.filters,
4425
4420
  a.settings.filterHook
4426
- )(), { filters: l } = pe(i), h = A(l.value), d = Q([]), p = I(() => {
4421
+ )(), { filters: u } = pe(i), h = A(u.value), d = Q([]), p = N(() => {
4427
4422
  var _, g;
4428
4423
  return !!((_ = a.operations) != null && _.updatable || (g = a.operations) != null && g.removable);
4429
4424
  });
4430
4425
  function S(_) {
4431
4426
  o("sort-column", _);
4432
4427
  }
4433
- function O(_) {
4428
+ function x(_) {
4434
4429
  o("enable-item", _);
4435
4430
  }
4436
4431
  function m() {
4437
4432
  d.value = a.settings.fields.filter((_) => _.showInList(s, h.value));
4438
4433
  }
4439
- function u(_) {
4434
+ function l(_) {
4440
4435
  o("select-change", {
4441
4436
  routeQuery: s,
4442
4437
  data: _
@@ -4447,7 +4442,7 @@ const oi = {
4447
4442
  () => {
4448
4443
  a.data.length > 0 && si(a.settings, a.data[0]);
4449
4444
  }
4450
- ), P(l, (_) => {
4445
+ ), P(u, (_) => {
4451
4446
  h.value = _, m();
4452
4447
  }), (_, g) => (c(), E(f(hs), {
4453
4448
  ref: "dataTable",
@@ -4456,11 +4451,11 @@ const oi = {
4456
4451
  "show-overflow-tooltip": "",
4457
4452
  "highlight-current-row": "",
4458
4453
  "row-key": "id",
4459
- onSelectionChange: u,
4454
+ onSelectionChange: l,
4460
4455
  onSortChange: S
4461
4456
  }, {
4462
4457
  default: w(() => [
4463
- x(f(Le), {
4458
+ O(f(Le), {
4464
4459
  type: "selection",
4465
4460
  width: "40"
4466
4461
  }),
@@ -4479,7 +4474,7 @@ const oi = {
4479
4474
  field: y,
4480
4475
  row: b,
4481
4476
  mode: "list",
4482
- onEnable: O
4477
+ onEnable: x
4483
4478
  }, null, 40, ["field", "row"]))
4484
4479
  ]),
4485
4480
  key: "0"
@@ -4503,7 +4498,7 @@ const oi = {
4503
4498
  width: a.actionsWidth
4504
4499
  }, {
4505
4500
  default: w(({ row: y }) => [
4506
- x(f(de), { size: "small" }, {
4501
+ O(f(de), { size: "small" }, {
4507
4502
  default: w(() => [
4508
4503
  J(_.$slots, "actions", { row: y }, void 0, !0)
4509
4504
  ]),
@@ -4519,9 +4514,9 @@ const oi = {
4519
4514
  width: a.operationsWidth
4520
4515
  }, {
4521
4516
  default: w(({ row: y }) => [
4522
- x(f(de), { size: "small" }, {
4517
+ O(f(de), { size: "small" }, {
4523
4518
  default: w(() => [
4524
- x($t, {
4519
+ O($t, {
4525
4520
  row: y,
4526
4521
  settings: a.settings,
4527
4522
  operations: a.operations
@@ -4561,7 +4556,7 @@ const oi = {
4561
4556
  }
4562
4557
  return P(n, (i) => {
4563
4558
  a(i);
4564
- }), (i, l) => (c(), E(K(r.value), kt(Ct(o)), Ce({ _: 2 }, [
4559
+ }), (i, u) => (c(), E(K(r.value), kt(Ct(o)), Ce({ _: 2 }, [
4565
4560
  M(f(s), (h, d) => ({
4566
4561
  name: d,
4567
4562
  fn: w((p) => [
@@ -4583,19 +4578,19 @@ const oi = {
4583
4578
  }
4584
4579
  },
4585
4580
  setup(t) {
4586
- const e = re(), n = z(), s = Y(n), o = t, r = A({}), a = A(!1), i = I(() => {
4581
+ const e = re(), n = z(), s = Y(n), o = t, r = A({}), a = A(!1), i = N(() => {
4587
4582
  var d;
4588
4583
  return !!((d = o.operations) != null && d.creatable);
4589
4584
  });
4590
- async function l() {
4591
- const d = o.settings.formHook, p = o.settings.fields.reduce((S, O) => (S[O.code] = O.default, S), {});
4585
+ async function u() {
4586
+ const d = o.settings.formHook, p = o.settings.fields.reduce((S, x) => (S[x.code] = x.default, S), {});
4592
4587
  r.value = p, d.setupCreate && (r.value = d.setupCreate(r.value)), a.value = !0;
4593
4588
  }
4594
4589
  function h(d, p) {
4595
- const S = o.settings.formHook, O = o.settings.rest;
4590
+ const S = o.settings.formHook, x = o.settings.rest;
4596
4591
  Object.keys(s).forEach((m) => {
4597
4592
  d[m] = s[m];
4598
- }), S != null && S.preCreateSubmit && (d = S.preCreateSubmit(d)), O.create(d).then(() => {
4593
+ }), S != null && S.preCreateSubmit && (d = S.preCreateSubmit(d)), x.create(d).then(() => {
4599
4594
  a.value = !1, e.fireCreated();
4600
4595
  }).catch(async () => {
4601
4596
  p();
@@ -4604,7 +4599,7 @@ const oi = {
4604
4599
  return (d, p) => i.value ? (c(), E(f(te), {
4605
4600
  key: 0,
4606
4601
  type: "success",
4607
- onClick: l
4602
+ onClick: u
4608
4603
  }, {
4609
4604
  default: w(() => [
4610
4605
  B(" 添加 "),
@@ -4637,14 +4632,14 @@ const oi = {
4637
4632
  setup(t) {
4638
4633
  const e = _e(), n = re(), s = t, o = Q([]);
4639
4634
  let r = "";
4640
- async function a(l, h) {
4641
- if (r = Pe.service({ fullscreen: !0 }), l.path) {
4642
- r.close(), i(l, h);
4635
+ async function a(u, h) {
4636
+ if (r = Pe.service({ fullscreen: !0 }), u.path) {
4637
+ r.close(), i(u, h);
4643
4638
  return;
4644
4639
  }
4645
4640
  const d = await Ee.getValue();
4646
4641
  try {
4647
- await l.action({
4642
+ await u.action({
4648
4643
  ...h,
4649
4644
  ...s.query,
4650
4645
  idempotentToken: d
@@ -4653,8 +4648,8 @@ const oi = {
4653
4648
  r.close(), n.fireUpdated();
4654
4649
  }
4655
4650
  }
4656
- function i(l, h) {
4657
- e.push(l.path(h, s.query));
4651
+ function i(u, h) {
4652
+ e.push(u.path(h, s.query));
4658
4653
  }
4659
4654
  return P(
4660
4655
  () => s.row,
@@ -4662,7 +4657,7 @@ const oi = {
4662
4657
  o.value = s.settings.rowActions(s.query);
4663
4658
  },
4664
4659
  { immediate: !0 }
4665
- ), (l, h) => (c(!0), $(L, null, M(o.value, (d) => (c(), $(L, null, [
4660
+ ), (u, h) => (c(!0), $(L, null, M(o.value, (d) => (c(), $(L, null, [
4666
4661
  d.isVisible(s.row) ? (c(), $(L, { key: 0 }, [
4667
4662
  d.component ? (c(), E(K(d.component), {
4668
4663
  key: 0,
@@ -4694,17 +4689,17 @@ const oi = {
4694
4689
  }
4695
4690
  },
4696
4691
  setup(t) {
4697
- const e = re(), n = t, s = Q([]), o = I(() => {
4698
- var i, l;
4699
- return ((l = (i = n.tableDataSelect) == null ? void 0 : i.data) == null ? void 0 : l.length) > 0;
4692
+ const e = re(), n = t, s = Q([]), o = N(() => {
4693
+ var i, u;
4694
+ return ((u = (i = n.tableDataSelect) == null ? void 0 : i.data) == null ? void 0 : u.length) > 0;
4700
4695
  }), r = A(!1);
4701
4696
  async function a(i) {
4702
4697
  r.value = !0;
4703
- const l = await Ee.getValue();
4698
+ const u = await Ee.getValue();
4704
4699
  try {
4705
4700
  await i.action({
4706
4701
  ...n.tableDataSelect,
4707
- idempotentToken: l
4702
+ idempotentToken: u
4708
4703
  }), r.value = !1, e.fireUpdated();
4709
4704
  } catch {
4710
4705
  r.value = !1, e.fireUpdated();
@@ -4716,7 +4711,7 @@ const oi = {
4716
4711
  s.value = n.settings.pageActions(n.query);
4717
4712
  },
4718
4713
  { immediate: !0 }
4719
- ), (i, l) => (c(!0), $(L, null, M(s.value, (h) => (c(), $(L, null, [
4714
+ ), (i, u) => (c(!0), $(L, null, M(s.value, (h) => (c(), $(L, null, [
4720
4715
  h.component ? (c(), E(K(h.component), {
4721
4716
  key: 0,
4722
4717
  item: h,
@@ -4758,11 +4753,11 @@ const oi = {
4758
4753
  },
4759
4754
  emits: ["page-change"],
4760
4755
  setup(t, { emit: e }) {
4761
- const n = e, s = _e(), o = z(), r = t, a = A(r.page), i = A(r.size), l = A(r.total), h = A(r.pageSizes);
4756
+ const n = e, s = _e(), o = z(), r = t, a = A(r.page), i = A(r.size), u = A(r.total), h = A(r.pageSizes);
4762
4757
  P(
4763
4758
  () => r.total,
4764
4759
  (S) => {
4765
- l.value = S;
4760
+ u.value = S;
4766
4761
  }
4767
4762
  ), P(
4768
4763
  () => [o.query.page, o.query.pageSize],
@@ -4790,12 +4785,12 @@ const oi = {
4790
4785
  }
4791
4786
  });
4792
4787
  }
4793
- return (S, O) => (c(), $("div", li, [
4794
- x(f(gs), {
4788
+ return (S, x) => (c(), $("div", li, [
4789
+ O(f(gs), {
4795
4790
  background: "",
4796
4791
  "page-size": i.value,
4797
4792
  "page-sizes": h.value,
4798
- total: l.value,
4793
+ total: u.value,
4799
4794
  "current-page": t.page,
4800
4795
  layout: "total,sizes, prev, pager, next",
4801
4796
  onCurrentChange: d,
@@ -4843,12 +4838,12 @@ var en = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, vi
4843
4838
  function tn(t, e, n = {}) {
4844
4839
  const s = n, { window: o = gi } = s, r = bi(s, ["window"]);
4845
4840
  let a;
4846
- const i = _i(() => o && "ResizeObserver" in o), l = () => {
4841
+ const i = _i(() => o && "ResizeObserver" in o), u = () => {
4847
4842
  a && (a.disconnect(), a = void 0);
4848
4843
  }, h = P(() => hi(t), (p) => {
4849
- l(), i.value && o && p && (a = new ResizeObserver(e), a.observe(p, r));
4844
+ u(), i.value && o && p && (a = new ResizeObserver(e), a.observe(p, r));
4850
4845
  }, { immediate: !0, flush: "post" }), d = () => {
4851
- l(), h();
4846
+ u(), h();
4852
4847
  };
4853
4848
  return fi(d), {
4854
4849
  isSupported: i,
@@ -4919,25 +4914,25 @@ const xi = {
4919
4914
  P(r, (D) => {
4920
4915
  g = D, W();
4921
4916
  });
4922
- const a = re(), { created: i, updated: l, removed: h } = pe(a);
4923
- P([i, l, h], ([D, N, ae]) => {
4924
- (D || N || ae) && W();
4917
+ const a = re(), { created: i, updated: u, removed: h } = pe(a);
4918
+ P([i, u, h], ([D, I, ae]) => {
4919
+ (D || I || ae) && W();
4925
4920
  });
4926
- const d = A(!0), p = A([]), S = A(0), O = A({}), m = A({}), u = A(null), _ = A(null);
4921
+ const d = A(!0), p = A([]), S = A(0), x = A({}), m = A({}), l = A(null), _ = A(null);
4927
4922
  let g = {};
4928
4923
  const y = A(parseInt(e.query.pageSize) || 30), b = A(parseInt(e.query.page) || 1);
4929
4924
  function k(D) {
4930
- let N = null;
4931
- if (D.order === "ascending" ? N = "ASC" : D.order === "descending" && (N = "DESC"), g.sorters) {
4925
+ let I = null;
4926
+ if (D.order === "ascending" ? I = "ASC" : D.order === "descending" && (I = "DESC"), g.sorters) {
4932
4927
  let ae = [];
4933
4928
  g.sorters.some((ie) => ie.field === D.prop) ? g.sorters.forEach((ie) => {
4934
- ie.field === D.prop && (ie.order = N, ie.name || ae.push(ie)), ie.name && ae.push(ie);
4929
+ ie.field === D.prop && (ie.order = I, ie.name || ae.push(ie)), ie.name && ae.push(ie);
4935
4930
  }) : ae = [
4936
4931
  ...g.sorters,
4937
- { field: D.prop, order: N }
4932
+ { field: D.prop, order: I }
4938
4933
  ], g.sorters = ae;
4939
4934
  } else
4940
- g.sorters = [{ field: D.prop, order: N }];
4935
+ g.sorters = [{ field: D.prop, order: I }];
4941
4936
  W();
4942
4937
  }
4943
4938
  function V() {
@@ -4952,23 +4947,23 @@ const xi = {
4952
4947
  page: b.value,
4953
4948
  size: y.value
4954
4949
  };
4955
- s.settings.rest.getList(D).then((N) => {
4956
- O.value.data = [], p.value = N.data.rows, S.value = N.data.count, d.value = !1;
4950
+ s.settings.rest.getList(D).then((I) => {
4951
+ x.value.data = [], p.value = I.data.rows, S.value = I.data.count, d.value = !1;
4957
4952
  });
4958
4953
  }
4959
4954
  function q(D) {
4960
4955
  b.value = D.page, y.value = D.size, W();
4961
4956
  }
4962
4957
  function oe(D) {
4963
- const N = { id: D.id, enable: !D.enable };
4964
- s.settings.rest.enable(N).then(() => {
4958
+ const I = { id: D.id, enable: !D.enable };
4959
+ s.settings.rest.enable(I).then(() => {
4965
4960
  W();
4966
4961
  });
4967
4962
  }
4968
4963
  function Hn(D) {
4969
4964
  if (D.enable) {
4970
- const N = D.label === "上架" ? "下架" : "停用";
4971
- ElMessageBox.confirm(`确定要${N}该条数据吗?`, "提示", {
4965
+ const I = D.label === "上架" ? "下架" : "停用";
4966
+ ElMessageBox.confirm(`确定要${I}该条数据吗?`, "提示", {
4972
4967
  confirmButtonText: "确定",
4973
4968
  cancelButtonText: "取消",
4974
4969
  type: "warning"
@@ -4980,35 +4975,35 @@ const xi = {
4980
4975
  oe(D);
4981
4976
  }
4982
4977
  function qn(D) {
4983
- O.value = D;
4978
+ x.value = D;
4984
4979
  }
4985
4980
  const St = A(0), Ot = A(0);
4986
- tn(u, (D) => {
4987
- var N;
4988
- St.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
4981
+ tn(l, (D) => {
4982
+ var I;
4983
+ St.value = ((I = D[0]) == null ? void 0 : I.contentRect.height) || 0;
4989
4984
  }), tn(_, (D) => {
4990
- var N;
4991
- Ot.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
4985
+ var I;
4986
+ Ot.value = ((I = D[0]) == null ? void 0 : I.contentRect.height) || 0;
4992
4987
  });
4993
- const Wn = I(() => `${St.value + Ot.value}px`);
4994
- return V(), (D, N) => (c(), $("div", {
4988
+ const Wn = N(() => `${St.value + Ot.value}px`);
4989
+ return V(), (D, I) => (c(), $("div", {
4995
4990
  key: s.settings.code,
4996
4991
  style: { height: "100%" }
4997
4992
  }, [
4998
4993
  C("div", {
4999
4994
  ref_key: "pageHeader",
5000
- ref: u
4995
+ ref: l
5001
4996
  }, [
5002
- x(ja, {
4997
+ O(ja, {
5003
4998
  settings: s.settings
5004
4999
  }, {
5005
5000
  operations: w(() => [
5006
- x(ii, {
5001
+ O(ii, {
5007
5002
  settings: s.settings,
5008
- "table-data-select": O.value,
5003
+ "table-data-select": x.value,
5009
5004
  query: f(n)
5010
5005
  }, null, 8, ["settings", "table-data-select", "query"]),
5011
- x(ai, {
5006
+ O(ai, {
5012
5007
  settings: s.settings,
5013
5008
  operations: m.value
5014
5009
  }, null, 8, ["settings", "operations"])
@@ -5029,7 +5024,7 @@ const xi = {
5029
5024
  s.settings.rowActions(f(n)).length > 0 ? {
5030
5025
  name: "actions",
5031
5026
  fn: w(({ row: ae }) => [
5032
- x(Vn, {
5027
+ O(Vn, {
5033
5028
  row: ae,
5034
5029
  settings: s.settings,
5035
5030
  query: f(n)
@@ -5044,7 +5039,7 @@ const xi = {
5044
5039
  ref_key: "pagination",
5045
5040
  ref: _
5046
5041
  }, [
5047
- x(ci, {
5042
+ O(ci, {
5048
5043
  page: b.value,
5049
5044
  size: y.value,
5050
5045
  total: S.value,
@@ -5084,7 +5079,7 @@ const xi = {
5084
5079
  },
5085
5080
  emits: ["done"],
5086
5081
  setup(t, { emit: e }) {
5087
- const n = e, s = t, o = re(), { updated: r } = pe(o), a = Q([]), i = A(null), l = [
5082
+ const n = e, s = t, o = re(), { updated: r } = pe(o), a = Q([]), i = A(null), u = [
5088
5083
  "image",
5089
5084
  "images",
5090
5085
  "attachments",
@@ -5096,18 +5091,18 @@ const xi = {
5096
5091
  "json"
5097
5092
  ];
5098
5093
  a.value = s.settings.fields.filter((m) => m.showInDetail());
5099
- const h = I(() => a.value.find((m) => m.code === s.settings.coverField)), d = I(() => a.value.filter((m) => !l.includes(m.type))), p = I(() => {
5100
- var u;
5101
- const m = (u = h.value) == null ? void 0 : u.code;
5102
- return a.value.filter((_) => l.includes(_.type)).filter((_) => _.code !== m);
5103
- }), S = I({
5094
+ const h = N(() => a.value.find((m) => m.code === s.settings.coverField)), d = N(() => a.value.filter((m) => !u.includes(m.type))), p = N(() => {
5095
+ var l;
5096
+ const m = (l = h.value) == null ? void 0 : l.code;
5097
+ return a.value.filter((_) => u.includes(_.type)).filter((_) => _.code !== m);
5098
+ }), S = N({
5104
5099
  get() {
5105
5100
  return p.value.map((m) => m.code);
5106
5101
  },
5107
5102
  set(m) {
5108
5103
  }
5109
5104
  });
5110
- function O() {
5105
+ function x() {
5111
5106
  s.settings.rest.getOne(s.query).then((m) => {
5112
5107
  m.data.isDeleted = !!m.data.deletedAt, i.value = m.data, n("done", m.data);
5113
5108
  });
@@ -5115,12 +5110,12 @@ const xi = {
5115
5110
  return P(
5116
5111
  r,
5117
5112
  () => {
5118
- O();
5113
+ x();
5119
5114
  },
5120
5115
  { immediate: !0 }
5121
- ), (m, u) => (c(), $("div", null, [
5116
+ ), (m, l) => (c(), $("div", null, [
5122
5117
  i.value ? (c(), $("div", Ai, [
5123
- x(f(Oe), { gutter: 20 }, {
5118
+ O(f(Oe), { gutter: 20 }, {
5124
5119
  default: w(() => [
5125
5120
  h.value ? (c(), E(f(we), {
5126
5121
  key: 0,
@@ -5135,11 +5130,11 @@ const xi = {
5135
5130
  ]),
5136
5131
  _: 1
5137
5132
  })) : T("", !0),
5138
- x(f(we), {
5133
+ O(f(we), {
5139
5134
  span: h.value ? 18 : 24
5140
5135
  }, {
5141
5136
  default: w(() => [
5142
- x(f(Oe), { gutter: 20 }, {
5137
+ O(f(Oe), { gutter: 20 }, {
5143
5138
  default: w(() => [
5144
5139
  (c(!0), $(L, null, M(d.value, (_) => (c(), E(f(we), {
5145
5140
  span: _.span,
@@ -5173,7 +5168,7 @@ const xi = {
5173
5168
  p.value.length > 0 ? (c(), E(f(_s), {
5174
5169
  key: 0,
5175
5170
  modelValue: S.value,
5176
- "onUpdate:modelValue": u[0] || (u[0] = (_) => S.value = _),
5171
+ "onUpdate:modelValue": l[0] || (l[0] = (_) => S.value = _),
5177
5172
  class: "extend-fields"
5178
5173
  }, {
5179
5174
  default: w(() => [
@@ -5215,13 +5210,13 @@ const xi = {
5215
5210
  emits: ["get-item"],
5216
5211
  setup(t, { emit: e }) {
5217
5212
  const n = Et(), s = z(), o = Y(s), r = t, a = A("加载中..."), i = A({});
5218
- function l(d, p) {
5213
+ function u(d, p) {
5219
5214
  const S = `${d}-${p}`;
5220
5215
  n.updateTitleByCode(S, a.value), document.title = a.value;
5221
5216
  }
5222
5217
  function h(d) {
5223
5218
  const p = r.settings;
5224
- a.value = `${p.name}: ${p.formatName(d)}`, l(p.code, d.id);
5219
+ a.value = `${p.name}: ${p.formatName(d)}`, u(p.code, d.id);
5225
5220
  }
5226
5221
  return P(
5227
5222
  () => r.data,
@@ -5234,12 +5229,12 @@ const xi = {
5234
5229
  C("div", null, [
5235
5230
  r.data ? (c(), E(f(de), { key: 0 }, {
5236
5231
  default: w(() => [
5237
- x(Vn, {
5232
+ O(Vn, {
5238
5233
  row: r.data,
5239
5234
  settings: r.settings,
5240
5235
  query: f(o)
5241
5236
  }, null, 8, ["row", "settings", "query"]),
5242
- x($t, {
5237
+ O($t, {
5243
5238
  row: r.data,
5244
5239
  settings: r.settings,
5245
5240
  operations: i.value,
@@ -5262,35 +5257,35 @@ const xi = {
5262
5257
  }
5263
5258
  },
5264
5259
  setup(t) {
5265
- const e = _e(), n = z(), s = Y(n), o = t, r = Q([]), a = A(""), i = Q(null), l = A(null), h = re();
5266
- pe(h), r.value = o.settings.fields.filter((O) => O.showInDetail !== !1);
5267
- function d(O) {
5268
- l.value = O;
5260
+ const e = _e(), n = z(), s = Y(n), o = t, r = Q([]), a = A(""), i = Q(null), u = A(null), h = re();
5261
+ pe(h), r.value = o.settings.fields.filter((x) => x.showInDetail !== !1);
5262
+ function d(x) {
5263
+ u.value = x;
5269
5264
  }
5270
- function p(O) {
5271
- a.value = O.props.name, e.push({
5265
+ function p(x) {
5266
+ a.value = x.props.name, e.push({
5272
5267
  name: `${n.meta.side}-association`,
5273
- params: { association: O.props.name },
5268
+ params: { association: x.props.name },
5274
5269
  query: s
5275
5270
  });
5276
5271
  }
5277
- function S(O) {
5272
+ function S(x) {
5278
5273
  if (o.associations.length > 0)
5279
5274
  if (n.params.association) {
5280
5275
  a.value = n.params.association;
5281
- const m = o.associations.find((u) => u.domain === n.params.association);
5276
+ const m = o.associations.find((l) => l.domain === n.params.association);
5282
5277
  i.value = {
5283
5278
  ...m,
5284
- domainData: l.value
5279
+ domainData: u.value
5285
5280
  };
5286
5281
  } else
5287
5282
  a.value = o.associations[0].domain, i.value = {
5288
5283
  ...o.associations[0],
5289
- domainData: l.value
5290
- }, O && O();
5284
+ domainData: u.value
5285
+ }, x && x();
5291
5286
  }
5292
5287
  return P(
5293
- l,
5288
+ u,
5294
5289
  () => {
5295
5290
  S(() => {
5296
5291
  e.replace({
@@ -5304,25 +5299,25 @@ const xi = {
5304
5299
  ), P(
5305
5300
  () => n.params,
5306
5301
  () => {
5307
- l.value && S();
5302
+ u.value && S();
5308
5303
  },
5309
5304
  { immediate: !0 }
5310
- ), (O, m) => {
5311
- const u = He("router-view");
5305
+ ), (x, m) => {
5306
+ const l = He("router-view");
5312
5307
  return c(), $("div", {
5313
5308
  key: `${f(n).params.domain}-${f(n).params.id}`
5314
5309
  }, [
5315
- x(Bi, {
5316
- data: l.value,
5310
+ O(Bi, {
5311
+ data: u.value,
5317
5312
  settings: o.settings,
5318
5313
  query: { ...f(n).params, ...f(s) }
5319
5314
  }, null, 8, ["data", "settings", "query"]),
5320
- x(Mn, {
5315
+ O(Mn, {
5321
5316
  query: { ...f(n).params, ...f(s) },
5322
5317
  settings: o.settings,
5323
5318
  onDone: d
5324
5319
  }, null, 8, ["query", "settings"]),
5325
- x(f(pn), {
5320
+ O(f(pn), {
5326
5321
  modelValue: a.value,
5327
5322
  "onUpdate:modelValue": m[0] || (m[0] = (_) => a.value = _),
5328
5323
  class: "association-tabs",
@@ -5336,7 +5331,7 @@ const xi = {
5336
5331
  ]),
5337
5332
  _: 1
5338
5333
  }, 8, ["modelValue"]),
5339
- i.value ? (c(), E(u, {
5334
+ i.value ? (c(), E(l, {
5340
5335
  key: i.value,
5341
5336
  association: i.value
5342
5337
  }, null, 8, ["association"])) : T("", !0)
@@ -5351,11 +5346,11 @@ const xi = {
5351
5346
  setup(t) {
5352
5347
  const e = z(), n = e.meta.side, s = e.params.domain, o = Q(null), r = Q([]);
5353
5348
  bt(n, s).then((i) => {
5354
- const l = i, h = a("has-many", l.hasMany), d = a("has-one", l.hasOne);
5355
- o.value = l, r.value = h.concat(d);
5349
+ const u = i, h = a("has-many", u.hasMany), d = a("has-one", u.hasOne);
5350
+ o.value = u, r.value = h.concat(d);
5356
5351
  });
5357
- function a(i, l) {
5358
- return (l || []).map((h) => typeof h == "object" ? {
5352
+ function a(i, u) {
5353
+ return (u || []).map((h) => typeof h == "object" ? {
5359
5354
  type: i,
5360
5355
  domain: h.code,
5361
5356
  name: h.name,
@@ -5367,7 +5362,7 @@ const xi = {
5367
5362
  query: () => ({})
5368
5363
  });
5369
5364
  }
5370
- return (i, l) => o.value ? (c(), E(Ii, {
5365
+ return (i, u) => o.value ? (c(), E(Ii, {
5371
5366
  key: 0,
5372
5367
  settings: o.value,
5373
5368
  associations: r.value
@@ -5454,4 +5449,4 @@ export {
5454
5449
  Xi as y,
5455
5450
  el as z
5456
5451
  };
5457
- //# sourceMappingURL=index-EHhiwbjo.js.map
5452
+ //# sourceMappingURL=index-VhXXlvT7.js.map