@unizhen/ui 0.1.12 → 0.1.13

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 +82 -81
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as Q, onMounted as Ee, mergeProps as Ft, withModifiers as at, watchEffect as Tn, onBeforeUnmount as Ot, withKeys as Va, renderSlot as ke, markRaw as Ua, defineAsyncComponent as ja, onUnmounted as Fn, vShow as Bt, resolveDynamicComponent as mn } from "vue";
1
+ import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as G, onMounted as Ee, mergeProps as Ft, withModifiers as at, watchEffect as Tn, onBeforeUnmount as Ot, withKeys as Va, renderSlot as ke, markRaw as Ua, defineAsyncComponent as ja, onUnmounted as Fn, vShow as Bt, resolveDynamicComponent as mn } from "vue";
2
2
  import { createDiscreteApi as Aa, NPopover as Ze, NFlex as Bn, NButton as ve, NPopconfirm as Rt, NTooltip as In, NIcon as ge, NDropdown as Oa, NCascader as Ra, NCheckboxGroup as Vn, NCheckbox as Pt, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as Ht, NFormItem as Et, NForm as qt, NSpin as it, NInputGroup as Lt, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Kt, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as An, NGridItem as On, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NEllipsis as Ya, NSkeleton as En, NDataTable as Wt, NRadioGroup as Za, NPagination as es, NRadio as ts, NTabPane as ns, NTabs as os, darkTheme as he, NConfigProvider as rs, dateZhCN as as, zhCN as ss } from "naive-ui";
3
3
  import Gt from "axios";
4
4
  import { createRouter as ls, createWebHistory as is, useRouter as cs, useRoute as ct } from "vue-router";
5
5
  import { createI18n as us, useI18n as Qt } from "vue-i18n";
6
- import { cloneDeep as G, compact as ds, debounce as qn, throttle as ps } from "lodash-es";
6
+ import { cloneDeep as Q, compact as ds, debounce as qn, throttle as ps } from "lodash-es";
7
7
  import Be from "dayjs";
8
8
  import Ln from "vuedraggable";
9
9
  import je from "json5";
@@ -3471,7 +3471,7 @@ const xh = /* @__PURE__ */ w(nh, [["render", bh]]), _h = re({
3471
3471
  }
3472
3472
  },
3473
3473
  handleFocus: (g) => {
3474
- const S = G(e.item.params.options);
3474
+ const S = Q(e.item.params.options);
3475
3475
  if (e.formValue && e.formValue[g]) {
3476
3476
  const F = e.formValue[g].toLocaleLowerCase();
3477
3477
  S.forEach((K) => {
@@ -3680,7 +3680,7 @@ function Ch(e, t, n, c, l, i) {
3680
3680
  disabled: e.checkDisabled(),
3681
3681
  show: e.checkReadonlyShow(),
3682
3682
  clearable: e.checkClearable(),
3683
- filterable: e.isMobile ? !1 : e.item.params.filterable,
3683
+ filterable: e.item.params.filterable,
3684
3684
  tag: e.item.params.tag,
3685
3685
  multiple: e.item.params.multiple,
3686
3686
  "fallback-option": e.selectFallback,
@@ -3984,7 +3984,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
3984
3984
  a.value[$.key] = [];
3985
3985
  }
3986
3986
  }), T), f = (T) => {
3987
- T || (T = G(e.items)), T && Array.isArray(T) && T.length > 0 ? p.value = h(T) : p.value = [];
3987
+ T || (T = Q(e.items)), T && Array.isArray(T) && T.length > 0 ? p.value = h(T) : p.value = [];
3988
3988
  }, u = () => new Promise(async (T) => {
3989
3989
  let $ = 0;
3990
3990
  for await (const I of _.value)
@@ -4000,7 +4000,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4000
4000
  if (I)
4001
4001
  $();
4002
4002
  else if (await u() === 0) {
4003
- const q = G(a.value);
4003
+ const q = Q(a.value);
4004
4004
  z.value.forEach((H) => {
4005
4005
  q[H] = JSON.stringify(q[H]);
4006
4006
  }), Object.keys(q).forEach((H) => {
@@ -4104,11 +4104,11 @@ function Nh(e, t, n, c, l, i) {
4104
4104
  _: 1
4105
4105
  }),
4106
4106
  t[0] || (t[0] = E(" 新增 ", -1))
4107
- ], 8, zh)) : Q("", !0),
4107
+ ], 8, zh)) : G("", !0),
4108
4108
  u.form.showDays ? (s(), d("span", {
4109
4109
  key: 1,
4110
4110
  class: ie(["uz-form-item-add", e.diffDay(e.formValue[u.key], !0)])
4111
- }, P(e.diffDay(e.formValue[u.key])), 3)) : Q("", !0)
4111
+ }, P(e.diffDay(e.formValue[u.key])), 3)) : G("", !0)
4112
4112
  ]),
4113
4113
  default: m(() => [
4114
4114
  u.input === "subTable" && !u.params.quest ? (s(), B(_, {
@@ -4140,7 +4140,7 @@ function Nh(e, t, n, c, l, i) {
4140
4140
  }, null, 8, ["item", "formValue", "status"]))
4141
4141
  ]),
4142
4142
  _: 2
4143
- }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : Q("", !0)
4143
+ }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : G("", !0)
4144
4144
  ], 64))), 128))
4145
4145
  ], 2)), [
4146
4146
  [f]
@@ -4231,11 +4231,11 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
4231
4231
  i.value[u.key] = u.form.defaultValue;
4232
4232
  }), f), N = () => {
4233
4233
  if (e.items && Array.isArray(e.items)) {
4234
- const f = G(e.items);
4234
+ const f = Q(e.items);
4235
4235
  a.value = D(f);
4236
4236
  }
4237
4237
  }, v = () => {
4238
- n("on-change", G(a.value));
4238
+ n("on-change", Q(a.value));
4239
4239
  }, o = () => {
4240
4240
  p.value = [-1, -1], n("on-select", void 0);
4241
4241
  }, h = () => {
@@ -4328,8 +4328,8 @@ function Bh(e, t, n, c, l, i) {
4328
4328
  _: 1
4329
4329
  }),
4330
4330
  t[1] || (t[1] = E(" 新增 ", -1))
4331
- ])) : Q("", !0),
4332
- u.form.showDays ? (s(), d("span", Fh, " showDays ")) : Q("", !0)
4331
+ ])) : G("", !0),
4332
+ u.form.showDays ? (s(), d("span", Fh, " showDays ")) : G("", !0)
4333
4333
  ]),
4334
4334
  default: m(() => [
4335
4335
  e.formItemIndex[0] === g && e.formItemIndex[1] === -1 ? (s(), B(z, {
@@ -4348,7 +4348,7 @@ function Bh(e, t, n, c, l, i) {
4348
4348
  })
4349
4349
  ]),
4350
4350
  _: 1
4351
- }, 8, ["onClick"])) : Q("", !0),
4351
+ }, 8, ["onClick"])) : G("", !0),
4352
4352
  u.input === "subTable" ? (s(), B(D, {
4353
4353
  key: 1,
4354
4354
  formValue: e.formValue,
@@ -4400,7 +4400,7 @@ function Bh(e, t, n, c, l, i) {
4400
4400
  })
4401
4401
  ]),
4402
4402
  _: 1
4403
- }, 8, ["onClick"])) : Q("", !0),
4403
+ }, 8, ["onClick"])) : G("", !0),
4404
4404
  b(N, {
4405
4405
  item: S,
4406
4406
  formValue: e.formValue,
@@ -4502,7 +4502,7 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
4502
4502
  }, _ = (N) => {
4503
4503
  l.value.splice(N, 1), i();
4504
4504
  }, z = () => {
4505
- let N = G(e.value);
4505
+ let N = Q(e.value);
4506
4506
  if (!N) {
4507
4507
  l.value = [];
4508
4508
  return;
@@ -4577,7 +4577,7 @@ function Oh(e, t, n, c, l, i) {
4577
4577
  })
4578
4578
  ]),
4579
4579
  _: 1
4580
- }, 8, ["accept", "max", "on-before-upload"])) : Q("", !0),
4580
+ }, 8, ["accept", "max", "on-before-upload"])) : G("", !0),
4581
4581
  (s(!0), d(se, null, we(e.formValue, (S, y) => (s(), d("div", {
4582
4582
  key: y,
4583
4583
  class: "uz-form-upload-item uz-w-20 uz-h-20"
@@ -4658,7 +4658,7 @@ function Oh(e, t, n, c, l, i) {
4658
4658
  ]),
4659
4659
  _: 1
4660
4660
  }, 8, ["href"])
4661
- ])) : Q("", !0)
4661
+ ])) : G("", !0)
4662
4662
  ])
4663
4663
  ]))), 128))
4664
4664
  ]),
@@ -4968,7 +4968,7 @@ function Zh(e, t, n, c, l, i) {
4968
4968
  E(P(e.$t("Common.scan")), 1)
4969
4969
  ]),
4970
4970
  _: 1
4971
- }, 8, ["loading", "onClick"])) : Q("", !0),
4971
+ }, 8, ["loading", "onClick"])) : G("", !0),
4972
4972
  e.mode === "button" ? (s(), B(p, {
4973
4973
  key: 1,
4974
4974
  show: e.modal,
@@ -4995,7 +4995,7 @@ function Zh(e, t, n, c, l, i) {
4995
4995
  ], 4)
4996
4996
  ]),
4997
4997
  _: 1
4998
- }, 8, ["show", "title", "on-after-leave"])) : Q("", !0),
4998
+ }, 8, ["show", "title", "on-after-leave"])) : G("", !0),
4999
4999
  e.mode === "video" ? (s(), d("div", {
5000
5000
  key: 2,
5001
5001
  class: "uz-scan-canvas-main",
@@ -5009,7 +5009,7 @@ function Zh(e, t, n, c, l, i) {
5009
5009
  width: e.width,
5010
5010
  height: e.height
5011
5011
  }, null, 8, Jh)
5012
- ], 4)) : Q("", !0),
5012
+ ], 4)) : G("", !0),
5013
5013
  r("div", Xh, [
5014
5014
  r("video", Yh, null, 512)
5015
5015
  ])
@@ -5077,7 +5077,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5077
5077
  const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1), _ = M(!1), z = M(0), D = M(0), N = M(0), v = M(1), o = M(""), h = M([]), f = M(!1), u = (T) => Array.isArray(T) && T.length > 0 || T ? T : !1, g = (T = !1) => {
5078
5078
  if (e.loading)
5079
5079
  return;
5080
- const $ = G(c.value);
5080
+ const $ = Q(c.value);
5081
5081
  !T && $.query && ($.query.page = 1);
5082
5082
  const I = [];
5083
5083
  l.value.forEach((U) => {
@@ -5095,7 +5095,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5095
5095
  }
5096
5096
  }), t("update:loading", !0), t("on-update:value", I);
5097
5097
  }, S = () => {
5098
- e.loading || (c.value = G(i.value), g());
5098
+ e.loading || (c.value = Q(i.value), g());
5099
5099
  }, y = () => {
5100
5100
  a.value = !a.value;
5101
5101
  }, F = (T) => f.value ? c.value && Array.isArray(c.value[o.value]) && c.value[o.value].includes(T.value) ? "primary" : "default" : c.value[o.value] === T.value ? "primary" : "default", K = (T) => {
@@ -5136,14 +5136,14 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5136
5136
  return { data: T, values: $ };
5137
5137
  }, Z = (T) => {
5138
5138
  if (h.value = [], T && T.length > 0) {
5139
- const { data: $, values: I } = K(G(T)), U = {}, q = e.id || n.params.id;
5139
+ const { data: $, values: I } = K(Q(T)), U = {}, q = e.id || n.params.id;
5140
5140
  if (e.cache && q) {
5141
5141
  const C = Me(`tables_${q}`, !1);
5142
5142
  C && C.params.forEach((R) => {
5143
5143
  U[R.key] = R.value;
5144
5144
  });
5145
5145
  }
5146
- l.value = $, c.value = G({ ...I, ...U }), i.value = G(I);
5146
+ l.value = $, c.value = Q({ ...I, ...U }), i.value = Q(I);
5147
5147
  }
5148
5148
  g(!0);
5149
5149
  }, ne = (T) => {
@@ -5230,11 +5230,11 @@ function a1(e, t, n, c, l, i) {
5230
5230
  })
5231
5231
  ]),
5232
5232
  _: 1
5233
- }, 8, ["span"])) : Q("", !0),
5233
+ }, 8, ["span"])) : G("", !0),
5234
5234
  e.offset > -1 ? (s(), B(_, {
5235
5235
  key: 1,
5236
5236
  offset: e.offset
5237
- }, null, 8, ["offset"])) : Q("", !0),
5237
+ }, null, 8, ["offset"])) : G("", !0),
5238
5238
  (s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B(_, {
5239
5239
  key: `${F}_${Date.now()}`,
5240
5240
  span: y.search.show ? y.search.span || e.gridSpan : 0
@@ -5277,7 +5277,7 @@ function a1(e, t, n, c, l, i) {
5277
5277
  ])), [
5278
5278
  [S]
5279
5279
  ])
5280
- ])) : Q("", !0),
5280
+ ])) : G("", !0),
5281
5281
  e.enableHeader ? (s(), d("div", r1, [
5282
5282
  e.more ? (s(), B(a, {
5283
5283
  key: 0,
@@ -5295,7 +5295,7 @@ function a1(e, t, n, c, l, i) {
5295
5295
  }, 8, ["class"])
5296
5296
  ]),
5297
5297
  _: 1
5298
- }, 8, ["onClick"])) : Q("", !0),
5298
+ }, 8, ["onClick"])) : G("", !0),
5299
5299
  e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(a, {
5300
5300
  key: 1,
5301
5301
  loading: e.loading,
@@ -5317,7 +5317,7 @@ function a1(e, t, n, c, l, i) {
5317
5317
  E(" " + P(e.$t("Common.search")), 1)
5318
5318
  ]),
5319
5319
  _: 1
5320
- }, 8, ["loading"])) : Q("", !0),
5320
+ }, 8, ["loading"])) : G("", !0),
5321
5321
  e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), B(a, {
5322
5322
  key: 2,
5323
5323
  loading: e.loading,
@@ -5336,9 +5336,9 @@ function a1(e, t, n, c, l, i) {
5336
5336
  E(" " + P(e.$t("Common.reset")), 1)
5337
5337
  ]),
5338
5338
  _: 1
5339
- }, 8, ["loading", "onClick"])) : Q("", !0),
5339
+ }, 8, ["loading", "onClick"])) : G("", !0),
5340
5340
  ke(e.$slots, "action")
5341
- ])) : Q("", !0)
5341
+ ])) : G("", !0)
5342
5342
  ], 32);
5343
5343
  }
5344
5344
  const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
@@ -5380,7 +5380,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5380
5380
  const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
5381
5381
  if (e.loading)
5382
5382
  return;
5383
- const o = G(i.value);
5383
+ const o = Q(i.value);
5384
5384
  !v && o.query && (o.query.page = 1);
5385
5385
  const h = [];
5386
5386
  c.value.forEach((f) => {
@@ -5398,7 +5398,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5398
5398
  }
5399
5399
  }), l.value = !1, t("update:loading", !0), t("on-update:value", h);
5400
5400
  }, z = () => {
5401
- e.loading || (i.value = G(a.value), _());
5401
+ e.loading || (i.value = Q(a.value), _());
5402
5402
  }, D = (v) => {
5403
5403
  const o = {};
5404
5404
  for (const h of v)
@@ -5406,14 +5406,14 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5406
5406
  return { data: v, values: o };
5407
5407
  }, N = (v) => {
5408
5408
  if (v && v.length > 0) {
5409
- const { data: o, values: h } = D(G(v)), f = {}, u = e.id || n.params.id;
5409
+ const { data: o, values: h } = D(Q(v)), f = {}, u = e.id || n.params.id;
5410
5410
  if (e.cache && u) {
5411
5411
  const g = Me(`tables_${u}`, !1);
5412
5412
  g && g.params.forEach((S) => {
5413
5413
  f[S.key] = S.value;
5414
5414
  });
5415
5415
  }
5416
- c.value = o, i.value = G({ ...h, ...f }), a.value = G(h);
5416
+ c.value = o, i.value = Q({ ...h, ...f }), a.value = Q(h);
5417
5417
  }
5418
5418
  _(!0);
5419
5419
  };
@@ -5454,7 +5454,7 @@ function d1(e, t, n, c, l, i) {
5454
5454
  E(" " + P(e.$t("Common.search")), 1)
5455
5455
  ]),
5456
5456
  _: 1
5457
- })) : Q("", !0),
5457
+ })) : G("", !0),
5458
5458
  ke(e.$slots, "action")
5459
5459
  ])
5460
5460
  ]),
@@ -5462,7 +5462,8 @@ function d1(e, t, n, c, l, i) {
5462
5462
  show: e.drawer,
5463
5463
  "onUpdate:show": t[2] || (t[2] = (g) => e.drawer = g),
5464
5464
  width: "100%",
5465
- height: "40%",
5465
+ height: "50%",
5466
+ style: { overflow: "visible" },
5466
5467
  placement: "bottom",
5467
5468
  "auto-focus": !1,
5468
5469
  "close-on-esc": !1
@@ -5512,7 +5513,7 @@ function d1(e, t, n, c, l, i) {
5512
5513
  E(" " + P(e.$t("Common.search")), 1)
5513
5514
  ]),
5514
5515
  _: 1
5515
- }, 8, ["loading"])) : Q("", !0)
5516
+ }, 8, ["loading"])) : G("", !0)
5516
5517
  ])
5517
5518
  ]),
5518
5519
  default: m(() => [
@@ -5646,7 +5647,7 @@ function pa() {
5646
5647
  async function Pe(e) {
5647
5648
  const t = e.split(".");
5648
5649
  let n = !1;
5649
- return t.length > 1 && (Ue.has(t[0]) ? n = G(Ue.get(t[0])) : (n = await Ve({ tableId: t[0] }), Ue.set(t[0], n))), { sourceData: n, n: t };
5650
+ return t.length > 1 && (Ue.has(t[0]) ? n = Q(Ue.get(t[0])) : (n = await Ve({ tableId: t[0] }), Ue.set(t[0], n))), { sourceData: n, n: t };
5650
5651
  }
5651
5652
  async function Xe(e) {
5652
5653
  return new Promise((t, n) => {
@@ -5855,11 +5856,11 @@ const v1 = (e) => e.map((t) => {
5855
5856
  drawerHeight: e.h,
5856
5857
  placement: e.l,
5857
5858
  summary: e.r
5858
- }), Object.assign({}, h1, G(t));
5859
+ }), Object.assign({}, h1, Q(t));
5859
5860
  };
5860
5861
  function wt(e, t, n) {
5861
5862
  return new Promise(async (c, l) => {
5862
- const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N = G(e), v = [];
5863
+ const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N = Q(e), v = [];
5863
5864
  for (const o of N)
5864
5865
  o.input === "group" ? v.push(...o.params.children) : v.push(o);
5865
5866
  for (const o of v) {
@@ -6015,7 +6016,7 @@ async function gt(e, t = !1, n = 0, c = () => {
6015
6016
  let i = 0;
6016
6017
  const a = [], p = [];
6017
6018
  let _ = [];
6018
- const z = G(e), D = [], N = [];
6019
+ const z = Q(e), D = [], N = [];
6019
6020
  for (const o of z)
6020
6021
  o.input === "group" ? (D.push(...o.params.children), N.push({
6021
6022
  title: o.label,
@@ -6426,7 +6427,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6426
6427
  }), C = M(He()), R = M(""), H = M(!1), O = M([]), L = M([]), ue = De("modules"), $e = (k) => k.id, vt = (k, V) => {
6427
6428
  t("update:rowKeys", {
6428
6429
  keys: k,
6429
- rows: G(V)
6430
+ rows: Q(V)
6430
6431
  });
6431
6432
  }, Ke = (k, V, W) => {
6432
6433
  if (O.value = k, W.action === "check" && L.value.push(W.row), W.action === "uncheck") {
@@ -6438,8 +6439,8 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6438
6439
  W.action === "checkAll" && V.forEach((X) => {
6439
6440
  X && L.value.push(X);
6440
6441
  }), W.action === "uncheckAll" && (L.value = [], O.value = []), t("update:rowKeys", {
6441
- keys: G(O.value),
6442
- rows: G(L.value)
6442
+ keys: Q(O.value),
6443
+ rows: Q(L.value)
6443
6444
  });
6444
6445
  }, kt = (k) => {
6445
6446
  const V = e.summary || C.value.summary;
@@ -6447,7 +6448,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6447
6448
  }, ae = (k = !1) => {
6448
6449
  const V = e.id || l.params.id;
6449
6450
  e.enableLoading && (v.value = !0, t("update:loading", !0));
6450
- const W = G(F.value);
6451
+ const W = Q(F.value);
6451
6452
  if (k && delete W.orderby, q.value.fetch)
6452
6453
  yn([q.value.fetch], "", W).then((X) => {
6453
6454
  const j = vn(X);
@@ -6596,13 +6597,13 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6596
6597
  }
6597
6598
  return { form: X, data: Y };
6598
6599
  }, cn = (k, V) => {
6599
- const W = G(k.onClick), X = e.id || l.params.id;
6600
+ const W = Q(k.onClick), X = e.id || l.params.id;
6600
6601
  if (k.disabled) {
6601
6602
  if (typeof k.disabled == "string") {
6602
6603
  const j = new Function("rowData", "rowIndex", k.disabled);
6603
6604
  k.disabled = (Y, le) => j(Y, le) || ot(k.key);
6604
6605
  } else if (typeof k.disabled == "function") {
6605
- const j = G(k);
6606
+ const j = Q(k);
6606
6607
  k.disabled = (Y, le) => j.disabled(Y, le) || ot(k.key);
6607
6608
  }
6608
6609
  } else
@@ -6645,7 +6646,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6645
6646
  }).catch(() => null);
6646
6647
  };
6647
6648
  else if (k.type !== "group" && k.action === "detailInside") {
6648
- const j = G(k.onClick);
6649
+ const j = Q(k.onClick);
6649
6650
  k.onClick = (Y) => {
6650
6651
  D.value?.addAndEdit(
6651
6652
  () => ln(Y, j),
@@ -6656,7 +6657,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6656
6657
  );
6657
6658
  };
6658
6659
  } else if (k.type !== "group" && k.action === "editInside") {
6659
- const j = G(k.onClick);
6660
+ const j = Q(k.onClick);
6660
6661
  k.onClick = (Y) => {
6661
6662
  D.value?.addAndEdit(
6662
6663
  () => ln(Y, j),
@@ -6704,7 +6705,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6704
6705
  }).catch(() => null);
6705
6706
  };
6706
6707
  else if (k.type !== "group" && k.action) {
6707
- const j = G(k.onClick);
6708
+ const j = Q(k.onClick);
6708
6709
  k.onClick = (Y) => {
6709
6710
  let le;
6710
6711
  e.fetch ? le = e.fetch({
@@ -6799,7 +6800,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6799
6800
  }), j = j + 60);
6800
6801
  const Y = e.id || l.params.id;
6801
6802
  if (!p.value && C.value.commonTime && k.push(...Ta()), e.enableAction === !0 && I.value && I.value.length > 0) {
6802
- const le = G(I.value);
6803
+ const le = Q(I.value);
6803
6804
  for (const me of le)
6804
6805
  me.type === "group" ? me.children.forEach((Ae) => {
6805
6806
  cn(Ae, W);
@@ -6895,7 +6896,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6895
6896
  });
6896
6897
  }, Ia = (k) => {
6897
6898
  if (k.type !== "group" && k.optionsType) {
6898
- const V = G(k.onClick);
6899
+ const V = Q(k.onClick);
6899
6900
  k.onClick = () => {
6900
6901
  t("update:suffixes", {
6901
6902
  title: k.buttonText,
@@ -6910,7 +6911,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6910
6911
  });
6911
6912
  };
6912
6913
  } else if (k.type !== "group") {
6913
- const V = G(k.onClick);
6914
+ const V = Q(k.onClick);
6914
6915
  k.onClick = async () => {
6915
6916
  if (V && typeof V == "string") {
6916
6917
  try {
@@ -7098,7 +7099,7 @@ function T1(e, t, n, c, l, i) {
7098
7099
  E(" " + P(e.$t("Common.add")), 1)
7099
7100
  ]),
7100
7101
  _: 1
7101
- }, 8, ["disabled", "onClick"])) : Q("", !0),
7102
+ }, 8, ["disabled", "onClick"])) : G("", !0),
7102
7103
  e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
7103
7104
  key: 1,
7104
7105
  data: e.suffixes,
@@ -7107,7 +7108,7 @@ function T1(e, t, n, c, l, i) {
7107
7108
  size: "medium",
7108
7109
  text: !1
7109
7110
  }
7110
- }, null, 8, ["data"])) : Q("", !0),
7111
+ }, null, 8, ["data"])) : G("", !0),
7111
7112
  ke(e.$slots, "action")
7112
7113
  ]),
7113
7114
  _: 2
@@ -7184,7 +7185,7 @@ function T1(e, t, n, c, l, i) {
7184
7185
  onEnd: e.handleColumnChange
7185
7186
  }), {
7186
7187
  item: m(({ element: Z }) => [
7187
- Z.hide ? Q("", !0) : (s(), d("div", {
7188
+ Z.hide ? G("", !0) : (s(), d("div", {
7188
7189
  key: Z.key,
7189
7190
  class: "uz-table-sort"
7190
7191
  }, [
@@ -7218,7 +7219,7 @@ function T1(e, t, n, c, l, i) {
7218
7219
  }, 16, ["modelValue", "onEnd"])
7219
7220
  ]),
7220
7221
  _: 1
7221
- })) : Q("", !0),
7222
+ })) : G("", !0),
7222
7223
  e.addFetch && e.tableOption.addButton ? (s(), B(p, {
7223
7224
  key: 1,
7224
7225
  secondary: "",
@@ -7237,7 +7238,7 @@ function T1(e, t, n, c, l, i) {
7237
7238
  E(" " + P(e.$t("Common.add")), 1)
7238
7239
  ]),
7239
7240
  _: 1
7240
- }, 8, ["disabled", "onClick"])) : Q("", !0),
7241
+ }, 8, ["disabled", "onClick"])) : G("", !0),
7241
7242
  e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
7242
7243
  key: 2,
7243
7244
  data: e.suffixes,
@@ -7246,7 +7247,7 @@ function T1(e, t, n, c, l, i) {
7246
7247
  size: "medium",
7247
7248
  text: !1
7248
7249
  }
7249
- }, null, 8, ["data"])) : Q("", !0),
7250
+ }, null, 8, ["data"])) : G("", !0),
7250
7251
  ke(e.$slots, "action")
7251
7252
  ]),
7252
7253
  _: 2
@@ -7328,7 +7329,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7328
7329
  return;
7329
7330
  D.value = !0;
7330
7331
  const R = await S(C);
7331
- let H = G(C).map((O, L) => ({
7332
+ let H = Q(C).map((O, L) => ({
7332
7333
  ...O,
7333
7334
  ...R[L]
7334
7335
  }));
@@ -7357,7 +7358,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7357
7358
  }, F = (C) => C.delete ? "uz-table-child-delete" : "", K = async (C) => {
7358
7359
  e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(C);
7359
7360
  const { tableColumns: R, tableWidth: H } = await gt(
7360
- G(C ?? e.item.params.columns),
7361
+ Q(C ?? e.item.params.columns),
7361
7362
  !0,
7362
7363
  e.status,
7363
7364
  () => o.value.child,
@@ -7448,7 +7449,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7448
7449
  }
7449
7450
  return [];
7450
7451
  }, ne = async () => {
7451
- h.value = "", o.value.child.push(G(f.value)), be(() => {
7452
+ h.value = "", o.value.child.push(Q(f.value)), be(() => {
7452
7453
  U();
7453
7454
  });
7454
7455
  }, T = async () => {
@@ -7505,7 +7506,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7505
7506
  // },
7506
7507
  onEnd: ({ oldIndex: R, newIndex: H }) => {
7507
7508
  _.value?.destroy(), _.value = null, N.value = !1;
7508
- let O = G(o.value.child);
7509
+ let O = Q(o.value.child);
7509
7510
  const L = O.splice(R, 1)[0];
7510
7511
  O.splice(H, 0, L), O = O.map((ue, $e) => ({
7511
7512
  ...ue,
@@ -7575,10 +7576,10 @@ function R1(e, t, n, c, l, i) {
7575
7576
  r("div", V1, [
7576
7577
  r("div", U1, [
7577
7578
  E(P(e.item.label) + " ", 1),
7578
- e.item.form.rule.required ? (s(), d("span", j1, "  * ")) : Q("", !0)
7579
+ e.item.form.rule.required ? (s(), d("span", j1, "  * ")) : G("", !0)
7579
7580
  ]),
7580
7581
  r("div", A1, [
7581
- (s(!0), d(se, null, we(e.suffixes, (v) => (s(), B(_, {
7582
+ e.status !== 2 ? (s(!0), d(se, { key: 0 }, we(e.suffixes, (v) => (s(), B(_, {
7582
7583
  key: v.key,
7583
7584
  type: v.color,
7584
7585
  secondary: "",
@@ -7603,9 +7604,9 @@ function R1(e, t, n, c, l, i) {
7603
7604
  ]),
7604
7605
  key: "0"
7605
7606
  } : void 0
7606
- ]), 1032, ["type", "onClick"]))), 128)),
7607
+ ]), 1032, ["type", "onClick"]))), 128)) : G("", !0),
7607
7608
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7608
- key: 0,
7609
+ key: 1,
7609
7610
  type: "success",
7610
7611
  secondary: "",
7611
7612
  onClick: e.onAddFormData
@@ -7622,9 +7623,9 @@ function R1(e, t, n, c, l, i) {
7622
7623
  t[0] || (t[0] = E(" 从数据新增 ", -1))
7623
7624
  ]),
7624
7625
  _: 1
7625
- }, 8, ["onClick"])) : Q("", !0),
7626
+ }, 8, ["onClick"])) : G("", !0),
7626
7627
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7627
- key: 1,
7628
+ key: 2,
7628
7629
  type: "success",
7629
7630
  secondary: "",
7630
7631
  onClick: e.onAdd
@@ -7641,7 +7642,7 @@ function R1(e, t, n, c, l, i) {
7641
7642
  t[1] || (t[1] = E(" 新增 ", -1))
7642
7643
  ]),
7643
7644
  _: 1
7644
- }, 8, ["onClick"])) : Q("", !0)
7645
+ }, 8, ["onClick"])) : G("", !0)
7645
7646
  ])
7646
7647
  ]),
7647
7648
  t[4] || (t[4] = r("div", { class: "uz-br" }, null, -1)),
@@ -7666,7 +7667,7 @@ function R1(e, t, n, c, l, i) {
7666
7667
  "row-class-name": e.rowClassName,
7667
7668
  "scrollbar-props": { size: 8, trigger: "none" },
7668
7669
  remote: ""
7669
- }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : Q("", !0),
7670
+ }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : G("", !0),
7670
7671
  r("div", O1, [
7671
7672
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7672
7673
  key: 0,
@@ -7686,7 +7687,7 @@ function R1(e, t, n, c, l, i) {
7686
7687
  t[2] || (t[2] = E(" 从数据新增 ", -1))
7687
7688
  ]),
7688
7689
  _: 1
7689
- }, 8, ["onClick"])) : Q("", !0),
7690
+ }, 8, ["onClick"])) : G("", !0),
7690
7691
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7691
7692
  key: 1,
7692
7693
  type: "success",
@@ -7705,7 +7706,7 @@ function R1(e, t, n, c, l, i) {
7705
7706
  t[3] || (t[3] = E(" 新增 ", -1))
7706
7707
  ]),
7707
7708
  _: 1
7708
- }, 8, ["onClick"])) : Q("", !0)
7709
+ }, 8, ["onClick"])) : G("", !0)
7709
7710
  ])
7710
7711
  ]),
7711
7712
  _: 1
@@ -7739,7 +7740,7 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
7739
7740
  }
7740
7741
  }, z = async (N) => {
7741
7742
  const { tableColumns: v, tableWidth: o } = await gt(
7742
- G(e.item.params.columns),
7743
+ Q(e.item.params.columns),
7743
7744
  !0,
7744
7745
  2,
7745
7746
  () => a.value,
@@ -8181,7 +8182,7 @@ function o0(e, t, n, c, l, i) {
8181
8182
  ), {
8182
8183
  key: 0,
8183
8184
  class: "mobile"
8184
- })) : Q("", !0)
8185
+ })) : G("", !0)
8185
8186
  ], 64)) : (s(), d(se, { key: 1 }, [
8186
8187
  r("div", {
8187
8188
  class: ie(["uz-table-mobile-group-title", a.lineBreak ? "line-break" : ""])
@@ -8289,7 +8290,7 @@ function c0(e, t, n, c, l, i) {
8289
8290
  "page-size": e.tableQueries.query.pageSize,
8290
8291
  size: "large"
8291
8292
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8292
- ])) : Q("", !0)
8293
+ ])) : G("", !0)
8293
8294
  ]),
8294
8295
  _: 1
8295
8296
  }, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (s(), B(N, {
@@ -8331,7 +8332,7 @@ function c0(e, t, n, c, l, i) {
8331
8332
  "page-size": e.tableQueries.query.pageSize,
8332
8333
  size: "large"
8333
8334
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8334
- ])) : Q("", !0)
8335
+ ])) : G("", !0)
8335
8336
  ]),
8336
8337
  _: 1
8337
8338
  }, 8, ["value", "style", "onUpdate:value"])) : (s(), d("div", {
@@ -8363,7 +8364,7 @@ function c0(e, t, n, c, l, i) {
8363
8364
  "page-size": e.tableQueries.query.pageSize,
8364
8365
  size: "large"
8365
8366
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8366
- ])) : Q("", !0)
8367
+ ])) : G("", !0)
8367
8368
  ], 4));
8368
8369
  }
8369
8370
  const u0 = /* @__PURE__ */ w(a0, [["render", c0], ["__scopeId", "data-v-70b54e3b"]]), J = At({
@@ -8926,7 +8927,7 @@ function tm(e, t, n) {
8926
8927
  refetch: S
8927
8928
  };
8928
8929
  }
8929
- const x0 = "0.1.12";
8930
+ const x0 = "0.1.13";
8930
8931
  let _a;
8931
8932
  async function $a() {
8932
8933
  const e = await fetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },