kouxiangtang 0.0.39 → 0.0.41

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 (51) hide show
  1. package/dist/{AttachmentUploader-BdDkTump.js → AttachmentUploader-CeMt4VEG.js} +61 -55
  2. package/dist/AttachmentUploader-CeMt4VEG.js.map +1 -0
  3. package/dist/{ImageUploader-CHkIpPtj.js → ImageUploader-ULmdCwmq.js} +2 -2
  4. package/dist/{ImageUploader-CHkIpPtj.js.map → ImageUploader-ULmdCwmq.js.map} +1 -1
  5. package/dist/{ImagesUploader-p9a3bu1Q.js → ImagesUploader-CvU2ubis.js} +2 -2
  6. package/dist/{ImagesUploader-p9a3bu1Q.js.map → ImagesUploader-CvU2ubis.js.map} +1 -1
  7. package/dist/{RichTextEditor-DJYZD9vY.js → RichTextEditor-CM-1fMWb.js} +2 -2
  8. package/dist/{RichTextEditor-DJYZD9vY.js.map → RichTextEditor-CM-1fMWb.js.map} +1 -1
  9. package/dist/{config-BmOWXJKs.js → config-62S242EV.js} +3 -3
  10. package/dist/{config-BmOWXJKs.js.map → config-62S242EV.js.map} +1 -1
  11. package/dist/{config-SWYlqm92.js → config-6TnPbfju.js} +2 -2
  12. package/dist/{config-SWYlqm92.js.map → config-6TnPbfju.js.map} +1 -1
  13. package/dist/{config-BeivkfGi.js → config-8rQgTAqZ.js} +2 -2
  14. package/dist/{config-BeivkfGi.js.map → config-8rQgTAqZ.js.map} +1 -1
  15. package/dist/{config-BDG6ljUO.js → config-BAfoDWI2.js} +2 -2
  16. package/dist/{config-BDG6ljUO.js.map → config-BAfoDWI2.js.map} +1 -1
  17. package/dist/{config-C7y05luV.js → config-BUiR0RbZ.js} +2 -2
  18. package/dist/{config-C7y05luV.js.map → config-BUiR0RbZ.js.map} +1 -1
  19. package/dist/{config-BUyzXYu7.js → config-BZz9zLhC.js} +2 -2
  20. package/dist/{config-BUyzXYu7.js.map → config-BZz9zLhC.js.map} +1 -1
  21. package/dist/{config-CzMS2zhn.js → config-CEKOB7NX.js} +2 -2
  22. package/dist/{config-CzMS2zhn.js.map → config-CEKOB7NX.js.map} +1 -1
  23. package/dist/{config-DuvmS9LR.js → config-CJ0uuW0V.js} +2 -2
  24. package/dist/{config-DuvmS9LR.js.map → config-CJ0uuW0V.js.map} +1 -1
  25. package/dist/config-CN0Z35ka.js +20 -0
  26. package/dist/config-CN0Z35ka.js.map +1 -0
  27. package/dist/{config-BbXDjdqk.js → config-DAgbZhIO.js} +2 -2
  28. package/dist/{config-BbXDjdqk.js.map → config-DAgbZhIO.js.map} +1 -1
  29. package/dist/{config-Xu4Cnivk.js → config-DEKgbU4S.js} +2 -2
  30. package/dist/{config-Xu4Cnivk.js.map → config-DEKgbU4S.js.map} +1 -1
  31. package/dist/{config-C5CioVqt.js → config-DU3dErX_.js} +3 -3
  32. package/dist/{config-C5CioVqt.js.map → config-DU3dErX_.js.map} +1 -1
  33. package/dist/{config-trKFYrjO.js → config-Dgn74WQl.js} +2 -2
  34. package/dist/{config-trKFYrjO.js.map → config-Dgn74WQl.js.map} +1 -1
  35. package/dist/{config-CsDCisYj.js → config-Drf7vS2B.js} +2 -2
  36. package/dist/{config-CsDCisYj.js.map → config-Drf7vS2B.js.map} +1 -1
  37. package/dist/{config-DTVPd1QF.js → config-fpZE0M04.js} +2 -2
  38. package/dist/{config-DTVPd1QF.js.map → config-fpZE0M04.js.map} +1 -1
  39. package/dist/{config-B1iWoDgQ.js → config-gBrsZlPE.js} +3 -3
  40. package/dist/{config-B1iWoDgQ.js.map → config-gBrsZlPE.js.map} +1 -1
  41. package/dist/{index-BX1xTWzJ.js → index-Cuga_WGd.js} +295 -293
  42. package/dist/index-Cuga_WGd.js.map +1 -0
  43. package/dist/kouxiangtang.js +1 -1
  44. package/dist/kouxiangtang.umd.cjs +1 -1
  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/AttachmentUploader-BdDkTump.js.map +0 -1
  49. package/dist/config-ClsjosNk.js +0 -10
  50. package/dist/config-ClsjosNk.js.map +0 -1
  51. package/dist/index-BX1xTWzJ.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { openBlock as d, createBlock as $, unref as f, createSlots as Ce, withCtx as b, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as Me, withDirectives as me, createElementBlock as S, normalizeStyle as Qe, createVNode as x, createTextVNode as j, computed as V, Fragment as L, renderList as M, ref as A, reactive as Ee, watch as B, resolveDynamicComponent as Y, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as $e, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as Ot, 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 d, createBlock as $, unref as f, createSlots as Ce, withCtx as b, renderSlot as J, createElementVNode as C, toDisplayString as F, resolveComponent as Me, withDirectives as me, createElementBlock as S, normalizeStyle as Qe, createVNode as x, createTextVNode as j, computed as I, Fragment as L, renderList as M, ref as A, reactive as Ee, watch as B, resolveDynamicComponent as K, createCommentVNode as T, shallowRef as Q, defineAsyncComponent as Jn, normalizeClass as $e, defineComponent as H, pushScopeId as rn, popScopeId as an, withModifiers as Ot, 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 he, ElRow as Se, ElCol as be, ElForm as cn, ElFormItem as tt, ElAlert as es, ElButton as te, ElMessageBox as ts, ElMessage as Be, ElDialog as ns, ElLoading as Le, ElTooltip as ss, ElText as At, ElImage as dn, ElTabs as pn, ElTabPane as fn, ElDropdown as nt, ElDropdownMenu as st, ElDropdownItem as le, 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 Ge, ElSelectV2 as ps, ElDatePicker as Ft, ElInput as fs, ElButtonGroup as ce, ElEmpty as ms, ElTable as hs, ElTableColumn as Fe, ElPagination as gs, ElCollapse as _s, ElCollapseItem as ys } from "element-plus";
3
3
  import { useRoute as z, useRouter as ge } from "vue-router";
4
4
  import { defineStore as ft, storeToRefs as xe } from "pinia";
@@ -12,22 +12,22 @@ const { toString: vs } = Object.prototype, { getPrototypeOf: mt } = Object, He =
12
12
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
13
13
  })(/* @__PURE__ */ Object.create(null)), se = (t) => (t = t.toLowerCase(), (e) => He(e) === t), qe = (t) => (e) => typeof e === t, { isArray: _e } = Array, Oe = qe("undefined");
14
14
  function bs(t) {
15
- return t !== null && !Oe(t) && t.constructor !== null && !Oe(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
15
+ return t !== null && !Oe(t) && t.constructor !== null && !Oe(t.constructor) && X(t.constructor.isBuffer) && t.constructor.isBuffer(t);
16
16
  }
17
17
  const hn = se("ArrayBuffer");
18
18
  function ws(t) {
19
19
  let e;
20
20
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && hn(t.buffer), e;
21
21
  }
22
- const Es = qe("string"), K = qe("function"), gn = qe("number"), We = (t) => t !== null && typeof t == "object", $s = (t) => t === !0 || t === !1, Pe = (t) => {
22
+ const Es = qe("string"), X = qe("function"), gn = qe("number"), We = (t) => t !== null && typeof t == "object", $s = (t) => t === !0 || t === !1, Pe = (t) => {
23
23
  if (He(t) !== "object")
24
24
  return !1;
25
25
  const e = mt(t);
26
26
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
27
- }, Ss = se("Date"), xs = se("File"), Os = se("Blob"), ks = se("FileList"), Cs = (t) => We(t) && K(t.pipe), As = (t) => {
27
+ }, Ss = se("Date"), xs = se("File"), Os = se("Blob"), ks = se("FileList"), Cs = (t) => We(t) && X(t.pipe), As = (t) => {
28
28
  let e;
29
- return t && (typeof FormData == "function" && t instanceof FormData || K(t.append) && ((e = He(t)) === "formdata" || // detect form-data instance
30
- e === "object" && K(t.toString) && t.toString() === "[object FormData]"));
29
+ return t && (typeof FormData == "function" && t instanceof FormData || X(t.append) && ((e = He(t)) === "formdata" || // detect form-data instance
30
+ e === "object" && X(t.toString) && t.toString() === "[object FormData]"));
31
31
  }, Rs = se("URLSearchParams"), Ds = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
32
32
  function Re(t, e, { allOwnKeys: n = !1 } = {}) {
33
33
  if (t === null || typeof t > "u")
@@ -63,7 +63,7 @@ function ot() {
63
63
  return e;
64
64
  }
65
65
  const Ts = (t, e, n, { allOwnKeys: s } = {}) => (Re(e, (o, r) => {
66
- n && K(o) ? t[r] = mn(o, n) : t[r] = o;
66
+ n && X(o) ? t[r] = mn(o, n) : t[r] = o;
67
67
  }, { allOwnKeys: s }), t), Fs = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ls = (t, e, n, s) => {
68
68
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
69
69
  value: e.prototype
@@ -95,14 +95,14 @@ const Ts = (t, e, n, { allOwnKeys: s } = {}) => (Re(e, (o, r) => {
95
95
  for (; e-- > 0; )
96
96
  n[e] = t[e];
97
97
  return n;
98
- }, Ns = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && mt(Uint8Array)), Vs = (t, e) => {
98
+ }, Ns = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && mt(Uint8Array)), Is = (t, e) => {
99
99
  const s = (t && t[Symbol.iterator]).call(t);
100
100
  let o;
101
101
  for (; (o = s.next()) && !o.done; ) {
102
102
  const r = o.value;
103
103
  e.call(t, r[0], r[1]);
104
104
  }
105
- }, Is = (t, e) => {
105
+ }, Vs = (t, e) => {
106
106
  let n;
107
107
  const s = [];
108
108
  for (; (n = t.exec(e)) !== null; )
@@ -121,10 +121,10 @@ const Ts = (t, e, n, { allOwnKeys: s } = {}) => (Re(e, (o, r) => {
121
121
  }), Object.defineProperties(t, s);
122
122
  }, Hs = (t) => {
123
123
  bn(t, (e, n) => {
124
- if (K(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
+ if (X(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
125
125
  return !1;
126
126
  const s = t[n];
127
- if (K(s)) {
127
+ if (X(s)) {
128
128
  if (e.enumerable = !1, "writable" in e) {
129
129
  e.writable = !1;
130
130
  return;
@@ -154,7 +154,7 @@ const Ts = (t, e, n, { allOwnKeys: s } = {}) => (Re(e, (o, r) => {
154
154
  return n;
155
155
  };
156
156
  function Gs(t) {
157
- return !!(t && K(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
157
+ return !!(t && X(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
158
158
  }
159
159
  const Ys = (t) => {
160
160
  const e = new Array(10), n = (s, o) => {
@@ -173,7 +173,7 @@ const Ys = (t) => {
173
173
  return s;
174
174
  };
175
175
  return n(t, 0);
176
- }, Ks = se("AsyncFunction"), Xs = (t) => t && (We(t) || K(t)) && K(t.then) && K(t.catch), v = {
176
+ }, Ks = se("AsyncFunction"), Xs = (t) => t && (We(t) || X(t)) && X(t.then) && X(t.catch), v = {
177
177
  isArray: _e,
178
178
  isArrayBuffer: hn,
179
179
  isBuffer: bs,
@@ -189,7 +189,7 @@ const Ys = (t) => {
189
189
  isFile: xs,
190
190
  isBlob: Os,
191
191
  isRegExp: Ms,
192
- isFunction: K,
192
+ isFunction: X,
193
193
  isStream: Cs,
194
194
  isURLSearchParams: Rs,
195
195
  isTypedArray: Ns,
@@ -205,8 +205,8 @@ const Ys = (t) => {
205
205
  kindOfTest: se,
206
206
  endsWith: js,
207
207
  toArray: Bs,
208
- forEachEntry: Vs,
209
- matchAll: Is,
208
+ forEachEntry: Is,
209
+ matchAll: Vs,
210
210
  isHTMLForm: Us,
211
211
  hasOwnProperty: Lt,
212
212
  hasOwnProp: Lt,
@@ -302,8 +302,8 @@ function Je(t, e, n) {
302
302
  metaTokens: !0,
303
303
  dots: !1,
304
304
  indexes: !1
305
- }, !1, function(u, y) {
306
- return !v.isUndefined(y[u]);
305
+ }, !1, function(u, _) {
306
+ return !v.isUndefined(_[u]);
307
307
  });
308
308
  const s = n.metaTokens, o = n.visitor || l, r = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(e);
309
309
  if (!v.isFunction(o))
@@ -317,9 +317,9 @@ function Je(t, e, n) {
317
317
  throw new R("Blob is not supported. Use a Buffer instead.");
318
318
  return v.isArrayBuffer(m) || v.isTypedArray(m) ? c && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
319
319
  }
320
- function l(m, u, y) {
320
+ function l(m, u, _) {
321
321
  let g = m;
322
- if (m && !y && typeof m == "object") {
322
+ if (m && !_ && typeof m == "object") {
323
323
  if (v.endsWith(u, "{}"))
324
324
  u = s ? u : u.slice(0, -2), m = JSON.stringify(m);
325
325
  else if (v.isArray(m) && eo(m) || (v.isFileList(m) || v.endsWith(u, "[]")) && (g = v.toArray(m)))
@@ -331,7 +331,7 @@ function Je(t, e, n) {
331
331
  );
332
332
  }), !1;
333
333
  }
334
- return rt(m) ? !0 : (e.append(jt(y, u, r), h(m)), !1);
334
+ return rt(m) ? !0 : (e.append(jt(_, u, r), h(m)), !1);
335
335
  }
336
336
  const p = [], E = Object.assign(to, {
337
337
  defaultVisitor: l,
@@ -342,14 +342,14 @@ function Je(t, e, n) {
342
342
  if (!v.isUndefined(m)) {
343
343
  if (p.indexOf(m) !== -1)
344
344
  throw Error("Circular reference detected in " + u.join("."));
345
- p.push(m), v.forEach(m, function(g, _) {
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
- v.isString(_) ? _.trim() : _,
349
+ v.isString(y) ? y.trim() : y,
350
350
  u,
351
351
  E
352
- )) === !0 && O(g, u ? u.concat(_) : [_]);
352
+ )) === !0 && O(g, u ? u.concat(y) : [y]);
353
353
  }), p.pop();
354
354
  }
355
355
  }
@@ -613,7 +613,7 @@ const ho = v.toObjectSet([
613
613
  `).forEach(function(a) {
614
614
  o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), s = a.substring(o + 1).trim(), !(!n || e[n] && ho[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
615
615
  }), e;
616
- }, Vt = Symbol("internals");
616
+ }, It = Symbol("internals");
617
617
  function ve(t) {
618
618
  return t && String(t).trim().toLowerCase();
619
619
  }
@@ -652,7 +652,7 @@ function bo(t, e) {
652
652
  });
653
653
  });
654
654
  }
655
- class X {
655
+ class Z {
656
656
  constructor(e) {
657
657
  e && this.set(e);
658
658
  }
@@ -751,7 +751,7 @@ class X {
751
751
  return n.forEach((o) => s.set(o)), s;
752
752
  }
753
753
  static accessor(e) {
754
- const s = (this[Vt] = this[Vt] = {
754
+ const s = (this[It] = this[It] = {
755
755
  accessors: {}
756
756
  }).accessors, o = this.prototype;
757
757
  function r(a) {
@@ -761,8 +761,8 @@ class X {
761
761
  return v.isArray(e) ? e.forEach(r) : r(e), this;
762
762
  }
763
763
  }
764
- X.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
765
- v.reduceDescriptors(X.prototype, ({ value: t }, e) => {
764
+ Z.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
765
+ v.reduceDescriptors(Z.prototype, ({ value: t }, e) => {
766
766
  let n = e[0].toUpperCase() + e.slice(1);
767
767
  return {
768
768
  get: () => t,
@@ -771,9 +771,9 @@ v.reduceDescriptors(X.prototype, ({ value: t }, e) => {
771
771
  }
772
772
  };
773
773
  });
774
- v.freezeMethods(X);
774
+ v.freezeMethods(Z);
775
775
  function Xe(t, e) {
776
- const n = this || De, s = e || n, o = X.from(s.headers);
776
+ const n = this || De, s = e || n, o = Z.from(s.headers);
777
777
  let r = s.data;
778
778
  return v.forEach(t, function(i) {
779
779
  r = i.call(n, r, o.normalize(), e ? e.status : void 0);
@@ -886,7 +886,7 @@ function ko(t, e) {
886
886
  return O ? Math.round(E * 1e3 / O) : void 0;
887
887
  };
888
888
  }
889
- function It(t, e) {
889
+ function Vt(t, e) {
890
890
  let n = 0;
891
891
  const s = ko(50, 250);
892
892
  return (o) => {
@@ -907,7 +907,7 @@ function It(t, e) {
907
907
  const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
908
908
  return new Promise(function(n, s) {
909
909
  let o = t.data;
910
- const r = X.from(t.headers).normalize();
910
+ const r = Z.from(t.headers).normalize();
911
911
  let { responseType: a, withXSRFToken: i } = t, c;
912
912
  function h() {
913
913
  t.cancelToken && t.cancelToken.unsubscribe(c), t.signal && t.signal.removeEventListener("abort", c);
@@ -917,21 +917,21 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
917
917
  if (ne.hasStandardBrowserEnv || ne.hasStandardBrowserWebWorkerEnv)
918
918
  r.setContentType(!1);
919
919
  else if ((l = r.getContentType()) !== !1) {
920
- const [u, ...y] = l ? l.split(";").map((g) => g.trim()).filter(Boolean) : [];
921
- r.setContentType([u || "multipart/form-data", ...y].join("; "));
920
+ const [u, ..._] = l ? l.split(";").map((g) => g.trim()).filter(Boolean) : [];
921
+ r.setContentType([u || "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 || "", y = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
- r.set("Authorization", "Basic " + btoa(u + ":" + y));
926
+ const u = t.auth.username || "", _ = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
927
+ r.set("Authorization", "Basic " + btoa(u + ":" + _));
928
928
  }
929
929
  const E = Dn(t.baseURL, t.url);
930
930
  p.open(t.method.toUpperCase(), On(E, t.params, t.paramsSerializer), !0), p.timeout = t.timeout;
931
931
  function O() {
932
932
  if (!p)
933
933
  return;
934
- const u = X.from(
934
+ const u = Z.from(
935
935
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
936
936
  ), g = {
937
937
  data: !a || a === "text" || a === "json" ? p.responseText : p.response,
@@ -954,10 +954,10 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
954
954
  }, p.onerror = function() {
955
955
  s(new R("Network Error", R.ERR_NETWORK, t, p)), p = null;
956
956
  }, p.ontimeout = function() {
957
- let y = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
957
+ let _ = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
958
958
  const g = t.transitional || kn;
959
- t.timeoutErrorMessage && (y = t.timeoutErrorMessage), s(new R(
960
- y,
959
+ t.timeoutErrorMessage && (_ = t.timeoutErrorMessage), s(new R(
960
+ _,
961
961
  g.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
962
962
  t,
963
963
  p
@@ -966,9 +966,9 @@ const Co = typeof XMLHttpRequest < "u", Ao = Co && function(t) {
966
966
  const u = t.xsrfHeaderName && t.xsrfCookieName && Eo.read(t.xsrfCookieName);
967
967
  u && r.set(t.xsrfHeaderName, u);
968
968
  }
969
- o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(y, g) {
970
- p.setRequestHeader(g, y);
971
- }), v.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), a && a !== "json" && (p.responseType = t.responseType), typeof t.onDownloadProgress == "function" && p.addEventListener("progress", It(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", It(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (u) => {
969
+ o === void 0 && r.setContentType(null), "setRequestHeader" in p && v.forEach(r.toJSON(), function(_, g) {
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) && (c = (u) => {
972
972
  p && (s(!u || u.type ? new Te(null, t, p) : u), p.abort(), p = null);
973
973
  }, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
974
974
  const m = Oo(E);
@@ -1027,7 +1027,7 @@ function Ze(t) {
1027
1027
  throw new Te(null, t);
1028
1028
  }
1029
1029
  function zt(t) {
1030
- return Ze(t), t.headers = X.from(t.headers), t.data = Xe.call(
1030
+ return Ze(t), t.headers = Z.from(t.headers), t.data = Xe.call(
1031
1031
  t,
1032
1032
  t.transformRequest
1033
1033
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Tn.getAdapter(t.adapter || De.adapter)(t).then(function(s) {
@@ -1035,16 +1035,16 @@ function zt(t) {
1035
1035
  t,
1036
1036
  t.transformResponse,
1037
1037
  s
1038
- ), s.headers = X.from(s.headers), s;
1038
+ ), s.headers = Z.from(s.headers), s;
1039
1039
  }, function(s) {
1040
1040
  return Rn(s) || (Ze(t), s && s.response && (s.response.data = Xe.call(
1041
1041
  t,
1042
1042
  t.transformResponse,
1043
1043
  s.response
1044
- ), s.response.headers = X.from(s.response.headers))), Promise.reject(s);
1044
+ ), s.response.headers = Z.from(s.response.headers))), Promise.reject(s);
1045
1045
  });
1046
1046
  }
1047
- const Mt = (t) => t instanceof X ? { ...t } : t;
1047
+ const Mt = (t) => t instanceof Z ? { ...t } : t;
1048
1048
  function fe(t, e) {
1049
1049
  e = e || {};
1050
1050
  const n = {};
@@ -1208,7 +1208,7 @@ class ue {
1208
1208
  (m) => {
1209
1209
  delete r[m];
1210
1210
  }
1211
- ), n.headers = X.concat(a, r);
1211
+ ), n.headers = Z.concat(a, r);
1212
1212
  const i = [];
1213
1213
  let c = !0;
1214
1214
  this.interceptors.request.forEach(function(u) {
@@ -1231,8 +1231,8 @@ class ue {
1231
1231
  const m = i[p++], u = i[p++];
1232
1232
  try {
1233
1233
  O = m(O);
1234
- } catch (y) {
1235
- u.call(this, y);
1234
+ } catch (_) {
1235
+ u.call(this, _);
1236
1236
  break;
1237
1237
  }
1238
1238
  }
@@ -1440,7 +1440,7 @@ U.all = function(e) {
1440
1440
  U.spread = To;
1441
1441
  U.isAxiosError = Fo;
1442
1442
  U.mergeConfig = fe;
1443
- U.AxiosHeaders = X;
1443
+ U.AxiosHeaders = Z;
1444
1444
  U.formToJSON = (t) => An(v.isHTMLForm(t) ? new FormData(t) : t);
1445
1445
  U.getAdapter = Tn.getAdapter;
1446
1446
  U.HttpStatusCode = lt;
@@ -1487,7 +1487,7 @@ async function No(t, e, n = {}) {
1487
1487
  });
1488
1488
  });
1489
1489
  }
1490
- async function Vo(t, e, n = {}) {
1490
+ async function Io(t, e, n = {}) {
1491
1491
  return new Promise((s, o) => {
1492
1492
  ye.put(t, e, {
1493
1493
  headers: n
@@ -1501,12 +1501,12 @@ async function Vo(t, e, n = {}) {
1501
1501
  const ee = {
1502
1502
  get: jo,
1503
1503
  post: Bo,
1504
- put: Vo,
1504
+ put: Io,
1505
1505
  remove: No,
1506
1506
  setupAxios: Lo,
1507
1507
  getAxiosInstance: Po
1508
1508
  };
1509
- var Io = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1509
+ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1510
1510
  function Uo(t) {
1511
1511
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1512
1512
  }
@@ -1517,50 +1517,50 @@ var Pn = { exports: {} };
1517
1517
  (function(t, e) {
1518
1518
  (function(n, s) {
1519
1519
  typeof zo == "function" ? t.exports = s() : n.pluralize = s();
1520
- })(Io, function() {
1520
+ })(Vo, function() {
1521
1521
  var n = [], s = [], o = {}, r = {}, a = {};
1522
1522
  function i(u) {
1523
1523
  return typeof u == "string" ? new RegExp("^" + u + "$", "i") : u;
1524
1524
  }
1525
- function c(u, y) {
1526
- return u === y ? y : u === u.toLowerCase() ? y.toLowerCase() : u === u.toUpperCase() ? y.toUpperCase() : u[0] === u[0].toUpperCase() ? y.charAt(0).toUpperCase() + y.substr(1).toLowerCase() : y.toLowerCase();
1525
+ function c(u, _) {
1526
+ return u === _ ? _ : u === u.toLowerCase() ? _.toLowerCase() : u === u.toUpperCase() ? _.toUpperCase() : u[0] === u[0].toUpperCase() ? _.charAt(0).toUpperCase() + _.substr(1).toLowerCase() : _.toLowerCase();
1527
1527
  }
1528
- function h(u, y) {
1529
- return u.replace(/\$(\d{1,2})/g, function(g, _) {
1530
- return y[_] || "";
1528
+ function h(u, _) {
1529
+ return u.replace(/\$(\d{1,2})/g, function(g, y) {
1530
+ return _[y] || "";
1531
1531
  });
1532
1532
  }
1533
- function l(u, y) {
1534
- return u.replace(y[0], function(g, _) {
1535
- var w = h(y[1], arguments);
1536
- return c(g === "" ? u[_ - 1] : g, w);
1533
+ function l(u, _) {
1534
+ return u.replace(_[0], function(g, y) {
1535
+ var w = h(_[1], arguments);
1536
+ return c(g === "" ? u[y - 1] : g, w);
1537
1537
  });
1538
1538
  }
1539
- function p(u, y, g) {
1539
+ function p(u, _, g) {
1540
1540
  if (!u.length || o.hasOwnProperty(u))
1541
- return y;
1542
- for (var _ = g.length; _--; ) {
1543
- var w = g[_];
1544
- if (w[0].test(y))
1545
- return l(y, w);
1541
+ return _;
1542
+ for (var y = g.length; y--; ) {
1543
+ var w = g[y];
1544
+ if (w[0].test(_))
1545
+ return l(_, w);
1546
1546
  }
1547
- return y;
1547
+ return _;
1548
1548
  }
1549
- function E(u, y, g) {
1550
- return function(_) {
1551
- var w = _.toLowerCase();
1552
- return y.hasOwnProperty(w) ? c(_, w) : u.hasOwnProperty(w) ? c(_, u[w]) : p(w, _, g);
1549
+ function E(u, _, g) {
1550
+ return function(y) {
1551
+ var w = y.toLowerCase();
1552
+ return _.hasOwnProperty(w) ? c(y, w) : u.hasOwnProperty(w) ? c(y, u[w]) : p(w, y, g);
1553
1553
  };
1554
1554
  }
1555
- function O(u, y, g, _) {
1555
+ function O(u, _, g, y) {
1556
1556
  return function(w) {
1557
1557
  var k = w.toLowerCase();
1558
- return y.hasOwnProperty(k) ? !0 : u.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
1558
+ return _.hasOwnProperty(k) ? !0 : u.hasOwnProperty(k) ? !1 : p(k, k, g) === k;
1559
1559
  };
1560
1560
  }
1561
- function m(u, y, g) {
1562
- var _ = y === 1 ? m.singular(u) : m.plural(u);
1563
- return (g ? y + " " : "") + _;
1561
+ function m(u, _, g) {
1562
+ var y = _ === 1 ? m.singular(u) : m.plural(u);
1563
+ return (g ? _ + " " : "") + y;
1564
1564
  }
1565
1565
  return m.plural = E(
1566
1566
  a,
@@ -1578,18 +1578,18 @@ var Pn = { exports: {} };
1578
1578
  r,
1579
1579
  a,
1580
1580
  s
1581
- ), m.addPluralRule = function(u, y) {
1582
- n.push([i(u), y]);
1583
- }, m.addSingularRule = function(u, y) {
1584
- s.push([i(u), y]);
1581
+ ), m.addPluralRule = function(u, _) {
1582
+ n.push([i(u), _]);
1583
+ }, m.addSingularRule = function(u, _) {
1584
+ s.push([i(u), _]);
1585
1585
  }, m.addUncountableRule = function(u) {
1586
1586
  if (typeof u == "string") {
1587
1587
  o[u.toLowerCase()] = !0;
1588
1588
  return;
1589
1589
  }
1590
1590
  m.addPluralRule(u, "$0"), m.addSingularRule(u, "$0");
1591
- }, m.addIrregularRule = function(u, y) {
1592
- y = y.toLowerCase(), u = u.toLowerCase(), a[u] = y, r[y] = u;
1591
+ }, m.addIrregularRule = function(u, _) {
1592
+ _ = _.toLowerCase(), u = u.toLowerCase(), a[u] = _, r[_] = u;
1593
1593
  }, [
1594
1594
  // Pronouns.
1595
1595
  ["I", "we"],
@@ -1813,7 +1813,7 @@ var Pn = { exports: {} };
1813
1813
  });
1814
1814
  })(Pn);
1815
1815
  var Mo = Pn.exports;
1816
- const jn = /* @__PURE__ */ Uo(Mo), Bn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), Ne = "GET_LIST", Ve = "GET_ONE", Ie = "CREATE", Ue = "UPDATE", pe = "REMOVE", ut = "RESTORE", Nn = "ENABLE", Ho = [Ne, Ve, Ie, Ue, pe, Nn];
1816
+ const jn = /* @__PURE__ */ Uo(Mo), Bn = (t) => t.replace(/([-_][a-z])/gi, (e) => e.toUpperCase().replace("-", "").replace("_", "")), Ne = "GET_LIST", Ie = "GET_ONE", Ve = "CREATE", Ue = "UPDATE", pe = "REMOVE", ut = "RESTORE", Nn = "ENABLE", Ho = [Ne, Ie, Ve, Ue, pe, Nn];
1817
1817
  class qo {
1818
1818
  constructor(e, n, s = Ho) {
1819
1819
  this.side = e == "platform" ? "admin" : e, this.domain = n, this.resources = jn(n), this.operations = s, this.operations.forEach((o) => {
@@ -1829,15 +1829,15 @@ class qo {
1829
1829
  return ee.get(`${this.side}/${this.resources}`, e);
1830
1830
  }
1831
1831
  _getOne(e) {
1832
- if (!this.operations.includes(Ve)) {
1833
- console.log(`${this.side}/${this.domain} 不支持 ${Ve} 操作`);
1832
+ if (!this.operations.includes(Ie)) {
1833
+ console.log(`${this.side}/${this.domain} 不支持 ${Ie} 操作`);
1834
1834
  return;
1835
1835
  }
1836
1836
  return ee.get(`${this.side}/${this.resources}/${e.id}`);
1837
1837
  }
1838
1838
  _create(e) {
1839
- if (!this.operations.includes(Ie)) {
1840
- console.log(`${this.side}/${this.domain} 不支持 ${Ie} 操作`);
1839
+ if (!this.operations.includes(Ve)) {
1840
+ console.log(`${this.side}/${this.domain} 不支持 ${Ve} 操作`);
1841
1841
  return;
1842
1842
  }
1843
1843
  return ee.post(`${this.side}/${this.resources}`, e);
@@ -1887,8 +1887,8 @@ const Gi = {
1887
1887
  Client: qo,
1888
1888
  ReadOnlyClient: Wo,
1889
1889
  GET_LIST: Ne,
1890
- GET_ONE: Ve,
1891
- CREATE: Ie,
1890
+ GET_ONE: Ie,
1891
+ CREATE: Ve,
1892
1892
  UPDATE: Ue,
1893
1893
  REMOVE: pe,
1894
1894
  RESTORE: ut,
@@ -2005,7 +2005,7 @@ const et = {
2005
2005
  component: { config: "component" }
2006
2006
  };
2007
2007
  async function qt(t, e, n) {
2008
- const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-C5CioVqt.js"), "./field/belongs-to/config.js": () => import("./config-CzMS2zhn.js"), "./field/boolean/config.js": () => import("./config-trKFYrjO.js"), "./field/cascader/config.js": () => import("./config-DTVPd1QF.js"), "./field/component/config.js": () => import("./config-C7y05luV.js"), "./field/datetime/config.js": () => import("./config-SWYlqm92.js"), "./field/image/config.js": () => import("./config-B1iWoDgQ.js"), "./field/images/config.js": () => import("./config-BbXDjdqk.js"), "./field/json/config.js": () => import("./config-CsDCisYj.js"), "./field/rich-text/config.js": () => import("./config-BmOWXJKs.js"), "./field/row-id/config.js": () => import("./config-ClsjosNk.js"), "./field/select/config.js": () => import("./config-DuvmS9LR.js"), "./field/string/config.js": () => import("./config-Xu4Cnivk.js"), "./field/switch/config.js": () => import("./config-BDG6ljUO.js"), "./field/text/config.js": () => import("./config-BeivkfGi.js"), "./field/tree-select/config.js": () => import("./config-BUyzXYu7.js") }), `./field/${t}/config.js`, 4);
2008
+ const s = await Jo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-DU3dErX_.js"), "./field/belongs-to/config.js": () => import("./config-CEKOB7NX.js"), "./field/boolean/config.js": () => import("./config-Dgn74WQl.js"), "./field/cascader/config.js": () => import("./config-fpZE0M04.js"), "./field/component/config.js": () => import("./config-BUiR0RbZ.js"), "./field/datetime/config.js": () => import("./config-6TnPbfju.js"), "./field/image/config.js": () => import("./config-gBrsZlPE.js"), "./field/images/config.js": () => import("./config-DAgbZhIO.js"), "./field/json/config.js": () => import("./config-Drf7vS2B.js"), "./field/rich-text/config.js": () => import("./config-62S242EV.js"), "./field/row-id/config.js": () => import("./config-CN0Z35ka.js"), "./field/select/config.js": () => import("./config-CJ0uuW0V.js"), "./field/string/config.js": () => import("./config-DEKgbU4S.js"), "./field/switch/config.js": () => import("./config-BAfoDWI2.js"), "./field/text/config.js": () => import("./config-8rQgTAqZ.js"), "./field/tree-select/config.js": () => import("./config-BZz9zLhC.js") }), `./field/${t}/config.js`, 4);
2009
2009
  return new s.default(e, n);
2010
2010
  }
2011
2011
  function Wt(t, e = "unknown") {
@@ -2267,7 +2267,7 @@ const Zi = /* @__PURE__ */ P(cr, [["render", pr]]), fr = {
2267
2267
  }));
2268
2268
  }
2269
2269
  }, el = /* @__PURE__ */ P(fr, [["__scopeId", "data-v-5b091760"]]);
2270
- function Z(t) {
2270
+ function Y(t) {
2271
2271
  const e = { ...t.query, ...t.params };
2272
2272
  if (t.params.domain && t.params.id) {
2273
2273
  const n = Bn(`${e.domain}-id`);
@@ -2289,7 +2289,7 @@ const hr = {
2289
2289
  fields: Array
2290
2290
  },
2291
2291
  setup(t) {
2292
- const e = t, n = V(() => {
2292
+ const e = t, n = I(() => {
2293
2293
  if (e.layout.length == 0) {
2294
2294
  if (e.fields.length <= 6) {
2295
2295
  const a = o(e.fields, 1);
@@ -2343,20 +2343,20 @@ const hr = {
2343
2343
  },
2344
2344
  emits: ["submit", "remove"],
2345
2345
  setup(t, { emit: e }) {
2346
- const n = z(), s = Z(n), o = e, r = A(!1), a = t, i = dt(a.config.formLayout || []), c = Ee({ ...a.data }), h = A(null), l = a.config.fields.filter((_) => _.rules).reduce((_, w) => (_[w.code] = O(w.rules), _), {}), p = V(g), E = V(() => a.config.fields.filter((_) => {
2347
- const w = _.editable(c, s), k = _.visible(c, s);
2348
- return _.disabled = k && !w, w || k;
2346
+ const n = z(), s = Y(n), o = e, r = A(!1), a = t, i = dt(a.config.formLayout || []), c = Ee({ ...a.data }), h = A(null), l = a.config.fields.filter((y) => y.rules).reduce((y, w) => (y[w.code] = O(w.rules), y), {}), p = I(g), E = I(() => a.config.fields.filter((y) => {
2347
+ const w = y.editable(c, s), k = y.visible(c, s);
2348
+ return y.disabled = k && !w, w || k;
2349
2349
  }));
2350
- function O(_) {
2351
- return typeof _ == "object" ? _ : typeof _ == "function" ? _(c) : [];
2350
+ function O(y) {
2351
+ return typeof y == "object" ? y : typeof y == "function" ? y(c) : [];
2352
2352
  }
2353
2353
  async function m() {
2354
- await h.value.validate((_, w) => {
2355
- var q, W;
2356
- if (!_)
2354
+ await h.value.validate((y, w) => {
2355
+ var W, q;
2356
+ if (!y)
2357
2357
  return console.log("error submit!", w), !1;
2358
- const k = (q = a.config.fields.find((de) => ["images", "attachments", "attachment"].includes(de.type))) == null ? void 0 : q.code, I = { ...c };
2359
- k && (I[k] = (W = I[k]) == null ? void 0 : W.map((de) => de.id)), r.value = !0, o("submit", I, () => {
2358
+ const k = (W = a.config.fields.find((de) => ["images", "attachments", "attachment"].includes(de.type))) == null ? void 0 : W.code, V = { ...c };
2359
+ k && (V[k] = (q = V[k]) == null ? void 0 : q.map((de) => de.id)), r.value = !0, o("submit", V, () => {
2360
2360
  r.value = !1;
2361
2361
  });
2362
2362
  });
@@ -2364,7 +2364,7 @@ const hr = {
2364
2364
  function u() {
2365
2365
  o("remove", c);
2366
2366
  }
2367
- function y() {
2367
+ function _() {
2368
2368
  if (a.config.removeConfirm) {
2369
2369
  a.config.removeConfirm(c, u);
2370
2370
  return;
@@ -2384,30 +2384,30 @@ const hr = {
2384
2384
  });
2385
2385
  }
2386
2386
  function g() {
2387
- const _ = a.config.showSubmit;
2388
- return typeof _ == "boolean" ? _ : typeof _ == "function" ? _(s, c) : !0;
2387
+ const y = a.config.showSubmit;
2388
+ return typeof y == "boolean" ? y : typeof y == "function" ? y(s, c) : !0;
2389
2389
  }
2390
2390
  return B(
2391
2391
  () => ({ ...c }),
2392
- (_, w) => {
2393
- const I = Object.keys(_).filter((W) => w[W] !== _[W]).map((W) => ({
2394
- field: W,
2395
- newValue: _[W],
2396
- oldValue: w[W]
2392
+ (y, w) => {
2393
+ const V = Object.keys(y).filter((q) => w[q] !== y[q]).map((q) => (h.value.clearValidate(q), {
2394
+ field: q,
2395
+ newValue: y[q],
2396
+ oldValue: w[q]
2397
2397
  }));
2398
- E.value.filter((W) => !W.disabled).forEach((W) => {
2399
- W.formChange && W.formChange(c, I);
2398
+ E.value.filter((q) => !q.disabled).forEach((q) => {
2399
+ q.formChange && q.formChange(c, V);
2400
2400
  });
2401
2401
  }
2402
2402
  ), B(
2403
2403
  () => a.data,
2404
- (_) => {
2405
- Object.keys(_).forEach((w) => {
2406
- c[w] = _[w];
2404
+ (y) => {
2405
+ Object.keys(y).forEach((w) => {
2406
+ c[w] = y[w];
2407
2407
  });
2408
2408
  },
2409
2409
  { immediate: !0 }
2410
- ), (_, w) => (d(), $(f(cn), {
2410
+ ), (y, w) => (d(), $(f(cn), {
2411
2411
  id: "form",
2412
2412
  ref_key: "formRef",
2413
2413
  ref: h,
@@ -2429,10 +2429,10 @@ const hr = {
2429
2429
  }, {
2430
2430
  default: b(() => [
2431
2431
  C("div", gr, [
2432
- k != null && k.editor ? (d(), $(Y(k.editor), {
2432
+ k != null && k.editor ? (d(), $(K(k.editor), {
2433
2433
  key: 0,
2434
2434
  modelValue: c[k.code],
2435
- "onUpdate:modelValue": (I) => c[k.code] = I,
2435
+ "onUpdate:modelValue": (V) => c[k.code] = V,
2436
2436
  field: k,
2437
2437
  disabled: k.disabled,
2438
2438
  "form-data": c,
@@ -2456,7 +2456,7 @@ const hr = {
2456
2456
  key: 0,
2457
2457
  size: "default",
2458
2458
  type: "danger",
2459
- onClick: y
2459
+ onClick: _
2460
2460
  }, {
2461
2461
  default: b(() => [
2462
2462
  j(" 删除 ")
@@ -2480,7 +2480,7 @@ const hr = {
2480
2480
  _: 1
2481
2481
  }, 8, ["model", "rules"]));
2482
2482
  }
2483
- }, br = /* @__PURE__ */ P(vr, [["__scopeId", "data-v-a1a45e4a"]]);
2483
+ }, br = /* @__PURE__ */ P(vr, [["__scopeId", "data-v-6acfde7e"]]);
2484
2484
  function wr() {
2485
2485
  return ze().idempotentUrl ? ee.get(ze().idempotentUrl).then((t) => t.data) : "";
2486
2486
  }
@@ -2508,14 +2508,14 @@ const we = {
2508
2508
  },
2509
2509
  emits: ["update:modelValue", "submit", "remove"],
2510
2510
  setup(t, { emit: e }) {
2511
- const n = z(), s = Z(n), o = e, r = t, a = V(() => ({ ...r.data, idempotentToken: c.value })), i = V(() => r.config.fields.filter((m) => m.visible(a, s)).length >= 6 ? "60%" : "40%"), c = A(""), h = V({
2511
+ const n = z(), s = Y(n), o = e, r = t, a = I(() => ({ ...r.data, idempotentToken: c.value })), i = I(() => r.config.fields.filter((m) => m.visible(a, s)).length >= 6 ? "60%" : "40%"), c = A(""), h = I({
2512
2512
  get() {
2513
2513
  return r.modelValue;
2514
2514
  },
2515
2515
  set(O) {
2516
2516
  o("update:modelValue", O);
2517
2517
  }
2518
- }), l = V(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2518
+ }), l = I(() => r.title ? r.title : r.data.id ? `编辑${r.config.name}` : `添加${r.config.name}`);
2519
2519
  function p(O, m) {
2520
2520
  o("submit", O, async () => {
2521
2521
  c.value = await we.getValue(), m();
@@ -2651,7 +2651,7 @@ const we = {
2651
2651
  },
2652
2652
  emits: ["update:modelValue"],
2653
2653
  setup(t, { emit: e }) {
2654
- const n = Jn(() => import("./ImagesUploader-p9a3bu1Q.js")), s = ze().fileUploadUrl, o = e, r = t, a = Ee({ value: r.modelValue }), i = r.field.converter;
2654
+ const n = Jn(() => import("./ImagesUploader-CvU2ubis.js")), s = ze().fileUploadUrl, o = e, r = t, a = Ee({ value: r.modelValue }), i = r.field.converter;
2655
2655
  function c(l) {
2656
2656
  const p = a.value.findIndex((E) => E.id === l.id);
2657
2657
  a.value.splice(p, 1), o("update:modelValue", a.value);
@@ -2850,7 +2850,7 @@ const xr = {
2850
2850
  }
2851
2851
  },
2852
2852
  setup(t) {
2853
- const e = t, n = V(() => e.content ? e.content.toString() : "");
2853
+ const e = t, n = I(() => e.content ? e.content.toString() : "");
2854
2854
  return (s, o) => (d(), S("div", null, [
2855
2855
  n.value.length > e.tipShowLength ? (d(), $(f(ss), {
2856
2856
  key: 0,
@@ -3010,7 +3010,7 @@ var Or = /* @__PURE__ */ H({
3010
3010
  })
3011
3011
  ]));
3012
3012
  }
3013
- }), Nr = Br, Vr = /* @__PURE__ */ H({
3013
+ }), Nr = Br, Ir = /* @__PURE__ */ H({
3014
3014
  name: "Loading",
3015
3015
  __name: "loading",
3016
3016
  setup(t) {
@@ -3024,7 +3024,7 @@ var Or = /* @__PURE__ */ H({
3024
3024
  })
3025
3025
  ]));
3026
3026
  }
3027
- }), ll = Vr, Ir = /* @__PURE__ */ H({
3027
+ }), ll = Ir, Vr = /* @__PURE__ */ H({
3028
3028
  name: "Minus",
3029
3029
  __name: "minus",
3030
3030
  setup(t) {
@@ -3038,7 +3038,7 @@ var Or = /* @__PURE__ */ H({
3038
3038
  })
3039
3039
  ]));
3040
3040
  }
3041
- }), Ur = Ir, zr = /* @__PURE__ */ H({
3041
+ }), Ur = Vr, zr = /* @__PURE__ */ H({
3042
3042
  name: "Operation",
3043
3043
  __name: "operation",
3044
3044
  setup(t) {
@@ -3179,18 +3179,18 @@ const Gt = 10, wt = ft("route-history", {
3179
3179
  s.setupRootPath("首页", `/${a}/home`);
3180
3180
  function c(m) {
3181
3181
  var w, k;
3182
- const u = m.meta.side, y = m.params.domain;
3183
- let g = (w = m.meta) == null ? void 0 : w.title, _ = (k = m.meta) == null ? void 0 : k.code;
3184
- if (u && y)
3185
- g = yt()[u][m.params.domain].name, _ = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, _ = `${m.params.domain}-${m.params.id}`);
3182
+ const u = m.meta.side, _ = m.params.domain;
3183
+ let g = (w = m.meta) == null ? void 0 : w.title, y = (k = m.meta) == null ? void 0 : k.code;
3184
+ if (u && _)
3185
+ g = yt()[u][m.params.domain].name, y = m.params.domain, m.params.id && (g = `${g} - ${m.params.id}`, y = `${m.params.domain}-${m.params.id}`);
3186
3186
  else {
3187
- const I = i.find((q) => q.route === m.path);
3188
- I && (g = I.title, _ = I.route);
3187
+ const V = i.find((W) => W.route === m.path);
3188
+ V && (g = V.title, y = V.route);
3189
3189
  }
3190
- g && _ && (s.push(g, _, m.fullPath), o.value = _);
3190
+ g && y && (s.push(g, y, m.fullPath), o.value = y);
3191
3191
  }
3192
3192
  function h(m) {
3193
- const u = s.history.find((y) => y.code == m.props.name);
3193
+ const u = s.history.find((_) => _.code == m.props.name);
3194
3194
  e.push(u.path);
3195
3195
  }
3196
3196
  function l(m) {
@@ -3200,34 +3200,34 @@ const Gt = 10, wt = ft("route-history", {
3200
3200
  }
3201
3201
  }
3202
3202
  const p = (m, u) => {
3203
- const y = s.history.length;
3204
- return m === 0 && u === "self" || m < 2 && u === "left" || m === y - 1 && u === "right" || y === 1 && u === "all" ? !1 : !(y < 2 && u === "other");
3203
+ const _ = s.history.length;
3204
+ return m === 0 && u === "self" || m < 2 && u === "left" || m === _ - 1 && u === "right" || _ === 1 && u === "all" ? !1 : !(_ < 2 && u === "other");
3205
3205
  };
3206
3206
  function E(m, u) {
3207
- const y = [], g = s.history;
3207
+ const _ = [], g = s.history;
3208
3208
  switch (u) {
3209
3209
  case "self":
3210
- y.push(g[m].code);
3210
+ _.push(g[m].code);
3211
3211
  break;
3212
3212
  case "left":
3213
- for (let _ = 0; _ < m; _++)
3214
- _ !== 0 && y.push(g[_].code);
3213
+ for (let y = 0; y < m; y++)
3214
+ y !== 0 && _.push(g[y].code);
3215
3215
  break;
3216
3216
  case "right":
3217
- for (let _ = m + 1; _ < g.length; _++)
3218
- y.push(g[_].code);
3217
+ for (let y = m + 1; y < g.length; y++)
3218
+ _.push(g[y].code);
3219
3219
  break;
3220
3220
  case "all":
3221
- for (let _ = 0; _ < g.length; _++)
3222
- _ !== 0 && y.push(g[_].code);
3221
+ for (let y = 0; y < g.length; y++)
3222
+ y !== 0 && _.push(g[y].code);
3223
3223
  break;
3224
3224
  case "other":
3225
- for (let _ = 1; _ < g.length; _++)
3226
- _ !== m && y.push(g[_].code);
3225
+ for (let y = 1; y < g.length; y++)
3226
+ y !== m && _.push(g[y].code);
3227
3227
  break;
3228
3228
  }
3229
- for (let _ = 0; _ < y.length; _++)
3230
- l(y[_]);
3229
+ for (let y = 0; y < _.length; y++)
3230
+ l(_[y]);
3231
3231
  }
3232
3232
  function O() {
3233
3233
  return r.config.sideMenus[a].map((m) => m.children ? m.children : m).flat();
@@ -3252,17 +3252,17 @@ const Gt = 10, wt = ft("route-history", {
3252
3252
  C("div", ea, [
3253
3253
  x(f(pn), {
3254
3254
  modelValue: o.value,
3255
- "onUpdate:modelValue": u[0] || (u[0] = (y) => o.value = y),
3255
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => o.value = _),
3256
3256
  type: "card",
3257
3257
  class: "tabs",
3258
3258
  onTabClick: h,
3259
3259
  onTabRemove: l
3260
3260
  }, {
3261
3261
  default: b(() => [
3262
- (d(!0), S(L, null, M(f(s).history, (y, g) => (d(), $(f(fn), {
3263
- closable: y.title != "首页",
3264
- label: y.title,
3265
- name: y.code
3262
+ (d(!0), S(L, null, M(f(s).history, (_, g) => (d(), $(f(fn), {
3263
+ closable: _.title != "首页",
3264
+ label: _.title,
3265
+ name: _.code
3266
3266
  }, {
3267
3267
  label: b(() => [
3268
3268
  x(f(nt), { trigger: "contextmenu" }, {
@@ -3271,7 +3271,7 @@ const Gt = 10, wt = ft("route-history", {
3271
3271
  default: b(() => [
3272
3272
  p(g, "self") ? (d(), $(f(le), {
3273
3273
  key: 0,
3274
- onClick: (_) => E(g, "self")
3274
+ onClick: (y) => E(g, "self")
3275
3275
  }, {
3276
3276
  default: b(() => [
3277
3277
  x(f(G), null, {
@@ -3286,7 +3286,7 @@ const Gt = 10, wt = ft("route-history", {
3286
3286
  }, 1032, ["onClick"])) : T("", !0),
3287
3287
  p(g, "left") ? (d(), $(f(le), {
3288
3288
  key: 1,
3289
- onClick: (_) => E(g, "left")
3289
+ onClick: (y) => E(g, "left")
3290
3290
  }, {
3291
3291
  default: b(() => [
3292
3292
  x(f(G), null, {
@@ -3301,7 +3301,7 @@ const Gt = 10, wt = ft("route-history", {
3301
3301
  }, 1032, ["onClick"])) : T("", !0),
3302
3302
  p(g, "right") ? (d(), $(f(le), {
3303
3303
  key: 2,
3304
- onClick: (_) => E(g, "right")
3304
+ onClick: (y) => E(g, "right")
3305
3305
  }, {
3306
3306
  default: b(() => [
3307
3307
  x(f(G), null, {
@@ -3316,7 +3316,7 @@ const Gt = 10, wt = ft("route-history", {
3316
3316
  }, 1032, ["onClick"])) : T("", !0),
3317
3317
  p(g, "all") ? (d(), $(f(le), {
3318
3318
  key: 3,
3319
- onClick: (_) => E(g, "all")
3319
+ onClick: (y) => E(g, "all")
3320
3320
  }, {
3321
3321
  default: b(() => [
3322
3322
  x(f(G), null, {
@@ -3331,7 +3331,7 @@ const Gt = 10, wt = ft("route-history", {
3331
3331
  }, 1032, ["onClick"])) : T("", !0),
3332
3332
  p(g, "other") ? (d(), $(f(le), {
3333
3333
  key: 4,
3334
- onClick: (_) => E(g, "other")
3334
+ onClick: (y) => E(g, "other")
3335
3335
  }, {
3336
3336
  default: b(() => [
3337
3337
  x(f(G), null, {
@@ -3350,7 +3350,7 @@ const Gt = 10, wt = ft("route-history", {
3350
3350
  ]),
3351
3351
  default: b(() => [
3352
3352
  x(xr, {
3353
- content: y.title,
3353
+ content: _.title,
3354
3354
  "line-clamp": 1,
3355
3355
  "class-name": "tab-pane-label",
3356
3356
  "tip-show-length": "6"
@@ -3366,7 +3366,7 @@ const Gt = 10, wt = ft("route-history", {
3366
3366
  }, 8, ["modelValue"]),
3367
3367
  C("span", {
3368
3368
  class: "back-icon",
3369
- onClick: u[1] || (u[1] = (y) => f(e).back())
3369
+ onClick: u[1] || (u[1] = (_) => f(e).back())
3370
3370
  }, [
3371
3371
  x(f(G), null, {
3372
3372
  default: b(() => [
@@ -3404,7 +3404,7 @@ const Gt = 10, wt = ft("route-history", {
3404
3404
  title: b(() => [
3405
3405
  t.data.icon ? (d(), $(f(G), { key: 0 }, {
3406
3406
  default: b(() => [
3407
- (d(), $(Y(t.data.icon)))
3407
+ (d(), $(K(t.data.icon)))
3408
3408
  ]),
3409
3409
  _: 1
3410
3410
  })) : (d(), $(f(G), { key: 1 }, {
@@ -3416,7 +3416,7 @@ const Gt = 10, wt = ft("route-history", {
3416
3416
  C("span", null, F(t.data.title), 1)
3417
3417
  ]),
3418
3418
  default: b(() => [
3419
- (d(!0), S(L, null, M(t.data.children, (o) => (d(), $(Vn, {
3419
+ (d(!0), S(L, null, M(t.data.children, (o) => (d(), $(In, {
3420
3420
  data: o,
3421
3421
  "has-parent": !0
3422
3422
  }, null, 8, ["data"]))), 256))
@@ -3431,7 +3431,7 @@ const Gt = 10, wt = ft("route-history", {
3431
3431
  default: b(() => [
3432
3432
  t.data.icon ? (d(), $(f(G), { key: 0 }, {
3433
3433
  default: b(() => [
3434
- (d(), $(Y(t.data.icon)))
3434
+ (d(), $(K(t.data.icon)))
3435
3435
  ]),
3436
3436
  _: 1
3437
3437
  })) : e.hasParent ? (d(), S("span", ra, ia)) : (d(), $(f(G), { key: 1 }, {
@@ -3445,7 +3445,7 @@ const Gt = 10, wt = ft("route-history", {
3445
3445
  _: 1
3446
3446
  }, 8, ["index", "route"]));
3447
3447
  }
3448
- }, Vn = /* @__PURE__ */ P(la, [["__scopeId", "data-v-22a49b3f"]]), ua = {
3448
+ }, In = /* @__PURE__ */ P(la, [["__scopeId", "data-v-22a49b3f"]]), ua = {
3449
3449
  __name: "SideBar",
3450
3450
  props: {
3451
3451
  sideMenus: {
@@ -3473,7 +3473,7 @@ const Gt = 10, wt = ft("route-history", {
3473
3473
  "default-active": s.value
3474
3474
  }, {
3475
3475
  default: b(() => [
3476
- (d(!0), S(L, null, M(f(a), (h) => (d(), $(Vn, { data: h }, null, 8, ["data"]))), 256))
3476
+ (d(!0), S(L, null, M(f(a), (h) => (d(), $(In, { data: h }, null, 8, ["data"]))), 256))
3477
3477
  ]),
3478
3478
  _: 1
3479
3479
  }, 8, ["default-active"])
@@ -3490,7 +3490,7 @@ const Gt = 10, wt = ft("route-history", {
3490
3490
  }
3491
3491
  },
3492
3492
  setup(t) {
3493
- const e = z(), n = t, s = { ...ze(), ...n.config }, o = V(() => e.params.domain ? e.params.domain : e.fullPath);
3493
+ const e = z(), n = t, s = { ...ze(), ...n.config }, o = I(() => e.params.domain ? e.params.domain : e.fullPath);
3494
3494
  return (r, a) => {
3495
3495
  const i = Me("router-view");
3496
3496
  return d(), $(f(ls), { locale: f(Sr) }, {
@@ -3741,26 +3741,26 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3741
3741
  }
3742
3742
  },
3743
3743
  setup(t) {
3744
- const e = t, n = z(), s = Z(n), o = A([]), r = Ee({}), a = Ee({}), i = Et(
3744
+ const e = t, n = z(), s = Y(n), o = A([]), r = Ee({}), a = Ee({}), i = Et(
3745
3745
  e.settings.code,
3746
3746
  n.path,
3747
3747
  e.settings.filters,
3748
3748
  e.settings.filterHook
3749
3749
  )();
3750
- i.$subscribe((g, _) => {
3751
- _.filters.isDeleted !== r.isDeleted && (Object.keys(r).forEach((w) => {
3750
+ i.$subscribe((g, y) => {
3751
+ y.filters.isDeleted !== r.isDeleted && (Object.keys(r).forEach((w) => {
3752
3752
  r[w] = void 0;
3753
- }), r.isDeleted = _.filters.isDeleted);
3753
+ }), r.isDeleted = y.filters.isDeleted);
3754
3754
  });
3755
3755
  function c(g) {
3756
3756
  return typeof g == "boolean" ? g : typeof g == "function" ? g(s) : !0;
3757
3757
  }
3758
- async function h(g, _) {
3758
+ async function h(g, y) {
3759
3759
  if (typeof g.options == "function")
3760
3760
  a[g.code] = await g.options(
3761
3761
  r,
3762
3762
  s,
3763
- _
3763
+ y
3764
3764
  );
3765
3765
  else if (Array.isArray(g.options))
3766
3766
  a[g.code] = g.options;
@@ -3768,10 +3768,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3768
3768
  const w = g.options.getOneUrl ? g.options.getOneUrl : g.options.url;
3769
3769
  if (Array.isArray(r[g.code]) && r[g.code].length > 0)
3770
3770
  a[g.code] = [], r[g.code].forEach((k) => {
3771
- w.getOne({ id: k }).then((I) => {
3771
+ w.getOne({ id: k }).then((V) => {
3772
3772
  a[g.code].push({
3773
- code: I.data[g.options.data.value] || I.data.id,
3774
- name: I.data[g.options.data.label] || I.data.name
3773
+ code: V.data[g.options.data.value] || V.data.id,
3774
+ name: V.data[g.options.data.label] || V.data.name
3775
3775
  });
3776
3776
  });
3777
3777
  });
@@ -3786,10 +3786,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3786
3786
  });
3787
3787
  else {
3788
3788
  const k = g.options.query.keyWord.toString();
3789
- g.options.url.getList({ ...g.options.query, [k]: _ }).then((I) => {
3790
- a[g.code] = I.data.rows.map((q) => ({
3791
- code: q[g.options.data.value] || q.id,
3792
- name: q[g.options.data.label] || q.name
3789
+ g.options.url.getList({ ...g.options.query, [k]: y }).then((V) => {
3790
+ a[g.code] = V.data.rows.map((W) => ({
3791
+ code: W[g.options.data.value] || W.id,
3792
+ name: W[g.options.data.label] || W.name
3793
3793
  }));
3794
3794
  });
3795
3795
  }
@@ -3797,8 +3797,8 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3797
3797
  }
3798
3798
  function l(g) {
3799
3799
  if (g.remote)
3800
- return (_) => {
3801
- h(g, _);
3800
+ return (y) => {
3801
+ h(g, y);
3802
3802
  };
3803
3803
  }
3804
3804
  function p(g) {
@@ -3811,20 +3811,20 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3811
3811
  Object.keys(r).forEach((g) => {
3812
3812
  r[g] = void 0;
3813
3813
  }), o.value = Object.keys(e.settings.filters).filter((g) => c(e.settings.filters[g].visible)).map((g) => {
3814
- const _ = { ...e.settings.filters[g], code: g };
3815
- return r[g] = m(g), (_.type === "select" || _.type === "selectV2" || _.type === "tree") && h(_), _;
3814
+ const y = { ...e.settings.filters[g], code: g };
3815
+ return r[g] = m(g), (y.type === "select" || y.type === "selectV2" || y.type === "tree") && h(y), y;
3816
3816
  }).filter((g) => g.code !== "isDeleted");
3817
3817
  }
3818
3818
  function m(g) {
3819
- const _ = e.settings.filters[g], w = i.validFilters[g];
3820
- return _.type === "boolean" && typeof w != "boolean" ? _.value : w;
3819
+ const y = e.settings.filters[g], w = i.validFilters[g];
3820
+ return y.type === "boolean" && typeof w != "boolean" ? y.value : w;
3821
3821
  }
3822
3822
  function u() {
3823
3823
  let g = JSON.parse(JSON.stringify(r));
3824
- const _ = e.settings.filterHook;
3825
- _ != null && _.preSubmit && (g = _.preSubmit(g, s)), i.change(g);
3824
+ const y = e.settings.filterHook;
3825
+ y != null && y.preSubmit && (g = y.preSubmit(g, s)), i.change(g);
3826
3826
  }
3827
- function y() {
3827
+ function _() {
3828
3828
  i.$reset({}), O(), u();
3829
3829
  }
3830
3830
  return B(
@@ -3833,10 +3833,9 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3833
3833
  O(), u();
3834
3834
  },
3835
3835
  { immediate: !0 }
3836
- ), (g, _) => Object.keys(e.settings.filters).length > 0 ? (d(), S("div", Aa, [
3836
+ ), (g, y) => Object.keys(e.settings.filters).length > 0 ? (d(), S("div", Aa, [
3837
3837
  x(f(cn), {
3838
- modelValue: r,
3839
- "onUpdate:modelValue": _[0] || (_[0] = (w) => r = w),
3838
+ model: r,
3840
3839
  inline: "",
3841
3840
  class: "form-editor"
3842
3841
  }, {
@@ -3955,7 +3954,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3955
3954
  ]),
3956
3955
  _: 1
3957
3956
  }),
3958
- x(f(te), { onClick: y }, {
3957
+ x(f(te), { onClick: _ }, {
3959
3958
  default: b(() => [
3960
3959
  j(" 重置 ")
3961
3960
  ]),
@@ -3966,10 +3965,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3966
3965
  })) : T("", !0)
3967
3966
  ]),
3968
3967
  _: 1
3969
- }, 8, ["modelValue"])
3968
+ }, 8, ["model"])
3970
3969
  ])) : T("", !0);
3971
3970
  }
3972
- }, Da = /* @__PURE__ */ P(Ra, [["__scopeId", "data-v-af66b6f0"]]), Ta = { class: "data-page-title" }, Fa = { class: "title" }, La = { class: "data-page-toolbar" }, Pa = {
3971
+ }, Da = /* @__PURE__ */ P(Ra, [["__scopeId", "data-v-cadbb5a7"]]), Ta = { class: "data-page-title" }, Fa = { class: "title" }, La = { class: "data-page-toolbar" }, Pa = {
3973
3972
  __name: "DataTableHeader",
3974
3973
  props: {
3975
3974
  settings: {
@@ -3982,7 +3981,7 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
3982
3981
  s.path,
3983
3982
  e.settings.filters,
3984
3983
  e.settings.filterHook
3985
- )(), a = Ae(), i = V(() => r.validFilters.isDeleted || !1);
3984
+ )(), a = Ae(), i = I(() => r.validFilters.isDeleted || !1);
3986
3985
  function c() {
3987
3986
  r.$reset({ isDeleted: !i.value });
3988
3987
  }
@@ -4100,10 +4099,10 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4100
4099
  }, null, 8, ["settings"])
4101
4100
  ], 64));
4102
4101
  }
4103
- }, ja = /* @__PURE__ */ P(Pa, [["__scopeId", "data-v-4bec2921"]]), Ba = { class: "kst-field-row-id" }, Na = { key: 0 }, Va = {
4102
+ }, ja = /* @__PURE__ */ P(Pa, [["__scopeId", "data-v-4bec2921"]]), Ba = { class: "kst-field-row-id" }, Na = { key: 0 }, Ia = {
4104
4103
  key: 1,
4105
4104
  class: "mono-data"
4106
- }, Ia = { key: 1 }, Ua = {
4105
+ }, Va = { key: 1 }, Ua = {
4107
4106
  __name: "FieldDisplay",
4108
4107
  props: {
4109
4108
  field: {
@@ -4117,41 +4116,44 @@ const ha = { class: "sorters-box" }, ga = ["onClick"], _a = { class: "sorters-la
4117
4116
  }
4118
4117
  },
4119
4118
  setup(t) {
4120
- const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a = V(() => ({
4119
+ const e = Ae(), n = z(), s = t, o = n.meta.side, r = s.row[s.field.code], a = I(() => ({
4121
4120
  path: `/${o}/${s.field.domain}/${r}`,
4122
- query: { ...Z(n), ...s.field.rowQuery(s.row) }
4121
+ query: { ...Y(n), ...s.field.rowQuery(s.row) }
4123
4122
  }));
4124
- return (i, c) => {
4125
- const h = Me("RouterLink");
4123
+ function i() {
4124
+ return s.field.isRouter(s.row, Y(n));
4125
+ }
4126
+ return (c, h) => {
4127
+ const l = Me("RouterLink");
4126
4128
  return d(), S("div", Ba, [
4127
4129
  f(r) ? (d(), S("span", Na, [
4128
- t.field.isRouter ? (d(), $(h, {
4130
+ i() ? (d(), $(l, {
4129
4131
  key: 0,
4130
4132
  class: "bld-link mono-data",
4131
4133
  to: a.value
4132
4134
  }, {
4133
4135
  default: b(() => [
4134
4136
  f(e).name ? (d(), S(L, { key: 0 }, [
4135
- J(i.$slots, "name", {}, void 0, !0),
4137
+ J(c.$slots, "name", {}, void 0, !0),
4136
4138
  j("(#" + F(f(r)) + ") ", 1)
4137
4139
  ], 64)) : (d(), S(L, { key: 1 }, [
4138
4140
  j(" #" + F(f(r)), 1)
4139
4141
  ], 64))
4140
4142
  ]),
4141
4143
  _: 3
4142
- }, 8, ["to"])) : (d(), S("span", Va, [
4144
+ }, 8, ["to"])) : (d(), S("span", Ia, [
4143
4145
  f(e).name ? (d(), S(L, { key: 0 }, [
4144
- J(i.$slots, "name", {}, void 0, !0),
4146
+ J(c.$slots, "name", {}, void 0, !0),
4145
4147
  j("(" + F(f(r)) + ") ", 1)
4146
4148
  ], 64)) : (d(), S(L, { key: 1 }, [
4147
4149
  j(F(f(r)), 1)
4148
4150
  ], 64))
4149
4151
  ]))
4150
- ])) : (d(), S("span", Ia, " NO ID "))
4152
+ ])) : (d(), S("span", Va, " NO ID "))
4151
4153
  ]);
4152
4154
  };
4153
4155
  }
4154
- }, za = /* @__PURE__ */ P(Ua, [["__scopeId", "data-v-346429d2"]]);
4156
+ }, za = /* @__PURE__ */ P(Ua, [["__scopeId", "data-v-4defcffa"]]);
4155
4157
  function Ma(t) {
4156
4158
  Be(t);
4157
4159
  }
@@ -4178,37 +4180,37 @@ const Ha = {
4178
4180
  },
4179
4181
  setup(t) {
4180
4182
  var m;
4181
- const e = wt(), n = oe(), s = z(), o = ge(), r = Z(s), a = t, i = A({}), c = A(!1), h = V(() => {
4182
- var u, y;
4183
- return a.row.deletedAt ? !1 : (u = a.operations) != null && u.updatable ? !0 : !!((y = a.operations) != null && y.removable);
4183
+ const e = wt(), n = oe(), s = z(), o = ge(), r = Y(s), a = t, i = A({}), c = A(!1), h = I(() => {
4184
+ var u, _;
4185
+ return a.row.deletedAt ? !1 : (u = a.operations) != null && u.updatable ? !0 : !!((_ = a.operations) != null && _.removable);
4184
4186
  }), l = A((m = a.operations) == null ? void 0 : m.removable);
4185
4187
  async function p() {
4186
- const u = a.settings.formHook, y = a.settings.btnVisible, g = a.settings.rest, { data: _ } = await g.getOne({
4188
+ const u = a.settings.formHook, _ = a.settings.btnVisible, g = a.settings.rest, { data: y } = await g.getOne({
4187
4189
  ...a.row,
4188
4190
  ...r
4189
4191
  });
4190
- i.value = _, u.setupUpdate && (i.value = u.setupUpdate(i.value)), y.showRemove && (l.value = y.showRemove(i.value)), c.value = !0;
4192
+ i.value = y, u.setupUpdate && (i.value = u.setupUpdate(i.value)), _.showRemove && (l.value = _.showRemove(i.value)), c.value = !0;
4191
4193
  }
4192
- function E(u, y) {
4193
- const g = a.settings.formHook, _ = a.settings.rest;
4194
+ function E(u, _) {
4195
+ const g = a.settings.formHook, y = a.settings.rest;
4194
4196
  Object.keys(r).forEach((w) => {
4195
4197
  u[w] = r[w];
4196
- }), g != null && g.preUpdateSubmit && (u = g.preUpdateSubmit(u)), _.update(u).then(() => {
4198
+ }), g != null && g.preUpdateSubmit && (u = g.preUpdateSubmit(u)), y.update(u).then(() => {
4197
4199
  c.value = !1, n.fireUpdated();
4198
4200
  }).catch(async () => {
4199
- y();
4201
+ _();
4200
4202
  });
4201
4203
  }
4202
- function O(u, y) {
4204
+ function O(u, _) {
4203
4205
  a.settings.rest.remove(u).then(() => {
4204
- Ha.show({ type: "success", message: "删除成功" }), c.value = !1, a.isDetail && e.history.forEach((_) => {
4205
- s.fullPath.includes(_.path) && (e.remove(_.code), o.back());
4206
+ Ha.show({ type: "success", message: "删除成功" }), c.value = !1, a.isDetail && e.history.forEach((y) => {
4207
+ s.fullPath.includes(y.path) && (e.remove(y.code), o.back());
4206
4208
  }), n.fireRemoved();
4207
4209
  }).catch(() => {
4208
- y();
4210
+ _();
4209
4211
  });
4210
4212
  }
4211
- return (u, y) => h.value ? (d(), $(f(te), {
4213
+ return (u, _) => h.value ? (d(), $(f(te), {
4212
4214
  key: 0,
4213
4215
  type: "primary",
4214
4216
  onClick: p
@@ -4218,7 +4220,7 @@ const Ha = {
4218
4220
  c.value ? (d(), $(bt, {
4219
4221
  key: 0,
4220
4222
  modelValue: c.value,
4221
- "onUpdate:modelValue": y[0] || (y[0] = (g) => c.value = g),
4223
+ "onUpdate:modelValue": _[0] || (_[0] = (g) => c.value = g),
4222
4224
  config: a.settings,
4223
4225
  data: i.value,
4224
4226
  removable: l.value,
@@ -4251,7 +4253,7 @@ const Ha = {
4251
4253
  }
4252
4254
  },
4253
4255
  setup(t) {
4254
- const e = z(), n = Z(e), s = Ae(), o = t, r = Q([]), a = Q(null), i = V(() => {
4256
+ const e = z(), n = Y(e), s = Ae(), o = t, r = Q([]), a = Q(null), i = I(() => {
4255
4257
  var l, p;
4256
4258
  return !!((l = o.operations) != null && l.updatable || (p = o.operations) != null && p.removable);
4257
4259
  });
@@ -4322,7 +4324,7 @@ const Ha = {
4322
4324
  }, [
4323
4325
  C("div", Xa, F(O.label) + " ", 1),
4324
4326
  C("div", Za, [
4325
- (d(), $(Y(O.display), {
4327
+ (d(), $(K(O.display), {
4326
4328
  field: O,
4327
4329
  row: E,
4328
4330
  mode: "grid"
@@ -4398,7 +4400,7 @@ const oi = {
4398
4400
  },
4399
4401
  emits: ["sort-column", "select-change", "enable-item"],
4400
4402
  setup(t, { emit: e }) {
4401
- const n = z(), s = Z(n), o = e, r = Ae(), a = t, i = Q([]), c = V(() => {
4403
+ const n = z(), s = Y(n), o = e, r = Ae(), a = t, i = Q([]), c = I(() => {
4402
4404
  var O, m;
4403
4405
  return !!((O = a.operations) != null && O.updatable || (m = a.operations) != null && m.removable);
4404
4406
  });
@@ -4447,10 +4449,10 @@ const oi = {
4447
4449
  }, Ce({ _: 2 }, [
4448
4450
  u.type === "switch" ? {
4449
4451
  name: "default",
4450
- fn: b(({ row: y }) => [
4451
- (d(), $(Y(u.display), {
4452
+ fn: b(({ row: _ }) => [
4453
+ (d(), $(K(u.display), {
4452
4454
  field: u,
4453
- row: y,
4455
+ row: _,
4454
4456
  mode: "list",
4455
4457
  onEnable: l
4456
4458
  }, null, 40, ["field", "row"]))
@@ -4458,11 +4460,11 @@ const oi = {
4458
4460
  key: "0"
4459
4461
  } : {
4460
4462
  name: "default",
4461
- fn: b(({ row: y }) => [
4462
- (d(), $(Y(u.display), {
4463
- key: y.updatedAt,
4463
+ fn: b(({ row: _ }) => [
4464
+ (d(), $(K(u.display), {
4465
+ key: _.updatedAt,
4464
4466
  field: u,
4465
- row: y,
4467
+ row: _,
4466
4468
  mode: "list"
4467
4469
  }, null, 8, ["field", "row"]))
4468
4470
  ]),
@@ -4534,7 +4536,7 @@ const oi = {
4534
4536
  }
4535
4537
  return B(n, (i) => {
4536
4538
  a(i);
4537
- }), (i, c) => (d(), $(Y(r.value), kt(Ct(o)), Ce({ _: 2 }, [
4539
+ }), (i, c) => (d(), $(K(r.value), kt(Ct(o)), Ce({ _: 2 }, [
4538
4540
  M(f(s), (h, l) => ({
4539
4541
  name: l,
4540
4542
  fn: b((p) => [
@@ -4556,7 +4558,7 @@ const oi = {
4556
4558
  }
4557
4559
  },
4558
4560
  setup(t) {
4559
- const e = oe(), n = z(), s = Z(n), o = t, r = A({}), a = A(!1), i = V(() => {
4561
+ const e = oe(), n = z(), s = Y(n), o = t, r = A({}), a = A(!1), i = I(() => {
4560
4562
  var l;
4561
4563
  return !!((l = o.operations) != null && l.creatable);
4562
4564
  });
@@ -4594,7 +4596,7 @@ const oi = {
4594
4596
  _: 1
4595
4597
  })) : T("", !0);
4596
4598
  }
4597
- }, In = {
4599
+ }, Vn = {
4598
4600
  __name: "RowActions",
4599
4601
  props: {
4600
4602
  row: {
@@ -4637,7 +4639,7 @@ const oi = {
4637
4639
  { immediate: !0 }
4638
4640
  ), (c, h) => (d(!0), S(L, null, M(o.value, (l) => (d(), S(L, null, [
4639
4641
  l.isVisible(s.row) ? (d(), S(L, { key: 0 }, [
4640
- l.component ? (d(), $(Y(l.component), {
4642
+ l.component ? (d(), $(K(l.component), {
4641
4643
  key: 0,
4642
4644
  row: t.row
4643
4645
  }, null, 8, ["row"])) : (d(), $(f(te), {
@@ -4667,7 +4669,7 @@ const oi = {
4667
4669
  }
4668
4670
  },
4669
4671
  setup(t) {
4670
- const e = oe(), n = t, s = Q([]), o = V(() => {
4672
+ const e = oe(), n = t, s = Q([]), o = I(() => {
4671
4673
  var i, c;
4672
4674
  return ((c = (i = n.tableDataSelect) == null ? void 0 : i.data) == null ? void 0 : c.length) > 0;
4673
4675
  }), r = A(!1);
@@ -4690,7 +4692,7 @@ const oi = {
4690
4692
  },
4691
4693
  { immediate: !0 }
4692
4694
  ), (i, c) => (d(!0), S(L, null, M(s.value, (h) => (d(), S(L, null, [
4693
- h.component ? (d(), $(Y(h.component), {
4695
+ h.component ? (d(), $(K(h.component), {
4694
4696
  key: 0,
4695
4697
  item: h,
4696
4698
  settings: t.settings,
@@ -4883,22 +4885,22 @@ const Oi = {
4883
4885
  Xn((D) => ({
4884
4886
  71828730: Wn.value
4885
4887
  }));
4886
- const e = z(), n = Z(e), s = t, o = Et(
4888
+ const e = z(), n = Y(e), s = t, o = Et(
4887
4889
  s.settings.code,
4888
4890
  e.path,
4889
4891
  s.settings.filters,
4890
4892
  s.settings.filterHook
4891
4893
  )(), { filters: r } = xe(o);
4892
4894
  B(r, (D) => {
4893
- g = D, q();
4895
+ g = D, W();
4894
4896
  });
4895
4897
  const a = oe(), { created: i, updated: c, removed: h } = xe(a);
4896
4898
  B([i, c, h], ([D, N, re]) => {
4897
- (D || N || re) && q();
4899
+ (D || N || re) && W();
4898
4900
  });
4899
- const l = A(!0), p = A([]), E = A(0), O = A({}), m = A({}), u = A(null), y = A(null);
4901
+ const l = A(!0), p = A([]), E = A(0), O = A({}), m = A({}), u = A(null), _ = A(null);
4900
4902
  let g = {};
4901
- const _ = A(parseInt(e.query.pageSize) || 30), w = A(parseInt(e.query.page) || 1);
4903
+ const y = A(parseInt(e.query.pageSize) || 30), w = A(parseInt(e.query.page) || 1);
4902
4904
  function k(D) {
4903
4905
  let N = null;
4904
4906
  if (D.order === "ascending" ? N = "ASC" : D.order === "descending" && (N = "DESC"), g.sorters) {
@@ -4911,31 +4913,31 @@ const Oi = {
4911
4913
  ], g.sorters = re;
4912
4914
  } else
4913
4915
  g.sorters = [{ field: D.prop, order: N }];
4914
- q();
4916
+ W();
4915
4917
  }
4916
- function I() {
4918
+ function V() {
4917
4919
  m.value = s.settings.operations(n);
4918
4920
  }
4919
- function q() {
4921
+ function W() {
4920
4922
  l.value = !0;
4921
4923
  const D = {
4922
4924
  ...g,
4923
4925
  ...n,
4924
4926
  ...s.query,
4925
4927
  page: w.value,
4926
- size: _.value
4928
+ size: y.value
4927
4929
  };
4928
4930
  s.settings.rest.getList(D).then((N) => {
4929
4931
  O.value.data = [], p.value = N.data.rows, E.value = N.data.count, l.value = !1;
4930
4932
  });
4931
4933
  }
4932
- function W(D) {
4933
- w.value = D.page, _.value = D.size, q();
4934
+ function q(D) {
4935
+ w.value = D.page, y.value = D.size, W();
4934
4936
  }
4935
4937
  function de(D) {
4936
4938
  const N = { id: D.id, enable: !D.enable };
4937
4939
  s.settings.rest.enable(N).then(() => {
4938
- q();
4940
+ W();
4939
4941
  });
4940
4942
  }
4941
4943
  function Hn(D) {
@@ -4959,12 +4961,12 @@ const Oi = {
4959
4961
  tn(u, (D) => {
4960
4962
  var N;
4961
4963
  St.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
4962
- }), tn(y, (D) => {
4964
+ }), tn(_, (D) => {
4963
4965
  var N;
4964
4966
  xt.value = ((N = D[0]) == null ? void 0 : N.contentRect.height) || 0;
4965
4967
  });
4966
- const Wn = V(() => `${St.value + xt.value}px`);
4967
- return I(), (D, N) => (d(), S("div", {
4968
+ const Wn = I(() => `${St.value + xt.value}px`);
4969
+ return V(), (D, N) => (d(), S("div", {
4968
4970
  key: s.settings.code,
4969
4971
  style: { height: "100%" }
4970
4972
  }, [
@@ -5002,7 +5004,7 @@ const Oi = {
5002
5004
  s.settings.rowActions(f(n)).length > 0 ? {
5003
5005
  name: "actions",
5004
5006
  fn: b(({ row: re }) => [
5005
- x(In, {
5007
+ x(Vn, {
5006
5008
  row: re,
5007
5009
  settings: s.settings,
5008
5010
  query: f(n)
@@ -5015,13 +5017,13 @@ const Oi = {
5015
5017
  ]),
5016
5018
  C("div", {
5017
5019
  ref_key: "pagination",
5018
- ref: y
5020
+ ref: _
5019
5021
  }, [
5020
5022
  x(ci, {
5021
5023
  page: w.value,
5022
- size: _.value,
5024
+ size: y.value,
5023
5025
  total: E.value,
5024
- onPageChange: W
5026
+ onPageChange: q
5025
5027
  }, null, 8, ["page", "size", "total"])
5026
5028
  ], 512)
5027
5029
  ]));
@@ -5069,11 +5071,11 @@ const Oi = {
5069
5071
  "json"
5070
5072
  ];
5071
5073
  a.value = s.settings.fields.filter((m) => m.showInDetail());
5072
- const h = V(() => a.value.find((m) => m.code === s.settings.coverField)), l = V(() => a.value.filter((m) => !c.includes(m.type))), p = V(() => {
5074
+ const h = I(() => a.value.find((m) => m.code === s.settings.coverField)), l = I(() => a.value.filter((m) => !c.includes(m.type))), p = I(() => {
5073
5075
  var u;
5074
5076
  const m = (u = h.value) == null ? void 0 : u.code;
5075
- return a.value.filter((y) => c.includes(y.type)).filter((y) => y.code !== m);
5076
- }), E = V({
5077
+ return a.value.filter((_) => c.includes(_.type)).filter((_) => _.code !== m);
5078
+ }), E = I({
5077
5079
  get() {
5078
5080
  return p.value.map((m) => m.code);
5079
5081
  },
@@ -5101,7 +5103,7 @@ const Oi = {
5101
5103
  style: { "margin-bottom": "20px" }
5102
5104
  }, {
5103
5105
  default: b(() => [
5104
- (d(), $(Y(h.value.display), {
5106
+ (d(), $(K(h.value.display), {
5105
5107
  field: h.value,
5106
5108
  row: i.value
5107
5109
  }, null, 8, ["field", "row"]))
@@ -5114,19 +5116,19 @@ const Oi = {
5114
5116
  default: b(() => [
5115
5117
  x(f(Se), { gutter: 20 }, {
5116
5118
  default: b(() => [
5117
- (d(!0), S(L, null, M(l.value, (y) => (d(), $(f(be), {
5118
- span: y.span,
5119
+ (d(!0), S(L, null, M(l.value, (_) => (d(), $(f(be), {
5120
+ span: _.span,
5119
5121
  class: "mono-data",
5120
5122
  style: { "margin-bottom": "20px" }
5121
5123
  }, {
5122
5124
  default: b(() => [
5123
- C("div", Ri, F(y.label), 1),
5125
+ C("div", Ri, F(_.label), 1),
5124
5126
  C("div", Di, [
5125
- y.code === "id" ? (d(), S(L, { key: 0 }, [
5127
+ _.code === "id" ? (d(), S(L, { key: 0 }, [
5126
5128
  j(F(i.value.id), 1)
5127
- ], 64)) : (d(), $(Y(y.display), {
5129
+ ], 64)) : (d(), $(K(_.display), {
5128
5130
  key: 1,
5129
- field: y,
5131
+ field: _,
5130
5132
  row: i.value,
5131
5133
  mode: "description"
5132
5134
  }, null, 8, ["field", "row"]))
@@ -5146,18 +5148,18 @@ const Oi = {
5146
5148
  p.value.length > 0 ? (d(), $(f(_s), {
5147
5149
  key: 0,
5148
5150
  modelValue: E.value,
5149
- "onUpdate:modelValue": u[0] || (u[0] = (y) => E.value = y),
5151
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => E.value = _),
5150
5152
  class: "extend-fields"
5151
5153
  }, {
5152
5154
  default: b(() => [
5153
- (d(!0), S(L, null, M(p.value, (y) => (d(), $(f(ys), {
5154
- title: y.label,
5155
- name: y.code,
5155
+ (d(!0), S(L, null, M(p.value, (_) => (d(), $(f(ys), {
5156
+ title: _.label,
5157
+ name: _.code,
5156
5158
  class: "mono-data"
5157
5159
  }, {
5158
5160
  default: b(() => [
5159
- (d(), $(Y(y.display), {
5160
- field: y,
5161
+ (d(), $(K(_.display), {
5162
+ field: _,
5161
5163
  row: i.value,
5162
5164
  mode: "extend"
5163
5165
  }, null, 8, ["field", "row"]))
@@ -5187,7 +5189,7 @@ const Oi = {
5187
5189
  },
5188
5190
  emits: ["get-item"],
5189
5191
  setup(t, { emit: e }) {
5190
- const n = wt(), s = z(), o = Z(s), r = t, a = A("加载中..."), i = A({});
5192
+ const n = wt(), s = z(), o = Y(s), r = t, a = A("加载中..."), i = A({});
5191
5193
  function c(l, p) {
5192
5194
  const E = `${l}-${p}`;
5193
5195
  n.updateTitleByCode(E, a.value), document.title = a.value;
@@ -5207,7 +5209,7 @@ const Oi = {
5207
5209
  C("div", null, [
5208
5210
  r.data ? (d(), $(f(ce), { key: 0 }, {
5209
5211
  default: b(() => [
5210
- x(In, {
5212
+ x(Vn, {
5211
5213
  row: r.data,
5212
5214
  settings: r.settings,
5213
5215
  query: f(o)
@@ -5235,7 +5237,7 @@ const Oi = {
5235
5237
  }
5236
5238
  },
5237
5239
  setup(t) {
5238
- const e = ge(), n = z(), s = Z(n), o = t, r = Q([]), a = A(""), i = Q(null), c = A(null), h = oe();
5240
+ const e = ge(), n = z(), s = Y(n), o = t, r = Q([]), a = A(""), i = Q(null), c = A(null), h = oe();
5239
5241
  xe(h), r.value = o.settings.fields.filter((O) => O.showInDetail !== !1);
5240
5242
  function l(O) {
5241
5243
  c.value = O;
@@ -5297,14 +5299,14 @@ const Oi = {
5297
5299
  }, null, 8, ["query", "settings"]),
5298
5300
  x(f(pn), {
5299
5301
  modelValue: a.value,
5300
- "onUpdate:modelValue": m[0] || (m[0] = (y) => a.value = y),
5302
+ "onUpdate:modelValue": m[0] || (m[0] = (_) => a.value = _),
5301
5303
  class: "association-tabs",
5302
5304
  onTabClick: p
5303
5305
  }, {
5304
5306
  default: b(() => [
5305
- (d(!0), S(L, null, M(o.associations, (y) => (d(), $(f(fn), {
5306
- label: y.name,
5307
- name: y.domain
5307
+ (d(!0), S(L, null, M(o.associations, (_) => (d(), $(f(fn), {
5308
+ label: _.name,
5309
+ name: _.domain
5308
5310
  }, null, 8, ["label", "name"]))), 256))
5309
5311
  ]),
5310
5312
  _: 1
@@ -5316,7 +5318,7 @@ const Oi = {
5316
5318
  ]);
5317
5319
  };
5318
5320
  }
5319
- }, Vi = /* @__PURE__ */ P(Ni, [["__scopeId", "data-v-4881eb36"]]), Ii = {
5321
+ }, Ii = /* @__PURE__ */ P(Ni, [["__scopeId", "data-v-4881eb36"]]), Vi = {
5320
5322
  key: 1,
5321
5323
  class: "loading-wrapper"
5322
5324
  }, Ui = {
@@ -5340,11 +5342,11 @@ const Oi = {
5340
5342
  query: () => ({})
5341
5343
  });
5342
5344
  }
5343
- return (i, c) => o.value ? (d(), $(Vi, {
5345
+ return (i, c) => o.value ? (d(), $(Ii, {
5344
5346
  key: 0,
5345
5347
  settings: o.value,
5346
5348
  associations: r.value
5347
- }, null, 8, ["settings", "associations"])) : me((d(), S("div", Ii, null, 512)), [
5349
+ }, null, 8, ["settings", "associations"])) : me((d(), S("div", Vi, null, 512)), [
5348
5350
  [f(he), !0]
5349
5351
  ]);
5350
5352
  }
@@ -5359,7 +5361,7 @@ const Oi = {
5359
5361
  }
5360
5362
  },
5361
5363
  setup(t) {
5362
- const e = z(), n = e.meta.side, s = Z(e), o = t, r = Q(null);
5364
+ const e = z(), n = e.meta.side, s = Y(e), o = t, r = Q(null);
5363
5365
  return B(
5364
5366
  () => e.params.association,
5365
5367
  () => {
@@ -5413,12 +5415,12 @@ export {
5413
5415
  U as k,
5414
5416
  ll as l,
5415
5417
  rl as m,
5416
- Io as n,
5418
+ Vo as n,
5417
5419
  Uo as o,
5418
5420
  ul as p,
5419
5421
  cl as q,
5420
5422
  Gi as r,
5421
- Z as s,
5423
+ Y as s,
5422
5424
  ee as t,
5423
5425
  Xo as u,
5424
5426
  pl as v,
@@ -5427,4 +5429,4 @@ export {
5427
5429
  Xi as y,
5428
5430
  el as z
5429
5431
  };
5430
- //# sourceMappingURL=index-BX1xTWzJ.js.map
5432
+ //# sourceMappingURL=index-Cuga_WGd.js.map