@unizhen/ui 0.0.38 → 0.0.39

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 (2) hide show
  1. package/lib/ui.js +277 -271
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Xc = Object.defineProperty;
2
2
  var Yc = (e, t, r) => t in e ? Xc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var zt = (e, t, r) => Yc(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as ie, createElementBlock as w, openBlock as c, createStaticVNode as P, createElementVNode as l, ref as N, watch as fe, nextTick as Le, h as Y, reactive as Oa, resolveComponent as M, createBlock as R, withCtx as y, toDisplayString as U, createVNode as I, computed as Ke, normalizeStyle as Ne, inject as Ge, normalizeClass as de, createSlots as Fe, createTextVNode as K, Fragment as le, renderList as $e, provide as xa, onMounted as Je, resolveDirective as Ul, withDirectives as yt, createCommentVNode as G, mergeProps as Ca, withModifiers as Ot, watchEffect as Pl, onBeforeUnmount as Aa, withKeys as Zc, renderSlot as Te, markRaw as ed, defineAsyncComponent as td, onUnmounted as El, vShow as $a, resolveDynamicComponent as yo } from "vue";
5
- import { createDiscreteApi as rd, NPopover as ct, NFlex as Ll, NButton as _e, NPopconfirm as ja, NTooltip as Hl, NIcon as be, NDropdown as nd, NCascader as Kl, NCheckboxGroup as qa, NCheckbox as Ra, NColorPicker as ad, NSwitch as od, NTimePicker as sd, NDatePicker as ld, NInputNumber as id, NSelect as Gl, NInput as ud, NDivider as Fa, NFormItem as Ba, NForm as Va, NInputGroup as Ua, NUploadDragger as cd, NImage as Wl, NUpload as Jl, useNotification as Ft, NImageGroup as dd, NModal as fd, NInputGroupLabel as Ql, NGridItem as Xl, NGrid as Yl, NButtonGroup as pd, NDrawerContent as Pa, NDrawer as Ea, NTag as hd, NEllipsis as md, NSpin as La, NRadioGroup as Zl, NSkeleton as ei, NDataTable as Ha, NPagination as wd, NRadio as gd, NTabPane as vd, NTabs as yd, darkTheme as ge, NConfigProvider as kd, dateZhCN as bd, zhCN as _d } from "naive-ui";
4
+ import { defineComponent as ie, createElementBlock as w, openBlock as c, createStaticVNode as P, createElementVNode as l, ref as N, watch as fe, nextTick as Le, h as Y, reactive as Oa, resolveComponent as M, createBlock as R, withCtx as y, toDisplayString as U, createVNode as I, computed as Ke, normalizeStyle as Ne, inject as Ge, normalizeClass as de, createSlots as Fe, createTextVNode as K, Fragment as le, renderList as $e, provide as xa, onMounted as Je, resolveDirective as Ul, withDirectives as yt, createCommentVNode as W, mergeProps as Ca, withModifiers as Ot, watchEffect as Pl, onBeforeUnmount as Aa, withKeys as Zc, renderSlot as Te, markRaw as ed, defineAsyncComponent as td, onUnmounted as El, vShow as $a, resolveDynamicComponent as yo } from "vue";
5
+ import { createDiscreteApi as rd, NPopover as ct, NFlex as Ll, NButton as _e, NPopconfirm as ja, NTooltip as Hl, NIcon as be, NDropdown as nd, NCascader as Kl, NCheckboxGroup as qa, NCheckbox as Ra, NColorPicker as ad, NSwitch as od, NTimePicker as sd, NDatePicker as ld, NInputNumber as id, NSelect as Gl, NInput as ud, NDivider as Fa, NFormItem as Ba, NForm as Va, NInputGroup as Ua, NUploadDragger as cd, NImage as Wl, NUpload as Jl, useNotification as Ft, NImageGroup as dd, NModal as fd, NInputGroupLabel as Ql, NGridItem as Xl, NGrid as Yl, NButtonGroup as pd, NDrawerContent as Pa, NDrawer as Ea, NTag as hd, NEllipsis as md, NSpin as La, NRadioGroup as Zl, NSkeleton as ei, NDataTable as Ha, NPagination as wd, NRadio as gd, NTabPane as vd, NTabs as yd, darkTheme as ve, NConfigProvider as kd, dateZhCN as bd, zhCN as _d } from "naive-ui";
6
6
  import Ka from "axios";
7
7
  import { createRouter as xd, createWebHistory as Cd, useRouter as $d, useRoute as Bt } from "vue-router";
8
8
  import { createI18n as Md, useI18n as Vt } from "vue-i18n";
@@ -4016,8 +4016,8 @@ var gn, Os;
4016
4016
  function cv() {
4017
4017
  if (Os) return gn;
4018
4018
  Os = 1;
4019
- var e = Mt(), t = Mc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", h = "[object Function]", m = "[object Map]", b = "[object Number]", D = "[object Object]", g = "[object RegExp]", d = "[object Set]", v = "[object String]", i = "[object WeakMap]", k = "[object ArrayBuffer]", f = "[object DataView]", p = "[object Float32Array]", C = "[object Float64Array]", T = "[object Int8Array]", B = "[object Int16Array]", L = "[object Int32Array]", F = "[object Uint8Array]", O = "[object Uint8ClampedArray]", z = "[object Uint16Array]", x = "[object Uint32Array]", S = {};
4020
- S[p] = S[C] = S[T] = S[B] = S[L] = S[F] = S[O] = S[z] = S[x] = !0, S[n] = S[a] = S[k] = S[o] = S[f] = S[s] = S[u] = S[h] = S[m] = S[b] = S[D] = S[g] = S[d] = S[v] = S[i] = !1;
4019
+ var e = Mt(), t = Mc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", h = "[object Function]", m = "[object Map]", b = "[object Number]", D = "[object Object]", g = "[object RegExp]", d = "[object Set]", v = "[object String]", i = "[object WeakMap]", k = "[object ArrayBuffer]", f = "[object DataView]", p = "[object Float32Array]", C = "[object Float64Array]", T = "[object Int8Array]", V = "[object Int16Array]", L = "[object Int32Array]", F = "[object Uint8Array]", O = "[object Uint8ClampedArray]", z = "[object Uint16Array]", x = "[object Uint32Array]", S = {};
4020
+ S[p] = S[C] = S[T] = S[V] = S[L] = S[F] = S[O] = S[z] = S[x] = !0, S[n] = S[a] = S[k] = S[o] = S[f] = S[s] = S[u] = S[h] = S[m] = S[b] = S[D] = S[g] = S[d] = S[v] = S[i] = !1;
4021
4021
  function q(j) {
4022
4022
  return r(j) && t(j.length) && !!S[e(j)];
4023
4023
  }
@@ -4369,7 +4369,7 @@ function po() {
4369
4369
  fl = 1;
4370
4370
  var e = $v(), t = ao(), r = Mv(), n = Sv(), a = Tv(), o = Mt(), s = _c(), u = "[object Map]", h = "[object Object]", m = "[object Promise]", b = "[object Set]", D = "[object WeakMap]", g = "[object DataView]", d = s(e), v = s(t), i = s(r), k = s(n), f = s(a), p = o;
4371
4371
  return (e && p(new e(new ArrayBuffer(1))) != g || t && p(new t()) != u || r && p(r.resolve()) != m || n && p(new n()) != b || a && p(new a()) != D) && (p = function(C) {
4372
- var T = o(C), B = T == h ? C.constructor : void 0, L = B ? s(B) : "";
4372
+ var T = o(C), V = T == h ? C.constructor : void 0, L = V ? s(V) : "";
4373
4373
  if (L)
4374
4374
  switch (L) {
4375
4375
  case d:
@@ -4462,7 +4462,7 @@ var ra, kl;
4462
4462
  function jv() {
4463
4463
  if (kl) return ra;
4464
4464
  kl = 1;
4465
- var e = ho(), t = Dv(), r = zv(), n = Ov(), a = Av(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", h = "[object Number]", m = "[object RegExp]", b = "[object Set]", D = "[object String]", g = "[object Symbol]", d = "[object ArrayBuffer]", v = "[object DataView]", i = "[object Float32Array]", k = "[object Float64Array]", f = "[object Int8Array]", p = "[object Int16Array]", C = "[object Int32Array]", T = "[object Uint8Array]", B = "[object Uint8ClampedArray]", L = "[object Uint16Array]", F = "[object Uint32Array]";
4465
+ var e = ho(), t = Dv(), r = zv(), n = Ov(), a = Av(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", h = "[object Number]", m = "[object RegExp]", b = "[object Set]", D = "[object String]", g = "[object Symbol]", d = "[object ArrayBuffer]", v = "[object DataView]", i = "[object Float32Array]", k = "[object Float64Array]", f = "[object Int8Array]", p = "[object Int16Array]", C = "[object Int32Array]", T = "[object Uint8Array]", V = "[object Uint8ClampedArray]", L = "[object Uint16Array]", F = "[object Uint32Array]";
4466
4466
  function O(z, x, S) {
4467
4467
  var q = z.constructor;
4468
4468
  switch (x) {
@@ -4479,7 +4479,7 @@ function jv() {
4479
4479
  case p:
4480
4480
  case C:
4481
4481
  case T:
4482
- case B:
4482
+ case V:
4483
4483
  case L:
4484
4484
  case F:
4485
4485
  return a(z, S);
@@ -4565,43 +4565,43 @@ var ua, Sl;
4565
4565
  function Pv() {
4566
4566
  if (Sl) return ua;
4567
4567
  Sl = 1;
4568
- var e = rv(), t = nv(), r = Cc(), n = hv(), a = gv(), o = vv(), s = yv(), u = bv(), h = _v(), m = xv(), b = Cv(), D = po(), g = Nv(), d = jv(), v = Rv(), i = oo(), k = $c(), f = Bv(), p = Xe(), C = Uv(), T = uo(), B = co(), L = 1, F = 2, O = 4, z = "[object Arguments]", x = "[object Array]", S = "[object Boolean]", q = "[object Date]", j = "[object Error]", A = "[object Function]", H = "[object GeneratorFunction]", W = "[object Map]", ue = "[object Number]", se = "[object Object]", he = "[object RegExp]", Ve = "[object Set]", Me = "[object String]", ve = "[object Symbol]", nt = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", er = "[object Float32Array]", tr = "[object Float64Array]", rr = "[object Int8Array]", nr = "[object Int16Array]", ar = "[object Int32Array]", we = "[object Uint8Array]", or = "[object Uint8ClampedArray]", sr = "[object Uint16Array]", lr = "[object Uint32Array]", ne = {};
4569
- ne[z] = ne[x] = ne[St] = ne[Tt] = ne[S] = ne[q] = ne[er] = ne[tr] = ne[rr] = ne[nr] = ne[ar] = ne[W] = ne[ue] = ne[se] = ne[he] = ne[Ve] = ne[Me] = ne[ve] = ne[we] = ne[or] = ne[sr] = ne[lr] = !0, ne[j] = ne[A] = ne[nt] = !1;
4570
- function at(Z, Ue, Pe, ir, ot, xe) {
4568
+ var e = rv(), t = nv(), r = Cc(), n = hv(), a = gv(), o = vv(), s = yv(), u = bv(), h = _v(), m = xv(), b = Cv(), D = po(), g = Nv(), d = jv(), v = Rv(), i = oo(), k = $c(), f = Bv(), p = Xe(), C = Uv(), T = uo(), V = co(), L = 1, F = 2, O = 4, z = "[object Arguments]", x = "[object Array]", S = "[object Boolean]", q = "[object Date]", j = "[object Error]", A = "[object Function]", H = "[object GeneratorFunction]", J = "[object Map]", ue = "[object Number]", se = "[object Object]", he = "[object RegExp]", Ve = "[object Set]", Me = "[object String]", we = "[object Symbol]", nt = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", er = "[object Float32Array]", tr = "[object Float64Array]", rr = "[object Int8Array]", nr = "[object Int16Array]", ar = "[object Int32Array]", ge = "[object Uint8Array]", or = "[object Uint8ClampedArray]", sr = "[object Uint16Array]", lr = "[object Uint32Array]", ne = {};
4569
+ ne[z] = ne[x] = ne[St] = ne[Tt] = ne[S] = ne[q] = ne[er] = ne[tr] = ne[rr] = ne[nr] = ne[ar] = ne[J] = ne[ue] = ne[se] = ne[he] = ne[Ve] = ne[Me] = ne[we] = ne[ge] = ne[or] = ne[sr] = ne[lr] = !0, ne[j] = ne[A] = ne[nt] = !1;
4570
+ function at(ee, Ue, Pe, ir, ot, xe) {
4571
4571
  var me, Ee = Ue & L, je = Ue & F, Nt = Ue & O;
4572
- if (Pe && (me = ot ? Pe(Z, ir, ot, xe) : Pe(Z)), me !== void 0)
4572
+ if (Pe && (me = ot ? Pe(ee, ir, ot, xe) : Pe(ee)), me !== void 0)
4573
4573
  return me;
4574
- if (!p(Z))
4575
- return Z;
4576
- var ht = i(Z);
4574
+ if (!p(ee))
4575
+ return ee;
4576
+ var ht = i(ee);
4577
4577
  if (ht) {
4578
- if (me = g(Z), !Ee)
4579
- return s(Z, me);
4578
+ if (me = g(ee), !Ee)
4579
+ return s(ee, me);
4580
4580
  } else {
4581
- var qe = D(Z), mt = qe == A || qe == H;
4582
- if (k(Z))
4583
- return o(Z, Ee);
4581
+ var qe = D(ee), mt = qe == A || qe == H;
4582
+ if (k(ee))
4583
+ return o(ee, Ee);
4584
4584
  if (qe == se || qe == z || mt && !ot) {
4585
- if (me = je || mt ? {} : v(Z), !Ee)
4586
- return je ? h(Z, a(me, Z)) : u(Z, n(me, Z));
4585
+ if (me = je || mt ? {} : v(ee), !Ee)
4586
+ return je ? h(ee, a(me, ee)) : u(ee, n(me, ee));
4587
4587
  } else {
4588
4588
  if (!ne[qe])
4589
- return ot ? Z : {};
4590
- me = d(Z, qe, Ee);
4589
+ return ot ? ee : {};
4590
+ me = d(ee, qe, Ee);
4591
4591
  }
4592
4592
  }
4593
4593
  xe || (xe = new e());
4594
- var st = xe.get(Z);
4594
+ var st = xe.get(ee);
4595
4595
  if (st)
4596
4596
  return st;
4597
- xe.set(Z, me), C(Z) ? Z.forEach(function(ze) {
4598
- me.add(at(ze, Ue, Pe, ze, Z, xe));
4599
- }) : f(Z) && Z.forEach(function(ze, Re) {
4600
- me.set(Re, at(ze, Ue, Pe, Re, Z, xe));
4597
+ xe.set(ee, me), C(ee) ? ee.forEach(function(ze) {
4598
+ me.add(at(ze, Ue, Pe, ze, ee, xe));
4599
+ }) : f(ee) && ee.forEach(function(ze, Re) {
4600
+ me.set(Re, at(ze, Ue, Pe, Re, ee, xe));
4601
4601
  });
4602
- var lt = Nt ? je ? b : m : je ? B : T, It = ht ? void 0 : lt(Z);
4603
- return t(It || Z, function(ze, Re) {
4604
- It && (Re = ze, ze = Z[Re]), r(me, Re, at(ze, Ue, Pe, Re, Z, xe));
4602
+ var lt = Nt ? je ? b : m : je ? V : T, It = ht ? void 0 : lt(ee);
4603
+ return t(It || ee, function(ze, Re) {
4604
+ It && (Re = ze, ze = ee[Re]), r(me, Re, at(ze, Ue, Pe, Re, ee, xe));
4605
4605
  }), me;
4606
4606
  }
4607
4607
  return ua = at, ua;
@@ -4675,14 +4675,14 @@ const Q = /* @__PURE__ */ ro(Lv), Hv = ie({
4675
4675
  const T = { ...e.formValue };
4676
4676
  if (typeof f.form.updateValue == "string")
4677
4677
  try {
4678
- const B = f.form.updateValue, L = new Function(
4678
+ const V = f.form.updateValue, L = new Function(
4679
4679
  "value",
4680
4680
  "formValue",
4681
4681
  "mainFormValue",
4682
4682
  "index",
4683
4683
  "option",
4684
4684
  "POST",
4685
- B
4685
+ V
4686
4686
  );
4687
4687
  try {
4688
4688
  const F = await L(
@@ -4699,8 +4699,8 @@ const Q = /* @__PURE__ */ ro(Lv), Hv = ie({
4699
4699
  } catch (F) {
4700
4700
  oe(F);
4701
4701
  }
4702
- } catch (B) {
4703
- oe(B);
4702
+ } catch (V) {
4703
+ oe(V);
4704
4704
  }
4705
4705
  else
4706
4706
  f.form.updateValue(p, T, C, pe);
@@ -4768,8 +4768,8 @@ const Q = /* @__PURE__ */ ro(Lv), Hv = ie({
4768
4768
  const p = Q(e.item.params.options);
4769
4769
  if (e.formValue && e.formValue[f]) {
4770
4770
  const T = e.formValue[f].toLocaleLowerCase();
4771
- p.forEach((B) => {
4772
- B.label.toLocaleLowerCase().indexOf(T) > -1 ? B.show = !0 : B.show = !1;
4771
+ p.forEach((V) => {
4772
+ V.label.toLocaleLowerCase().indexOf(T) > -1 ? V.show = !0 : V.show = !1;
4773
4773
  });
4774
4774
  } else
4775
4775
  p.forEach((T) => {
@@ -5013,9 +5013,9 @@ function Gv(e, t, r, n, a, o) {
5013
5013
  "onUpdate:value": [
5014
5014
  t[13] || (t[13] = (p) => e.formValue[e.item.key] = p),
5015
5015
  t[14] || (t[14] = (p, C, T) => {
5016
- const B = e.item;
5016
+ const V = e.item;
5017
5017
  let L = p, F = p;
5018
- if (B.params.multiple) {
5018
+ if (V.params.multiple) {
5019
5019
  let O = p.filter((z) => z);
5020
5020
  O.length === 0 ? (L = [], F = []) : (L = O, F = O);
5021
5021
  }
@@ -5354,8 +5354,8 @@ const pt = /* @__PURE__ */ _(Hv, [["render", Gv]]), Wv = ie({
5354
5354
  const H = JSON.stringify(
5355
5355
  A,
5356
5356
  (ue, se) => se === void 0 ? null : Array.isArray(se) ? se.filter((he) => he !== "") : se
5357
- ), W = JSON.parse(H);
5358
- z(W);
5357
+ ), J = JSON.parse(H);
5358
+ z(J);
5359
5359
  } else
5360
5360
  x();
5361
5361
  }
@@ -5363,7 +5363,7 @@ const pt = /* @__PURE__ */ _(Hv, [["render", Gv]]), Wv = ie({
5363
5363
  }), T = () => {
5364
5364
  var z;
5365
5365
  (z = a.value) == null || z.restoreValidation();
5366
- }, B = (z = 6) => ({
5366
+ }, V = (z = 6) => ({
5367
5367
  1: "md:col-span-1 lg:col-span-1 xl:col-span-1 2xl:col-span-1",
5368
5368
  2: "md:col-span-2 lg:col-span-2 xl:col-span-2 2xl:col-span-2",
5369
5369
  3: "md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3",
@@ -5411,7 +5411,7 @@ const pt = /* @__PURE__ */ _(Hv, [["render", Gv]]), Wv = ie({
5411
5411
  diffDay: i,
5412
5412
  sourceAdd: L,
5413
5413
  itemShow: d,
5414
- setSpan: B,
5414
+ setSpan: V,
5415
5415
  refreshOption: F
5416
5416
  };
5417
5417
  }
@@ -5457,11 +5457,11 @@ function Qv(e, t, r, n, a, o) {
5457
5457
  _: 1
5458
5458
  }),
5459
5459
  t[1] || (t[1] = K(" 新增 ", -1))
5460
- ], 8, Jv)) : G("", !0),
5460
+ ], 8, Jv)) : W("", !0),
5461
5461
  k.form.showDays ? (c(), w("span", {
5462
5462
  key: 1,
5463
5463
  class: de(["uz-form-item-add", e.diffDay(e.formValue[k.key], !0)])
5464
- }, U(e.diffDay(e.formValue[k.key])), 3)) : G("", !0)
5464
+ }, U(e.diffDay(e.formValue[k.key])), 3)) : W("", !0)
5465
5465
  ]),
5466
5466
  default: y(() => [
5467
5467
  k.input === "subTable" && !k.params.quest ? (c(), R(h, {
@@ -5493,7 +5493,7 @@ function Qv(e, t, r, n, a, o) {
5493
5493
  }, null, 8, ["item", "formValue", "status"]))
5494
5494
  ]),
5495
5495
  _: 2
5496
- }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : G("", !0)
5496
+ }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : W("", !0)
5497
5497
  ], 64);
5498
5498
  }), 128))
5499
5499
  ], 2)), [
@@ -5610,7 +5610,7 @@ const Xv = /* @__PURE__ */ _(Wv, [["render", Qv]]), Yv = ie({
5610
5610
  g.value = [-1, -1], r("on-select", void 0);
5611
5611
  }, T = () => {
5612
5612
  g.value[1] === -1 ? s.value.splice(g.value[0], 1) : s.value[g.value[0]].params.children.splice(g.value[1], 1), p(), C();
5613
- }, B = (F, O) => {
5613
+ }, V = (F, O) => {
5614
5614
  h.value = O, b.value = F.source, D.value = F.sourceFn, m.value = !0;
5615
5615
  }, L = (F) => {
5616
5616
  h.value && (s.value[h.value].params.options = F);
@@ -5647,7 +5647,7 @@ const Xv = /* @__PURE__ */ _(Wv, [["render", Qv]]), Yv = ie({
5647
5647
  onModeClick: d,
5648
5648
  onCancel: C,
5649
5649
  onDelete: T,
5650
- sourceAdd: B,
5650
+ sourceAdd: V,
5651
5651
  refreshOption: L
5652
5652
  };
5653
5653
  }
@@ -5710,11 +5710,11 @@ function e2(e, t, r, n, a, o) {
5710
5710
  _: 1
5711
5711
  }),
5712
5712
  t[2] || (t[2] = K(" 新增 ", -1))
5713
- ], 8, Zv)) : G("", !0),
5713
+ ], 8, Zv)) : W("", !0),
5714
5714
  f.form.showDays ? (c(), w("span", {
5715
5715
  key: 1,
5716
5716
  class: de(["uz-form-item-add", e.diffDay(e.formValue[f.key], !0)])
5717
- }, U(e.diffDay(e.formValue[f.key])), 3)) : G("", !0)
5717
+ }, U(e.diffDay(e.formValue[f.key])), 3)) : W("", !0)
5718
5718
  ]),
5719
5719
  default: y(() => [
5720
5720
  e.formItemIndex[0] === p && e.formItemIndex[1] === -1 ? (c(), R(m, {
@@ -5733,7 +5733,7 @@ function e2(e, t, r, n, a, o) {
5733
5733
  })
5734
5734
  ]),
5735
5735
  _: 1
5736
- }, 8, ["onClick"])) : G("", !0),
5736
+ }, 8, ["onClick"])) : W("", !0),
5737
5737
  f.input === "subTable" ? (c(), R(b, {
5738
5738
  key: 1,
5739
5739
  formValue: e.formValue,
@@ -5753,7 +5753,7 @@ function e2(e, t, r, n, a, o) {
5753
5753
  onEnd: e.onCancel,
5754
5754
  onChange: e.onDragChange
5755
5755
  }), {
5756
- item: y(({ element: T, index: B }) => {
5756
+ item: y(({ element: T, index: V }) => {
5757
5757
  var L;
5758
5758
  return [
5759
5759
  (c(), R(g, {
@@ -5762,16 +5762,16 @@ function e2(e, t, r, n, a, o) {
5762
5762
  rule: (L = T.rule) != null && L.required ? T.rule : void 0,
5763
5763
  class: de([
5764
5764
  "uz-form-grid-item uz-form-mode",
5765
- e.formItemIndex[0] === p && e.formItemIndex[1] === B ? "select" : ""
5765
+ e.formItemIndex[0] === p && e.formItemIndex[1] === V ? "select" : ""
5766
5766
  ]),
5767
- onClick: Ot((F) => e.onModeClick(T, p, B), ["stop"]),
5768
- key: B,
5767
+ onClick: Ot((F) => e.onModeClick(T, p, V), ["stop"]),
5768
+ key: V,
5769
5769
  style: Ne(`grid-column: span ${T.form.span || 6} / span ${T.form.span || 6};`),
5770
5770
  "show-label": T.input !== "divider" && T.input !== "subTable",
5771
5771
  "show-feedback": e.showFeedback && T.input !== "divider"
5772
5772
  }, {
5773
5773
  default: y(() => [
5774
- e.formItemIndex[0] === p && e.formItemIndex[1] === B ? (c(), R(m, {
5774
+ e.formItemIndex[0] === p && e.formItemIndex[1] === V ? (c(), R(m, {
5775
5775
  key: 0,
5776
5776
  size: "small",
5777
5777
  type: "error",
@@ -5787,7 +5787,7 @@ function e2(e, t, r, n, a, o) {
5787
5787
  })
5788
5788
  ]),
5789
5789
  _: 1
5790
- }, 8, ["onClick"])) : G("", !0),
5790
+ }, 8, ["onClick"])) : W("", !0),
5791
5791
  I(D, {
5792
5792
  item: T,
5793
5793
  formValue: e.formValue,
@@ -5968,7 +5968,7 @@ function l2(e, t, r, n, a, o) {
5968
5968
  })
5969
5969
  ]),
5970
5970
  _: 1
5971
- }, 8, ["accept", "max", "on-before-upload"])) : G("", !0),
5971
+ }, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
5972
5972
  (c(!0), w(le, null, $e(e.formValue, (f, p) => (c(), w("div", {
5973
5973
  key: p,
5974
5974
  class: "uz-form-upload-item w-20 h-20"
@@ -6049,7 +6049,7 @@ function l2(e, t, r, n, a, o) {
6049
6049
  ]),
6050
6050
  _: 1
6051
6051
  }, 8, ["href"])
6052
- ])) : G("", !0)
6052
+ ])) : W("", !0)
6053
6053
  ])
6054
6054
  ]))), 128))
6055
6055
  ]);
@@ -6256,7 +6256,7 @@ function g2(e, t, r, n, a, o) {
6256
6256
  K(U(e.$t("Common.scan")), 1)
6257
6257
  ]),
6258
6258
  _: 1
6259
- }, 8, ["loading", "onClick"])) : G("", !0),
6259
+ }, 8, ["loading", "onClick"])) : W("", !0),
6260
6260
  e.mode === "button" ? (c(), R(u, {
6261
6261
  key: 1,
6262
6262
  show: e.modal,
@@ -6283,7 +6283,7 @@ function g2(e, t, r, n, a, o) {
6283
6283
  ], 4)
6284
6284
  ]),
6285
6285
  _: 1
6286
- }, 8, ["show", "title", "on-after-leave"])) : G("", !0),
6286
+ }, 8, ["show", "title", "on-after-leave"])) : W("", !0),
6287
6287
  e.mode === "video" ? (c(), w("div", {
6288
6288
  key: 2,
6289
6289
  class: "uz-scan-canvas-main",
@@ -6297,7 +6297,7 @@ function g2(e, t, r, n, a, o) {
6297
6297
  width: e.width,
6298
6298
  height: e.height
6299
6299
  }, null, 8, h2)
6300
- ], 4)) : G("", !0),
6300
+ ], 4)) : W("", !0),
6301
6301
  l("div", m2, [
6302
6302
  l("video", w2, null, 512)
6303
6303
  ])
@@ -6382,7 +6382,7 @@ const v2 = /* @__PURE__ */ _(f2, [["render", g2]]), y2 = ie({
6382
6382
  e.loading || (n.value = Q(o.value), f());
6383
6383
  }, C = () => {
6384
6384
  s.value = !s.value;
6385
- }, T = (O) => i.value ? n.value && Array.isArray(n.value[d.value]) && n.value[d.value].includes(O.value) ? "primary" : "default" : n.value[d.value] === O.value ? "primary" : "default", B = (O) => {
6385
+ }, T = (O) => i.value ? n.value && Array.isArray(n.value[d.value]) && n.value[d.value].includes(O.value) ? "primary" : "default" : n.value[d.value] === O.value ? "primary" : "default", V = (O) => {
6386
6386
  var j;
6387
6387
  const z = {};
6388
6388
  let x = 0;
@@ -6397,7 +6397,7 @@ const v2 = /* @__PURE__ */ _(f2, [["render", g2]]), y2 = ie({
6397
6397
  return { data: O, values: z };
6398
6398
  }, L = (O) => {
6399
6399
  if (v.value = [], O && O.length > 0) {
6400
- const { data: z, values: x } = B(Q(O)), S = {}, q = e.id || r.params.id;
6400
+ const { data: z, values: x } = V(Q(O)), S = {}, q = e.id || r.params.id;
6401
6401
  if (e.cache && q) {
6402
6402
  const j = Be(`tables_${q}`, !1);
6403
6403
  j && j.params.forEach((A) => {
@@ -6485,11 +6485,11 @@ function x2(e, t, r, n, a, o) {
6485
6485
  })
6486
6486
  ]),
6487
6487
  _: 1
6488
- }, 8, ["span"])) : G("", !0),
6488
+ }, 8, ["span"])) : W("", !0),
6489
6489
  e.offset > -1 ? (c(), R(h, {
6490
6490
  key: 1,
6491
6491
  offset: e.offset
6492
- }, null, 8, ["offset"])) : G("", !0),
6492
+ }, null, 8, ["offset"])) : W("", !0),
6493
6493
  (c(!0), w(le, null, $e(e.itemData, (C, T) => (c(), R(h, {
6494
6494
  key: `${T}_${Date.now()}`,
6495
6495
  span: C.search.show ? e.gridSpan : 0
@@ -6550,7 +6550,7 @@ function x2(e, t, r, n, a, o) {
6550
6550
  }, 8, ["class"])
6551
6551
  ]),
6552
6552
  _: 1
6553
- }, 8, ["onClick"])) : G("", !0),
6553
+ }, 8, ["onClick"])) : W("", !0),
6554
6554
  e.itemData && Object.keys(e.itemData).length > 0 ? (c(), R(s, {
6555
6555
  key: 1,
6556
6556
  loading: e.loading,
@@ -6572,7 +6572,7 @@ function x2(e, t, r, n, a, o) {
6572
6572
  K(" " + U(e.$t("Common.search")), 1)
6573
6573
  ]),
6574
6574
  _: 1
6575
- }, 8, ["loading"])) : G("", !0),
6575
+ }, 8, ["loading"])) : W("", !0),
6576
6576
  e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (c(), R(s, {
6577
6577
  key: 2,
6578
6578
  loading: e.loading,
@@ -6591,7 +6591,7 @@ function x2(e, t, r, n, a, o) {
6591
6591
  K(" " + U(e.$t("Common.reset")), 1)
6592
6592
  ]),
6593
6593
  _: 1
6594
- }, 8, ["loading", "onClick"])) : G("", !0),
6594
+ }, 8, ["loading", "onClick"])) : W("", !0),
6595
6595
  Te(e.$slots, "action")
6596
6596
  ])
6597
6597
  ], 32);
@@ -6764,7 +6764,7 @@ function N2(e, t, r, n, a, o) {
6764
6764
  K(" " + U(e.$t("Common.search")), 1)
6765
6765
  ]),
6766
6766
  _: 1
6767
- }, 8, ["loading"])) : G("", !0)
6767
+ }, 8, ["loading"])) : W("", !0)
6768
6768
  ])
6769
6769
  ]),
6770
6770
  default: y(() => [
@@ -7191,10 +7191,10 @@ function Yt(e, t, r) {
7191
7191
  });
7192
7192
  if (C)
7193
7193
  try {
7194
- const T = tt.parse(C.viewJson), B = _t(T.table);
7195
- B.forEach((L) => {
7194
+ const T = tt.parse(C.viewJson), V = _t(T.table);
7195
+ V.forEach((L) => {
7196
7196
  L.table.sorter = !1;
7197
- }), p.params.columns = B, p.params.actions = T.action;
7197
+ }), p.params.columns = V, p.params.actions = T.action;
7198
7198
  } catch (T) {
7199
7199
  a(T);
7200
7200
  return;
@@ -7249,9 +7249,9 @@ async function Zt(e, t = !1, r = 0, n = () => {
7249
7249
  if (i.table.render = (C) => {
7250
7250
  if (f && f.length > 0)
7251
7251
  if (g.includes(i.key) && C[i.key]) {
7252
- const T = [], B = JSON.parse(C[i.key]);
7253
- if (B)
7254
- for (const L of B) {
7252
+ const T = [], V = JSON.parse(C[i.key]);
7253
+ if (V)
7254
+ for (const L of V) {
7255
7255
  const F = f.find(
7256
7256
  (O) => String(O.id) === L
7257
7257
  );
@@ -7270,14 +7270,14 @@ async function Zt(e, t = !1, r = 0, n = () => {
7270
7270
  return T;
7271
7271
  } else {
7272
7272
  const T = f.find(
7273
- (B) => {
7273
+ (V) => {
7274
7274
  var L, F;
7275
7275
  return (
7276
7276
  // @ts-ignore
7277
7277
  ((L = i.params) != null && L.valueKey ? (
7278
7278
  // @ts-ignore
7279
- B[(F = i.params) == null ? void 0 : F.valueKey]
7280
- ) : String(B.id)) === C[i.key]
7279
+ V[(F = i.params) == null ? void 0 : F.valueKey]
7280
+ ) : String(V.id)) === C[i.key]
7281
7281
  );
7282
7282
  }
7283
7283
  );
@@ -7771,79 +7771,79 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
7771
7771
  pageMax: 1,
7772
7772
  pageSize: e.pageSize || 30
7773
7773
  }
7774
- }), B = N([]), L = N(void 0), F = N(void 0), O = N(!1), z = N(0), x = N({}), S = N([]), q = N([]), j = N([]), A = N([]), H = N({
7774
+ }), V = N([]), L = N(void 0), F = N(void 0), O = N(!1), z = N(0), x = N({}), S = N([]), q = N([]), j = N([]), A = N([]), H = N({
7775
7775
  fetch: null,
7776
7776
  when_drawer_open: "",
7777
7777
  when_before_save: ""
7778
- }), W = N(ut()), ue = N(!1), se = N(0), he = N(""), Ve = N(!1), Me = N([]), ve = N([]), nt = N(!1), St = N(""), Tt = N({}), er = Ge("modules"), tr = ($) => $.id, rr = ($, V) => {
7778
+ }), J = N(ut()), ue = N(!1), se = N(0), he = N(""), Ve = N(!1), Me = N([]), we = N([]), nt = N(!1), St = N(""), Tt = N({}), er = Ge("modules"), tr = ($) => $.id, rr = ($, B) => {
7779
7779
  t("update:rowKeys", {
7780
7780
  keys: $,
7781
- rows: Q(V)
7781
+ rows: Q(B)
7782
7782
  });
7783
- }, nr = ($, V, J) => {
7784
- if (Me.value = $, J.action === "check" && ve.value.push(J.row), J.action === "uncheck") {
7785
- const ee = ve.value.findIndex(
7783
+ }, nr = ($, B, G) => {
7784
+ if (Me.value = $, G.action === "check" && we.value.push(G.row), G.action === "uncheck") {
7785
+ const Z = we.value.findIndex(
7786
7786
  (E) => {
7787
7787
  var te;
7788
- return E.id === ((te = J.row) == null ? void 0 : te.id);
7788
+ return E.id === ((te = G.row) == null ? void 0 : te.id);
7789
7789
  }
7790
7790
  );
7791
- ve.value.splice(ee, 1);
7791
+ we.value.splice(Z, 1);
7792
7792
  }
7793
- J.action === "checkAll" && V.forEach((ee) => {
7794
- ee && ve.value.push(ee);
7795
- }), J.action === "uncheckAll" && (ve.value = [], Me.value = []), t("update:rowKeys", {
7793
+ G.action === "checkAll" && B.forEach((Z) => {
7794
+ Z && we.value.push(Z);
7795
+ }), G.action === "uncheckAll" && (we.value = [], Me.value = []), t("update:rowKeys", {
7796
7796
  keys: Q(Me.value),
7797
- rows: Q(ve.value)
7797
+ rows: Q(we.value)
7798
7798
  });
7799
7799
  }, ar = ($) => {
7800
- const V = e.summary || W.value.summary;
7801
- return V && typeof V == "string" ? new Function("pageData", "h", V)($, "h", Y) : V && typeof V == "function" ? V($) : [];
7802
- }, we = ($ = !1) => {
7803
- const V = e.id || a.params.id;
7800
+ const B = e.summary || J.value.summary;
7801
+ return B && typeof B == "string" ? new Function("pageData", "h", B)($, "h", Y) : B && typeof B == "function" ? B($) : [];
7802
+ }, ge = ($ = !1) => {
7803
+ const B = e.id || a.params.id;
7804
7804
  e.enableLoading && (D.value = !0, t("update:loading", !0));
7805
- const J = Q(T.value);
7806
- if ($ && delete J.orderby, H.value.fetch)
7807
- Co([H.value.fetch], "", J).then((ee) => {
7808
- const E = _o(ee);
7809
- T.value.query = E.query, p.value = E.records, D.value = !1, g.value = !0, t("on-update:value", J), t("update:loading", !1), W.value.cache && V && Ie(`tables_${V}`, T.value);
7805
+ const G = Q(T.value);
7806
+ if ($ && delete G.orderby, H.value.fetch)
7807
+ Co([H.value.fetch], "", G).then((Z) => {
7808
+ const E = _o(Z);
7809
+ T.value.query = E.query, p.value = E.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1), J.value.cache && B && Ie(`tables_${B}`, T.value);
7810
7810
  }).catch(() => {
7811
7811
  D.value = !1, g.value = !0, t("update:loading", !1);
7812
7812
  });
7813
7813
  else {
7814
- let ee;
7815
- e.fetch ? ee = e.fetch({ ...J, tableId: V }) : ee = Ze({
7816
- ...J,
7817
- tableId: V
7818
- }), ee.then((E) => {
7814
+ let Z;
7815
+ e.fetch ? Z = e.fetch({ ...G, tableId: B }) : Z = Ze({
7816
+ ...G,
7817
+ tableId: B
7818
+ }), Z.then((E) => {
7819
7819
  const te = _o(E);
7820
- T.value.query = te.query, p.value = te.records, D.value = !1, g.value = !0, t("on-update:value", J), t("update:loading", !1), W.value.cache && V && Ie(`tables_${V}`, T.value);
7820
+ T.value.query = te.query, p.value = te.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1), J.value.cache && B && Ie(`tables_${B}`, T.value);
7821
7821
  }).catch(() => {
7822
7822
  D.value = !1, g.value = !0, t("update:loading", !1);
7823
7823
  });
7824
7824
  }
7825
7825
  }, or = ($) => {
7826
- T.value.query.page = $, h.value && (h.value.scrollTop = 0), dr(), we();
7826
+ T.value.query.page = $, h.value && (h.value.scrollTop = 0), dr(), ge();
7827
7827
  }, sr = () => {
7828
7828
  let $ = T.value.query.page + 1;
7829
- $ > T.value.query.pageMax && ($ = 1), T.value.query.page = $, h.value && (h.value.scrollTop = 0), we();
7829
+ $ > T.value.query.pageMax && ($ = 1), T.value.query.page = $, h.value && (h.value.scrollTop = 0), ge();
7830
7830
  }, lr = ($) => {
7831
- T.value.query.pageSize = $, T.value.query.page = 1, dr(), we();
7831
+ T.value.query.pageSize = $, T.value.query.page = 1, dr(), ge();
7832
7832
  }, ne = ($) => {
7833
- $ && $.order ? T.value.orderby = `${$.columnKey} ${$.order.replace("end", "")}` : delete T.value.orderby, we();
7833
+ $ && $.order ? T.value.orderby = `${$.columnKey} ${$.order.replace("end", "")}` : delete T.value.orderby, ge();
7834
7834
  }, at = () => {
7835
7835
  me(), typeof e.addFetch == "function" ? e.addFetch() : (z.value = 0, O.value = !0);
7836
- }, Z = ($) => {
7836
+ }, ee = ($) => {
7837
7837
  $.pin = !$.pin, $.pin ? $.fixed = "left" : $.fixed = $.fixTemp ?? void 0, st();
7838
7838
  }, Ue = ($) => {
7839
7839
  $.show = !$.show, st();
7840
7840
  }, Pe = () => {
7841
7841
  const $ = [];
7842
- f.value.forEach((V) => {
7843
- V.show && $.push(V);
7842
+ f.value.forEach((B) => {
7843
+ B.show && $.push(B);
7844
7844
  }), k.value = $;
7845
7845
  }, ir = ($) => {
7846
- T.value.params = $, we();
7846
+ T.value.params = $, ge();
7847
7847
  }, ot = () => [
7848
7848
  {
7849
7849
  title: "创建人/时间",
@@ -7896,43 +7896,43 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
7896
7896
  ]
7897
7897
  }
7898
7898
  ], xe = ($) => {
7899
- var V;
7900
- return !e.ruleFetch || !S.value || S.value && S.value[0] === "*" ? !1 : !((V = S.value) != null && V.includes($));
7899
+ var B;
7900
+ return !e.ruleFetch || !S.value || S.value && S.value[0] === "*" ? !1 : !((B = S.value) != null && B.includes($));
7901
7901
  }, me = async ($) => {
7902
- const { form: V, fillingDefaultValue: J } = await Yt(
7902
+ const { form: B, fillingDefaultValue: G } = await Yt(
7903
7903
  q.value,
7904
7904
  $,
7905
7905
  () => b.value.getValues()
7906
7906
  );
7907
- return i.value = V, J;
7908
- }, Ee = async ($) => new Promise((V, J) => {
7909
- const ee = e.id || a.params.id;
7907
+ return i.value = B, G;
7908
+ }, Ee = async ($) => new Promise((B, G) => {
7909
+ const Z = e.id || a.params.id;
7910
7910
  let E;
7911
7911
  e.fetch ? E = e.fetch({
7912
7912
  id: $.id,
7913
- tableId: ee
7913
+ tableId: Z
7914
7914
  }) : E = Ze({
7915
7915
  id: $.id,
7916
- tableId: ee
7916
+ tableId: Z
7917
7917
  }), E.then((te) => {
7918
- V(te && te[0]);
7918
+ B(te && te[0]);
7919
7919
  }).catch(() => {
7920
- J();
7920
+ G();
7921
7921
  });
7922
7922
  }), je = ($) => {
7923
- const V = H.value.when_drawer_open;
7924
- if (V && typeof V == "string")
7923
+ const B = H.value.when_drawer_open;
7924
+ if (B && typeof B == "string")
7925
7925
  try {
7926
- new Function("data", "POST", V)($, pe).then((ee) => {
7927
- x.value = ee;
7928
- }).catch((ee) => {
7929
- oe(ee);
7926
+ new Function("data", "POST", B)($, pe).then((Z) => {
7927
+ x.value = Z;
7928
+ }).catch((Z) => {
7929
+ oe(Z);
7930
7930
  });
7931
- } catch (J) {
7932
- oe(J);
7931
+ } catch (G) {
7932
+ oe(G);
7933
7933
  }
7934
- }, Nt = ($, V) => {
7935
- const J = Q($.onClick), ee = e.id || a.params.id;
7934
+ }, Nt = ($, B) => {
7935
+ const G = Q($.onClick), Z = e.id || a.params.id;
7936
7936
  if ($.disabled) {
7937
7937
  if (typeof $.disabled == "string") {
7938
7938
  const E = new Function("rowData", "rowIndex", $.disabled);
@@ -7947,13 +7947,13 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
7947
7947
  $.onClick = async (E) => {
7948
7948
  Ee(E).then((te) => {
7949
7949
  if ($.optionsType === "drawer:insider") {
7950
- if (J)
7950
+ if (G)
7951
7951
  try {
7952
7952
  new Function(
7953
7953
  "rowData",
7954
7954
  "POST",
7955
7955
  "fnNotification",
7956
- J
7956
+ G
7957
7957
  )(te, pe, s).then((ke) => {
7958
7958
  Tt.value = ke;
7959
7959
  }).catch((ke) => {
@@ -8030,14 +8030,14 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8030
8030
  let te;
8031
8031
  e.deleteFetch ? te = e.deleteFetch({
8032
8032
  ...E,
8033
- tableId: ee,
8034
- sub_table_ids: V
8033
+ tableId: Z,
8034
+ sub_table_ids: B
8035
8035
  }) : te = Ww({
8036
8036
  ...E,
8037
- tableId: ee,
8038
- sub_table_ids: V
8037
+ tableId: Z,
8038
+ sub_table_ids: B
8039
8039
  }), te.then(() => {
8040
- we();
8040
+ ge();
8041
8041
  }).catch((ae) => {
8042
8042
  oe(ae);
8043
8043
  });
@@ -8048,10 +8048,10 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8048
8048
  let ae;
8049
8049
  e.fetch ? ae = e.fetch({
8050
8050
  id: te.id,
8051
- tableId: ee
8051
+ tableId: Z
8052
8052
  }) : ae = Ze({
8053
8053
  id: te.id,
8054
- tableId: ee
8054
+ tableId: Z
8055
8055
  }), ae.then((ke) => {
8056
8056
  const ce = ke && ke[0];
8057
8057
  Co(
@@ -8065,7 +8065,7 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8065
8065
  s.success({
8066
8066
  content: ur,
8067
8067
  duration: 3e3
8068
- }), we();
8068
+ }), ge();
8069
8069
  }).catch((ur) => {
8070
8070
  oe(ur);
8071
8071
  });
@@ -8079,34 +8079,34 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8079
8079
  s.success({
8080
8080
  content: () => o("Notice.success"),
8081
8081
  duration: 3e3
8082
- }), we();
8082
+ }), ge();
8083
8083
  });
8084
8084
  return;
8085
8085
  }
8086
8086
  s.success({
8087
8087
  content: () => o("Notice.success"),
8088
8088
  duration: 3e3
8089
- }), we();
8089
+ }), ge();
8090
8090
  }).catch(() => {
8091
8091
  s.error({
8092
8092
  content: () => o("Notice.failed"),
8093
8093
  duration: 3e3
8094
- }), we();
8094
+ }), ge();
8095
8095
  });
8096
8096
  }).catch(() => null);
8097
8097
  };
8098
8098
  }
8099
8099
  }, ht = async () => {
8100
8100
  Ve.value = !1, Na();
8101
- const { tableColumns: $, search: V, subTableIds: J, tableWidth: ee } = await Zt(
8101
+ const { tableColumns: $, search: B, subTableIds: G, tableWidth: Z } = await Zt(
8102
8102
  q.value,
8103
8103
  e.child,
8104
8104
  z.value,
8105
8105
  () => x.value,
8106
8106
  er
8107
8107
  );
8108
- let E = ee;
8109
- !u.value && W.value.index && ($.unshift({
8108
+ let E = Z;
8109
+ !u.value && J.value.index && ($.unshift({
8110
8110
  title: "#",
8111
8111
  key: "index",
8112
8112
  align: "center",
@@ -8127,28 +8127,28 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8127
8127
  }
8128
8128
  );
8129
8129
  }
8130
- }), E = E + 60), !u.value && (e.selection || W.value.selection !== 0) && ($.unshift({
8130
+ }), E = E + 60), !u.value && (e.selection || J.value.selection !== 0) && ($.unshift({
8131
8131
  type: "selection",
8132
8132
  fixed: "left",
8133
8133
  width: 60,
8134
8134
  hide: !0,
8135
8135
  show: !0,
8136
- multiple: e.selection === 2 || W.value.selection === 2,
8136
+ multiple: e.selection === 2 || J.value.selection === 2,
8137
8137
  options: ["all", "none"]
8138
8138
  }), E = E + 60);
8139
8139
  const te = e.id || a.params.id;
8140
- if (!u.value && W.value.commonTime && $.push(...ot()), e.enableAction === !0 && j.value && j.value.length > 0) {
8140
+ if (!u.value && J.value.commonTime && $.push(...ot()), e.enableAction === !0 && j.value && j.value.length > 0) {
8141
8141
  const ae = Q(j.value);
8142
8142
  for (const ce of ae)
8143
8143
  ce.type === "group" ? ce.children.forEach((Se) => {
8144
- Nt(Se, J);
8145
- }) : Nt(ce, J);
8144
+ Nt(Se, G);
8145
+ }) : Nt(ce, G);
8146
8146
  const ke = {
8147
8147
  title: () => o("Common.action"),
8148
8148
  key: "action",
8149
8149
  align: "center",
8150
8150
  fixed: "right",
8151
- width: W.value.actionWidth,
8151
+ width: J.value.actionWidth,
8152
8152
  resizable: !0,
8153
8153
  checked: !0,
8154
8154
  show: !0,
@@ -8157,16 +8157,16 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8157
8157
  return $t({
8158
8158
  buttons: ae,
8159
8159
  rowData: ce,
8160
- callback: we,
8160
+ callback: ge,
8161
8161
  tableId: te
8162
8162
  });
8163
8163
  }
8164
8164
  };
8165
8165
  E = E + Number(
8166
- typeof W.value.actionWidth == "string" ? W.value.actionWidth.replace("px", "") : W.value.actionWidth
8166
+ typeof J.value.actionWidth == "string" ? J.value.actionWidth.replace("px", "") : J.value.actionWidth
8167
8167
  ), $.push(ke);
8168
8168
  }
8169
- f.value = $, B.value = V, C.value = E;
8169
+ f.value = $, V.value = B, C.value = E;
8170
8170
  }, qe = ($) => typeof $ == "number" ? `${$}px` : $, mt = () => {
8171
8171
  if (e.height) {
8172
8172
  const $ = qe(e.height);
@@ -8175,12 +8175,12 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8175
8175
  }
8176
8176
  }, st = () => {
8177
8177
  const $ = [];
8178
- f.value.forEach((V) => {
8179
- V.key !== "action" && $.push({
8180
- key: V.key,
8181
- show: V.show,
8182
- hide: V.hide,
8183
- fixed: V.fixed
8178
+ f.value.forEach((B) => {
8179
+ B.key !== "action" && $.push({
8180
+ key: B.key,
8181
+ show: B.show,
8182
+ hide: B.hide,
8183
+ fixed: B.fixed
8184
8184
  });
8185
8185
  }), t("on-update:columns", $);
8186
8186
  }, lt = () => {
@@ -8188,11 +8188,11 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8188
8188
  ($ = b.value) == null || $.restoreValidation(), x.value = {}, d.value = !1, O.value = !1;
8189
8189
  }, It = () => {
8190
8190
  var $;
8191
- se.value = 0, ue.value = !0, ($ = b.value) == null || $.validate().then(async (V) => {
8191
+ se.value = 0, ue.value = !0, ($ = b.value) == null || $.validate().then(async (B) => {
8192
8192
  if (H.value.when_before_save) {
8193
8193
  const E = H.value.when_before_save, te = new Function("data", "POST", E);
8194
8194
  try {
8195
- V = await te(V, pe).catch((ae) => {
8195
+ B = await te(B, pe).catch((ae) => {
8196
8196
  se.value = 1, he.value = ae.message;
8197
8197
  });
8198
8198
  } catch (ae) {
@@ -8200,16 +8200,16 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8200
8200
  return;
8201
8201
  }
8202
8202
  }
8203
- let J;
8204
- const ee = e.id || a.params.id;
8205
- e.formFetch ? J = e.formFetch({
8206
- tableId: ee,
8207
- ...V
8208
- }) : J = to({
8209
- tableId: ee,
8210
- ...V
8211
- }), J.then(() => {
8212
- Na(), ue.value = !1, we(), lt();
8203
+ let G;
8204
+ const Z = e.id || a.params.id;
8205
+ e.formFetch ? G = e.formFetch({
8206
+ tableId: Z,
8207
+ ...B
8208
+ }) : G = to({
8209
+ tableId: Z,
8210
+ ...B
8211
+ }), G.then(() => {
8212
+ Na(), ue.value = !1, ge(), lt();
8213
8213
  }).catch((E) => {
8214
8214
  se.value = 1, he.value = E;
8215
8215
  });
@@ -8221,14 +8221,14 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8221
8221
  fetch: null,
8222
8222
  when_drawer_open: "",
8223
8223
  when_before_save: ""
8224
- }, W.value = ut();
8224
+ }, J.value = ut();
8225
8225
  }, Re = ($) => {
8226
- const V = tt.parse($.viewJson);
8227
- v.value = $.tableTitle, q.value = _t(V.table), j.value = Rt(e.actions || V.action);
8228
- const J = Rt(V.suffix || []);
8229
- A.value = J.map((E) => (vo(E), E)), H.value = qc(V.trigger);
8230
- const ee = ut(e.options ?? V.option);
8231
- $.tableTitle && ee.title && Fw($.tableTitle), W.value = ee;
8226
+ const B = tt.parse($.viewJson);
8227
+ v.value = $.tableTitle, q.value = _t(B.table), j.value = Rt(e.actions || B.action);
8228
+ const G = Rt(B.suffix || []);
8229
+ A.value = G.map((E) => (vo(E), E)), H.value = qc(B.trigger);
8230
+ const Z = ut(e.options ?? B.option);
8231
+ $.tableTitle && Z.title && Fw($.tableTitle), J.value = Z;
8232
8232
  }, Dt = async () => {
8233
8233
  g.value = !1, ze();
8234
8234
  const $ = e.id || a.params.id;
@@ -8246,10 +8246,10 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8246
8246
  he.value = o("Notice.network"), Ve.value = !0;
8247
8247
  return;
8248
8248
  }
8249
- mt(), e.columns ? (q.value = e.columns || [], j.value = e.actions || [], A.value = e.suffixes || [], W.value = ut(e.options), await ht()) : await bt($).then(async (V) => {
8250
- Re(V), await ht();
8251
- }).catch((V) => {
8252
- he.value = V.message, Ve.value = !0;
8249
+ mt(), e.columns ? (q.value = e.columns || [], j.value = e.actions || [], A.value = e.suffixes || [], J.value = ut(e.options), await ht()) : await bt($).then(async (B) => {
8250
+ Re(B), await ht();
8251
+ }).catch((B) => {
8252
+ he.value = B.message, Ve.value = !0;
8253
8253
  });
8254
8254
  }, vo = ($) => {
8255
8255
  if ($.type !== "group" && $.optionsType)
@@ -8265,21 +8265,21 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8265
8265
  });
8266
8266
  };
8267
8267
  else if ($.type !== "group") {
8268
- const V = Q($.onClick);
8268
+ const B = Q($.onClick);
8269
8269
  $.onClick = async () => {
8270
- if (V && typeof V == "string") {
8270
+ if (B && typeof B == "string") {
8271
8271
  try {
8272
- const J = new Function("POST", "fnNotification", V);
8273
- await J(pe, s, J), we();
8274
- } catch (J) {
8275
- oe(J);
8272
+ const G = new Function("POST", "fnNotification", B);
8273
+ await G(pe, s, G), ge();
8274
+ } catch (G) {
8275
+ oe(G);
8276
8276
  }
8277
8277
  return;
8278
8278
  }
8279
8279
  };
8280
8280
  }
8281
8281
  };
8282
- return r({ rebuild: Dt, init: we, nextPage: sr }), Je(async () => {
8282
+ return r({ rebuild: Dt, init: ge, nextPage: sr }), Je(async () => {
8283
8283
  await Dt();
8284
8284
  }), fe(
8285
8285
  () => f.value,
@@ -8297,7 +8297,13 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8297
8297
  }), fe(
8298
8298
  () => e.defaultCheckedRowKeys,
8299
8299
  ($) => {
8300
- Me.value = $ || [];
8300
+ const B = $ || [], G = we.value.filter(
8301
+ (Z) => B.includes(Z.id)
8302
+ );
8303
+ Me.value = B, we.value = G;
8304
+ },
8305
+ {
8306
+ deep: !0
8301
8307
  }
8302
8308
  ), {
8303
8309
  loading: D,
@@ -8307,11 +8313,11 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8307
8313
  formRef: b,
8308
8314
  ocFormStatus: z,
8309
8315
  formValues: x,
8310
- tableOption: W,
8316
+ tableOption: J,
8311
8317
  tableColumns: k,
8312
8318
  tableData: p,
8313
8319
  tableQueries: T,
8314
- searchData: B,
8320
+ searchData: V,
8315
8321
  baseColumns: f,
8316
8322
  isSlotHeader: m,
8317
8323
  formData: i,
@@ -8335,7 +8341,7 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8335
8341
  pageChange: or,
8336
8342
  pageSizeChange: lr,
8337
8343
  pageSorter: ne,
8338
- pinChange: Z,
8344
+ pinChange: ee,
8339
8345
  showChange: Ue,
8340
8346
  submit: ir,
8341
8347
  handleAdd: at,
@@ -8359,7 +8365,7 @@ const Fc = /* @__PURE__ */ _(V2, [["render", E2], ["__scopeId", "data-v-ec746f00
8359
8365
  class: "uz-transform-fade-in"
8360
8366
  }, X2 = { class: "uz-com-title" }, Y2 = { class: "flex gap-2 h-full" }, Z2 = { class: "flex justify-between w-full" }, ey = { class: "flex gap-2" };
8361
8367
  function ty(e, t, r, n, a, o) {
8362
- const s = M("NSkeleton"), u = M("NButton"), h = M("Plus"), m = M("NIcon"), b = M("UzActionButton"), D = M("UzSearchMobileBar"), g = M("UzTableMobile"), d = M("Filter"), v = M("NCheckbox"), i = M("GridDots"), k = M("Draggable"), f = M("NPopover"), p = M("UzSearchBar"), C = M("NDataTable"), T = M("NSpin"), B = M("UzOcr"), L = M("UzForm"), F = M("UzSpin"), O = M("NDrawerContent"), z = M("NDrawer"), x = M("UzTableDrawer");
8368
+ const s = M("NSkeleton"), u = M("NButton"), h = M("Plus"), m = M("NIcon"), b = M("UzActionButton"), D = M("UzSearchMobileBar"), g = M("UzTableMobile"), d = M("Filter"), v = M("NCheckbox"), i = M("GridDots"), k = M("Draggable"), f = M("NPopover"), p = M("UzSearchBar"), C = M("NDataTable"), T = M("NSpin"), V = M("UzOcr"), L = M("UzForm"), F = M("UzSpin"), O = M("NDrawerContent"), z = M("NDrawer"), x = M("UzTableDrawer");
8363
8369
  return c(), w("div", {
8364
8370
  class: "uz-table",
8365
8371
  style: Ne({
@@ -8456,7 +8462,7 @@ function ty(e, t, r, n, a, o) {
8456
8462
  K(" " + U(e.$t("Common.add")), 1)
8457
8463
  ]),
8458
8464
  _: 1
8459
- }, 8, ["disabled", "onClick"])) : G("", !0),
8465
+ }, 8, ["disabled", "onClick"])) : W("", !0),
8460
8466
  e.suffixes && e.suffixes.length > 0 ? (c(), R(b, {
8461
8467
  key: 1,
8462
8468
  data: e.suffixes,
@@ -8465,7 +8471,7 @@ function ty(e, t, r, n, a, o) {
8465
8471
  size: "medium",
8466
8472
  text: !1
8467
8473
  }
8468
- }, null, 8, ["data"])) : G("", !0),
8474
+ }, null, 8, ["data"])) : W("", !0),
8469
8475
  Te(e.$slots, "action")
8470
8476
  ]),
8471
8477
  _: 2
@@ -8542,7 +8548,7 @@ function ty(e, t, r, n, a, o) {
8542
8548
  onEnd: e.handleColumnChange
8543
8549
  }), {
8544
8550
  item: y(({ element: S }) => [
8545
- S.hide ? G("", !0) : (c(), w("div", {
8551
+ S.hide ? W("", !0) : (c(), w("div", {
8546
8552
  key: S.key,
8547
8553
  class: "uz-table-sort"
8548
8554
  }, [
@@ -8576,7 +8582,7 @@ function ty(e, t, r, n, a, o) {
8576
8582
  }, 16, ["modelValue", "onEnd"])
8577
8583
  ]),
8578
8584
  _: 1
8579
- })) : G("", !0),
8585
+ })) : W("", !0),
8580
8586
  e.addFetch && e.tableOption.addButton ? (c(), R(u, {
8581
8587
  key: 1,
8582
8588
  secondary: "",
@@ -8595,7 +8601,7 @@ function ty(e, t, r, n, a, o) {
8595
8601
  K(" " + U(e.$t("Common.add")), 1)
8596
8602
  ]),
8597
8603
  _: 1
8598
- }, 8, ["disabled", "onClick"])) : G("", !0),
8604
+ }, 8, ["disabled", "onClick"])) : W("", !0),
8599
8605
  e.suffixes && e.suffixes.length > 0 ? (c(), R(b, {
8600
8606
  key: 2,
8601
8607
  data: e.suffixes,
@@ -8604,7 +8610,7 @@ function ty(e, t, r, n, a, o) {
8604
8610
  size: "medium",
8605
8611
  text: !1
8606
8612
  }
8607
- }, null, 8, ["data"])) : G("", !0),
8613
+ }, null, 8, ["data"])) : W("", !0),
8608
8614
  Te(e.$slots, "action")
8609
8615
  ]),
8610
8616
  _: 2
@@ -8622,7 +8628,7 @@ function ty(e, t, r, n, a, o) {
8622
8628
  ]),
8623
8629
  key: "1"
8624
8630
  }
8625
- ]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) : G("", !0),
8631
+ ]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) : W("", !0),
8626
8632
  I(C, {
8627
8633
  columns: e.tableColumns,
8628
8634
  data: e.tableData,
@@ -8671,7 +8677,7 @@ function ty(e, t, r, n, a, o) {
8671
8677
  }, Fe({
8672
8678
  default: y(() => [
8673
8679
  l("div", Y2, [
8674
- e.ocrShow ? (c(), R(B, { key: 0 })) : G("", !0),
8680
+ e.ocrShow ? (c(), R(V, { key: 0 })) : W("", !0),
8675
8681
  I(F, {
8676
8682
  value: e.spinShow,
8677
8683
  "onUpdate:value": t[1] || (t[1] = (S) => e.spinShow = S),
@@ -8698,7 +8704,7 @@ function ty(e, t, r, n, a, o) {
8698
8704
  fn: y(() => [
8699
8705
  l("div", Z2, [
8700
8706
  l("div", null, [
8701
- e.isMobile ? G("", !0) : (c(), R(u, {
8707
+ e.isMobile ? W("", !0) : (c(), R(u, {
8702
8708
  key: 0,
8703
8709
  type: "primary",
8704
8710
  onClick: t[2] || (t[2] = (S) => e.ocrShow = !e.ocrShow),
@@ -8785,9 +8791,9 @@ const ry = /* @__PURE__ */ _(L2, [["render", ty]]), ny = ie({
8785
8791
  const A = [];
8786
8792
  if (e.item.params.columns.forEach((H) => {
8787
8793
  (H.input === "cascader" || H.input === "select") && H.params.multiple && A.push(H.key);
8788
- }), e.item.params.draggable && j.sort((H, W) => H.sort_index - W.sort_index), j && j.forEach((H) => {
8789
- A.forEach((W) => {
8790
- H[W] && typeof H[W] == "string" && (H[W] = JSON.parse(H[W]));
8794
+ }), e.item.params.draggable && j.sort((H, J) => H.sort_index - J.sort_index), j && j.forEach((H) => {
8795
+ A.forEach((J) => {
8796
+ H[J] && typeof H[J] == "string" && (H[J] = JSON.parse(H[J]));
8791
8797
  });
8792
8798
  }), e.item.params.init && j.length === 0 && e.status === 0 && (j = [i.value]), e.item.params.merge && typeof e.item.params.merge == "string")
8793
8799
  try {
@@ -8844,7 +8850,7 @@ const ry = /* @__PURE__ */ _(L2, [["render", ty]]), ny = ie({
8844
8850
  );
8845
8851
  }
8846
8852
  }), A = A + 40), e.status !== 2 && e.item.params.showActions) {
8847
- const W = {
8853
+ const J = {
8848
8854
  title: () => s("Common.action"),
8849
8855
  key: "action",
8850
8856
  align: "center",
@@ -8866,25 +8872,25 @@ const ry = /* @__PURE__ */ _(L2, [["render", ty]]), ny = ie({
8866
8872
  Me && typeof Me == "string" ? ue = new Function("rowData", "mainFormValue", Me)(ue, o) : ue.delete = !0;
8867
8873
  }
8868
8874
  };
8869
- return e.item.params.childActions && e.item.params.actions && Rt(e.item.params.actions).forEach((ve) => {
8870
- if (ve.disabled && typeof ve.disabled == "string") {
8871
- const nt = new Function("rowData", "rowIndex", ve.disabled);
8872
- ve.disabled = nt(ue, se);
8875
+ return e.item.params.childActions && e.item.params.actions && Rt(e.item.params.actions).forEach((we) => {
8876
+ if (we.disabled && typeof we.disabled == "string") {
8877
+ const nt = new Function("rowData", "rowIndex", we.disabled);
8878
+ we.disabled = nt(ue, se);
8873
8879
  }
8874
- he.push(ve);
8880
+ he.push(we);
8875
8881
  }), e.item.params.showDelete && (e.status !== 2 && (d.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && he.push(Ve), $t({
8876
8882
  buttons: he,
8877
8883
  rowData: ue
8878
8884
  });
8879
8885
  }
8880
8886
  };
8881
- q.push(W);
8887
+ q.push(J);
8882
8888
  }
8883
8889
  const H = [];
8884
- q.forEach((W) => {
8885
- W.show && H.push(W);
8890
+ q.forEach((J) => {
8891
+ J.show && H.push(J);
8886
8892
  }), g.value = H, A = A + 180, k.value = A;
8887
- }, B = (S) => {
8893
+ }, V = (S) => {
8888
8894
  if (e.item.params.summary) {
8889
8895
  if (typeof e.item.params.summary == "function")
8890
8896
  return e.item.params.summary(S);
@@ -8955,8 +8961,8 @@ const ry = /* @__PURE__ */ _(L2, [["render", ty]]), ny = ie({
8955
8961
  // dataTransfer.setData('Text', '')
8956
8962
  // },
8957
8963
  onEnd: ({ oldIndex: q, newIndex: j }) => {
8958
- var W;
8959
- (W = h.value) == null || W.destroy(), h.value = null, D.value = !1;
8964
+ var J;
8965
+ (J = h.value) == null || J.destroy(), h.value = null, D.value = !1;
8960
8966
  let A = Q(d.value.child);
8961
8967
  const H = A.splice(q, 1)[0];
8962
8968
  A.splice(j, 0, H), A = A.map((ue, se) => ({
@@ -9000,7 +9006,7 @@ const ry = /* @__PURE__ */ _(L2, [["render", ty]]), ny = ie({
9000
9006
  tableRef: u,
9001
9007
  columns: g,
9002
9008
  tableData: d,
9003
- summaryData: B,
9009
+ summaryData: V,
9004
9010
  message: v,
9005
9011
  tableScrollX: k,
9006
9012
  tableShow: D,
@@ -9019,7 +9025,7 @@ function cy(e, t, r, n, a, o) {
9019
9025
  l("div", oy, [
9020
9026
  l("div", sy, [
9021
9027
  K(U(e.item.label) + " ", 1),
9022
- e.item.form.rule.required ? (c(), w("span", ly, "  * ")) : G("", !0)
9028
+ e.item.form.rule.required ? (c(), w("span", ly, "  * ")) : W("", !0)
9023
9029
  ]),
9024
9030
  l("div", iy, [
9025
9031
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(h, {
@@ -9040,7 +9046,7 @@ function cy(e, t, r, n, a, o) {
9040
9046
  t[0] || (t[0] = K(" 从数据新增 ", -1))
9041
9047
  ]),
9042
9048
  _: 1
9043
- }, 8, ["onClick"])) : G("", !0),
9049
+ }, 8, ["onClick"])) : W("", !0),
9044
9050
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(h, {
9045
9051
  key: 1,
9046
9052
  type: "success",
@@ -9059,7 +9065,7 @@ function cy(e, t, r, n, a, o) {
9059
9065
  t[1] || (t[1] = K(" 新增 ", -1))
9060
9066
  ]),
9061
9067
  _: 1
9062
- }, 8, ["onClick"])) : G("", !0)
9068
+ }, 8, ["onClick"])) : W("", !0)
9063
9069
  ])
9064
9070
  ]),
9065
9071
  t[4] || (t[4] = l("div", { class: "uz-br" }, null, -1)),
@@ -9084,7 +9090,7 @@ function cy(e, t, r, n, a, o) {
9084
9090
  "row-class-name": e.rowClassName,
9085
9091
  "scrollbar-props": { size: 8, trigger: "none" },
9086
9092
  remote: ""
9087
- }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : G("", !0),
9093
+ }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : W("", !0),
9088
9094
  l("div", uy, [
9089
9095
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(h, {
9090
9096
  key: 0,
@@ -9104,7 +9110,7 @@ function cy(e, t, r, n, a, o) {
9104
9110
  t[2] || (t[2] = K(" 从数据新增 ", -1))
9105
9111
  ]),
9106
9112
  _: 1
9107
- }, 8, ["onClick"])) : G("", !0),
9113
+ }, 8, ["onClick"])) : W("", !0),
9108
9114
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), R(h, {
9109
9115
  key: 1,
9110
9116
  type: "success",
@@ -9123,7 +9129,7 @@ function cy(e, t, r, n, a, o) {
9123
9129
  t[3] || (t[3] = K(" 新增 ", -1))
9124
9130
  ]),
9125
9131
  _: 1
9126
- }, 8, ["onClick"])) : G("", !0)
9132
+ }, 8, ["onClick"])) : W("", !0)
9127
9133
  ])
9128
9134
  ]),
9129
9135
  _: 1
@@ -9346,10 +9352,10 @@ const gy = /* @__PURE__ */ _(fy, [["render", wy]]), vy = ie({
9346
9352
  const C = g.value.when_drawer_open;
9347
9353
  if (C && typeof C == "string")
9348
9354
  try {
9349
- new Function("formValues", "POST", C)(p, pe).then((B) => {
9350
- a.value = B;
9351
- }).catch((B) => {
9352
- oe(B);
9355
+ new Function("formValues", "POST", C)(p, pe).then((V) => {
9356
+ a.value = V;
9357
+ }).catch((V) => {
9358
+ oe(V);
9353
9359
  });
9354
9360
  } catch (T) {
9355
9361
  oe(T);
@@ -9359,10 +9365,10 @@ const gy = /* @__PURE__ */ _(fy, [["render", wy]]), vy = ie({
9359
9365
  const p = e.link.split(".")[0];
9360
9366
  await bt(p).then(async (C) => {
9361
9367
  o.value = !0;
9362
- const T = tt.parse(C.viewJson), { form: B } = await Yt(
9368
+ const T = tt.parse(C.viewJson), { form: V } = await Yt(
9363
9369
  _t(T.table)
9364
9370
  );
9365
- D.value = B, s.value = ut(T.option), g.value = T.trigger, e.mainData && (g.value.when_drawer_open ? i(e.mainData) : a.value = e.mainData);
9371
+ D.value = V, s.value = ut(T.option), g.value = T.trigger, e.mainData && (g.value.when_drawer_open ? i(e.mainData) : a.value = e.mainData);
9366
9372
  }).catch(() => {
9367
9373
  d.value = !0;
9368
9374
  });
@@ -9371,7 +9377,7 @@ const gy = /* @__PURE__ */ _(fy, [["render", wy]]), vy = ie({
9371
9377
  var p;
9372
9378
  b.value = 0, h.value = !0, (p = n.value) == null || p.validate().then(async (C) => {
9373
9379
  if (g.value.when_before_save) {
9374
- const B = g.value.when_before_save, L = new Function("data", "POST", B);
9380
+ const V = g.value.when_before_save, L = new Function("data", "POST", V);
9375
9381
  try {
9376
9382
  C = await L(C, pe).catch((F) => {
9377
9383
  b.value = 1, m.value = F.message;
@@ -9385,7 +9391,7 @@ const gy = /* @__PURE__ */ _(fy, [["render", wy]]), vy = ie({
9385
9391
  to({
9386
9392
  tableId: T,
9387
9393
  ...C
9388
- }).then((B) => {
9394
+ }).then((V) => {
9389
9395
  Na(), Ze({
9390
9396
  tableId: T
9391
9397
  }).then((L) => {
@@ -9403,8 +9409,8 @@ const gy = /* @__PURE__ */ _(fy, [["render", wy]]), vy = ie({
9403
9409
  }));
9404
9410
  h.value = !1, t("on-submit", O), v();
9405
9411
  });
9406
- }).catch((B) => {
9407
- b.value = 1, m.value = B;
9412
+ }).catch((V) => {
9413
+ b.value = 1, m.value = V;
9408
9414
  });
9409
9415
  }).catch(() => {
9410
9416
  h.value = !1;
@@ -9469,7 +9475,7 @@ function _y(e, t, r, n, a, o) {
9469
9475
  ]),
9470
9476
  default: y(() => [
9471
9477
  l("div", yy, [
9472
- e.ocrShow ? (c(), R(u, { key: 0 })) : G("", !0),
9478
+ e.ocrShow ? (c(), R(u, { key: 0 })) : W("", !0),
9473
9479
  I(m, {
9474
9480
  class: "flex-1",
9475
9481
  value: e.spinShow,
@@ -9499,7 +9505,7 @@ function _y(e, t, r, n, a, o) {
9499
9505
  fn: y(() => [
9500
9506
  l("div", ky, [
9501
9507
  l("div", null, [
9502
- e.isMobile ? G("", !0) : (c(), R(s, {
9508
+ e.isMobile ? W("", !0) : (c(), R(s, {
9503
9509
  key: 0,
9504
9510
  type: "primary",
9505
9511
  onClick: t[1] || (t[1] = (d) => e.ocrShow = !e.ocrShow),
@@ -9573,7 +9579,7 @@ function Sy(e, t, r, n, a, o) {
9573
9579
  ), {
9574
9580
  key: 0,
9575
9581
  class: "mobile"
9576
- })) : G("", !0)
9582
+ })) : W("", !0)
9577
9583
  ], 64)) : (c(), w(le, { key: 1 }, [
9578
9584
  l("div", {
9579
9585
  class: de(["uz-table-mobile-group-title", s.lineBreak ? "line-break" : ""])
@@ -9681,7 +9687,7 @@ function Oy(e, t, r, n, a, o) {
9681
9687
  "page-size": e.tableQueries.query.pageSize,
9682
9688
  size: "large"
9683
9689
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
9684
- ])) : G("", !0)
9690
+ ])) : W("", !0)
9685
9691
  ]),
9686
9692
  _: 1
9687
9693
  }, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (c(), R(D, {
@@ -9723,7 +9729,7 @@ function Oy(e, t, r, n, a, o) {
9723
9729
  "page-size": e.tableQueries.query.pageSize,
9724
9730
  size: "large"
9725
9731
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
9726
- ])) : G("", !0)
9732
+ ])) : W("", !0)
9727
9733
  ]),
9728
9734
  _: 1
9729
9735
  }, 8, ["value", "style", "onUpdate:value"])) : (c(), w("div", {
@@ -9755,7 +9761,7 @@ function Oy(e, t, r, n, a, o) {
9755
9761
  "page-size": e.tableQueries.query.pageSize,
9756
9762
  size: "large"
9757
9763
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
9758
- ])) : G("", !0)
9764
+ ])) : W("", !0)
9759
9765
  ], 4));
9760
9766
  }
9761
9767
  const Ay = /* @__PURE__ */ _(Ny, [["render", Oy], ["__scopeId", "data-v-8c590cf0"]]), X = Oa({
@@ -9923,21 +9929,21 @@ function Ry(e, t, r, n, a, o) {
9923
9929
  ]), 1032, ["value", "on-close", "on-update:value"]);
9924
9930
  }
9925
9931
  const Fy = /* @__PURE__ */ _(qy, [["render", Ry]]), da = "#007AFF", Pc = "#0A84FF", fa = "#FF9500", Ec = "#FF9F0A", pa = "#28CD41", Lc = "#32D74B", ha = "#FFCC00", Hc = "#FFD60A", ma = "#FF3B30", Kc = "#FF453A";
9926
- ge.common.cardColor = "#32323b";
9927
- ge.common.primaryColor = "#0A84FF";
9928
- ge.common.primaryColorHover = Pc;
9929
- ge.common.infoColor = "#FF9F0A";
9930
- ge.common.infoColorHover = Ec;
9931
- ge.common.successColor = "#32D74B";
9932
- ge.common.successColorHover = Lc;
9933
- ge.common.warningColor = "#FFD60A";
9934
- ge.common.successColorHover = Hc;
9935
- ge.common.errorColor = "#FF453A";
9936
- ge.common.errorColorHover = Kc;
9937
- ge.common.borderRadius = "var(--borderRadius)";
9938
- ge.common.inputColor = "rgba(var(--input))";
9939
- ge.common.borderColor = "rgba(var(--border), 0.7)";
9940
- ge.DataTable.tdColor = "#2d2d31";
9932
+ ve.common.cardColor = "#32323b";
9933
+ ve.common.primaryColor = "#0A84FF";
9934
+ ve.common.primaryColorHover = Pc;
9935
+ ve.common.infoColor = "#FF9F0A";
9936
+ ve.common.infoColorHover = Ec;
9937
+ ve.common.successColor = "#32D74B";
9938
+ ve.common.successColorHover = Lc;
9939
+ ve.common.warningColor = "#FFD60A";
9940
+ ve.common.successColorHover = Hc;
9941
+ ve.common.errorColor = "#FF453A";
9942
+ ve.common.errorColorHover = Kc;
9943
+ ve.common.borderRadius = "var(--borderRadius)";
9944
+ ve.common.inputColor = "rgba(var(--input))";
9945
+ ve.common.borderColor = "rgba(var(--border), 0.7)";
9946
+ ve.DataTable.tdColor = "#2d2d31";
9941
9947
  const By = {
9942
9948
  common: {
9943
9949
  inputColor: "rgba(var(--input))",
@@ -9980,7 +9986,7 @@ const By = {
9980
9986
  Radio: {
9981
9987
  boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
9982
9988
  }
9983
- }, Vy = ge, Uy = ie({
9989
+ }, Vy = ve, Uy = ie({
9984
9990
  name: "UzWrap",
9985
9991
  components: {
9986
9992
  NConfigProvider: kd
@@ -10260,12 +10266,12 @@ function Gc() {
10260
10266
  var A = b, H = D;
10261
10267
  return b = D = void 0, k = j, d = u.apply(H, A), d;
10262
10268
  }
10263
- function B(j) {
10269
+ function V(j) {
10264
10270
  return k = j, v = setTimeout(O, h), f ? T(j) : d;
10265
10271
  }
10266
10272
  function L(j) {
10267
- var A = j - i, H = j - k, W = h - A;
10268
- return p ? o(W, g - H) : W;
10273
+ var A = j - i, H = j - k, J = h - A;
10274
+ return p ? o(J, g - H) : J;
10269
10275
  }
10270
10276
  function F(j) {
10271
10277
  var A = j - i, H = j - k;
@@ -10290,7 +10296,7 @@ function Gc() {
10290
10296
  var j = t(), A = F(j);
10291
10297
  if (b = arguments, D = this, i = j, A) {
10292
10298
  if (v === void 0)
10293
- return B(i);
10299
+ return V(i);
10294
10300
  if (p)
10295
10301
  return clearTimeout(v), v = setTimeout(O, h), T(i);
10296
10302
  }
@@ -10398,15 +10404,15 @@ function qk(e, t, r) {
10398
10404
  try {
10399
10405
  let C;
10400
10406
  if (Array.isArray(t))
10401
- C = await new Promise((B, L) => {
10407
+ C = await new Promise((V, L) => {
10402
10408
  a.value = L, Promise.all(t.map((F) => F.call(null))).then((F) => {
10403
- B(F);
10409
+ V(F);
10404
10410
  }).catch((F) => {
10405
10411
  L(F);
10406
10412
  });
10407
10413
  });
10408
10414
  else {
10409
- const T = new Promise((B, L) => {
10415
+ const T = new Promise((V, L) => {
10410
10416
  a.value = L;
10411
10417
  });
10412
10418
  C = await Promise.race([T, t()]);
@@ -10455,7 +10461,7 @@ function qk(e, t, r) {
10455
10461
  refetch: p
10456
10462
  };
10457
10463
  }
10458
- const tk = "0.0.38";
10464
+ const tk = "0.0.39";
10459
10465
  let Jc;
10460
10466
  async function Qc() {
10461
10467
  const e = await fetch(