@unizhen/ui 0.1.51 → 0.1.53

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 +562 -562
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -1,12 +1,12 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as O, toDisplayString as k, vShow as A, watch as j, watchEffect as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
2
- import { NButton as L, NButtonGroup as te, NCascader as ne, NCheckbox as R, NCheckboxGroup as re, NColorPicker as ie, NConfigProvider as ae, NDataTable as oe, NDatePicker as se, NDivider as z, NDrawer as ce, NDrawerContent as le, NDropdown as ue, NEllipsis as de, NFlex as fe, NForm as pe, NFormItem as me, NGrid as he, NGridItem as ge, NIcon as B, NImage as _e, NImageGroup as ve, NInput as ye, NInputGroup as be, NInputGroupLabel as xe, NInputNumber as Se, NModal as Ce, NPagination as we, NPopconfirm as Te, NPopover as Ee, NRadio as De, NRadioGroup as Oe, NSelect as ke, NSkeleton as Ae, NSpace as je, NSpin as Me, NSwitch as Ne, NTabPane as Pe, NTabs as Fe, NTimePicker as Ie, NTooltip as Le, NUpload as Re, NUploadDragger as ze, createDiscreteApi as Be, darkTheme as V, dateZhCN as Ve, useNotification as He, zhCN as Ue } from "naive-ui";
3
- import We from "axios";
4
- import { createRouter as Ge, createWebHistory as Ke, useRoute as qe, useRouter as Je } from "vue-router";
5
- import { createI18n as Ye, useI18n as Xe } from "vue-i18n";
6
- import { cloneDeep as H, compact as Ze, debounce as Qe, throttle as $e } from "lodash-es";
7
- import et from "dayjs";
8
- import { VueDraggable as tt } from "vue-draggable-plus";
9
- import nt from "json5";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as te, toDisplayString as O, vShow as k, watch as A, watchEffect as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
2
+ import { NButton as I, NButtonGroup as ne, NCascader as re, NCheckbox as L, NCheckboxGroup as ie, NColorPicker as ae, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as R, NDrawer as le, NDrawerContent as ue, NDropdown as de, NEllipsis as fe, NFlex as pe, NForm as me, NFormItem as he, NGrid as ge, NGridItem as _e, NIcon as z, NImage as ve, NImageGroup as ye, NInput as be, NInputGroup as xe, NInputGroupLabel as Se, NInputNumber as Ce, NModal as we, NPagination as Te, NPopconfirm as Ee, NPopover as De, NRadio as Oe, NRadioGroup as ke, NSelect as Ae, NSkeleton as je, NSpace as Me, NSpin as Ne, NSwitch as Pe, NTabPane as Fe, NTabs as Ie, NTimePicker as Le, NTooltip as Re, NUpload as ze, NUploadDragger as Be, createDiscreteApi as Ve, darkTheme as B, dateZhCN as He, useNotification as Ue, zhCN as We } from "naive-ui";
3
+ import Ge from "axios";
4
+ import { createRouter as Ke, createWebHistory as qe, useRoute as Je, useRouter as Ye } from "vue-router";
5
+ import { createI18n as Xe, useI18n as Ze } from "vue-i18n";
6
+ import { cloneDeep as V, compact as Qe, debounce as $e, throttle as et } from "lodash-es";
7
+ import tt from "dayjs";
8
+ import H from "json5";
9
+ import { VueDraggable as nt } from "vue-draggable-plus";
10
10
  import rt from "jsqr";
11
11
  import it from "sortablejs";
12
12
  import { OEM as at, PSM as ot, createWorker as st } from "tesseract.js";
@@ -2012,14 +2012,14 @@ var Pu = /*#__PURE__*/ U(ju, [["render", Nu]]), Fu = /* @__PURE__ */ lt({
2012
2012
  }
2013
2013
  n.value = e;
2014
2014
  };
2015
- return r(e.icon), j(() => e.icon, (e) => {
2015
+ return r(e.icon), A(() => e.icon, (e) => {
2016
2016
  r(e);
2017
2017
  }), () => t.value ? n.value && n.value.render(null, []) : null;
2018
2018
  }
2019
2019
  }), Lu = Fu, W;
2020
2020
  function Ru(e, t = "/") {
2021
- return W = Ge({
2022
- history: Ke(t),
2021
+ return W = Ke({
2022
+ history: qe(t),
2023
2023
  routes: e,
2024
2024
  scrollBehavior: () => ({
2025
2025
  left: 0,
@@ -2027,7 +2027,7 @@ function Ru(e, t = "/") {
2027
2027
  })
2028
2028
  }), W;
2029
2029
  }
2030
- var G = Ye({
2030
+ var G = Xe({
2031
2031
  legacy: !1,
2032
2032
  locale: "zh-CN",
2033
2033
  messages: {
@@ -2198,7 +2198,7 @@ var Xu = "local-", Zu = new class {
2198
2198
  deleteAll() {
2199
2199
  for (let e in this.map) this.delete(e);
2200
2200
  }
2201
- }("qx"), { notification: Qu, dialog: $u } = Be(["notification", "dialog"], {
2201
+ }("qx"), { notification: Qu, dialog: $u } = Ve(["notification", "dialog"], {
2202
2202
  configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
2203
2203
  notificationProviderProps: { placement: "bottom-right" }
2204
2204
  }), ed = Qu, td = $u;
@@ -2354,13 +2354,13 @@ var md = (e) => {
2354
2354
  return e && e.groups && e.groups.fileName;
2355
2355
  }
2356
2356
  return "";
2357
- }, hd = We.create({
2357
+ }, hd = Ge.create({
2358
2358
  timeout: 3e5,
2359
2359
  responseType: "json",
2360
2360
  headers: { "Content-Type": "application/json" }
2361
2361
  });
2362
2362
  hd.defaults.timeout = 3e5;
2363
- var gd = We.CancelToken.source();
2363
+ var gd = Ge.CancelToken.source();
2364
2364
  hd.interceptors.request.use((e) => {
2365
2365
  e.cancelToken = gd.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
2366
2366
  let t = Y("token", !1);
@@ -2397,7 +2397,7 @@ hd.interceptors.request.use((e) => {
2397
2397
  duration: 3e3
2398
2398
  }), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
2399
2399
  var _d = "/apiserver/", vd = () => {
2400
- gd.cancel(), gd = We.CancelToken.source();
2400
+ gd.cancel(), gd = Ge.CancelToken.source();
2401
2401
  }, yd = (e, t, n = "json", r = 3e5) => {
2402
2402
  let i = JSON.stringify({
2403
2403
  fetchUri: e,
@@ -2443,7 +2443,7 @@ var _d = "/apiserver/", vd = () => {
2443
2443
  calculationIds: e,
2444
2444
  linkId: t,
2445
2445
  ...n
2446
- }), kd = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
2446
+ }), kd = (e, t) => f(Re, { style: { "max-width": "300px" } }, {
2447
2447
  trigger: () => e,
2448
2448
  default: () => typeof t == "function" ? t() : t
2449
2449
  }), Ad = (e, t, n, r) => {
@@ -2477,14 +2477,14 @@ var _d = "/apiserver/", vd = () => {
2477
2477
  }
2478
2478
  e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
2479
2479
  }
2480
- return e.icon && (o.icon = () => f(B, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
2480
+ return e.icon && (o.icon = () => f(z, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(I, a, o);
2481
2481
  }, Md = (e, t, n, r, i) => {
2482
2482
  let a = { placement: "left" };
2483
2483
  if (typeof t.onClick == "string") {
2484
2484
  let e = t.onClick;
2485
2485
  a["on-positive-click"] = () => Ad(e, n, r, i);
2486
2486
  } else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
2487
- return f(Te, a, {
2487
+ return f(Ee, a, {
2488
2488
  default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
2489
2489
  trigger: () => e
2490
2490
  });
@@ -2498,7 +2498,7 @@ var _d = "/apiserver/", vd = () => {
2498
2498
  let o = [];
2499
2499
  e.children && e.children.length > 0 && e.children.forEach((a, s) => {
2500
2500
  delete a.tooltipText, o.push(Nd(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
2501
- }), a.push(f(Ee, { trigger: "click" }, {
2501
+ }), a.push(f(De, { trigger: "click" }, {
2502
2502
  trigger: () => jd({
2503
2503
  icon: e.icon,
2504
2504
  color: e.color || "default",
@@ -2506,7 +2506,7 @@ var _d = "/apiserver/", vd = () => {
2506
2506
  disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled,
2507
2507
  loading: t[e.key] ?? !1
2508
2508
  }, t, n, r, i),
2509
- default: () => f(fe, {
2509
+ default: () => f(pe, {
2510
2510
  vertical: !0,
2511
2511
  size: 12
2512
2512
  }, { default: () => o })
@@ -2618,8 +2618,8 @@ var _d = "/apiserver/", vd = () => {
2618
2618
  name: "UzBack",
2619
2619
  components: {
2620
2620
  ArrowNarrowLeft: an,
2621
- NButton: L,
2622
- NIcon: B
2621
+ NButton: I,
2622
+ NIcon: z
2623
2623
  },
2624
2624
  props: {
2625
2625
  to: {
@@ -2632,7 +2632,7 @@ var _d = "/apiserver/", vd = () => {
2632
2632
  }
2633
2633
  },
2634
2634
  setup(e) {
2635
- let t = Je();
2635
+ let t = Ye();
2636
2636
  return { back: () => {
2637
2637
  e.to ? t.push(e.to) : t.back();
2638
2638
  } };
@@ -2646,11 +2646,11 @@ function Wd(e, t, r, i, o, s) {
2646
2646
  quaternary: "",
2647
2647
  onClick: e.back
2648
2648
  }, {
2649
- icon: N(() => [l(u, null, {
2650
- default: N(() => [l(c)]),
2649
+ icon: M(() => [l(u, null, {
2650
+ default: M(() => [l(c)]),
2651
2651
  _: 1
2652
2652
  })]),
2653
- default: N(() => [a("span", null, k(e.text || e.$t("Common.back")), 1)]),
2653
+ default: M(() => [a("span", null, O(e.text || e.$t("Common.back")), 1)]),
2654
2654
  _: 1
2655
2655
  }, 8, ["onClick"]);
2656
2656
  }
@@ -2818,8 +2818,8 @@ function yf(e, t, n, r, o, s) {
2818
2818
  transform: e.calculatePoint(),
2819
2819
  fill: "#fff"
2820
2820
  }, null, 8, sf),
2821
- a("text", cf, k(e.circle), 1),
2822
- a("text", lf, k(e.circleUnit), 1)
2821
+ a("text", cf, O(e.circle), 1),
2822
+ a("text", lf, O(e.circleUnit), 1)
2823
2823
  ])) : (x(), i("svg", uf, [
2824
2824
  a("defs", null, [t[1] ||= a("filter", { id: "uz-blurs" }, [
2825
2825
  a("feOffset", {
@@ -2879,7 +2879,7 @@ function yf(e, t, n, r, o, s) {
2879
2879
  "font-size": "2rem",
2880
2880
  "font-weight": "400"
2881
2881
  }
2882
- }, k(e.circle), 9, _f),
2882
+ }, O(e.circle), 9, _f),
2883
2883
  a("text", {
2884
2884
  cy: "90",
2885
2885
  fill: "var(--circle-unit-color)",
@@ -2889,25 +2889,25 @@ function yf(e, t, n, r, o, s) {
2889
2889
  "font-size": "0.6rem",
2890
2890
  "font-weight": "400"
2891
2891
  }
2892
- }, k(e.circleUnit), 9, vf)
2892
+ }, O(e.circleUnit), 9, vf)
2893
2893
  ]))]);
2894
2894
  }
2895
2895
  var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
2896
2896
  name: "UzFormItem",
2897
2897
  components: {
2898
- NIcon: B,
2899
- NInput: ye,
2900
- NSelect: ke,
2901
- NInputNumber: Se,
2902
- NDatePicker: se,
2903
- NTimePicker: Ie,
2904
- NSwitch: Ne,
2905
- NColorPicker: ie,
2906
- NCheckbox: R,
2907
- NCheckboxGroup: re,
2908
- NCascader: ne,
2909
- NTooltip: Le,
2910
- NDropdown: ue
2898
+ NIcon: z,
2899
+ NInput: be,
2900
+ NSelect: Ae,
2901
+ NInputNumber: Ce,
2902
+ NDatePicker: ce,
2903
+ NTimePicker: Le,
2904
+ NSwitch: Pe,
2905
+ NColorPicker: ae,
2906
+ NCheckbox: L,
2907
+ NCheckboxGroup: ie,
2908
+ NCascader: re,
2909
+ NTooltip: Re,
2910
+ NDropdown: de
2911
2911
  },
2912
2912
  props: {
2913
2913
  item: {
@@ -2943,14 +2943,14 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
2943
2943
  isMobile: t(() => K.isMobile),
2944
2944
  showDropdown: r,
2945
2945
  dropdownOptions: i,
2946
- dayjs: et,
2946
+ dayjs: tt,
2947
2947
  updateValue: async (t, r, i) => {
2948
2948
  if (t.form.updateValue) {
2949
2949
  let a = { ...e.formValue };
2950
2950
  if (typeof t.form.updateValue == "string") try {
2951
- let o = t.form.updateValue, s = Function("value", "formValue", "mainFormValue", "index", "option", "POST", o);
2951
+ let o = t.form.updateValue, s = Function("value", "formValue", "mainFormValue", "index", "option", "POST", "JSON5", o);
2952
2952
  try {
2953
- let t = await s(r, a, n, e.itemIndex, i, Z);
2953
+ let t = await s(r, a, n, e.itemIndex, i, Z, H);
2954
2954
  t && typeof t == "object" && Object.keys(t).forEach((n) => {
2955
2955
  e.formValue[n] = t[n];
2956
2956
  });
@@ -2999,7 +2999,7 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
2999
2999
  }
3000
3000
  },
3001
3001
  handleFocus: (t) => {
3002
- let n = H(e.item.params.options);
3002
+ let n = V(e.item.params.options);
3003
3003
  if (n) {
3004
3004
  if (e.formValue && e.formValue[t]) {
3005
3005
  let r = e.formValue[t].toLocaleLowerCase();
@@ -3028,7 +3028,7 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
3028
3028
  }
3029
3029
  }), Sf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3030
3030
  function Cf(t, r, s, u, d, f) {
3031
- let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), O = D("UzFormItemUpload");
3031
+ let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), te = D("UzFormItemUpload");
3032
3032
  return t.item.input === "input" ? (x(), n(p, {
3033
3033
  key: 0,
3034
3034
  value: t.formValue[t.item.key],
@@ -3048,11 +3048,11 @@ function Cf(t, r, s, u, d, f) {
3048
3048
  }
3049
3049
  }, o({ _: 2 }, [t.item.params.prefix ? {
3050
3050
  name: "prefix",
3051
- fn: N(() => [c(k(t.item.params.prefix), 1)]),
3051
+ fn: M(() => [c(O(t.item.params.prefix), 1)]),
3052
3052
  key: "0"
3053
3053
  } : void 0, t.item.params.suffix ? {
3054
3054
  name: "suffix",
3055
- fn: N(() => [c(k(t.item.params.suffix), 1)]),
3055
+ fn: M(() => [c(O(t.item.params.suffix), 1)]),
3056
3056
  key: "1"
3057
3057
  } : void 0]), 1032, [
3058
3058
  "value",
@@ -3084,7 +3084,7 @@ function Cf(t, r, s, u, d, f) {
3084
3084
  t.showDropdown = !1;
3085
3085
  }
3086
3086
  }, {
3087
- default: N(() => [l(p, {
3087
+ default: M(() => [l(p, {
3088
3088
  value: t.formValue[t.item.key],
3089
3089
  "show-password-on": "click",
3090
3090
  type: t.item.params.type,
@@ -3102,11 +3102,11 @@ function Cf(t, r, s, u, d, f) {
3102
3102
  }
3103
3103
  }, o({ _: 2 }, [t.item.params.prefix ? {
3104
3104
  name: "prefix",
3105
- fn: N(() => [c(k(t.item.params.prefix), 1)]),
3105
+ fn: M(() => [c(O(t.item.params.prefix), 1)]),
3106
3106
  key: "0"
3107
3107
  } : void 0, t.item.params.suffix ? {
3108
3108
  name: "suffix",
3109
- fn: N(() => [c(k(t.item.params.suffix), 1)]),
3109
+ fn: M(() => [c(O(t.item.params.suffix), 1)]),
3110
3110
  key: "1"
3111
3111
  } : void 0]), 1032, [
3112
3112
  "value",
@@ -3144,11 +3144,11 @@ function Cf(t, r, s, u, d, f) {
3144
3144
  }
3145
3145
  }, o({ _: 2 }, [t.item.params.prefix ? {
3146
3146
  name: "prefix",
3147
- fn: N(() => [c(k(t.item.params.prefix), 1)]),
3147
+ fn: M(() => [c(O(t.item.params.prefix), 1)]),
3148
3148
  key: "0"
3149
3149
  } : void 0, t.item.params.suffix ? {
3150
3150
  name: "suffix",
3151
- fn: N(() => [c(k(t.item.params.suffix), 1)]),
3151
+ fn: M(() => [c(O(t.item.params.suffix), 1)]),
3152
3152
  key: "1"
3153
3153
  } : void 0]), 1032, [
3154
3154
  "value",
@@ -3331,7 +3331,7 @@ function Cf(t, r, s, u, d, f) {
3331
3331
  value: t.formValue[t.item.key],
3332
3332
  disabled: t.checkDisabled()
3333
3333
  }, {
3334
- default: N(() => [a("div", Sf, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3334
+ default: M(() => [a("div", Sf, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3335
3335
  key: e.value,
3336
3336
  label: e.label,
3337
3337
  value: e.value
@@ -3382,13 +3382,13 @@ function Cf(t, r, s, u, d, f) {
3382
3382
  }
3383
3383
  }, o({ _: 2 }, [t.item.params.checked ? {
3384
3384
  name: "checked",
3385
- fn: N(() => [c(k(t.item.params.checked), 1)]),
3385
+ fn: M(() => [c(O(t.item.params.checked), 1)]),
3386
3386
  key: "0"
3387
3387
  } : void 0, t.item.params.unchecked ? {
3388
3388
  name: "unchecked",
3389
- fn: N(() => [c(k(t.item.params.unchecked), 1)]),
3389
+ fn: M(() => [c(O(t.item.params.unchecked), 1)]),
3390
3390
  key: "1"
3391
- } : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(O, {
3391
+ } : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(te, {
3392
3392
  key: 13,
3393
3393
  value: t.formValue[t.item.key],
3394
3394
  "onUpdate:value": r[11] ||= (e) => t.formValue[t.item.key] = e,
@@ -3403,11 +3403,11 @@ function Cf(t, r, s, u, d, f) {
3403
3403
  var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3404
3404
  name: "UzForm",
3405
3405
  components: {
3406
- NForm: pe,
3407
- NFormItem: me,
3408
- NDivider: z,
3409
- NButton: L,
3410
- NIcon: B,
3406
+ NForm: me,
3407
+ NFormItem: he,
3408
+ NDivider: R,
3409
+ NButton: I,
3410
+ NIcon: z,
3411
3411
  UzFormItem: wf,
3412
3412
  Plus: uc
3413
3413
  },
@@ -3494,7 +3494,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3494
3494
  default: return sd(t);
3495
3495
  }
3496
3496
  }, h = (e, t = !1) => {
3497
- let n = et(e).startOf("day").diff(et().startOf("day"), "day");
3497
+ let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
3498
3498
  return n >= 0 ? t ? "success" : `剩余${n}天` : t ? "error" : `逾期${Math.abs(n)}天`;
3499
3499
  }, g = (e) => (u.value = [], e.forEach((e) => {
3500
3500
  if (e.form.defaultValue && !s.value[e.key]) if (e.input === "number") s.value[e.key] = Number(e.form.defaultValue);
@@ -3508,7 +3508,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3508
3508
  } else if (e.input === "date") if (e.params.type.indexOf("range") > -1) switch (e.form.defaultValue) {
3509
3509
  case "now":
3510
3510
  {
3511
- let t = et().startOf("day").valueOf(), n = et().endOf("day").valueOf();
3511
+ let t = tt().startOf("day").valueOf(), n = tt().endOf("day").valueOf();
3512
3512
  s.value[e.key] = [t, n], s.value[`${e.key}StartStr`] = m(e.params.type, t), s.value[`${e.key}EndStr`] = m(e.params.type, n);
3513
3513
  }
3514
3514
  break;
@@ -3541,7 +3541,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3541
3541
  s.value[e.key] = [];
3542
3542
  }
3543
3543
  }), e), _ = (t) => {
3544
- t ||= H(e.items), t && Array.isArray(t) && t.length > 0 ? c.value = g(t) : c.value = [];
3544
+ t ||= V(e.items), t && Array.isArray(t) && t.length > 0 ? c.value = g(t) : c.value = [];
3545
3545
  }, v = () => new Promise(async (e) => {
3546
3546
  let t = 0;
3547
3547
  for await (let e of l.value) await e.validate().catch(() => {
@@ -3556,7 +3556,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3556
3556
  }), o.value?.validate(async (n) => {
3557
3557
  if (n) t();
3558
3558
  else if (await v() === 0) {
3559
- let t = H(s.value);
3559
+ let t = V(s.value);
3560
3560
  u.value.forEach((e) => {
3561
3561
  t[e] = JSON.stringify(t[e]);
3562
3562
  }), Object.keys(t).forEach((e) => {
@@ -3578,7 +3578,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
3578
3578
  manual: () => {
3579
3579
  s.value = e.value, _(e.items);
3580
3580
  }
3581
- }), j(() => e.value, (t, n) => {
3581
+ }), A(() => e.value, (t, n) => {
3582
3582
  JSON.stringify(t) !== JSON.stringify(n) && (s.value = t, c.value.length === 0 && _(e.items));
3583
3583
  }, {
3584
3584
  deep: !0,
@@ -3626,7 +3626,7 @@ function Df(t, o, s, u, d, f) {
3626
3626
  labelAlign: t.labelAlign,
3627
3627
  labelPlacement: t.labelPlacement
3628
3628
  }, {
3629
- default: N(() => [P((x(), i("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), i(e, { key: u }, [t.itemShow(s) ? (x(), n(S, {
3629
+ default: M(() => [N((x(), i("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), i(e, { key: u }, [t.itemShow(s) ? (x(), n(S, {
3630
3630
  key: 0,
3631
3631
  path: s.key,
3632
3632
  rule: s.input === "subTable" ? void 0 : s.form.rule?.required ? s.form.rule : void 0,
@@ -3634,22 +3634,22 @@ function Df(t, o, s, u, d, f) {
3634
3634
  "show-label": s.input !== "divider" && s.input !== "subTable",
3635
3635
  "show-feedback": t.showFeedback && s.input !== "divider"
3636
3636
  }, {
3637
- label: N(() => [
3638
- a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
3637
+ label: M(() => [
3638
+ a("div", null, O(typeof s.label == "function" ? s.label() : s.label), 1),
3639
3639
  t.status !== 2 && s.source && s.form.createButton ? (x(), i("a", {
3640
3640
  key: 0,
3641
3641
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
3642
3642
  onClick: (e) => t.sourceAdd(s, u)
3643
3643
  }, [l(m, null, {
3644
- default: N(() => [l(p)]),
3644
+ default: M(() => [l(p)]),
3645
3645
  _: 1
3646
3646
  }), o[0] ||= c(" 新增 ", -1)], 8, Ef)) : r("", !0),
3647
3647
  s.form.showDays ? (x(), i("span", {
3648
3648
  key: 1,
3649
3649
  class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
3650
- }, k(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
3650
+ }, O(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
3651
3651
  ]),
3652
- default: N(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
3652
+ default: M(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
3653
3653
  key: 0,
3654
3654
  ref_for: !0,
3655
3655
  ref: "childRef",
@@ -3672,7 +3672,7 @@ function Df(t, o, s, u, d, f) {
3672
3672
  key: 2,
3673
3673
  "title-placement": s.params.placement
3674
3674
  }, {
3675
- default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
3675
+ default: M(() => [c(O(typeof s.label == "function" ? s.label() : s.label), 1)]),
3676
3676
  _: 2
3677
3677
  }, 1032, ["title-placement"])) : (x(), n(b, {
3678
3678
  key: 3,
@@ -3707,15 +3707,15 @@ function Df(t, o, s, u, d, f) {
3707
3707
  var Of = /*#__PURE__*/ U(Tf, [["render", Df]]), kf = d({
3708
3708
  name: "UzDraggableForm",
3709
3709
  components: {
3710
- NForm: pe,
3711
- NFormItem: me,
3712
- NButton: L,
3713
- NIcon: B,
3714
- NDivider: z,
3710
+ NForm: me,
3711
+ NFormItem: he,
3712
+ NButton: I,
3713
+ NIcon: z,
3714
+ NDivider: R,
3715
3715
  UzFormItem: wf,
3716
3716
  Trash: bl,
3717
3717
  Plus: uc,
3718
- VueDraggable: tt
3718
+ VueDraggable: nt
3719
3719
  },
3720
3720
  props: {
3721
3721
  items: {
@@ -3783,17 +3783,17 @@ var Of = /*#__PURE__*/ U(Tf, [["render", Df]]), kf = d({
3783
3783
  }
3784
3784
  else a.value[e.key] = e.form.defaultValue;
3785
3785
  }), e), d = () => {
3786
- e.items && Array.isArray(e.items) && (o.value = u(H(e.items)));
3786
+ e.items && Array.isArray(e.items) && (o.value = u(V(e.items)));
3787
3787
  }, f = () => {
3788
- n("on-change", H(o.value)), m();
3788
+ n("on-change", V(o.value)), m();
3789
3789
  }, m = () => {
3790
3790
  s.value = [-1, -1], n("on-select", void 0);
3791
3791
  };
3792
3792
  return y(() => {
3793
3793
  a.value = e.value, d();
3794
- }), t({ changeItem: l }), j(() => e.items, () => {
3794
+ }), t({ changeItem: l }), A(() => e.items, () => {
3795
3795
  d();
3796
- }, { deep: !0 }), j(() => e.value, (e) => {
3796
+ }, { deep: !0 }), A(() => e.value, (e) => {
3797
3797
  a.value = e;
3798
3798
  }, { deep: !0 }), {
3799
3799
  formRef: i,
@@ -3827,7 +3827,7 @@ function Mf(t, o, s, u, d, f) {
3827
3827
  labelPlacement: t.labelPlacement,
3828
3828
  onClick: t.onCancel
3829
3829
  }, {
3830
- default: N(() => [l(C, {
3830
+ default: M(() => [l(C, {
3831
3831
  modelValue: t.formItems,
3832
3832
  "onUpdate:modelValue": o[0] ||= (e) => t.formItems = e,
3833
3833
  animation: 200,
@@ -3840,33 +3840,33 @@ function Mf(t, o, s, u, d, f) {
3840
3840
  style: { "grid-template-columns": "repeat(12, minmax(0px, 1fr))" },
3841
3841
  onEnd: t.onDragChange
3842
3842
  }, {
3843
- default: N(() => [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), n(S, {
3843
+ default: M(() => [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), n(S, {
3844
3844
  path: s.key,
3845
3845
  rule: s.form.rule?.required ? s.form.rule : void 0,
3846
3846
  class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? "select" : s.input === "group" ? "group" : ""]),
3847
- onClick: I((e) => t.onModeClick(s, u), ["stop"]),
3847
+ onClick: F((e) => t.onModeClick(s, u), ["stop"]),
3848
3848
  key: u,
3849
3849
  style: _(`grid-column: span ${s.form.span || 6} / span ${s.form.span || 6};`),
3850
3850
  "show-label": s.input !== "divider" && s.input !== "subTable",
3851
3851
  "show-feedback": t.showFeedback && s.input !== "divider"
3852
3852
  }, {
3853
- label: N(() => [
3854
- a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
3853
+ label: M(() => [
3854
+ a("div", null, O(typeof s.label == "function" ? s.label() : s.label), 1),
3855
3855
  s.source && s.form.createButton ? (x(), i("a", Af, [l(m, null, {
3856
- default: N(() => [l(p)]),
3856
+ default: M(() => [l(p)]),
3857
3857
  _: 1
3858
3858
  }), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
3859
3859
  s.form.showDays ? (x(), i("span", jf, " showDays ")) : r("", !0)
3860
3860
  ]),
3861
- default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
3861
+ default: M(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
3862
3862
  key: 0,
3863
3863
  size: "small",
3864
3864
  type: "error",
3865
3865
  class: "uz-form-delete",
3866
- onClick: I(t.onDelete, ["stop"])
3866
+ onClick: F(t.onDelete, ["stop"])
3867
3867
  }, {
3868
- icon: N(() => [l(m, { color: "#FFF" }, {
3869
- default: N(() => [l(h)]),
3868
+ icon: M(() => [l(m, { color: "#FFF" }, {
3869
+ default: M(() => [l(h)]),
3870
3870
  _: 1
3871
3871
  })]),
3872
3872
  _: 1
@@ -3891,26 +3891,26 @@ function Mf(t, o, s, u, d, f) {
3891
3891
  class: "uz-form-grid",
3892
3892
  onEnd: t.onDragChange
3893
3893
  }, {
3894
- default: N(() => [(x(!0), i(e, null, T(s.params.children, (e, i) => (x(), n(S, {
3894
+ default: M(() => [(x(!0), i(e, null, T(s.params.children, (e, i) => (x(), n(S, {
3895
3895
  label: e.input === "divider" ? "" : typeof e.label == "function" ? e.label() : e.label,
3896
3896
  path: e.key,
3897
3897
  rule: e.form.rule?.required ? e.form.rule : void 0,
3898
3898
  class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === i ? "select" : ""]),
3899
- onClick: I((n) => t.onModeClick(e, u, i), ["stop"]),
3899
+ onClick: F((n) => t.onModeClick(e, u, i), ["stop"]),
3900
3900
  key: i,
3901
3901
  style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
3902
3902
  "show-label": e.input !== "divider" && e.input !== "subTable",
3903
3903
  "show-feedback": t.showFeedback && e.input !== "divider"
3904
3904
  }, {
3905
- default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === i ? (x(), n(v, {
3905
+ default: M(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === i ? (x(), n(v, {
3906
3906
  key: 0,
3907
3907
  size: "small",
3908
3908
  type: "error",
3909
3909
  class: "uz-form-delete",
3910
- onClick: I(t.onDelete, ["stop"])
3910
+ onClick: F(t.onDelete, ["stop"])
3911
3911
  }, {
3912
- icon: N(() => [l(m, { color: "#FFF" }, {
3913
- default: N(() => [l(h)]),
3912
+ icon: M(() => [l(m, { color: "#FFF" }, {
3913
+ default: M(() => [l(h)]),
3914
3914
  _: 1
3915
3915
  })]),
3916
3916
  _: 1
@@ -3943,7 +3943,7 @@ function Mf(t, o, s, u, d, f) {
3943
3943
  key: 3,
3944
3944
  "title-placement": s.params.placement
3945
3945
  }, {
3946
- default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
3946
+ default: M(() => [c(O(typeof s.label == "function" ? s.label() : s.label), 1)]),
3947
3947
  _: 2
3948
3948
  }, 1032, ["title-placement"])) : (x(), n(b, {
3949
3949
  key: 4,
@@ -3980,15 +3980,15 @@ function Mf(t, o, s, u, d, f) {
3980
3980
  var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
3981
3981
  name: "UzFormItemUpload",
3982
3982
  components: {
3983
- NUpload: Re,
3984
- NButton: L,
3985
- NIcon: B,
3986
- NImage: _e,
3987
- NPopover: Ee,
3988
- NPopconfirm: Te,
3989
- NUploadDragger: ze,
3990
- NInputGroup: be,
3991
- NSpin: Me,
3983
+ NUpload: ze,
3984
+ NButton: I,
3985
+ NIcon: z,
3986
+ NImage: ve,
3987
+ NPopover: De,
3988
+ NPopconfirm: Ee,
3989
+ NUploadDragger: Be,
3990
+ NInputGroup: xe,
3991
+ NSpin: Ne,
3992
3992
  Trash: bl,
3993
3993
  FileText: Ro,
3994
3994
  CloudDownload: Yi,
@@ -4018,8 +4018,8 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
4018
4018
  },
4019
4019
  emits: ["update:value"],
4020
4020
  setup(e, { emit: t }) {
4021
- let n = He(), r = w(!1), i = w([]), a = () => {
4022
- t("update:value", nt.stringify(i.value.map((e) => e.url)));
4021
+ let n = Ue(), r = w(!1), i = w([]), a = () => {
4022
+ t("update:value", H.stringify(i.value.map((e) => e.url)));
4023
4023
  }, o = (e) => new Promise((t, o) => {
4024
4024
  if (e.file.file) if (r.value = !0, e.file.file.size > 10485760) n.error({
4025
4025
  content: "请上传小于10MB的文件",
@@ -4058,13 +4058,13 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
4058
4058
  }, c = (e) => {
4059
4059
  i.value.splice(e, 1), a();
4060
4060
  }, l = () => {
4061
- let t = H(e.value);
4061
+ let t = V(e.value);
4062
4062
  if (!t) {
4063
4063
  i.value = [];
4064
4064
  return;
4065
4065
  }
4066
4066
  if (typeof t == "string") try {
4067
- t = nt.parse(t), i.value = t.map((e, t) => {
4067
+ t = H.parse(t), i.value = t.map((e, t) => {
4068
4068
  let n = decodeURIComponent(e), r = n.lastIndexOf("/"), i = n.substring(r + 1);
4069
4069
  return {
4070
4070
  id: String(t + 1),
@@ -4080,7 +4080,7 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
4080
4080
  };
4081
4081
  return y(() => {
4082
4082
  l();
4083
- }), j(() => e.value, () => {
4083
+ }), A(() => e.value, () => {
4084
4084
  l();
4085
4085
  }), {
4086
4086
  formValue: i,
@@ -4100,7 +4100,7 @@ function Rf(t, o, s, u, d, f) {
4100
4100
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
4101
4101
  show: t.show
4102
4102
  }, {
4103
- default: N(() => [t.status === 2 ? r("", !0) : (x(), n(g, {
4103
+ default: M(() => [t.status === 2 ? r("", !0) : (x(), n(g, {
4104
4104
  key: 0,
4105
4105
  accept: t.item.params.accept,
4106
4106
  max: t.item.params.max,
@@ -4111,9 +4111,9 @@ function Rf(t, o, s, u, d, f) {
4111
4111
  class: "!uz-w-20",
4112
4112
  "directory-dnd": ""
4113
4113
  }, {
4114
- default: N(() => [l(h, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
4115
- default: N(() => [l(m, { size: "28" }, {
4116
- default: N(() => [l(p)]),
4114
+ default: M(() => [l(h, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
4115
+ default: M(() => [l(m, { size: "28" }, {
4116
+ default: M(() => [l(p)]),
4117
4117
  _: 1
4118
4118
  })]),
4119
4119
  _: 1
@@ -4131,11 +4131,11 @@ function Rf(t, o, s, u, d, f) {
4131
4131
  width: "80",
4132
4132
  src: e.url
4133
4133
  }, {
4134
- error: N(() => [l(m, {
4134
+ error: M(() => [l(m, {
4135
4135
  size: "60",
4136
4136
  color: "lightGrey"
4137
4137
  }, {
4138
- default: N(() => [l(_)]),
4138
+ default: M(() => [l(_)]),
4139
4139
  _: 1
4140
4140
  })]),
4141
4141
  _: 1
@@ -4146,23 +4146,23 @@ function Rf(t, o, s, u, d, f) {
4146
4146
  class: "uz-cursor-pointer",
4147
4147
  onClick: (n) => t.openFile(e.url)
4148
4148
  }, {
4149
- default: N(() => [l(y)]),
4149
+ default: M(() => [l(y)]),
4150
4150
  _: 1
4151
4151
  }, 8, ["onClick"])), a("div", Ff, [a("div", {
4152
4152
  class: "uz-form-upload-title uz-truncate",
4153
4153
  title: e.name
4154
- }, k(e.name), 9, If), t.status === 2 ? r("", !0) : (x(), i("div", Lf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4155
- trigger: N(() => [l(S, {
4154
+ }, O(e.name), 9, If), t.status === 2 ? r("", !0) : (x(), i("div", Lf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4155
+ trigger: M(() => [l(S, {
4156
4156
  size: "small",
4157
4157
  tertiary: ""
4158
4158
  }, {
4159
- icon: N(() => [l(m, { size: "14" }, {
4160
- default: N(() => [l(b)]),
4159
+ icon: M(() => [l(m, { size: "14" }, {
4160
+ default: M(() => [l(b)]),
4161
4161
  _: 1
4162
4162
  })]),
4163
4163
  _: 1
4164
4164
  })]),
4165
- default: N(() => [o[0] ||= c(" 确认删除? ", -1)]),
4165
+ default: M(() => [o[0] ||= c(" 确认删除? ", -1)]),
4166
4166
  _: 1
4167
4167
  }, 8, ["onPositiveClick"]), l(S, {
4168
4168
  tag: "a",
@@ -4171,8 +4171,8 @@ function Rf(t, o, s, u, d, f) {
4171
4171
  size: "small",
4172
4172
  tertiary: ""
4173
4173
  }, {
4174
- icon: N(() => [l(m, { size: "14" }, {
4175
- default: N(() => [l(w)]),
4174
+ icon: M(() => [l(m, { size: "14" }, {
4175
+ default: M(() => [l(w)]),
4176
4176
  _: 1
4177
4177
  })]),
4178
4178
  _: 1
@@ -4183,10 +4183,10 @@ function Rf(t, o, s, u, d, f) {
4183
4183
  var zf = /*#__PURE__*/ U(Pf, [["render", Rf], ["__scopeId", "data-v-d4bd872d"]]), Bf = d({
4184
4184
  name: "UzFormItemImage",
4185
4185
  components: {
4186
- NImageGroup: ve,
4187
- NImage: _e,
4188
- NIcon: B,
4189
- NPopover: Ee,
4186
+ NImageGroup: ye,
4187
+ NImage: ve,
4188
+ NIcon: z,
4189
+ NPopover: De,
4190
4190
  PhotoOff: oc,
4191
4191
  FileText: Ro
4192
4192
  },
@@ -4197,9 +4197,9 @@ var zf = /*#__PURE__*/ U(Pf, [["render", Rf], ["__scopeId", "data-v-d4bd872d"]])
4197
4197
  } },
4198
4198
  setup(e) {
4199
4199
  let t = w([]);
4200
- return M(() => {
4200
+ return j(() => {
4201
4201
  try {
4202
- e.value && (t.value = nt.parse(e.value));
4202
+ e.value && (t.value = H.parse(e.value));
4203
4203
  } catch {
4204
4204
  t.value = [];
4205
4205
  }
@@ -4230,16 +4230,16 @@ var zf = /*#__PURE__*/ U(Pf, [["render", Rf], ["__scopeId", "data-v-d4bd872d"]])
4230
4230
  function Hf(t, r, o, s, u, d) {
4231
4231
  let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
4232
4232
  return x(), n(_, null, {
4233
- default: N(() => [a("div", Vf, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
4233
+ default: M(() => [a("div", Vf, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
4234
4234
  key: 0,
4235
4235
  width: "40",
4236
4236
  src: r
4237
4237
  }, {
4238
- error: N(() => [l(p, {
4238
+ error: M(() => [l(p, {
4239
4239
  size: "40",
4240
4240
  color: "lightGrey"
4241
4241
  }, {
4242
- default: N(() => [l(f)]),
4242
+ default: M(() => [l(f)]),
4243
4243
  _: 1
4244
4244
  })]),
4245
4245
  _: 1
@@ -4247,16 +4247,16 @@ function Hf(t, r, o, s, u, d) {
4247
4247
  key: 1,
4248
4248
  trigger: "hover"
4249
4249
  }, {
4250
- trigger: N(() => [l(p, {
4250
+ trigger: M(() => [l(p, {
4251
4251
  size: "40",
4252
4252
  color: "lightGrey",
4253
4253
  onClick: (e) => t.openFile(r),
4254
4254
  class: "uz-cursor-pointer"
4255
4255
  }, {
4256
- default: N(() => [l(h)]),
4256
+ default: M(() => [l(h)]),
4257
4257
  _: 1
4258
4258
  }, 8, ["onClick"])]),
4259
- default: N(() => [c(k(t.getFileName(r)), 1)]),
4259
+ default: M(() => [c(O(t.getFileName(r)), 1)]),
4260
4260
  _: 2
4261
4261
  }, 1024))], 64))), 256))])]),
4262
4262
  _: 1
@@ -4264,7 +4264,7 @@ function Hf(t, r, o, s, u, d) {
4264
4264
  }
4265
4265
  var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = d({
4266
4266
  name: "UzFormItemTimesPicker",
4267
- components: { NSelect: ke },
4267
+ components: { NSelect: Ae },
4268
4268
  props: {
4269
4269
  value: {
4270
4270
  required: !0,
@@ -4290,7 +4290,7 @@ var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = d({
4290
4290
  }, l = () => {
4291
4291
  t("update:value", `${i.value}:${a.value}:${o.value}`);
4292
4292
  };
4293
- return n({ clearAll: s }), j(() => e.value, (e) => {
4293
+ return n({ clearAll: s }), A(() => e.value, (e) => {
4294
4294
  if (e && e.indexOf(":") > -1) {
4295
4295
  let t = e.split(":");
4296
4296
  i.value = t[0], a.value = t[1], o.value = t[2];
@@ -4323,7 +4323,7 @@ function Kf(e, t, n, r, a, o) {
4323
4323
  disabled: e.disabled,
4324
4324
  "on-update:value": e.changeH
4325
4325
  }, {
4326
- arrow: N(() => [...t[0] ||= [c("时", -1)]]),
4326
+ arrow: M(() => [...t[0] ||= [c("时", -1)]]),
4327
4327
  _: 1
4328
4328
  }, 8, [
4329
4329
  "value",
@@ -4338,7 +4338,7 @@ function Kf(e, t, n, r, a, o) {
4338
4338
  disabled: e.disabled,
4339
4339
  "on-update:value": e.changeM
4340
4340
  }, {
4341
- arrow: N(() => [...t[1] ||= [c("分", -1)]]),
4341
+ arrow: M(() => [...t[1] ||= [c("分", -1)]]),
4342
4342
  _: 1
4343
4343
  }, 8, [
4344
4344
  "value",
@@ -4353,7 +4353,7 @@ function Kf(e, t, n, r, a, o) {
4353
4353
  disabled: e.disabled,
4354
4354
  "on-update:value": e.changeS
4355
4355
  }, {
4356
- arrow: N(() => [...t[2] ||= [c("秒", -1)]]),
4356
+ arrow: M(() => [...t[2] ||= [c("秒", -1)]]),
4357
4357
  _: 1
4358
4358
  }, 8, [
4359
4359
  "value",
@@ -4366,8 +4366,8 @@ function Kf(e, t, n, r, a, o) {
4366
4366
  var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]]), Jf = d({
4367
4367
  name: "UzCamera",
4368
4368
  components: {
4369
- NButton: L,
4370
- NModal: Ce
4369
+ NButton: I,
4370
+ NModal: we
4371
4371
  },
4372
4372
  props: {
4373
4373
  mode: {
@@ -4389,7 +4389,7 @@ var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]])
4389
4389
  },
4390
4390
  emits: ["on-update:value"],
4391
4391
  setup(e, { emit: t }) {
4392
- let n = w(), r = w(!1), i = w(!1), a = He(), o = null, s = null, c = (e, t) => {
4392
+ let n = w(), r = w(!1), i = w(!1), a = Ue(), o = null, s = null, c = (e, t) => {
4393
4393
  o.beginPath(), o.moveTo(e.x, e.y), o.lineTo(t.x, t.y), o.lineWidth = 2, o.strokeStyle = "green", o.stroke();
4394
4394
  }, l = () => {
4395
4395
  i.value && requestAnimationFrame(u);
@@ -4445,7 +4445,7 @@ var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]])
4445
4445
  e.mode === "video" && m();
4446
4446
  }), v(() => {
4447
4447
  d();
4448
- }), j([() => e.width, () => e.width], () => {
4448
+ }), A([() => e.width, () => e.width], () => {
4449
4449
  e.mode === "video" && (d(), m());
4450
4450
  }), {
4451
4451
  videoRef: n,
@@ -4468,7 +4468,7 @@ function $f(t, o, s, l, u, d) {
4468
4468
  loading: t.loading,
4469
4469
  onClick: t.doScan
4470
4470
  }, {
4471
- default: N(() => [c(k(t.$t("Common.scan")), 1)]),
4471
+ default: M(() => [c(O(t.$t("Common.scan")), 1)]),
4472
4472
  _: 1
4473
4473
  }, 8, ["loading", "onClick"])) : r("", !0),
4474
4474
  t.mode === "button" ? (x(), n(p, {
@@ -4481,7 +4481,7 @@ function $f(t, o, s, l, u, d) {
4481
4481
  "mask-closable": !1,
4482
4482
  "on-after-leave": t.closeAll
4483
4483
  }, {
4484
- default: N(() => [a("div", {
4484
+ default: M(() => [a("div", {
4485
4485
  class: "uz-scan-canvas-main",
4486
4486
  style: _({
4487
4487
  width: `${t.width}px`,
@@ -4516,14 +4516,14 @@ function $f(t, o, s, l, u, d) {
4516
4516
  var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4517
4517
  name: "UzSearchBar",
4518
4518
  components: {
4519
- NIcon: B,
4520
- NButton: L,
4521
- NButtonGroup: te,
4522
- NGrid: he,
4523
- NGridItem: ge,
4524
- NInputGroup: be,
4525
- NInputGroupLabel: xe,
4526
- NPopover: Ee,
4519
+ NIcon: z,
4520
+ NButton: I,
4521
+ NButtonGroup: ne,
4522
+ NGrid: ge,
4523
+ NGridItem: _e,
4524
+ NInputGroup: xe,
4525
+ NInputGroupLabel: Se,
4526
+ NPopover: De,
4527
4527
  UzFormItem: wf,
4528
4528
  CaretDown: Fr,
4529
4529
  Refresh: Ac,
@@ -4568,9 +4568,9 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4568
4568
  } } },
4569
4569
  emits: ["update:loading", "on-update:value"],
4570
4570
  setup(e, { emit: t }) {
4571
- let n = qe(), r = w(), i = w([]), a = w(), o = w(!0), s = w(!1), c = w(!1), l = w(0), u = w(0), d = w(0), f = w(1), p = w(""), m = w([]), h = w(!1), g = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, _ = (n = !1) => {
4571
+ let n = Je(), r = w(), i = w([]), a = w(), o = w(!0), s = w(!1), c = w(!1), l = w(0), u = w(0), d = w(0), f = w(1), p = w(""), m = w([]), h = w(!1), g = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, _ = (n = !1) => {
4572
4572
  if (e.loading) return;
4573
- let a = H(r.value);
4573
+ let a = V(r.value);
4574
4574
  !n && a.query && (a.query.page = 1);
4575
4575
  let o = [];
4576
4576
  i.value.forEach((e) => {
@@ -4588,7 +4588,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4588
4588
  }
4589
4589
  }), t("update:loading", !0), t("on-update:value", o);
4590
4590
  }, v = () => {
4591
- e.loading || (r.value = H(a.value), _());
4591
+ e.loading || (r.value = V(a.value), _());
4592
4592
  }, y = () => {
4593
4593
  o.value = !o.value;
4594
4594
  }, b = (e) => h.value ? r.value && Array.isArray(r.value[p.value]) && r.value[p.value].includes(e.value) ? "primary" : "default" : r.value[p.value] === e.value ? "primary" : "default", x = (t) => {
@@ -4599,7 +4599,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4599
4599
  for (let e of t) if (e.search.tab && (m.value = e.params.options, h.value = e.params.multiple, p.value = e.key, e.search.show = !1), e.input === "input" && e.params.type === "textarea" && (e.params.type = "text"), e.search.show = e.search.show ?? !0, e.defaultValue) if (e.input === "date") if (e.params.type.indexOf("range") > -1) switch (e.search.defaultValue) {
4600
4600
  case "now":
4601
4601
  {
4602
- let t = et().startOf("day").valueOf(), r = et().endOf("day").valueOf();
4602
+ let t = tt().startOf("day").valueOf(), r = tt().endOf("day").valueOf();
4603
4603
  n[e.key] = [t, r];
4604
4604
  }
4605
4605
  break;
@@ -4625,7 +4625,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4625
4625
  };
4626
4626
  }, S = (t) => {
4627
4627
  if (m.value = [], t && t.length > 0) {
4628
- let { data: o, values: s } = x(H(t)), c = {}, l = e.id || n.params.id;
4628
+ let { data: o, values: s } = x(V(t)), c = {}, l = e.id || n.params.id;
4629
4629
  if (e.cache && l) {
4630
4630
  let e = Y(`tables_${l}`, !1);
4631
4631
  e && e.params.forEach((e) => {
@@ -4639,14 +4639,14 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4639
4639
  c[e.key] = e.value;
4640
4640
  });
4641
4641
  }
4642
- i.value = o, r.value = H({
4642
+ i.value = o, r.value = V({
4643
4643
  ...s,
4644
4644
  ...c
4645
- }), a.value = H(s);
4645
+ }), a.value = V(s);
4646
4646
  }
4647
4647
  _(!0);
4648
4648
  };
4649
- return j(() => e.data, (e) => {
4649
+ return A(() => e.data, (e) => {
4650
4650
  S(e);
4651
4651
  }), {
4652
4652
  itemValue: r,
@@ -4685,30 +4685,30 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
4685
4685
  class: "uz-flex uz-gap-2 uz-flex-1"
4686
4686
  };
4687
4687
  function ap(t, a, o, s, u, d) {
4688
- let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), O = D("Refresh"), A = ee("media");
4688
+ let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), te = D("Refresh"), k = ee("media");
4689
4689
  return x(), i("div", {
4690
4690
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
4691
- onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
4692
- }, [t.enableHeader ? (x(), i("div", np, [E(t.$slots, "header"), P((x(), i("div", rp, [l(b, {
4691
+ onKeyup: a[1] ||= P((e) => t.doSearch(!1), ["enter"])
4692
+ }, [t.enableHeader ? (x(), i("div", np, [E(t.$slots, "header"), N((x(), i("div", rp, [l(b, {
4693
4693
  "x-gap": "8",
4694
4694
  "y-gap": "8",
4695
4695
  cols: t.cols,
4696
4696
  "collapsed-rows": 1,
4697
4697
  collapsed: t.collapsed
4698
4698
  }, {
4699
- default: N(() => [
4699
+ default: M(() => [
4700
4700
  t.tabList && t.tabList.length > 0 ? (x(), n(m, {
4701
4701
  key: 0,
4702
4702
  span: t.gridSpan
4703
4703
  }, {
4704
- default: N(() => [l(p, null, {
4705
- default: N(() => [(x(!0), i(e, null, T(t.tabList, (e) => (x(), n(f, {
4704
+ default: M(() => [l(p, null, {
4705
+ default: M(() => [(x(!0), i(e, null, T(t.tabList, (e) => (x(), n(f, {
4706
4706
  key: e.value,
4707
4707
  type: t.tabButtonType(e),
4708
4708
  secondary: "",
4709
4709
  onClick: (n) => t.tabItemChange(e.value)
4710
4710
  }, {
4711
- default: N(() => [c(k(e.label), 1)]),
4711
+ default: M(() => [c(O(e.label), 1)]),
4712
4712
  _: 2
4713
4713
  }, 1032, ["type", "onClick"]))), 128))]),
4714
4714
  _: 1
@@ -4723,17 +4723,17 @@ function ap(t, a, o, s, u, d) {
4723
4723
  key: `${r}_${Date.now()}`,
4724
4724
  span: e.search.show ? e.search.span === 1 ? t.gridSpan : e.search.span || t.gridSpan : 0
4725
4725
  }, {
4726
- default: N(() => [l(y, null, {
4727
- default: N(() => [l(_, {
4726
+ default: M(() => [l(y, null, {
4727
+ default: M(() => [l(_, {
4728
4728
  trigger: "hover",
4729
4729
  placement: "top-start",
4730
4730
  overlap: ""
4731
4731
  }, {
4732
- trigger: N(() => [l(h, { class: "uz-group-label" }, {
4733
- default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4732
+ trigger: M(() => [l(h, { class: "uz-group-label" }, {
4733
+ default: M(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4734
4734
  _: 2
4735
4735
  }, 1024)]),
4736
- default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4736
+ default: M(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4737
4737
  _: 2
4738
4738
  }, 1024), l(v, {
4739
4739
  item: e,
@@ -4746,14 +4746,14 @@ function ap(t, a, o, s, u, d) {
4746
4746
  }, 1032, ["span"]))), 128))
4747
4747
  ]),
4748
4748
  _: 1
4749
- }, 8, ["cols", "collapsed"])])), [[A]])])) : r("", !0), t.enableHeader ? (x(), i("div", ip, [
4749
+ }, 8, ["cols", "collapsed"])])), [[k]])])) : r("", !0), t.enableHeader ? (x(), i("div", ip, [
4750
4750
  t.more ? (x(), n(f, {
4751
4751
  key: 0,
4752
4752
  quaternary: "",
4753
4753
  onClick: t.showMore
4754
4754
  }, {
4755
- icon: N(() => [l(C, { class: g(["uz-search-more", t.collapsed ? void 0 : "uz-search-rotate"]) }, {
4756
- default: N(() => [l(S)]),
4755
+ icon: M(() => [l(C, { class: g(["uz-search-more", t.collapsed ? void 0 : "uz-search-rotate"]) }, {
4756
+ default: M(() => [l(S)]),
4757
4757
  _: 1
4758
4758
  }, 8, ["class"])]),
4759
4759
  _: 1
@@ -4764,14 +4764,14 @@ function ap(t, a, o, s, u, d) {
4764
4764
  secondary: "",
4765
4765
  onClick: a[0] ||= (e) => t.doSearch(!1)
4766
4766
  }, {
4767
- icon: N(() => [l(C, {
4767
+ icon: M(() => [l(C, {
4768
4768
  size: "18",
4769
4769
  color: "#0086ff"
4770
4770
  }, {
4771
- default: N(() => [l(w)]),
4771
+ default: M(() => [l(w)]),
4772
4772
  _: 1
4773
4773
  })]),
4774
- default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4774
+ default: M(() => [c(" " + O(t.$t("Common.search")), 1)]),
4775
4775
  _: 1
4776
4776
  }, 8, ["loading"])) : r("", !0),
4777
4777
  t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
@@ -4780,11 +4780,11 @@ function ap(t, a, o, s, u, d) {
4780
4780
  secondary: "",
4781
4781
  onClick: t.clearAll
4782
4782
  }, {
4783
- icon: N(() => [l(C, null, {
4784
- default: N(() => [l(O)]),
4783
+ icon: M(() => [l(C, null, {
4784
+ default: M(() => [l(te)]),
4785
4785
  _: 1
4786
4786
  })]),
4787
- default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
4787
+ default: M(() => [c(" " + O(t.$t("Common.reset")), 1)]),
4788
4788
  _: 1
4789
4789
  }, 8, ["loading", "onClick"])) : r("", !0),
4790
4790
  E(t.$slots, "action")
@@ -4793,14 +4793,14 @@ function ap(t, a, o, s, u, d) {
4793
4793
  var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
4794
4794
  name: "UzSearchMobileBar",
4795
4795
  components: {
4796
- NIcon: B,
4797
- NButton: L,
4798
- NDrawer: ce,
4799
- NDrawerContent: le,
4800
- NGrid: he,
4801
- NGridItem: ge,
4802
- NInputGroup: be,
4803
- NInputGroupLabel: xe,
4796
+ NIcon: z,
4797
+ NButton: I,
4798
+ NDrawer: le,
4799
+ NDrawerContent: ue,
4800
+ NGrid: ge,
4801
+ NGridItem: _e,
4802
+ NInputGroup: xe,
4803
+ NInputGroupLabel: Se,
4804
4804
  Refresh: Ac,
4805
4805
  Search: Xc,
4806
4806
  UzFormItem: wf
@@ -4826,9 +4826,9 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
4826
4826
  },
4827
4827
  emits: ["update:loading", "on-update:value"],
4828
4828
  setup(e, { emit: t }) {
4829
- let n = qe(), r = w([]), i = w(!1), a = w(), o = w(), s = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, c = (n = !1) => {
4829
+ let n = Je(), r = w([]), i = w(!1), a = w(), o = w(), s = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, c = (n = !1) => {
4830
4830
  if (e.loading) return;
4831
- let o = H(a.value);
4831
+ let o = V(a.value);
4832
4832
  !n && o.query && (o.query.page = 1);
4833
4833
  let c = [];
4834
4834
  r.value.forEach((e) => {
@@ -4846,7 +4846,7 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
4846
4846
  }
4847
4847
  }), i.value = !1, t("update:loading", !0), t("on-update:value", c);
4848
4848
  }, l = () => {
4849
- e.loading || (a.value = H(o.value), c());
4849
+ e.loading || (a.value = V(o.value), c());
4850
4850
  }, u = (e) => {
4851
4851
  let t = {};
4852
4852
  for (let n of e) n.input === "input" && n.params.type === "textarea" && (n.params.type = "text"), n.search.show = n.search.show ?? !0, n.defaultValue ? t[n.key] = n.defaultValue : (t[n.key] = "", (n.input === "number" || n.input === "date" || n.input === "time") && (t[n.key] = null), n.input === "cascader" && (n.params.multiple ? t[n.key] = [] : t[n.key] = null), n.input === "select" && (n.params.multiple ? t[n.key] = [] : t[n.key] = null));
@@ -4856,21 +4856,21 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
4856
4856
  };
4857
4857
  }, d = (t) => {
4858
4858
  if (t && t.length > 0) {
4859
- let { data: i, values: s } = u(H(t)), c = {}, l = e.id || n.params.id;
4859
+ let { data: i, values: s } = u(V(t)), c = {}, l = e.id || n.params.id;
4860
4860
  if (e.cache && l) {
4861
4861
  let e = Y(`tables_${l}`, !1);
4862
4862
  e && e.params.forEach((e) => {
4863
4863
  c[e.key] = e.value;
4864
4864
  });
4865
4865
  }
4866
- r.value = i, a.value = H({
4866
+ r.value = i, a.value = V({
4867
4867
  ...s,
4868
4868
  ...c
4869
- }), o.value = H(s);
4869
+ }), o.value = V(s);
4870
4870
  }
4871
4871
  c(!0);
4872
4872
  };
4873
- return j(() => e.data, (e) => {
4873
+ return A(() => e.data, (e) => {
4874
4874
  d(e);
4875
4875
  }), {
4876
4876
  drawer: i,
@@ -4888,11 +4888,11 @@ function dp(t, o, s, u, d, f) {
4888
4888
  secondary: "",
4889
4889
  onClick: o[0] ||= (e) => t.drawer = !0
4890
4890
  }, {
4891
- icon: N(() => [l(m, { size: "18" }, {
4892
- default: N(() => [l(p)]),
4891
+ icon: M(() => [l(m, { size: "18" }, {
4892
+ default: M(() => [l(p)]),
4893
4893
  _: 1
4894
4894
  })]),
4895
- default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4895
+ default: M(() => [c(" " + O(t.$t("Common.search")), 1)]),
4896
4896
  _: 1
4897
4897
  })) : r("", !0), E(t.$slots, "action")])]), l(w, {
4898
4898
  show: t.drawer,
@@ -4904,21 +4904,21 @@ function dp(t, o, s, u, d, f) {
4904
4904
  "auto-focus": !1,
4905
4905
  "close-on-esc": !1
4906
4906
  }, {
4907
- default: N(() => [l(C, {
4907
+ default: M(() => [l(C, {
4908
4908
  title: "查询",
4909
4909
  closable: ""
4910
4910
  }, {
4911
- footer: N(() => [a("div", up, [l(h, {
4911
+ footer: M(() => [a("div", up, [l(h, {
4912
4912
  secondary: "",
4913
4913
  loading: t.loading,
4914
4914
  onClick: t.clearAll,
4915
4915
  class: "uz-flex-1"
4916
4916
  }, {
4917
- icon: N(() => [l(m, null, {
4918
- default: N(() => [l(S)]),
4917
+ icon: M(() => [l(m, null, {
4918
+ default: M(() => [l(S)]),
4919
4919
  _: 1
4920
4920
  })]),
4921
- default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
4921
+ default: M(() => [c(" " + O(t.$t("Common.reset")), 1)]),
4922
4922
  _: 1
4923
4923
  }, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
4924
4924
  key: 0,
@@ -4927,25 +4927,25 @@ function dp(t, o, s, u, d, f) {
4927
4927
  class: "uz-flex-1",
4928
4928
  onClick: o[1] ||= (e) => t.doSearch(!1)
4929
4929
  }, {
4930
- icon: N(() => [l(m, { size: "18" }, {
4931
- default: N(() => [l(p)]),
4930
+ icon: M(() => [l(m, { size: "18" }, {
4931
+ default: M(() => [l(p)]),
4932
4932
  _: 1
4933
4933
  })]),
4934
- default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4934
+ default: M(() => [c(" " + O(t.$t("Common.search")), 1)]),
4935
4935
  _: 1
4936
4936
  }, 8, ["loading"])) : r("", !0)])]),
4937
- default: N(() => [l(b, {
4937
+ default: M(() => [l(b, {
4938
4938
  "x-gap": "8",
4939
4939
  "y-gap": "8",
4940
4940
  cols: "1"
4941
4941
  }, {
4942
- default: N(() => [(x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(y, {
4942
+ default: M(() => [(x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(y, {
4943
4943
  key: `${r}_${Date.now()}`,
4944
4944
  span: +!!e.search.show
4945
4945
  }, {
4946
- default: N(() => [l(v, null, {
4947
- default: N(() => [l(g, { class: "uz-group-label" }, {
4948
- default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4946
+ default: M(() => [l(v, null, {
4947
+ default: M(() => [l(g, { class: "uz-group-label" }, {
4948
+ default: M(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4949
4949
  _: 2
4950
4950
  }, 1024), l(_, {
4951
4951
  item: e,
@@ -5022,8 +5022,8 @@ var gp = () => new Promise((e) => {
5022
5022
  let r = [], i = t.id;
5023
5023
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
5024
5024
  r.push(t[e]);
5025
- }), r = Ze(r).join("-")) : r = t[n[1]], e.input === "select" && e.params.valueKey && (i = t[e.params.valueKey]), {
5026
- label: r,
5025
+ }), r = Qe(r).join("-")) : r = t[n[1]], e.input === "select" && e.params.valueKey && (i = t[e.params.valueKey]), {
5026
+ label: t?.is_disabled === "1" ? `${r}-已禁用` : r,
5027
5027
  value: i,
5028
5028
  disabled: e.params._search ? !1 : t?.is_disabled === "1",
5029
5029
  params: t
@@ -5036,7 +5036,7 @@ function bp() {
5036
5036
  }
5037
5037
  async function xp(e, t = !1) {
5038
5038
  let n = e.split("."), r = !1;
5039
- return n.length > 1 && (yp.has(n[0]) && !t ? r = H(yp.get(n[0])) : (r = await Td({ tableId: n[0] }), yp.set(n[0], r))), {
5039
+ return n.length > 1 && (yp.has(n[0]) && !t ? r = V(yp.get(n[0])) : (r = await Td({ tableId: n[0] }), yp.set(n[0], r))), {
5040
5040
  sourceData: r,
5041
5041
  n
5042
5042
  };
@@ -5244,11 +5244,11 @@ var Cp = (e) => e.map((e) => {
5244
5244
  drawerHeight: e.h,
5245
5245
  placement: e.l,
5246
5246
  summary: e.r
5247
- }), Object.assign({}, mp, H(t));
5247
+ }), Object.assign({}, mp, V(t));
5248
5248
  };
5249
5249
  function kp(e, t, n, r) {
5250
5250
  return new Promise(async (i, a) => {
5251
- let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
5251
+ let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = V(e), p = [];
5252
5252
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
5253
5253
  for (let e of p) {
5254
5254
  if (e.source && (e.input === "select" || e.input === "cascader")) {
@@ -5330,7 +5330,7 @@ function kp(e, t, n, r) {
5330
5330
  a();
5331
5331
  });
5332
5332
  if (t) try {
5333
- let n = nt.parse(t.viewJson);
5333
+ let n = H.parse(t.viewJson);
5334
5334
  n.suffix && (e._suffix = Hd(n.suffix));
5335
5335
  let r = wp(n.table);
5336
5336
  r.forEach((e) => {
@@ -5342,7 +5342,7 @@ function kp(e, t, n, r) {
5342
5342
  a();
5343
5343
  });
5344
5344
  if (t) try {
5345
- let n = nt.parse(t.viewJson), r = wp(n.table);
5345
+ let n = H.parse(t.viewJson), r = wp(n.table);
5346
5346
  r.forEach((e) => {
5347
5347
  e.table.sorter = !1;
5348
5348
  }), e.params.columns = r, e.params.actions = n.action;
@@ -5377,7 +5377,7 @@ function kp(e, t, n, r) {
5377
5377
  });
5378
5378
  }
5379
5379
  async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
5380
- let o = 0, s = [], c = [], l = [], u = H(e), d = [], p = [];
5380
+ let o = 0, s = [], c = [], l = [], u = V(e), d = [], p = [];
5381
5381
  for (let e of u) e.input === "group" ? (d.push(...e.params.children), p.push({
5382
5382
  title: e.label,
5383
5383
  key: e.key,
@@ -5434,7 +5434,7 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
5434
5434
  u.form.rule.validator === "" ? u.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(u.form.rule.message) : u.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
5435
5435
  }
5436
5436
  d.render = function(e, t) {
5437
- return f(me, {
5437
+ return f(he, {
5438
5438
  showLabel: !1,
5439
5439
  showFeedback: !1,
5440
5440
  path: `child[${t}].${u.key}`,
@@ -5466,7 +5466,7 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
5466
5466
  } else return vp(u, e, t);
5467
5467
  };
5468
5468
  if (u.search.multiple && (u.params.multiple = !0, u.search.defaultValue && (u.search.defaultValue = hp(u.search.defaultValue))), u.search.show) {
5469
- let e = H(u);
5469
+ let e = V(u);
5470
5470
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
5471
5471
  let { sourceData: t, n } = await xp(e.source || e.search.source);
5472
5472
  if (t && Array.isArray(t)) if (e.sourceFn) {
@@ -5521,9 +5521,9 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
5521
5521
  var jp = d({
5522
5522
  name: "UzSpin",
5523
5523
  components: {
5524
- NButton: L,
5525
- NSpin: Me,
5526
- NEllipsis: de
5524
+ NButton: I,
5525
+ NSpin: Ne,
5526
+ NEllipsis: fe
5527
5527
  },
5528
5528
  emits: ["update:value"],
5529
5529
  props: {
@@ -5553,7 +5553,7 @@ var jp = d({
5553
5553
  };
5554
5554
  return b(() => {
5555
5555
  clearInterval(n.value);
5556
- }), j(() => e.status, (e) => {
5556
+ }), A(() => e.status, (e) => {
5557
5557
  e === 1 && o();
5558
5558
  }), {
5559
5559
  counts: r,
@@ -5567,45 +5567,45 @@ var jp = d({
5567
5567
  function Mp(e, t, r, i, o, s) {
5568
5568
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
5569
5569
  return x(), n(f, { show: e.value }, {
5570
- description: N(() => [
5570
+ description: M(() => [
5571
5571
  l(u, {
5572
5572
  "expand-trigger": "click",
5573
5573
  "line-clamp": "3",
5574
5574
  tooltip: !1
5575
5575
  }, {
5576
- default: N(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
5576
+ default: M(() => [c(O(e.status === 0 ? "操作进行中..." : e.message), 1)]),
5577
5577
  _: 1
5578
5578
  }),
5579
5579
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
5580
- P(l(d, {
5580
+ N(l(d, {
5581
5581
  type: "warning",
5582
5582
  block: "",
5583
5583
  secondary: "",
5584
5584
  onMouseover: e.stopCountdown,
5585
5585
  onClick: e.handleClose
5586
5586
  }, {
5587
- default: N(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
5587
+ default: M(() => [c(" 关闭(" + O(e.counts) + "s) ", 1)]),
5588
5588
  _: 1
5589
- }, 8, ["onMouseover", "onClick"]), [[A, e.status === 1]])
5589
+ }, 8, ["onMouseover", "onClick"]), [[k, e.status === 1]])
5590
5590
  ]),
5591
- default: N(() => [E(e.$slots, "default")]),
5591
+ default: M(() => [E(e.$slots, "default")]),
5592
5592
  _: 3
5593
5593
  }, 8, ["show"]);
5594
5594
  }
5595
5595
  var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5596
5596
  name: "UzTable",
5597
5597
  components: {
5598
- NDataTable: oe,
5599
- NPopover: Ee,
5600
- NButton: L,
5601
- NIcon: B,
5602
- NSkeleton: Ae,
5603
- NCheckbox: R,
5604
- NSpin: Me,
5598
+ NDataTable: se,
5599
+ NPopover: De,
5600
+ NButton: I,
5601
+ NIcon: z,
5602
+ NSkeleton: je,
5603
+ NCheckbox: L,
5604
+ NSpin: Ne,
5605
5605
  Filter: Ho,
5606
5606
  GridDots: es,
5607
5607
  Plus: uc,
5608
- VueDraggable: tt,
5608
+ VueDraggable: nt,
5609
5609
  UzSpin: Np,
5610
5610
  UzIcon: Iu
5611
5611
  },
@@ -5735,43 +5735,43 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5735
5735
  value: () => null,
5736
5736
  setValue: () => null
5737
5737
  });
5738
- let a = qe(), { t: o } = Xe(), s = He(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w({
5738
+ let a = Je(), { t: o } = Ze(), s = Ue(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w({
5739
5739
  params: [],
5740
5740
  query: {
5741
5741
  page: 1,
5742
5742
  pageMax: 1,
5743
5743
  pageSize: e.pageSize || 30
5744
5744
  }
5745
- }), ee = w([]), O = w(void 0), k = w(void 0), A = w([]), M = w([]), N = w([]), P = w([]), F = w({
5745
+ }), ee = w([]), te = w(void 0), O = w(void 0), k = w([]), j = w([]), M = w([]), N = w([]), P = w({
5746
5746
  fetch: null,
5747
5747
  when_drawer_open: "",
5748
5748
  when_before_save: ""
5749
- }), I = w(Op()), L = w(""), te = w(!1), ne = w([]), R = w([]), re = p("modules"), ie = (e) => e.id, ae = (e, t) => {
5749
+ }), F = w(Op()), I = w(""), ne = w(!1), re = w([]), L = w([]), ie = p("modules"), ae = (e) => e.id, oe = (e, t) => {
5750
5750
  n("update:rowKeys", {
5751
5751
  keys: e,
5752
- rows: H(t)
5752
+ rows: V(t)
5753
5753
  });
5754
- }, oe = (e, t, r) => {
5755
- if (ne.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
5756
- let e = R.value.findIndex((e) => e.id === r.row?.id);
5757
- R.value.splice(e, 1);
5754
+ }, se = (e, t, r) => {
5755
+ if (re.value = e, r.action === "check" && L.value.push(r.row), r.action === "uncheck") {
5756
+ let e = L.value.findIndex((e) => e.id === r.row?.id);
5757
+ L.value.splice(e, 1);
5758
5758
  }
5759
5759
  r.action === "checkAll" && t.forEach((e) => {
5760
- e && R.value.push(e);
5761
- }), r.action === "uncheckAll" && (R.value = [], ne.value = []), n("update:rowKeys", {
5762
- keys: H(ne.value),
5763
- rows: H(R.value)
5760
+ e && L.value.push(e);
5761
+ }), r.action === "uncheckAll" && (L.value = [], re.value = []), n("update:rowKeys", {
5762
+ keys: V(re.value),
5763
+ rows: V(L.value)
5764
5764
  });
5765
- }, se = (t) => {
5766
- let n = e.summary || I.value.summary;
5765
+ }, ce = (t) => {
5766
+ let n = e.summary || F.value.summary;
5767
5767
  return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
5768
- }, z = (t = !1) => {
5768
+ }, R = (t = !1) => {
5769
5769
  let r = e.id || a.params.id;
5770
5770
  e.enableLoading && (g.value = !0, n("update:loading", !0));
5771
- let i = H(D.value);
5772
- if (t && delete i.orderby, F.value.fetch) Od([F.value.fetch], "", i).then((e) => {
5771
+ let i = V(D.value);
5772
+ if (t && delete i.orderby, P.value.fetch) Od([P.value.fetch], "", i).then((e) => {
5773
5773
  let t = od(e);
5774
- D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, D.value);
5774
+ D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
5775
5775
  }).catch(() => {
5776
5776
  g.value = !1, _.value = !0, n("update:loading", !1);
5777
5777
  });
@@ -5785,39 +5785,39 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5785
5785
  tableId: r
5786
5786
  }), t.then((e) => {
5787
5787
  let t = od(e);
5788
- D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, D.value);
5788
+ D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
5789
5789
  }).catch(() => {
5790
5790
  g.value = !1, _.value = !0, n("update:loading", !1);
5791
5791
  });
5792
5792
  }
5793
- }, ce = (e) => {
5794
- D.value.query.page = e, l.value && (l.value.scrollTop = 0), ad(), z();
5795
- }, le = () => {
5793
+ }, le = (e) => {
5794
+ D.value.query.page = e, l.value && (l.value.scrollTop = 0), ad(), R();
5795
+ }, ue = () => {
5796
5796
  let e = D.value.query.page + 1;
5797
- e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
5798
- }, ue = (e) => {
5799
- D.value.query.pageSize = e, D.value.query.page = 1, ad(), z();
5797
+ e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), R();
5800
5798
  }, de = (e) => {
5801
- e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, z();
5802
- }, fe = () => {
5799
+ D.value.query.pageSize = e, D.value.query.page = 1, ad(), R();
5800
+ }, fe = (e) => {
5801
+ e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, R();
5802
+ }, pe = () => {
5803
5803
  if (typeof e.addFetch == "function") return e.addFetch();
5804
5804
  d.value?.addAndEdit(e.id || a.params.id, async () => {
5805
- let { form: e } = await _e();
5805
+ let { form: e } = await ve();
5806
5806
  return {
5807
5807
  form: e,
5808
5808
  data: {}
5809
5809
  };
5810
- }, I.value, F.value, 0, Te);
5811
- }, pe = (e) => {
5812
- e.show = !e.show, we();
5813
- }, me = () => {
5810
+ }, F.value, P.value, 0, Ee);
5811
+ }, me = (e) => {
5812
+ e.show = !e.show, Te();
5813
+ }, he = () => {
5814
5814
  let e = [];
5815
5815
  C.value.forEach((t) => {
5816
5816
  t.show && e.push(t);
5817
5817
  }), x.value = e;
5818
- }, he = (e) => {
5819
- D.value.params = e, z();
5820
- }, ge = () => [{
5818
+ }, ge = (e) => {
5819
+ D.value.params = e, R();
5820
+ }, _e = () => [{
5821
5821
  title: "创建人/时间",
5822
5822
  key: "createTime",
5823
5823
  resizable: !0,
@@ -5835,14 +5835,14 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5835
5835
  ellipsis: !0,
5836
5836
  width: 180,
5837
5837
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => sd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
5838
- }], B = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), _e = async (e) => {
5839
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await kp(M.value, e, () => d.value?.getFormValues());
5838
+ }], z = (t) => !e.ruleFetch || !k.value || k.value && k.value[0] === "*" ? !1 : !k.value?.includes(t), ve = async (e) => {
5839
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await kp(j.value, e, () => d.value?.getFormValues());
5840
5840
  return b.value = t, {
5841
5841
  form: t,
5842
5842
  fillingDefaultValue: n,
5843
5843
  formDefaultValue: r
5844
5844
  };
5845
- }, ve = async (t) => new Promise((n, r) => {
5845
+ }, ye = async (t) => new Promise((n, r) => {
5846
5846
  let i = e.id || a.params.id, o;
5847
5847
  o = e.fetch ? e.fetch({
5848
5848
  id: t.id,
@@ -5855,8 +5855,8 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5855
5855
  }).catch(() => {
5856
5856
  r();
5857
5857
  });
5858
- }), ye = async (e, t) => {
5859
- let n = await ve(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await _e(n || {}), a = {
5858
+ }), be = async (e, t) => {
5859
+ let n = await ye(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await ve(n || {}), a = {
5860
5860
  ...n,
5861
5861
  ...i
5862
5862
  };
@@ -5865,7 +5865,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5865
5865
  } catch (e) {
5866
5866
  q(e);
5867
5867
  }
5868
- let o = F.value.when_drawer_open;
5868
+ let o = P.value.when_drawer_open;
5869
5869
  if (o && typeof o == "string") try {
5870
5870
  a = await Function("data", "POST", o)(a, Z).catch((e) => {
5871
5871
  q(e);
@@ -5877,19 +5877,19 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5877
5877
  form: r,
5878
5878
  data: a
5879
5879
  };
5880
- }, be = (t, r) => {
5881
- let i = H(t.onClick), c = e.id || a.params.id;
5880
+ }, xe = (t, r) => {
5881
+ let i = V(t.onClick), c = e.id || a.params.id;
5882
5882
  if (t.disabled) {
5883
5883
  if (typeof t.disabled == "string") {
5884
5884
  let e = Function("rowData", "rowIndex", t.disabled);
5885
- t.disabled = (n, r) => e(n, r) || B(t.key);
5885
+ t.disabled = (n, r) => e(n, r) || z(t.key);
5886
5886
  } else if (typeof t.disabled == "function") {
5887
- let e = H(t);
5888
- t.disabled = (n, r) => e.disabled(n, r) || B(t.key);
5887
+ let e = V(t);
5888
+ t.disabled = (n, r) => e.disabled(n, r) || z(t.key);
5889
5889
  }
5890
- } else t.disabled = () => B(t.key);
5890
+ } else t.disabled = () => z(t.key);
5891
5891
  if (t.loading = g.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
5892
- ve(e).then((r) => {
5892
+ ye(e).then((r) => {
5893
5893
  if (t.optionsType === "drawer:insider") {
5894
5894
  if (i) try {
5895
5895
  Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
@@ -5914,17 +5914,17 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5914
5914
  }).catch(() => null);
5915
5915
  };
5916
5916
  else if (t.type !== "group" && t.action === "detailInside") {
5917
- let n = H(t.onClick);
5917
+ let n = V(t.onClick);
5918
5918
  t.onClick = (t) => {
5919
- d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 2, Te);
5919
+ d.value?.addAndEdit(e.id || a.params.id, () => be(t, n), F.value, P.value, 2, Ee);
5920
5920
  };
5921
5921
  } else if (t.type !== "group" && t.action === "editInside") {
5922
- let n = H(t.onClick);
5922
+ let n = V(t.onClick);
5923
5923
  t.onClick = (t) => {
5924
- d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 1, Te);
5924
+ d.value?.addAndEdit(e.id || a.params.id, () => be(t, n), F.value, P.value, 1, Ee);
5925
5925
  };
5926
5926
  } else if (t.type !== "group" && t.action === "deleteInside") {
5927
- let n = H(t.onClick);
5927
+ let n = V(t.onClick);
5928
5928
  t.onClick = (t) => {
5929
5929
  let i;
5930
5930
  i = e.deleteFetch ? e.deleteFetch({
@@ -5938,12 +5938,12 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5938
5938
  }), i.then(() => {
5939
5939
  if (n) try {
5940
5940
  Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
5941
- z();
5941
+ R();
5942
5942
  }).catch(() => null);
5943
5943
  } catch (e) {
5944
5944
  q(e);
5945
5945
  }
5946
- else z();
5946
+ else R();
5947
5947
  }).catch((e) => {
5948
5948
  q(e);
5949
5949
  });
@@ -5954,7 +5954,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5954
5954
  ...t,
5955
5955
  is_disabled: "1"
5956
5956
  }).then(() => {
5957
- z();
5957
+ R();
5958
5958
  }).catch(() => null);
5959
5959
  };
5960
5960
  else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
@@ -5963,11 +5963,11 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5963
5963
  ...t,
5964
5964
  is_disabled: "0"
5965
5965
  }).then(() => {
5966
- z();
5966
+ R();
5967
5967
  }).catch(() => null);
5968
5968
  };
5969
5969
  else if (t.type !== "group" && t.action) {
5970
- let n = H(t.onClick);
5970
+ let n = V(t.onClick);
5971
5971
  t.onClick = (r) => {
5972
5972
  let i;
5973
5973
  i = e.fetch ? e.fetch({
@@ -5985,7 +5985,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5985
5985
  s.success({
5986
5986
  content: e,
5987
5987
  duration: 3e3
5988
- }), z();
5988
+ }), R();
5989
5989
  }).catch((e) => {
5990
5990
  q(e);
5991
5991
  });
@@ -5999,27 +5999,27 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
5999
5999
  s.success({
6000
6000
  content: () => o("Notice.success"),
6001
6001
  duration: 3e3
6002
- }), z();
6002
+ }), R();
6003
6003
  });
6004
6004
  return;
6005
6005
  }
6006
6006
  s.success({
6007
6007
  content: () => o("Notice.success"),
6008
6008
  duration: 3e3
6009
- }), z();
6009
+ }), R();
6010
6010
  }).catch(() => {
6011
6011
  s.error({
6012
6012
  content: () => o("Notice.failed"),
6013
6013
  duration: 3e3
6014
- }), z();
6014
+ }), R();
6015
6015
  });
6016
6016
  }).catch(() => null);
6017
6017
  };
6018
6018
  }
6019
- }, xe = async () => {
6020
- te.value = !1, bp();
6021
- let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await Ap(M.value, e.child, 0, () => ({}), re), s = i;
6022
- !c.value && I.value.index && (t.unshift({
6019
+ }, Se = async () => {
6020
+ ne.value = !1, bp();
6021
+ let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await Ap(j.value, e.child, 0, () => ({}), ie), s = i;
6022
+ !c.value && F.value.index && (t.unshift({
6023
6023
  title: "#",
6024
6024
  key: "index",
6025
6025
  align: "center",
@@ -6034,27 +6034,27 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6034
6034
  return (e - 1) * n + (t + 1);
6035
6035
  } });
6036
6036
  }
6037
- }), s += 60), !c.value && (e.selection || I.value.selection !== 0) && (t.unshift({
6037
+ }), s += 60), !c.value && (e.selection || F.value.selection !== 0) && (t.unshift({
6038
6038
  type: "selection",
6039
6039
  fixed: "left",
6040
6040
  width: 60,
6041
6041
  hide: !0,
6042
6042
  show: !0,
6043
- multiple: e.selection === 2 || I.value.selection === 2,
6043
+ multiple: e.selection === 2 || F.value.selection === 2,
6044
6044
  options: ["all", "none"]
6045
6045
  }), s += 60);
6046
6046
  let l = e.id || a.params.id;
6047
- if (!c.value && I.value.commonTime && t.push(...ge()), e.enableAction === !0 && N.value && N.value.length > 0) {
6048
- let e = H(N.value);
6047
+ if (!c.value && F.value.commonTime && t.push(..._e()), e.enableAction === !0 && M.value && M.value.length > 0) {
6048
+ let e = V(M.value);
6049
6049
  for (let t of e) t.type === "group" ? t.children.forEach((e) => {
6050
- be(e, r);
6051
- }) : be(t, r);
6050
+ xe(e, r);
6051
+ }) : xe(t, r);
6052
6052
  let n = {
6053
6053
  title: () => o("Common.action"),
6054
6054
  key: "action",
6055
6055
  align: "center",
6056
6056
  fixed: "right",
6057
- width: I.value.actionWidth,
6057
+ width: F.value.actionWidth,
6058
6058
  resizable: !0,
6059
6059
  checked: !0,
6060
6060
  show: !0,
@@ -6063,21 +6063,21 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6063
6063
  return Pd({
6064
6064
  buttons: e,
6065
6065
  rowData: t,
6066
- callback: z,
6066
+ callback: R,
6067
6067
  tableId: l
6068
6068
  });
6069
6069
  }
6070
6070
  };
6071
- s += Number(typeof I.value.actionWidth == "string" ? I.value.actionWidth.replace("px", "") : I.value.actionWidth), t.push(n);
6071
+ s += Number(typeof F.value.actionWidth == "string" ? F.value.actionWidth.replace("px", "") : F.value.actionWidth), t.push(n);
6072
6072
  }
6073
6073
  C.value = t, ee.value = n, E.value = s;
6074
- }, Se = (e) => typeof e == "number" ? `${e}px` : e, Ce = () => {
6074
+ }, Ce = (e) => typeof e == "number" ? `${e}px` : e, we = () => {
6075
6075
  if (e.height) {
6076
- let t = Se(e.height);
6077
- O.value = t, k.value = t;
6076
+ let t = Ce(e.height);
6077
+ te.value = t, O.value = t;
6078
6078
  return;
6079
6079
  }
6080
- }, we = () => {
6080
+ }, Te = () => {
6081
6081
  let e = [];
6082
6082
  C.value.forEach((t) => {
6083
6083
  t.key !== "action" && e.push({
@@ -6087,7 +6087,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6087
6087
  fixed: t.fixed
6088
6088
  });
6089
6089
  }), n("on-update:columns", e);
6090
- }, Te = (t, n, r) => {
6090
+ }, Ee = (t, n, r) => {
6091
6091
  let i, o = e.id || a.params.id;
6092
6092
  i = e.formFetch ? e.formFetch({
6093
6093
  tableId: o,
@@ -6096,23 +6096,23 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6096
6096
  tableId: o,
6097
6097
  ...t
6098
6098
  }), i.then(() => {
6099
- z(), n();
6099
+ R(), n();
6100
6100
  }).catch((e) => {
6101
6101
  r(e);
6102
6102
  });
6103
- }, Ee = () => {
6104
- v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
6103
+ }, De = () => {
6104
+ v.value = "", j.value = [], M.value = [], N.value = [], P.value = {
6105
6105
  fetch: null,
6106
6106
  when_drawer_open: "",
6107
6107
  when_before_save: ""
6108
- }, I.value = Op();
6109
- }, De = (t) => {
6110
- let n = nt.parse(t.viewJson);
6111
- v.value = t.tableTitle, M.value = wp(n.table), N.value = Hd(e.actions || n.action), P.value = Hd(n.suffix || []).filter((e) => e.main).map((e) => (ke(e), e)), F.value = Ep(n.trigger);
6108
+ }, F.value = Op();
6109
+ }, Oe = (t) => {
6110
+ let n = H.parse(t.viewJson);
6111
+ v.value = t.tableTitle, j.value = wp(n.table), M.value = Hd(e.actions || n.action), N.value = Hd(n.suffix || []).filter((e) => e.main).map((e) => (Ae(e), e)), P.value = Ep(n.trigger);
6112
6112
  let r = Op(e.options ?? n.option);
6113
- t.tableTitle && r.title && cd(t.tableTitle), I.value = r;
6114
- }, Oe = async () => {
6115
- _.value = !1, Ee();
6113
+ t.tableTitle && r.title && cd(t.tableTitle), F.value = r;
6114
+ }, ke = async () => {
6115
+ _.value = !1, De();
6116
6116
  let t = e.id || a.params.id;
6117
6117
  if (D.value = {
6118
6118
  params: [],
@@ -6122,19 +6122,19 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6122
6122
  pageSize: e.pageSize || 30
6123
6123
  }
6124
6124
  }, T.value = [], e.ruleFetch) try {
6125
- A.value = await e.ruleFetch(t);
6125
+ k.value = await e.ruleFetch(t);
6126
6126
  } catch {
6127
- L.value = o("Notice.network"), te.value = !0;
6127
+ I.value = o("Notice.network"), ne.value = !0;
6128
6128
  return;
6129
6129
  }
6130
- Ce(), e.columns ? (M.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value = Op(e.options), await xe()) : await Sp(t).then(async (e) => {
6131
- De(e), await xe();
6130
+ we(), e.columns ? (j.value = e.columns || [], M.value = e.actions || [], N.value = e.suffixes || [], F.value = Op(e.options), await Se()) : await Sp(t).then(async (e) => {
6131
+ Oe(e), await Se();
6132
6132
  }).catch((e) => {
6133
- L.value = e?.message || o("Notice.network"), te.value = !0;
6133
+ I.value = e?.message || o("Notice.network"), ne.value = !0;
6134
6134
  });
6135
- }, ke = (e) => {
6135
+ }, Ae = (e) => {
6136
6136
  if (e.type !== "group" && e.optionsType) {
6137
- let t = H(e.onClick);
6137
+ let t = V(e.onClick);
6138
6138
  e.onClick = () => {
6139
6139
  n("update:suffixes", {
6140
6140
  title: e.buttonText,
@@ -6149,12 +6149,12 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6149
6149
  });
6150
6150
  };
6151
6151
  } else if (e.type !== "group") {
6152
- let t = H(e.onClick);
6152
+ let t = V(e.onClick);
6153
6153
  e.onClick = async () => {
6154
6154
  if (t && typeof t == "string") {
6155
6155
  try {
6156
6156
  let e = Function("POST", "fnNotification", t);
6157
- await e(Z, s, e), z();
6157
+ await e(Z, s, e), R();
6158
6158
  } catch (e) {
6159
6159
  q(e);
6160
6160
  }
@@ -6164,31 +6164,31 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6164
6164
  }
6165
6165
  };
6166
6166
  return r({
6167
- rebuild: Oe,
6168
- init: z,
6169
- nextPage: le
6167
+ rebuild: ke,
6168
+ init: R,
6169
+ nextPage: ue
6170
6170
  }), y(async () => {
6171
- await Oe(), h(() => {
6171
+ await ke(), h(() => {
6172
6172
  u.value?.scrollTo({
6173
6173
  left: 0,
6174
6174
  right: 0
6175
6175
  });
6176
6176
  });
6177
- }), j(() => C.value, () => {
6178
- me();
6179
- }, { deep: !0 }), j(() => e.height, () => {
6180
- Ce();
6181
- }), j([() => a.params.id, () => e.id], async () => {
6182
- ad(), await Oe();
6183
- }), j(() => e.defaultCheckedRowKeys, (e) => {
6184
- let t = e || [], n = R.value.filter((e) => t.includes(e.id));
6185
- ne.value = t, R.value = n;
6177
+ }), A(() => C.value, () => {
6178
+ he();
6179
+ }, { deep: !0 }), A(() => e.height, () => {
6180
+ we();
6181
+ }), A([() => a.params.id, () => e.id], async () => {
6182
+ ad(), await ke();
6183
+ }), A(() => e.defaultCheckedRowKeys, (e) => {
6184
+ let t = e || [], n = L.value.filter((e) => t.includes(e.id));
6185
+ re.value = t, L.value = n;
6186
6186
  }, { deep: !0 }), {
6187
6187
  loading: g,
6188
- minH: O,
6189
- maxH: k,
6188
+ minH: te,
6189
+ maxH: O,
6190
6190
  drawerRef: d,
6191
- tableOption: I,
6191
+ tableOption: F,
6192
6192
  tableColumns: x,
6193
6193
  tableData: T,
6194
6194
  tableQueries: D,
@@ -6197,28 +6197,28 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6197
6197
  isSlotHeader: m,
6198
6198
  title: v,
6199
6199
  dynamicLoading: _,
6200
- spinMsg: L,
6200
+ spinMsg: I,
6201
6201
  tableScrollX: E,
6202
- suffixes: P,
6203
- spinError: te,
6202
+ suffixes: N,
6203
+ spinError: ne,
6204
6204
  isMobile: c,
6205
6205
  mRef: l,
6206
- checkRowKeys: ne,
6206
+ checkRowKeys: re,
6207
6207
  route: a,
6208
- rowKey: ie,
6209
- pageChange: ce,
6210
- pageSizeChange: ue,
6211
- pageSorter: de,
6212
- showChange: pe,
6213
- submit: he,
6214
- handleAdd: fe,
6215
- handleColumnChange: we,
6216
- handleCheckRowKeys: oe,
6217
- checkRole: B,
6218
- rebuild: Oe,
6219
- summaryFn: se,
6220
- handleMobileCheckRowKeys: ae,
6221
- isTypeofNumber: Se
6208
+ rowKey: ae,
6209
+ pageChange: le,
6210
+ pageSizeChange: de,
6211
+ pageSorter: fe,
6212
+ showChange: me,
6213
+ submit: ge,
6214
+ handleAdd: pe,
6215
+ handleColumnChange: Te,
6216
+ handleCheckRowKeys: se,
6217
+ checkRole: z,
6218
+ rebuild: ke,
6219
+ summaryFn: ce,
6220
+ handleMobileCheckRowKeys: oe,
6221
+ isTypeofNumber: Ce
6222
6222
  };
6223
6223
  }
6224
6224
  }), Fp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ip = { class: "uz-flex uz-justify-between" }, Lp = { class: "uz-flex uz-gap-1" }, Rp = { class: "uz-com-title" }, zp = {
@@ -6229,12 +6229,12 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
6229
6229
  class: "uz-transform-fade-in"
6230
6230
  }, Vp = { class: "uz-com-title" };
6231
6231
  function Hp(t, s, u, d, f, p) {
6232
- let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), O = D("GridDots"), j = D("VueDraggable"), M = D("NPopover"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), te = D("UzTableDrawer");
6232
+ let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), te = D("GridDots"), A = D("VueDraggable"), j = D("NPopover"), P = D("UzSearchBar"), F = D("NDataTable"), I = D("NSpin"), ne = D("UzTableDrawer");
6233
6233
  return x(), i("div", {
6234
6234
  class: "uz-table",
6235
6235
  style: _({ width: t.isTypeofNumber(t.width) })
6236
6236
  }, [
6237
- P(a("div", Fp, [a("div", Ip, [l(m, {
6237
+ N(a("div", Fp, [a("div", Ip, [l(m, {
6238
6238
  width: 120,
6239
6239
  size: "medium"
6240
6240
  }), a("div", Lp, [
@@ -6266,24 +6266,24 @@ function Hp(t, s, u, d, f, p) {
6266
6266
  class: "uz-flex-1",
6267
6267
  width: "100%",
6268
6268
  size: "medium"
6269
- })], 512), [[A, !t.dynamicLoading]]),
6270
- P(l(L, {
6269
+ })], 512), [[k, !t.dynamicLoading]]),
6270
+ N(l(I, {
6271
6271
  show: t.spinError,
6272
6272
  class: "uz-table-n-spin"
6273
6273
  }, {
6274
- description: N(() => [
6275
- a("div", null, k(t.spinMsg), 1),
6274
+ description: M(() => [
6275
+ a("div", null, O(t.spinMsg), 1),
6276
6276
  s[2] ||= a("div", { class: "uz-br" }, null, -1),
6277
6277
  l(h, {
6278
6278
  type: "primary",
6279
6279
  onClick: t.rebuild,
6280
6280
  block: ""
6281
6281
  }, {
6282
- default: N(() => [...s[1] ||= [c("重试", -1)]]),
6282
+ default: M(() => [...s[1] ||= [c("重试", -1)]]),
6283
6283
  _: 1
6284
6284
  }, 8, ["onClick"])
6285
6285
  ]),
6286
- default: N(() => [t.isMobile ? (x(), i("div", {
6286
+ default: M(() => [t.isMobile ? (x(), i("div", {
6287
6287
  key: 0,
6288
6288
  class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
6289
6289
  }, [l(S, {
@@ -6293,18 +6293,18 @@ function Hp(t, s, u, d, f, p) {
6293
6293
  loading: t.loading,
6294
6294
  "onOnUpdate:value": t.submit
6295
6295
  }, o({
6296
- action: N(() => [
6296
+ action: M(() => [
6297
6297
  t.addFetch && t.tableOption.addButton ? (x(), n(h, {
6298
6298
  key: 0,
6299
6299
  secondary: "",
6300
6300
  disabled: t.checkRole("add"),
6301
6301
  onClick: t.handleAdd
6302
6302
  }, {
6303
- icon: N(() => [l(y, null, {
6304
- default: N(() => [l(v)]),
6303
+ icon: M(() => [l(y, null, {
6304
+ default: M(() => [l(v)]),
6305
6305
  _: 1
6306
6306
  })]),
6307
- default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
6307
+ default: M(() => [c(" " + O(t.$t("Common.add")), 1)]),
6308
6308
  _: 1
6309
6309
  }, 8, ["disabled", "onClick"])) : r("", !0),
6310
6310
  t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
@@ -6321,11 +6321,11 @@ function Hp(t, s, u, d, f, p) {
6321
6321
  _: 2
6322
6322
  }, [t.isSlotHeader ? {
6323
6323
  name: "header",
6324
- fn: N(() => [E(t.$slots, "header")]),
6324
+ fn: M(() => [E(t.$slots, "header")]),
6325
6325
  key: "0"
6326
6326
  } : {
6327
6327
  name: "header",
6328
- fn: N(() => [a("div", Rp, k(t.title), 1)]),
6328
+ fn: M(() => [a("div", Rp, O(t.title), 1)]),
6329
6329
  key: "1"
6330
6330
  }]), 1032, [
6331
6331
  "data",
@@ -6351,7 +6351,7 @@ function Hp(t, s, u, d, f, p) {
6351
6351
  "minH",
6352
6352
  "maxH",
6353
6353
  "onUpdate:rowKeys"
6354
- ])], 512)], 2)) : (x(), i("div", Bp, [l(F, {
6354
+ ])], 512)], 2)) : (x(), i("div", Bp, [l(P, {
6355
6355
  data: t.searchData,
6356
6356
  id: t.id || t.route.params.id,
6357
6357
  cache: t.tableOption.cache,
@@ -6360,22 +6360,22 @@ function Hp(t, s, u, d, f, p) {
6360
6360
  enableHeader: t.enableHeader,
6361
6361
  "onOnUpdate:value": t.submit
6362
6362
  }, o({
6363
- action: N(() => [
6364
- t.tableOption.filterButton && t.baseColumns.length > 0 ? (x(), n(M, {
6363
+ action: M(() => [
6364
+ t.tableOption.filterButton && t.baseColumns.length > 0 ? (x(), n(j, {
6365
6365
  key: 0,
6366
6366
  placement: "bottom-end",
6367
6367
  trigger: "click",
6368
6368
  "show-arrow": !1
6369
6369
  }, {
6370
- trigger: N(() => [l(h, { secondary: "" }, {
6371
- icon: N(() => [l(y, null, {
6372
- default: N(() => [l(w)]),
6370
+ trigger: M(() => [l(h, { secondary: "" }, {
6371
+ icon: M(() => [l(y, null, {
6372
+ default: M(() => [l(w)]),
6373
6373
  _: 1
6374
6374
  })]),
6375
- default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
6375
+ default: M(() => [c(" " + O(t.$t("Common.columns")), 1)]),
6376
6376
  _: 1
6377
6377
  })]),
6378
- default: N(() => [l(j, {
6378
+ default: M(() => [l(A, {
6379
6379
  modelValue: t.baseColumns,
6380
6380
  "onUpdate:modelValue": s[0] ||= (e) => t.baseColumns = e,
6381
6381
  animation: 200,
@@ -6386,7 +6386,7 @@ function Hp(t, s, u, d, f, p) {
6386
6386
  handle: ".uz-drag-handle",
6387
6387
  onEnd: t.handleColumnChange
6388
6388
  }, {
6389
- default: N(() => [(x(!0), i(e, null, T(t.baseColumns, (n) => (x(), i(e, null, [n.hide ? r("", !0) : (x(), i("div", {
6389
+ default: M(() => [(x(!0), i(e, null, T(t.baseColumns, (n) => (x(), i(e, null, [n.hide ? r("", !0) : (x(), i("div", {
6390
6390
  key: n.key,
6391
6391
  class: "uz-table-sort"
6392
6392
  }, [l(ee, {
@@ -6394,14 +6394,14 @@ function Hp(t, s, u, d, f, p) {
6394
6394
  "on-update:checked": () => t.showChange(n),
6395
6395
  size: "large"
6396
6396
  }, {
6397
- default: N(() => [c(k(typeof n.title == "string" ? n.title : n.title && n.title()), 1)]),
6397
+ default: M(() => [c(O(typeof n.title == "string" ? n.title : n.title && n.title()), 1)]),
6398
6398
  _: 2
6399
6399
  }, 1032, ["checked", "on-update:checked"]), l(h, {
6400
6400
  quaternary: "",
6401
6401
  class: "uz-drag-handle"
6402
6402
  }, {
6403
- icon: N(() => [l(y, { size: "18" }, {
6404
- default: N(() => [l(O)]),
6403
+ icon: M(() => [l(y, { size: "18" }, {
6404
+ default: M(() => [l(te)]),
6405
6405
  _: 1
6406
6406
  })]),
6407
6407
  _: 1
@@ -6416,11 +6416,11 @@ function Hp(t, s, u, d, f, p) {
6416
6416
  disabled: t.checkRole("add"),
6417
6417
  onClick: t.handleAdd
6418
6418
  }, {
6419
- icon: N(() => [l(y, null, {
6420
- default: N(() => [l(v)]),
6419
+ icon: M(() => [l(y, null, {
6420
+ default: M(() => [l(v)]),
6421
6421
  _: 1
6422
6422
  })]),
6423
- default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
6423
+ default: M(() => [c(" " + O(t.$t("Common.add")), 1)]),
6424
6424
  _: 1
6425
6425
  }, 8, ["disabled", "onClick"])) : r("", !0),
6426
6426
  t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
@@ -6437,11 +6437,11 @@ function Hp(t, s, u, d, f, p) {
6437
6437
  _: 2
6438
6438
  }, [t.isSlotHeader ? {
6439
6439
  name: "header",
6440
- fn: N(() => [E(t.$slots, "header")]),
6440
+ fn: M(() => [E(t.$slots, "header")]),
6441
6441
  key: "0"
6442
6442
  } : {
6443
6443
  name: "header",
6444
- fn: N(() => [a("div", Vp, k(t.title), 1)]),
6444
+ fn: M(() => [a("div", Vp, O(t.title), 1)]),
6445
6445
  key: "1"
6446
6446
  }]), 1032, [
6447
6447
  "data",
@@ -6451,7 +6451,7 @@ function Hp(t, s, u, d, f, p) {
6451
6451
  "cols",
6452
6452
  "enableHeader",
6453
6453
  "onOnUpdate:value"
6454
- ]), l(I, {
6454
+ ]), l(F, {
6455
6455
  ref: "tableRef",
6456
6456
  columns: t.tableColumns,
6457
6457
  data: t.tableData,
@@ -6494,19 +6494,19 @@ function Hp(t, s, u, d, f, p) {
6494
6494
  "onUpdate:checkedRowKeys"
6495
6495
  ])]))]),
6496
6496
  _: 3
6497
- }, 8, ["show"]), [[A, t.dynamicLoading]]),
6498
- l(te, { ref: "drawerRef" }, null, 512)
6497
+ }, 8, ["show"]), [[k, t.dynamicLoading]]),
6498
+ l(ne, { ref: "drawerRef" }, null, 512)
6499
6499
  ], 4);
6500
6500
  }
6501
6501
  var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6502
6502
  name: "UzTableChild",
6503
6503
  components: {
6504
- NSpin: Me,
6505
- NButton: L,
6506
- NIcon: B,
6507
- NDataTable: oe,
6508
- NForm: pe,
6509
- NDivider: z,
6504
+ NSpin: Ne,
6505
+ NButton: I,
6506
+ NIcon: z,
6507
+ NDataTable: se,
6508
+ NForm: me,
6509
+ NDivider: R,
6510
6510
  Plus: uc,
6511
6511
  GridDots: es
6512
6512
  },
@@ -6527,13 +6527,13 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6527
6527
  },
6528
6528
  emits: ["update:value"],
6529
6529
  setup(e, { emit: n, expose: r }) {
6530
- let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Xe(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
6531
- let { formDefaultValue: r, fillingDefaultArray: i } = await kp(H(n ?? e.item.params.columns), t, void 0, !0);
6530
+ let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Ze(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
6531
+ let { formDefaultValue: r, fillingDefaultArray: i } = await kp(V(n ?? e.item.params.columns), t, void 0, !0);
6532
6532
  return C.value = r, i;
6533
6533
  }, ee = async (t) => {
6534
6534
  if (_.value) return;
6535
6535
  _.value = !0;
6536
- let n = await D(t), r = H(t).map((e, t) => ({
6536
+ let n = await D(t), r = V(t).map((e, t) => ({
6537
6537
  ...e,
6538
6538
  ...n[t]
6539
6539
  }));
@@ -6552,14 +6552,14 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6552
6552
  q(e);
6553
6553
  }
6554
6554
  x.value.child = r, _.value = !1, h(() => {
6555
- I();
6555
+ F();
6556
6556
  });
6557
6557
  } else h(() => {
6558
- I();
6558
+ F();
6559
6559
  });
6560
- }, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
6560
+ }, te = (e) => e.delete ? "uz-table-child-delete" : "", O = async (t, n = !1) => {
6561
6561
  g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
6562
- let { tableColumns: r, tableWidth: i } = await Ap(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
6562
+ let { tableColumns: r, tableWidth: i } = await Ap(V(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
6563
6563
  r.unshift({
6564
6564
  title: " ",
6565
6565
  key: "index",
@@ -6578,7 +6578,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6578
6578
  hide: !0,
6579
6579
  show: !0,
6580
6580
  render() {
6581
- return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(es) }));
6581
+ return f("div", { class: "flex justify-center" }, f(z, {}, { default: () => f(es) }));
6582
6582
  }
6583
6583
  }), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
6584
6584
  title: () => l("Common.action"),
@@ -6614,7 +6614,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6614
6614
  r.forEach((e) => {
6615
6615
  e.show && c.push(e);
6616
6616
  }), b.value = c, s += 180, E.value = s, g.value = !1;
6617
- }, A = (t) => {
6617
+ }, k = (t) => {
6618
6618
  if (e.item.params.summary) {
6619
6619
  if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
6620
6620
  try {
@@ -6625,11 +6625,11 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6625
6625
  }
6626
6626
  }
6627
6627
  return [];
6628
- }, M = async () => {
6629
- S.value = "", x.value.child.push(H(C.value)), h(() => {
6630
- I();
6628
+ }, j = async () => {
6629
+ S.value = "", x.value.child.push(V(C.value)), h(() => {
6630
+ F();
6631
6631
  });
6632
- }, N = async () => {
6632
+ }, M = async () => {
6633
6633
  S.value = "";
6634
6634
  try {
6635
6635
  let t = e.item.params.options;
@@ -6642,7 +6642,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6642
6642
  callback: async (e) => {
6643
6643
  let t = await n(e, o, Z);
6644
6644
  x.value.child = [...x.value.child, ...t], h(() => {
6645
- I();
6645
+ F();
6646
6646
  });
6647
6647
  }
6648
6648
  });
@@ -6652,16 +6652,16 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6652
6652
  children: () => x.value.child,
6653
6653
  callback: async (e) => {
6654
6654
  x.value.child = [...x.value.child, ...e], h(() => {
6655
- I();
6655
+ F();
6656
6656
  });
6657
6657
  }
6658
6658
  });
6659
6659
  } catch (e) {
6660
6660
  q(e);
6661
6661
  }
6662
- }, P = () => {
6662
+ }, N = () => {
6663
6663
  m.value?.restoreValidation();
6664
- }, F = () => (S.value = "", new Promise((t, n) => {
6664
+ }, P = () => (S.value = "", new Promise((t, n) => {
6665
6665
  let r = x.value.child.filter((e) => !e.delete).length;
6666
6666
  if (e.item.form.rule.required && r === 0) {
6667
6667
  S.value = e.item.form.rule.message, n();
@@ -6670,20 +6670,20 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6670
6670
  m.value?.validate((r) => {
6671
6671
  r ? (S.value = e.item.form.rule.message, n()) : t();
6672
6672
  });
6673
- })), I = () => {
6673
+ })), F = () => {
6674
6674
  if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
6675
6675
  let e = u.value.$el.querySelector(".n-data-table-tbody");
6676
6676
  e && (d.value = it.create(e, {
6677
6677
  handle: ".uz-drag-handle",
6678
6678
  onEnd: ({ oldIndex: e, newIndex: t }) => {
6679
6679
  d.value?.destroy(), d.value = null, y.value = !1;
6680
- let n = H(x.value.child), r = n.splice(e, 1)[0];
6680
+ let n = V(x.value.child), r = n.splice(e, 1)[0];
6681
6681
  n.splice(t, 0, r), n = n.map((e, t) => ({
6682
6682
  ...e,
6683
6683
  sort_index: t
6684
6684
  })), x.value.child = n, h(() => {
6685
6685
  y.value = !0, setTimeout(() => {
6686
- I();
6686
+ F();
6687
6687
  }, 0);
6688
6688
  });
6689
6689
  }
@@ -6693,22 +6693,22 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6693
6693
  return v(() => {
6694
6694
  d.value?.destroy(), d.value = null;
6695
6695
  }), r({
6696
- validate: F,
6697
- restoreValidation: P
6698
- }), j(() => e.item.params.columns, (e, t) => {
6699
- JSON.stringify(e) !== JSON.stringify(t) && k(e);
6696
+ validate: P,
6697
+ restoreValidation: N
6698
+ }), A(() => e.item.params.columns, (e, t) => {
6699
+ JSON.stringify(e) !== JSON.stringify(t) && O(e);
6700
6700
  }, {
6701
6701
  deep: !0,
6702
6702
  immediate: !0
6703
- }), j(() => e.value, (e) => {
6703
+ }), A(() => e.value, (e) => {
6704
6704
  JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
6705
6705
  }, {
6706
6706
  deep: !0,
6707
6707
  immediate: !0
6708
- }), j(() => x.value.child, (t) => {
6708
+ }), A(() => x.value.child, (t) => {
6709
6709
  e.status !== 2 && n("update:value", t);
6710
- }, { deep: !0 }), j(() => c.value, async () => {
6711
- await k(void 0, !0);
6710
+ }, { deep: !0 }), A(() => c.value, async () => {
6711
+ await O(void 0, !0);
6712
6712
  }), {
6713
6713
  spin: g,
6714
6714
  loading: _,
@@ -6716,14 +6716,14 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
6716
6716
  tableRef: u,
6717
6717
  columns: b,
6718
6718
  tableData: x,
6719
- summaryData: A,
6719
+ summaryData: k,
6720
6720
  message: S,
6721
6721
  tableScrollX: E,
6722
6722
  tableShow: y,
6723
6723
  suffixes: T,
6724
- onAdd: M,
6725
- onAddFormData: N,
6726
- rowClassName: O,
6724
+ onAdd: j,
6725
+ onAddFormData: M,
6726
+ rowClassName: te,
6727
6727
  doSuffixClick: (e) => {
6728
6728
  i({
6729
6729
  open: e.optionsType,
@@ -6746,20 +6746,20 @@ function Xp(t, s, u, d, f, p) {
6746
6746
  show: t.spin,
6747
6747
  class: "uz-flex-1 uz-w-full"
6748
6748
  }, {
6749
- default: N(() => [
6750
- a("div", Gp, [a("div", Kp, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", qp, " \xA0* ")) : r("", !0)]), a("div", Jp, [
6749
+ default: M(() => [
6750
+ a("div", Gp, [a("div", Kp, [c(O(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", qp, " \xA0* ")) : r("", !0)]), a("div", Jp, [
6751
6751
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
6752
6752
  key: e.key,
6753
6753
  type: e.color,
6754
6754
  secondary: "",
6755
6755
  onClick: (n) => t.doSuffixClick(e)
6756
6756
  }, o({
6757
- default: N(() => [c(" " + k(e.buttonText), 1)]),
6757
+ default: M(() => [c(" " + O(e.buttonText), 1)]),
6758
6758
  _: 2
6759
6759
  }, [e.icon ? {
6760
6760
  name: "icon",
6761
- fn: N(() => [l(h, null, {
6762
- default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
6761
+ fn: M(() => [l(h, null, {
6762
+ default: M(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
6763
6763
  _: 2
6764
6764
  }, 1024)]),
6765
6765
  key: "0"
@@ -6770,11 +6770,11 @@ function Xp(t, s, u, d, f, p) {
6770
6770
  secondary: "",
6771
6771
  onClick: t.onAddFormData
6772
6772
  }, {
6773
- icon: N(() => [l(h, null, {
6774
- default: N(() => [l(v)]),
6773
+ icon: M(() => [l(h, null, {
6774
+ default: M(() => [l(v)]),
6775
6775
  _: 1
6776
6776
  })]),
6777
- default: N(() => [s[0] ||= c(" 从数据新增 ", -1)]),
6777
+ default: M(() => [s[0] ||= c(" 从数据新增 ", -1)]),
6778
6778
  _: 1
6779
6779
  }, 8, ["onClick"])) : r("", !0),
6780
6780
  t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
@@ -6783,11 +6783,11 @@ function Xp(t, s, u, d, f, p) {
6783
6783
  secondary: "",
6784
6784
  onClick: t.onAdd
6785
6785
  }, {
6786
- icon: N(() => [l(h, null, {
6787
- default: N(() => [l(v)]),
6786
+ icon: M(() => [l(h, null, {
6787
+ default: M(() => [l(v)]),
6788
6788
  _: 1
6789
6789
  })]),
6790
- default: N(() => [s[1] ||= c(" 新增 ", -1)]),
6790
+ default: M(() => [s[1] ||= c(" 新增 ", -1)]),
6791
6791
  _: 1
6792
6792
  }, 8, ["onClick"])) : r("", !0)
6793
6793
  ])]),
@@ -6798,7 +6798,7 @@ function Xp(t, s, u, d, f, p) {
6798
6798
  model: t.tableData,
6799
6799
  class: "uz-flex uz-flex-col uz-gap-2"
6800
6800
  }, {
6801
- default: N(() => [t.tableShow ? (x(), n(y, {
6801
+ default: M(() => [t.tableShow ? (x(), n(y, {
6802
6802
  key: 0,
6803
6803
  ref: "tableRef",
6804
6804
  columns: t.columns,
@@ -6829,11 +6829,11 @@ function Xp(t, s, u, d, f, p) {
6829
6829
  secondary: "",
6830
6830
  onClick: t.onAddFormData
6831
6831
  }, {
6832
- icon: N(() => [l(h, null, {
6833
- default: N(() => [l(v)]),
6832
+ icon: M(() => [l(h, null, {
6833
+ default: M(() => [l(v)]),
6834
6834
  _: 1
6835
6835
  })]),
6836
- default: N(() => [s[2] ||= c(" 从数据新增 ", -1)]),
6836
+ default: M(() => [s[2] ||= c(" 从数据新增 ", -1)]),
6837
6837
  _: 1
6838
6838
  }, 8, ["onClick"])) : r("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
6839
6839
  key: 1,
@@ -6841,11 +6841,11 @@ function Xp(t, s, u, d, f, p) {
6841
6841
  secondary: "",
6842
6842
  onClick: t.onAdd
6843
6843
  }, {
6844
- icon: N(() => [l(h, null, {
6845
- default: N(() => [l(v)]),
6844
+ icon: M(() => [l(h, null, {
6845
+ default: M(() => [l(v)]),
6846
6846
  _: 1
6847
6847
  })]),
6848
- default: N(() => [s[3] ||= c(" 新增 ", -1)]),
6848
+ default: M(() => [s[3] ||= c(" 新增 ", -1)]),
6849
6849
  _: 1
6850
6850
  }, 8, ["onClick"])) : r("", !0)])]),
6851
6851
  _: 1
@@ -6856,7 +6856,7 @@ function Xp(t, s, u, d, f, p) {
6856
6856
  }
6857
6857
  var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
6858
6858
  name: "UzTableQuestChild",
6859
- components: { NDataTable: oe },
6859
+ components: { NDataTable: se },
6860
6860
  props: {
6861
6861
  formValue: {
6862
6862
  type: Object,
@@ -6870,7 +6870,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
6870
6870
  },
6871
6871
  emits: ["update:value"],
6872
6872
  setup(e) {
6873
- let t = p("modules"), { t: n } = Xe(), r = w(), i = w(!1), a = w([]), o = w([]), s = w(void 0), c = (t) => {
6873
+ let t = p("modules"), { t: n } = Ze(), r = w(), i = w(!1), a = w([]), o = w([]), s = w(void 0), c = (t) => {
6874
6874
  if (i.value = !0, e.item.params.link) {
6875
6875
  let n = [];
6876
6876
  e.item.params.columns.forEach((e) => {
@@ -6882,7 +6882,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
6882
6882
  }), o.value = t, i.value = !1;
6883
6883
  }
6884
6884
  }, l = async (i) => {
6885
- let { tableColumns: c, tableWidth: l } = await Ap(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
6885
+ let { tableColumns: c, tableWidth: l } = await Ap(V(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
6886
6886
  c.unshift({
6887
6887
  title: " ",
6888
6888
  key: "index",
@@ -6919,7 +6919,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
6919
6919
  };
6920
6920
  return y(() => {
6921
6921
  l();
6922
- }), M(async () => {
6922
+ }), j(async () => {
6923
6923
  try {
6924
6924
  e.formValue && e.formValue.id && e.item.params.searchKey && c(await Td({
6925
6925
  tableId: e.item.params.link,
@@ -6957,7 +6957,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
6957
6957
  function nm(e, t, n, r, o, s) {
6958
6958
  let c = D("NDataTable"), u = D("UzTableDrawer");
6959
6959
  return x(), i("div", $p, [
6960
- a("div", em, [a("div", tm, k(e.item.label), 1)]),
6960
+ a("div", em, [a("div", tm, O(e.item.label), 1)]),
6961
6961
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
6962
6962
  l(c, {
6963
6963
  columns: e.columns,
@@ -6985,13 +6985,13 @@ function nm(e, t, n, r, o, s) {
6985
6985
  var rm = /*#__PURE__*/ U(Qp, [["render", nm]]), im = d({
6986
6986
  name: "UzTableDrawer",
6987
6987
  components: {
6988
- NButton: L,
6989
- NDrawerContent: le,
6990
- NDrawer: ce,
6991
- NSkeleton: Ae,
6992
- NSpin: Me,
6993
- NPopover: Ee,
6994
- NModal: Ce
6988
+ NButton: I,
6989
+ NDrawerContent: ue,
6990
+ NDrawer: le,
6991
+ NSkeleton: je,
6992
+ NSpin: Ne,
6993
+ NPopover: De,
6994
+ NModal: we
6995
6995
  },
6996
6996
  emits: ["update:show", "on-submit"],
6997
6997
  setup(e, { emit: n, expose: r }) {
@@ -7053,7 +7053,7 @@ var rm = /*#__PURE__*/ U(Qp, [["render", nm]]), im = d({
7053
7053
  let r = e.split(".")[0];
7054
7054
  Sp(r).then((e) => {
7055
7055
  h(async () => {
7056
- let t = nt.parse(e.viewJson);
7056
+ let t = H.parse(e.viewJson);
7057
7057
  d.value = Op(t.option), u.value = !0;
7058
7058
  let { form: i } = await kp(wp(t.table), n);
7059
7059
  y.value = t.trigger, n && T(n);
@@ -7166,19 +7166,19 @@ function lm(t, s, u, d, f, p) {
7166
7166
  "auto-focus": !1,
7167
7167
  "mask-closable": !1
7168
7168
  }, {
7169
- default: N(() => [l(b, {
7169
+ default: M(() => [l(b, {
7170
7170
  title: t.formStatus === 1 ? t.$t("Common.edit") : t.formStatus === 2 ? t.$t("Common.detail") : t.$t("Common.add"),
7171
7171
  closable: ""
7172
7172
  }, o({
7173
- default: N(() => [l(_, { show: t.spinError }, {
7174
- description: N(() => [c(k(t.$t("Notice.error")), 1)]),
7175
- default: N(() => [l(g, {
7173
+ default: M(() => [l(_, { show: t.spinError }, {
7174
+ description: M(() => [c(O(t.$t("Notice.error")), 1)]),
7175
+ default: M(() => [l(g, {
7176
7176
  value: t.spinShow,
7177
7177
  "onUpdate:value": s[0] ||= (e) => t.spinShow = e,
7178
7178
  message: t.spinMsg,
7179
7179
  status: t.spinStatus
7180
7180
  }, {
7181
- default: N(() => [a("div", am, [t.skeletonShow ? (x(), i("div", om, [
7181
+ default: M(() => [a("div", am, [t.skeletonShow ? (x(), i("div", om, [
7182
7182
  l(m, {
7183
7183
  size: "large",
7184
7184
  style: { height: "156px" }
@@ -7241,13 +7241,13 @@ function lm(t, s, u, d, f, p) {
7241
7241
  _: 2
7242
7242
  }, [t.formStatus === 2 ? void 0 : {
7243
7243
  name: "footer",
7244
- fn: N(() => [a("div", sm, [l(v, {
7244
+ fn: M(() => [a("div", sm, [l(v, {
7245
7245
  loading: t.spinShow,
7246
7246
  type: "success",
7247
7247
  class: "uz-drawer-button",
7248
7248
  onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
7249
7249
  }, {
7250
- default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
7250
+ default: M(() => [c(O(t.$t("OCR.ocr")), 1)]),
7251
7251
  _: 1
7252
7252
  }, 8, ["loading"]), a("div", cm, [
7253
7253
  l(v, {
@@ -7256,24 +7256,24 @@ function lm(t, s, u, d, f, p) {
7256
7256
  secondary: "",
7257
7257
  onClick: t.drawerCheck
7258
7258
  }, {
7259
- default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
7259
+ default: M(() => [c(O(t.$t("Common.cancel")), 1)]),
7260
7260
  _: 1
7261
7261
  }, 8, ["loading", "onClick"]),
7262
7262
  t.formStatus === 0 ? (x(), n(y, {
7263
7263
  key: 0,
7264
7264
  trigger: "hover"
7265
7265
  }, {
7266
- trigger: N(() => [l(v, {
7266
+ trigger: M(() => [l(v, {
7267
7267
  type: "success",
7268
7268
  loading: t.spinShow,
7269
7269
  class: "uz-drawer-button",
7270
7270
  secondary: "",
7271
7271
  onClick: t.doCacheToStore
7272
7272
  }, {
7273
- default: N(() => [c(k(t.$t("Common.cache")), 1)]),
7273
+ default: M(() => [c(O(t.$t("Common.cache")), 1)]),
7274
7274
  _: 1
7275
7275
  }, 8, ["loading", "onClick"])]),
7276
- default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
7276
+ default: M(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
7277
7277
  _: 1
7278
7278
  })) : r("", !0),
7279
7279
  l(v, {
@@ -7282,7 +7282,7 @@ function lm(t, s, u, d, f, p) {
7282
7282
  type: "primary",
7283
7283
  onClick: t.drawerSubmit
7284
7284
  }, {
7285
- default: N(() => [c(k(t.$t("Common.apply")), 1)]),
7285
+ default: M(() => [c(O(t.$t("Common.apply")), 1)]),
7286
7286
  _: 1
7287
7287
  }, 8, ["loading", "onClick"])
7288
7288
  ])])]),
@@ -7313,7 +7313,7 @@ function lm(t, s, u, d, f, p) {
7313
7313
  bottom: "0"
7314
7314
  }
7315
7315
  }, {
7316
- default: N(() => [l(C)]),
7316
+ default: M(() => [l(C)]),
7317
7317
  _: 1
7318
7318
  }, 8, ["show"])], 64);
7319
7319
  }
@@ -7344,25 +7344,25 @@ function mm(t, o, s, c, l, u) {
7344
7344
  key: o.key,
7345
7345
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
7346
7346
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
7347
- }, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(O(() => {
7347
+ }, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(te(() => {
7348
7348
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7349
7349
  }), {
7350
7350
  key: 0,
7351
7351
  class: "mobile"
7352
- })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(O(() => {
7352
+ })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, O(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(te(() => {
7353
7353
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7354
- }), { key: 0 })) : (x(), i("div", pm, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7354
+ }), { key: 0 })) : (x(), i("div", pm, O(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7355
7355
  }
7356
7356
  //#endregion
7357
7357
  //#region components/table/mobile.vue?vue&type=script&lang.ts
7358
7358
  var hm = d({
7359
7359
  name: "UzTableMobile",
7360
7360
  components: {
7361
- NCheckbox: R,
7362
- NRadio: De,
7363
- NPagination: we,
7364
- NCheckboxGroup: re,
7365
- NRadioGroup: Oe,
7361
+ NCheckbox: L,
7362
+ NRadio: Oe,
7363
+ NPagination: Te,
7364
+ NCheckboxGroup: ie,
7365
+ NRadioGroup: ke,
7366
7366
  UzTableMobileList: /* @__PURE__ */ U(dm, [["render", mm], ["__scopeId", "data-v-84c394fe"]])
7367
7367
  },
7368
7368
  props: {
@@ -7432,12 +7432,12 @@ function ym(t, a, o, s, c, u) {
7432
7432
  maxHeight: t.maxH
7433
7433
  })
7434
7434
  }, {
7435
- default: N(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(f, {
7435
+ default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(f, {
7436
7436
  key: e.id,
7437
7437
  class: "uz-com-card uz-flex uz-gap-2",
7438
7438
  value: e.id
7439
7439
  }, {
7440
- default: N(() => [l(d, {
7440
+ default: M(() => [l(d, {
7441
7441
  tableData: e,
7442
7442
  tableIndex: r,
7443
7443
  tableColumns: t.tableColumns
@@ -7474,12 +7474,12 @@ function ym(t, a, o, s, c, u) {
7474
7474
  maxHeight: t.maxH
7475
7475
  })
7476
7476
  }, {
7477
- default: N(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(h, {
7477
+ default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(h, {
7478
7478
  key: e.id,
7479
7479
  class: "uz-com-card uz-flex uz-gap-2",
7480
7480
  value: e.id
7481
7481
  }, {
7482
- default: N(() => [l(d, {
7482
+ default: M(() => [l(d, {
7483
7483
  tableData: e,
7484
7484
  tableIndex: r,
7485
7485
  tableColumns: t.tableColumns
@@ -7594,12 +7594,12 @@ function Em() {
7594
7594
  var Dm = d({
7595
7595
  name: "UzThumbnail",
7596
7596
  components: {
7597
- NTabs: Fe,
7598
- NTabPane: Pe,
7599
- NButton: L,
7600
- NIcon: B,
7601
- NPopconfirm: Te,
7602
- NFlex: fe,
7597
+ NTabs: Ie,
7598
+ NTabPane: Fe,
7599
+ NButton: I,
7600
+ NIcon: z,
7601
+ NPopconfirm: Ee,
7602
+ NFlex: pe,
7603
7603
  Trash: bl
7604
7604
  },
7605
7605
  props: { option: {
@@ -7611,12 +7611,12 @@ var Dm = d({
7611
7611
  })
7612
7612
  } },
7613
7613
  setup(e, { slots: t }) {
7614
- let n = w(!!t.prefix), r = qe();
7614
+ let n = w(!!t.prefix), r = Je();
7615
7615
  return y(() => {
7616
7616
  xm(e.option), Q.active !== r.path && Cm(r.path, r.fullPath);
7617
- }), j(() => r, (e) => {
7617
+ }), A(() => r, (e) => {
7618
7618
  Q.active === r.path && Cm(e.path, e.fullPath);
7619
- }, { deep: !0 }), j(() => e.option, (e) => {
7619
+ }, { deep: !0 }), A(() => e.option, (e) => {
7620
7620
  xm(e);
7621
7621
  }, { deep: !0 }), {
7622
7622
  thumbnailStore: Q,
@@ -7646,21 +7646,21 @@ function Om(t, r, a, s, u, d) {
7646
7646
  "on-update:value": t.handleChange,
7647
7647
  class: "uz-thumbnail"
7648
7648
  }, o({
7649
- suffix: N(() => [l(_, null, {
7650
- default: N(() => [l(g, { onPositiveClick: t.handleClear }, {
7651
- trigger: N(() => [l(h, { class: "uz-button-glass" }, {
7652
- default: N(() => [l(m, { color: "#e65444" }, {
7653
- default: N(() => [l(p)]),
7649
+ suffix: M(() => [l(_, null, {
7650
+ default: M(() => [l(g, { onPositiveClick: t.handleClear }, {
7651
+ trigger: M(() => [l(h, { class: "uz-button-glass" }, {
7652
+ default: M(() => [l(m, { color: "#e65444" }, {
7653
+ default: M(() => [l(p)]),
7654
7654
  _: 1
7655
7655
  })]),
7656
7656
  _: 1
7657
7657
  })]),
7658
- default: N(() => [r[0] ||= c(" 清空所有打开的标签? ", -1)]),
7658
+ default: M(() => [r[0] ||= c(" 清空所有打开的标签? ", -1)]),
7659
7659
  _: 1
7660
7660
  }, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
7661
7661
  _: 3
7662
7662
  })]),
7663
- default: N(() => [(x(!0), i(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), n(f, {
7663
+ default: M(() => [(x(!0), i(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), n(f, {
7664
7664
  key: e.key,
7665
7665
  name: e.key,
7666
7666
  tab: e.label,
@@ -7673,7 +7673,7 @@ function Om(t, r, a, s, u, d) {
7673
7673
  _: 2
7674
7674
  }, [t.isSlotPrefix ? {
7675
7675
  name: "prefix",
7676
- fn: N(() => [E(t.$slots, "prefix")]),
7676
+ fn: M(() => [E(t.$slots, "prefix")]),
7677
7677
  key: "0"
7678
7678
  } : void 0]), 1032, [
7679
7679
  "value",
@@ -7682,7 +7682,7 @@ function Om(t, r, a, s, u, d) {
7682
7682
  ]);
7683
7683
  }
7684
7684
  var km = /*#__PURE__*/ U(Dm, [["render", Om]]), Am = "#007AFF", jm = "#0A84FF", Mm = "#FF9500", Nm = "#FF9F0A", Pm = "#28CD41", Fm = "#32D74B", Im = "#FFCC00", Lm = "#FFD60A", Rm = "#FF3B30", zm = "#FF453A";
7685
- V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = jm, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Nm, V.common.successColor = "#32D74B", V.common.successColorHover = Fm, V.common.warningColor = "#FFD60A", V.common.successColorHover = Lm, V.common.errorColor = "#FF453A", V.common.errorColorHover = zm, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31";
7685
+ B.common.cardColor = "#32323b", B.common.primaryColor = "#0A84FF", B.common.primaryColorHover = jm, B.common.infoColor = "#FF9F0A", B.common.infoColorHover = Nm, B.common.successColor = "#32D74B", B.common.successColorHover = Fm, B.common.warningColor = "#FFD60A", B.common.successColorHover = Lm, B.common.errorColor = "#FF453A", B.common.errorColorHover = zm, B.common.borderRadius = "var(--borderRadius)", B.common.inputColor = "rgba(var(--input))", B.common.borderColor = "rgba(var(--border), 0.7)", B.DataTable.tdColor = "#2d2d31";
7686
7686
  var Bm = {
7687
7687
  common: {
7688
7688
  inputColor: "rgba(var(--input))",
@@ -7715,13 +7715,13 @@ var Bm = {
7715
7715
  DatePicker: { itemBorderRadius: "var(--borderRadius)" },
7716
7716
  Notification: { borderRadius: "var(--borderRadius)" },
7717
7717
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
7718
- }, Vm = V, Hm = d({
7718
+ }, Vm = B, Hm = d({
7719
7719
  name: "UzWrap",
7720
- components: { NConfigProvider: ae },
7720
+ components: { NConfigProvider: oe },
7721
7721
  setup() {
7722
7722
  return {
7723
- zhCN: Ue,
7724
- dateZhCN: Ve,
7723
+ zhCN: We,
7724
+ dateZhCN: He,
7725
7725
  commonStore: K,
7726
7726
  lightTheme: Bm,
7727
7727
  darkTheme: Vm
@@ -7740,7 +7740,7 @@ function Um(e, t, r, i, a, o) {
7740
7740
  "inline-theme-disabled": "",
7741
7741
  abstract: ""
7742
7742
  }, {
7743
- default: N(() => [E(e.$slots, "default")]),
7743
+ default: M(() => [E(e.$slots, "default")]),
7744
7744
  _: 3
7745
7745
  }, 8, [
7746
7746
  "theme",
@@ -7826,16 +7826,16 @@ function Km(e, t) {
7826
7826
  var qm = d({
7827
7827
  name: "UzOcr",
7828
7828
  components: {
7829
- NButton: L,
7830
- NUpload: Re,
7831
- NSelect: ke,
7832
- NSwitch: Ne,
7833
- NTabs: Fe,
7834
- NTabPane: Pe,
7835
- NSpace: je
7829
+ NButton: I,
7830
+ NUpload: ze,
7831
+ NSelect: Ae,
7832
+ NSwitch: Pe,
7833
+ NTabs: Ie,
7834
+ NTabPane: Fe,
7835
+ NSpace: Me
7836
7836
  },
7837
7837
  setup() {
7838
- let { t: e } = Xe(), n = w(!1), r = w(e("OCR.scan")), i = w([]), a = w(null), o = w(!0), s = w(3), c = w(!0), l = w(!0), u = w(!0), d = w(128), f = w(""), p = w(""), m = w(128), h = w("processed"), g = [
7838
+ let { t: e } = Ze(), n = w(!1), r = w(e("OCR.scan")), i = w([]), a = w(null), o = w(!0), s = w(3), c = w(!0), l = w(!0), u = w(!0), d = w(128), f = w(""), p = w(""), m = w(128), h = w("processed"), g = [
7839
7839
  {
7840
7840
  label: "不放大 (1x)",
7841
7841
  value: 1
@@ -7874,7 +7874,7 @@ var qm = d({
7874
7874
  console.error("实时预处理失败", e);
7875
7875
  }
7876
7876
  };
7877
- j([
7877
+ A([
7878
7878
  f,
7879
7879
  o,
7880
7880
  s,
@@ -7983,21 +7983,21 @@ function vh(e, t, o, s, u, d) {
7983
7983
  type: "segment",
7984
7984
  size: "small"
7985
7985
  }, {
7986
- default: N(() => [l(p, {
7986
+ default: M(() => [l(p, {
7987
7987
  name: "processed",
7988
7988
  tab: e.t("OCR.previewProcessed")
7989
7989
  }, {
7990
- default: N(() => [a("div", $m, [a("img", {
7990
+ default: M(() => [a("div", $m, [a("img", {
7991
7991
  src: e.processedImage,
7992
7992
  alt: "Processed Preview",
7993
7993
  class: "uz-ocr-preview-img"
7994
- }, null, 8, eh), e.preEnabled && e.preBinarize ? (x(), i("div", th, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
7994
+ }, null, 8, eh), e.preEnabled && e.preBinarize ? (x(), i("div", th, O(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + O(e.thresholdUsed), 1)) : r("", !0)])]),
7995
7995
  _: 1
7996
7996
  }, 8, ["tab"]), l(p, {
7997
7997
  name: "raw",
7998
7998
  tab: e.t("OCR.previewRaw")
7999
7999
  }, {
8000
- default: N(() => [a("div", nh, [a("img", {
8000
+ default: M(() => [a("div", nh, [a("img", {
8001
8001
  src: e.rawImage,
8002
8002
  alt: "Raw Preview",
8003
8003
  class: "uz-ocr-preview-img"
@@ -8009,13 +8009,13 @@ function vh(e, t, o, s, u, d) {
8009
8009
  justify: "space-between",
8010
8010
  class: "uz-ocr-preview-actions"
8011
8011
  }, {
8012
- default: N(() => [l(h, {
8012
+ default: M(() => [l(h, {
8013
8013
  size: "small",
8014
8014
  secondary: "",
8015
8015
  type: "warning",
8016
8016
  onClick: e.clearImage
8017
8017
  }, {
8018
- default: N(() => [...t[6] ||= [c(" 重新选择 ", -1)]]),
8018
+ default: M(() => [...t[6] ||= [c(" 重新选择 ", -1)]]),
8019
8019
  _: 1
8020
8020
  }, 8, ["onClick"]), l(h, {
8021
8021
  size: "small",
@@ -8023,7 +8023,7 @@ function vh(e, t, o, s, u, d) {
8023
8023
  loading: e.ocrLoading,
8024
8024
  onClick: e.handleManualOcr
8025
8025
  }, {
8026
- default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
8026
+ default: M(() => [c(O(e.t("OCR.reRecognize")), 1)]),
8027
8027
  _: 1
8028
8028
  }, 8, ["loading", "onClick"])]),
8029
8029
  _: 1
@@ -8035,7 +8035,7 @@ function vh(e, t, o, s, u, d) {
8035
8035
  "directory-dnd": "",
8036
8036
  class: "uz-w-full"
8037
8037
  }, {
8038
- default: N(() => [a("div", Xm, [
8038
+ default: M(() => [a("div", Xm, [
8039
8039
  t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
8040
8040
  xmlns: "http://www.w3.org/2000/svg",
8041
8041
  viewBox: "0 0 24 24",
@@ -8043,25 +8043,25 @@ function vh(e, t, o, s, u, d) {
8043
8043
  height: "40",
8044
8044
  fill: "currentColor"
8045
8045
  }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
8046
- a("div", Zm, k(e.t("OCR.scan")), 1),
8046
+ a("div", Zm, O(e.t("OCR.scan")), 1),
8047
8047
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8048
8048
  ])]),
8049
8049
  _: 1
8050
- }, 8, ["on-before-upload"])), a("div", ih, [a("div", ah, [a("span", oh, k(e.t("OCR.preprocess")), 1), l(_, {
8050
+ }, 8, ["on-before-upload"])), a("div", ih, [a("div", ah, [a("span", oh, O(e.t("OCR.preprocess")), 1), l(_, {
8051
8051
  value: e.preEnabled,
8052
8052
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8053
8053
  size: "small"
8054
- }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", sh, [a("div", ch, [a("span", lh, k(e.t("OCR.scale")), 1), l(v, {
8054
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", sh, [a("div", ch, [a("span", lh, O(e.t("OCR.scale")), 1), l(v, {
8055
8055
  value: e.preScale,
8056
8056
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8057
8057
  options: e.scaleOptions,
8058
8058
  size: "small",
8059
8059
  class: "uz-settings-select"
8060
- }, null, 8, ["value", "options"])]), a("div", uh, [a("span", dh, k(e.t("OCR.contrast")), 1), l(_, {
8060
+ }, null, 8, ["value", "options"])]), a("div", uh, [a("span", dh, O(e.t("OCR.contrast")), 1), l(_, {
8061
8061
  value: e.preContrast,
8062
8062
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8063
8063
  size: "small"
8064
- }, null, 8, ["value"])])])) : r("", !0)])]), a("div", fh, [a("div", ph, [a("span", mh, "识别结果 (" + k(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", _h, k(e.fullText), 1)) : (x(), i("div", hh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", gh, k(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8064
+ }, null, 8, ["value"])])])) : r("", !0)])]), a("div", fh, [a("div", ph, [a("span", mh, "识别结果 (" + O(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", _h, O(e.fullText), 1)) : (x(), i("div", hh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", gh, O(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8065
8065
  }
8066
8066
  var yh = /*#__PURE__*/ U(qm, [["render", vh], ["__scopeId", "data-v-c7224ff5"]]), bh = /* @__PURE__ */ lt({
8067
8067
  AccessPoint: () => mt,
@@ -8250,7 +8250,7 @@ function Th() {
8250
8250
  Ch.scale = e;
8251
8251
  }
8252
8252
  function Eh() {
8253
- let e = Qe(Th, 200);
8253
+ let e = $e(Th, 200);
8254
8254
  return e(), window.addEventListener("resize", e), () => {
8255
8255
  xh = 3840, Sh = 2160, window.removeEventListener("resize", e);
8256
8256
  };
@@ -8258,7 +8258,7 @@ function Eh() {
8258
8258
  //#endregion
8259
8259
  //#region components/hooks/useDebounceFn.ts
8260
8260
  function Dh(e, t = 1e3) {
8261
- let n = Qe(e, t);
8261
+ let n = $e(e, t);
8262
8262
  return {
8263
8263
  run: n,
8264
8264
  cancel: n.cancel,
@@ -8268,7 +8268,7 @@ function Dh(e, t = 1e3) {
8268
8268
  //#endregion
8269
8269
  //#region components/hooks/useThrottleFn.ts
8270
8270
  function Oh(e, n = 1e3) {
8271
- let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
8271
+ let r = w(e), i = t(() => et((...e) => r.value([...e]), n));
8272
8272
  return b(() => {
8273
8273
  i.value.cancel();
8274
8274
  }), {
@@ -8352,7 +8352,7 @@ function Ah(e, t, n) {
8352
8352
  }
8353
8353
  //#endregion
8354
8354
  //#region package.json
8355
- var jh = "0.1.51", Mh;
8355
+ var jh = "0.1.53", Mh;
8356
8356
  async function Nh() {
8357
8357
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
8358
8358
  method: "HEAD",