@utogether/utils 3.0.0-beta.31 → 3.0.0-beta.33

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.
@@ -28,5 +28,6 @@ declare class localforageProxy implements ProxyStorage {
28
28
  }
29
29
  export declare const storageSession: sessionStorageProxy;
30
30
  export declare const storageLocal: localStorageProxy;
31
+ /** 文档结束 */
31
32
  export declare const dbstorage: localforageProxy;
32
33
  export {};
package/dist/utils.es.js CHANGED
@@ -1,6 +1,6 @@
1
- var U = Object.defineProperty;
2
- var j = (a, l, o) => l in a ? U(a, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[l] = o;
3
- var x = (a, l, o) => j(a, typeof l != "symbol" ? l + "" : l, o);
1
+ var j = Object.defineProperty;
2
+ var U = (a, l, o) => l in a ? j(a, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[l] = o;
3
+ var x = (a, l, o) => U(a, typeof l != "symbol" ? l + "" : l, o);
4
4
  import { createVNode, resolveComponent, mergeProps, isVNode, ref, shallowRef, unref, getCurrentInstance, onBeforeUnmount, reactive, watchEffect, isRef } from "vue";
5
5
  import dayjs from "dayjs";
6
6
  import XEUtils, { isArray, findTree, isEmpty, isObject, isPlainObject, isUndefined, isFunction, isString, clone, merge, has } from "xe-utils";
@@ -69,7 +69,12 @@ class localforageProxy {
69
69
  this.storage.clear();
70
70
  }
71
71
  }
72
- const storageSession = new sessionStorageProxy(sessionStorage), storageLocal = new localStorageProxy(localStorage), dbstorage = new localforageProxy();
72
+ let window$1;
73
+ window$1 || (window$1 = {
74
+ sessionStorage: {},
75
+ localStorage: {}
76
+ });
77
+ const storageSession = new sessionStorageProxy(window$1 == null ? void 0 : window$1.sessionStorage), storageLocal = new localStorageProxy(window$1 == null ? void 0 : window$1.localStorage), dbstorage = new localforageProxy();
73
78
  /*! typescript-cookie v1.0.6 | MIT */
74
79
  const encodeName = (a) => encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), encodeValue = (a) => encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), decodeName = decodeURIComponent, decodeValue = (a) => (a[0] === '"' && (a = a.slice(1, -1)), a.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
75
80
  function stringifyAttributes(a) {
@@ -206,7 +211,7 @@ const VxetableRender = (VXETable, {
206
211
  } = t, {
207
212
  loading: n = !1,
208
213
  multiple: f,
209
- mapField: u
214
+ mapField: b
210
215
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
211
216
  m.setDefaultValue(i, h, r.field);
212
217
  function M(V) {
@@ -222,7 +227,7 @@ const VxetableRender = (VXETable, {
222
227
  v != null && v.input && v.input(l, V);
223
228
  }
224
229
  function A() {
225
- m.clear(h, r.field, u, v, "row");
230
+ m.clear(h, r.field, b, v, "row");
226
231
  }
227
232
  function k() {
228
233
  !e.length && M(""), v != null && v.focus && v.focus(l, r.field);
@@ -266,7 +271,7 @@ const VxetableRender = (VXETable, {
266
271
  } = t, {
267
272
  loading: n = !1,
268
273
  multiple: f,
269
- mapField: u
274
+ mapField: b
270
275
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
271
276
  m.setDefaultValue(i, h, r.field);
272
277
  function M(V) {
@@ -282,7 +287,7 @@ const VxetableRender = (VXETable, {
282
287
  v != null && v.input && v.input(l, V);
283
288
  }
284
289
  function A() {
285
- m.clear(h, r.field, u, v, "row");
290
+ m.clear(h, r.field, b, v, "row");
286
291
  }
287
292
  function k() {
288
293
  !e.length && M(""), v != null && v.focus && v.focus(l, r.field);
@@ -340,7 +345,7 @@ const VxetableRender = (VXETable, {
340
345
  } = t, {
341
346
  mapField: n,
342
347
  multiple: f,
343
- loading: u = !1
348
+ loading: b = !1
344
349
  } = i, m = useComponent(), s = f ? `_${r}` : r;
345
350
  m.setDefaultValue(i, h, r);
346
351
  async function M(V) {
@@ -368,7 +373,7 @@ const VxetableRender = (VXETable, {
368
373
  clearable: !0,
369
374
  style: "width: 100%",
370
375
  placeholder: "请录入关键字搜索",
371
- loading: u,
376
+ loading: b,
372
377
  "remote-method": M
373
378
  }, i, {
374
379
  onFocus: () => k(),
@@ -442,16 +447,16 @@ const VxetableRender = (VXETable, {
442
447
  } = t, {
443
448
  multiple: n,
444
449
  mapField: f
445
- } = i, u = useComponent(), m = n ? `_${r.field}` : r.field;
446
- u.setDefaultValue(i, h, r.field);
450
+ } = i, b = useComponent(), m = n ? `_${r.field}` : r.field;
451
+ b.setDefaultValue(i, h, r.field);
447
452
  function s(p) {
448
- u.selectChange(p, h, r.field, a, {
453
+ b.selectChange(p, h, r.field, a, {
449
454
  column: r,
450
455
  datasource: "row"
451
456
  });
452
457
  }
453
458
  function M() {
454
- u.clear(h, r.field, f, v, "row");
459
+ b.clear(h, r.field, f, v, "row");
455
460
  }
456
461
  return [createVNode(resolveComponent("el-select"), mergeProps({
457
462
  modelValue: h[m],
@@ -486,7 +491,7 @@ const VxetableRender = (VXETable, {
486
491
  extLabel: n
487
492
  } = t, {
488
493
  multiple: f,
489
- mapField: u
494
+ mapField: b
490
495
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
491
496
  m.setDefaultValue(i, h, r.field);
492
497
  function M(y) {
@@ -496,7 +501,7 @@ const VxetableRender = (VXETable, {
496
501
  });
497
502
  }
498
503
  function p() {
499
- m.clear(h, r.field, u, v, "row");
504
+ m.clear(h, r.field, b, v, "row");
500
505
  }
501
506
  return [createVNode(resolveComponent("el-select"), mergeProps({
502
507
  modelValue: h[s],
@@ -550,8 +555,8 @@ const VxetableRender = (VXETable, {
550
555
  value: d = "value"
551
556
  } = t, n = useComponent(), {
552
557
  mapField: f,
553
- multiple: u
554
- } = i, m = u ? `_${r}` : r;
558
+ multiple: b
559
+ } = i, m = b ? `_${r}` : r;
555
560
  n.setDefaultValue(i, h, r);
556
561
  function s(p) {
557
562
  n.selectChange(p, h, r, a, {
@@ -593,7 +598,7 @@ const VxetableRender = (VXETable, {
593
598
  t && (o[h] = t);
594
599
  function Z(n, f) {
595
600
  const {
596
- mapField: u,
601
+ mapField: b,
597
602
  field: m,
598
603
  displayName: s,
599
604
  multiple: M
@@ -602,8 +607,8 @@ const VxetableRender = (VXETable, {
602
607
  if (M) {
603
608
  const y = {};
604
609
  o[s || m] = n.reduce((A, k) => {
605
- for (const V in u)
606
- y[V] = A ? y[V] + "," + k[u[V]] : k[u[V]];
610
+ for (const V in b)
611
+ y[V] = A ? y[V] + "," + k[b[V]] : k[b[V]];
607
612
  return A = A ? A + "," + k[s || m] : k[s || m], A;
608
613
  }, ""), Object.assign(o, y);
609
614
  }
@@ -611,8 +616,8 @@ const VxetableRender = (VXETable, {
611
616
  const y = {
612
617
  [s || m]: n[f || s || m]
613
618
  };
614
- for (const A in u)
615
- y[A] = n[u[A]];
619
+ for (const A in b)
620
+ y[A] = n[b[A]];
616
621
  Object.assign(o, y);
617
622
  }
618
623
  const p = {
@@ -646,12 +651,12 @@ const VxetableRender = (VXETable, {
646
651
  const {
647
652
  mapField: n,
648
653
  field: f,
649
- displayName: u,
654
+ displayName: b,
650
655
  multiple: m
651
656
  } = r;
652
657
  if (!m) {
653
658
  const M = {
654
- [u || f]: Z[d || u || f]
659
+ [b || f]: Z[d || b || f]
655
660
  };
656
661
  for (const p in n)
657
662
  M[p] = Z[n[p]];
@@ -689,12 +694,12 @@ const VxetableRender = (VXETable, {
689
694
  const {
690
695
  mapField: n,
691
696
  field: f,
692
- displayName: u,
697
+ displayName: b,
693
698
  multiple: m
694
699
  } = r;
695
700
  if (!m) {
696
701
  const M = {
697
- [u || f]: Z[d || u || f]
702
+ [b || f]: Z[d || b || f]
698
703
  };
699
704
  for (const p in n)
700
705
  M[p] = Z[n[p]];
@@ -1044,7 +1049,7 @@ const VxetableRender = (VXETable, {
1044
1049
  fetchField: d,
1045
1050
  url: n,
1046
1051
  defaultParams: f = {},
1047
- method: u = "get"
1052
+ method: b = "get"
1048
1053
  } = v, m = getCookieParam(), s = Object.assign({
1049
1054
  pageSize: 20,
1050
1055
  pageNum: 1,
@@ -1056,7 +1061,7 @@ const VxetableRender = (VXETable, {
1056
1061
  if (v.loading) return;
1057
1062
  let M;
1058
1063
  try {
1059
- t.length = 0, v.loading = !0, M = await serviceApi[u](n, s), Z != null && Z.filterMethod ? t.push(...Z.filterMethod(M.list || M)) : M && (M.list ? t.push(...M.list) : t.push(...M));
1064
+ t.length = 0, v.loading = !0, M = await serviceApi[b](n, s), Z != null && Z.filterMethod ? t.push(...Z.filterMethod(M.list || M)) : M && (M.list ? t.push(...M.list) : t.push(...M));
1060
1065
  } finally {
1061
1066
  v.loading = !1;
1062
1067
  }
@@ -1068,21 +1073,21 @@ const VxetableRender = (VXETable, {
1068
1073
  } = v, {
1069
1074
  options: n,
1070
1075
  props: f,
1071
- optionProps: u = {},
1076
+ optionProps: b = {},
1072
1077
  events: m
1073
1078
  } = t, s = {
1074
1079
  [d]: e,
1075
1080
  field: i
1076
1081
  };
1077
1082
  e[i] = null, !isEmpty(r) && (f != null && f.multiple) ? (e[i] = r.join(","), Z = [], r.forEach((M) => {
1078
- const p = n.find((y) => M === y[u == null ? void 0 : u.value]);
1083
+ const p = n.find((y) => M === y[b == null ? void 0 : b.value]);
1079
1084
  p && !isEmpty(f.mapField) && isObject(f.mapField) && Object.keys(f.mapField).forEach((y) => {
1080
1085
  const A = p[f.mapField[y]], k = e[y] ? e[y].toString() : "";
1081
1086
  e[y] = k && !k.includes(A) ? `${k},${A}` : A;
1082
1087
  }), p && Z.push(p);
1083
1088
  }), Object.assign(s, {
1084
1089
  options: Z
1085
- })) : (e[i] = f != null && f.multiple ? null : r, Z = n.find((M) => r === M[u == null ? void 0 : u.value]), !isEmpty(f.mapField) && isObject(f.mapField) && Object.keys(f.mapField).forEach((M) => {
1090
+ })) : (e[i] = f != null && f.multiple ? null : r, Z = n.find((M) => r === M[b == null ? void 0 : b.value]), !isEmpty(f.mapField) && isObject(f.mapField) && Object.keys(f.mapField).forEach((M) => {
1086
1091
  e[M] = Z ? Z[f.mapField[M]] : null;
1087
1092
  }), Object.assign(s, {
1088
1093
  option: Z
@@ -1174,10 +1179,10 @@ function useWatermark(a = ref(document.body)) {
1174
1179
  d && (Z && d.removeChild(Z), removeResizeListener(d, l));
1175
1180
  };
1176
1181
  function e(Z, d) {
1177
- const n = document.createElement("canvas"), f = 260, u = 180;
1178
- Object.assign(n, { width: f, height: u });
1182
+ const n = document.createElement("canvas"), f = 260, b = 180;
1183
+ Object.assign(n, { width: f, height: b });
1179
1184
  const m = n.getContext("2d");
1180
- return m && (m.rotate(-20 * Math.PI / 120), m.font = (d == null ? void 0 : d.font) ?? "15px Reggae One", m.fillStyle = (d == null ? void 0 : d.fillStyle) ?? "rgba(180, 180, 180, 0.75)", m.textAlign = "left", m.textBaseline = "middle", m.fillText(Z, f / 20, u)), n.toDataURL("image/png");
1185
+ return m && (m.rotate(-20 * Math.PI / 120), m.font = (d == null ? void 0 : d.font) ?? "15px Reggae One", m.fillStyle = (d == null ? void 0 : d.fillStyle) ?? "rgba(180, 180, 180, 0.75)", m.textAlign = "left", m.textBaseline = "middle", m.fillText(Z, f / 20, b)), n.toDataURL("image/png");
1181
1186
  }
1182
1187
  function i(Z = {}) {
1183
1188
  const d = unref(h);
@@ -1193,8 +1198,8 @@ function useWatermark(a = ref(document.body)) {
1193
1198
  h.value = n, n.id = o, n.style.pointerEvents = "none", n.style.top = "0px", n.style.left = "0px", n.style.position = "absolute", n.style.zIndex = "100000";
1194
1199
  const f = unref(a);
1195
1200
  if (!f) return o;
1196
- const { clientHeight: u, clientWidth: m } = f;
1197
- return i({ str: Z, width: m, height: u, attr: d }), f.appendChild(n), o;
1201
+ const { clientHeight: b, clientWidth: m } = f;
1202
+ return i({ str: Z, width: m, height: b, attr: d }), f.appendChild(n), o;
1198
1203
  };
1199
1204
  function v(Z, d) {
1200
1205
  t(Z, d), addResizeListener(document.documentElement, l), getCurrentInstance() && onBeforeUnmount(() => {
@@ -1217,9 +1222,9 @@ function useAttrs(a = {}) {
1217
1222
  }), r;
1218
1223
  }
1219
1224
  const useRender = () => {
1220
- const a = { value: "dictCode", label: "dictName" }, l = (c, b) => {
1225
+ const a = { value: "dictCode", label: "dictName" }, l = (c, H) => {
1221
1226
  var N;
1222
- const H = w(b);
1227
+ const u = w(H);
1223
1228
  let C = {
1224
1229
  clearable: !0,
1225
1230
  disabled: !1,
@@ -1234,19 +1239,19 @@ const useRender = () => {
1234
1239
  options: D,
1235
1240
  props: C,
1236
1241
  defaultValue: L,
1237
- events: H
1242
+ events: u
1238
1243
  };
1239
- }, o = (c, b) => {
1240
- const H = w(b);
1244
+ }, o = (c, H) => {
1245
+ const u = w(H);
1241
1246
  return {
1242
1247
  name: "#SuSelect",
1243
1248
  optionProps: (c == null ? void 0 : c.optionProps) || { label: "label", value: "value" },
1244
1249
  props: c == null ? void 0 : c.props,
1245
1250
  options: (c == null ? void 0 : c.options) || [],
1246
- events: H
1251
+ events: u
1247
1252
  };
1248
- }, h = (c, b) => {
1249
- const H = {
1253
+ }, h = (c, H) => {
1254
+ const u = {
1250
1255
  optionProps: { extLabel: "userName", value: "employeeName" },
1251
1256
  props: {
1252
1257
  attrs: { disabled: c == null ? void 0 : c.disabled },
@@ -1258,9 +1263,9 @@ const useRender = () => {
1258
1263
  fetchField: "employeeName"
1259
1264
  }
1260
1265
  };
1261
- return o(H, b);
1266
+ return o(u, H);
1262
1267
  }, r = (c) => {
1263
- const b = {
1268
+ const H = {
1264
1269
  optionProps: { extLabel: "userName", value: "name" },
1265
1270
  props: {
1266
1271
  code: "sys/listUsers",
@@ -1269,9 +1274,9 @@ const useRender = () => {
1269
1274
  mapField: c == null ? void 0 : c.mapField
1270
1275
  }
1271
1276
  };
1272
- return o(b);
1273
- }, e = (c, b) => {
1274
- const H = {
1277
+ return o(H);
1278
+ }, e = (c, H) => {
1279
+ const u = {
1275
1280
  label: "organizationName",
1276
1281
  value: (c == null ? void 0 : c.field) || "organizationName"
1277
1282
  }, C = {
@@ -1286,12 +1291,12 @@ const useRender = () => {
1286
1291
  return Object.assign(C.mapField, L, (c == null ? void 0 : c.mapField) || {}), {
1287
1292
  name: "#SuSelect",
1288
1293
  props: C,
1289
- optionProps: H,
1294
+ optionProps: u,
1290
1295
  options: [],
1291
- events: w(b)
1296
+ events: w(H)
1292
1297
  };
1293
- }, i = (c, b) => {
1294
- const H = {
1298
+ }, i = (c, H) => {
1299
+ const u = {
1295
1300
  label: "orgName",
1296
1301
  value: (c == null ? void 0 : c.field) || "orgName"
1297
1302
  }, C = {
@@ -1303,42 +1308,46 @@ const useRender = () => {
1303
1308
  return Object.assign(C.mapField, L, (c == null ? void 0 : c.mapField) || {}), {
1304
1309
  name: "#SuSelect",
1305
1310
  props: C,
1306
- optionProps: H,
1311
+ optionProps: u,
1307
1312
  options: [],
1308
- events: w(b)
1313
+ events: w(H)
1309
1314
  };
1310
- }, t = (c, b) => {
1311
- const H = Object.assign({ disabled: !1 }, c), C = H == null ? void 0 : H.defaultValue;
1315
+ }, t = (c, H) => {
1316
+ const u = Object.assign({ disabled: !1 }, c), C = u == null ? void 0 : u.defaultValue;
1312
1317
  return {
1313
1318
  name: "VxeInput",
1314
- props: H,
1319
+ props: u,
1315
1320
  defaultValue: C,
1316
- events: w(b)
1321
+ events: w(H)
1317
1322
  };
1318
- }, v = (c, b) => {
1319
- const H = Object.assign({ disabled: !1, rows: 3 }, c), C = H == null ? void 0 : H.defaultValue;
1323
+ }, v = (c, H) => {
1324
+ const u = Object.assign({ disabled: !1, rows: 3 }, c), C = u == null ? void 0 : u.defaultValue;
1320
1325
  return {
1321
1326
  name: "#textarea",
1322
- props: H,
1327
+ props: u,
1323
1328
  defaultValue: C,
1324
- events: w(b)
1329
+ events: w(H)
1325
1330
  };
1326
- }, Z = (c, b) => {
1327
- const H = "VxeCheckbox", { defaultValue: C, options: L, props: S } = n(c);
1328
- return { name: H, defaultValue: C, options: L, props: S, events: w(b) };
1329
- }, d = (c, b) => {
1330
- const H = "VxeRadio", { defaultValue: C, options: L, props: S } = n(c);
1331
- return { name: H, defaultValue: C, options: L, props: S, events: w(b) };
1331
+ }, Z = (c, H) => {
1332
+ const u = "VxeCheckboxGroup", { defaultValue: C, options: L, props: S } = n(c);
1333
+ return { name: u, defaultValue: C, options: L, props: S, events: w(H) };
1334
+ }, d = (c, H) => {
1335
+ const u = "VxeRadioGroup", { defaultValue: C, options: L, props: S } = n(c);
1336
+ return { name: u, defaultValue: C, options: L, props: S, events: w(H) };
1332
1337
  }, n = (c) => {
1333
1338
  var I;
1334
- let b = { disabled: !1 }, H;
1339
+ let H = { disabled: !1 }, u;
1335
1340
  const C = storageLocal.getItem("kLov");
1336
1341
  let L = "";
1337
- isObject(c) ? (H = c.defaultValue, L = c.code, b = Object.assign(b, c || {})) : isString(c) && (L = c);
1342
+ isObject(c) ? (u = c.defaultValue, L = c.code, c.options ? H = Object.assign(H, c.props || {}) : H = Object.assign(H, c || {})) : isString(c) && (L = c);
1338
1343
  const S = L ? (I = C[L]) == null ? void 0 : I.children.map((D) => ({ label: D.dictName, value: D.dictCode })) : [];
1339
- return { props: b, defaultValue: H, options: S };
1340
- }, f = (c, b) => {
1341
- const H = w(b);
1344
+ return {
1345
+ props: H,
1346
+ defaultValue: u,
1347
+ options: isObject(c) && c.options ? c.options : S
1348
+ };
1349
+ }, f = (c, H) => {
1350
+ const u = w(H);
1342
1351
  return {
1343
1352
  name: "VxeNumberInput",
1344
1353
  props: Object.assign(
@@ -1346,13 +1355,13 @@ const useRender = () => {
1346
1355
  c || {}
1347
1356
  ),
1348
1357
  defaultValue: c == null ? void 0 : c.defaultValue,
1349
- events: H
1358
+ events: u
1350
1359
  };
1351
- }, u = (c, b) => {
1352
- const H = w(b), C = "yyyy-MM-dd HH:mm:ss", L = c == null ? void 0 : c.defaultValue;
1353
- return { name: "VxeDatePicker", props: Object.assign({ type: "date", valueFormat: C, clearable: !0 }, c || {}), defaultValue: L, events: H };
1354
- }, m = (c, b) => {
1355
- const H = w(b), C = "yyyy-MM-dd HH:mm:ss", L = c == null ? void 0 : c.startValue, S = c == null ? void 0 : c.endValue, I = c == null ? void 0 : c.startField, D = c == null ? void 0 : c.endField, T = Object.assign({ type: "date", valueFormat: C, clearable: !0 }, c || {});
1360
+ }, b = (c, H) => {
1361
+ const u = w(H), C = "yyyy-MM-dd HH:mm:ss", L = c == null ? void 0 : c.defaultValue;
1362
+ return { name: "VxeDatePicker", props: Object.assign({ type: "date", valueFormat: C, clearable: !0 }, c || {}), defaultValue: L, events: u };
1363
+ }, m = (c, H) => {
1364
+ const u = w(H), C = "yyyy-MM-dd HH:mm:ss", L = c == null ? void 0 : c.startValue, S = c == null ? void 0 : c.endValue, I = c == null ? void 0 : c.startField, D = c == null ? void 0 : c.endField, T = Object.assign({ type: "date", valueFormat: C, clearable: !0 }, c || {});
1356
1365
  return {
1357
1366
  name: "VxeDateRangePicker",
1358
1367
  startField: I,
@@ -1360,13 +1369,13 @@ const useRender = () => {
1360
1369
  startValue: L,
1361
1370
  endValue: S,
1362
1371
  props: T,
1363
- events: H
1372
+ events: u
1364
1373
  };
1365
- }, s = (c, b) => {
1366
- const H = w(b);
1367
- return { name: "#lov", props: Object.assign({}, c || {}), events: H };
1368
- }, M = (c, b) => {
1369
- const H = w(b), C = (c == null ? void 0 : c.optionProps) || {
1374
+ }, s = (c, H) => {
1375
+ const u = w(H);
1376
+ return { name: "#lov", props: Object.assign({}, c || {}), events: u };
1377
+ }, M = (c, H) => {
1378
+ const u = w(H), C = (c == null ? void 0 : c.optionProps) || {
1370
1379
  label: "label",
1371
1380
  value: "value"
1372
1381
  }, L = Object.assign(
@@ -1378,39 +1387,39 @@ const useRender = () => {
1378
1387
  optionProps: C,
1379
1388
  options: (c == null ? void 0 : c.options) || [],
1380
1389
  props: L,
1381
- events: H
1390
+ events: u
1382
1391
  };
1383
- }, p = (c, b) => {
1384
- let H = {
1392
+ }, p = (c, H) => {
1393
+ let u = {
1385
1394
  openLabel: "是",
1386
1395
  closeLabel: "否",
1387
1396
  openValue: "Y",
1388
1397
  closeValue: "N"
1389
1398
  }, C = "Y";
1390
- isObject(c) && !isFunction(c) ? (H = Object.assign(H, c || {}), C = c.defaultValue || C) : !isEmpty(c) && isString(c) && (C = c, H = Object.assign(H, { defaultValue: C }));
1391
- const L = isFunction(c) ? w(c) : w(b);
1392
- return { name: "VxeSwitch", props: H, defaultValue: C, events: L };
1393
- }, y = (c, b) => ({ name: "#tag", props: { code: c, tagMap: b } }), A = (c, b) => {
1394
- const H = {
1399
+ isObject(c) && !isFunction(c) ? (u = Object.assign(u, c || {}), C = c.defaultValue || C) : !isEmpty(c) && isString(c) && (C = c, u = Object.assign(u, { defaultValue: C }));
1400
+ const L = isFunction(c) ? w(c) : w(H);
1401
+ return { name: "VxeSwitch", props: u, defaultValue: C, events: L };
1402
+ }, y = (c, H) => ({ name: "#tag", props: { code: c, tagMap: H } }), A = (c, H) => {
1403
+ const u = {
1395
1404
  openLabel: "启用",
1396
1405
  closeLabel: "禁用",
1397
1406
  openValue: "1",
1398
1407
  closeValue: "0",
1399
1408
  defaultValue: "1"
1400
1409
  };
1401
- !isFunction(c) && isObject(c) && Object.assign(H, c);
1402
- const C = isFunction(c) ? c : b;
1403
- return p(H, C);
1404
- }, k = () => ({ name: "#iconSelect" }), V = (c = [], b = {}, H) => ({ name: "#treeSelect", sourceData: c, props: b, events: H }), R = (c, b) => {
1405
- const H = w(b);
1410
+ !isFunction(c) && isObject(c) && Object.assign(u, c);
1411
+ const C = isFunction(c) ? c : H;
1412
+ return p(u, C);
1413
+ }, k = () => ({ name: "#iconSelect" }), V = (c = [], H = {}, u) => ({ name: "#treeSelect", sourceData: c, props: H, events: u }), R = (c, H) => {
1414
+ const u = w(H);
1406
1415
  return {
1407
1416
  name: "#area",
1408
1417
  props: { mapField: (c == null ? void 0 : c.mapField) || ["province", "city", "region"] },
1409
- events: H
1418
+ events: u
1410
1419
  };
1411
1420
  }, w = (c) => {
1412
- let b = {};
1413
- return isObject(c) && !isFunction(c) ? b = {
1421
+ let H = {};
1422
+ return isObject(c) && !isFunction(c) ? H = {
1414
1423
  change: (c == null ? void 0 : c.change) || F,
1415
1424
  blur: (c == null ? void 0 : c.blur) || F,
1416
1425
  focus: (c == null ? void 0 : c.focus) || F,
@@ -1420,15 +1429,15 @@ const useRender = () => {
1420
1429
  suffixClick: c == null ? void 0 : c.suffixClick,
1421
1430
  prefixClick: c == null ? void 0 : c.prefixClick,
1422
1431
  filterMethod: c == null ? void 0 : c.filterMethod
1423
- } : c && (b = { change: c }), b;
1424
- }, E = (c, b) => {
1425
- c = c || { fieldType: "sting", mode: "image" };
1426
- const { singleMode: H, mode: C } = c;
1427
- return H && Object.assign(c, {
1432
+ } : c && (H = { change: c }), H;
1433
+ }, E = (c, H) => {
1434
+ c = c || { fieldType: "string", mode: "image" };
1435
+ const { singleMode: u, mode: C } = c;
1436
+ return u && Object.assign(c, {
1428
1437
  multiple: !1,
1429
1438
  limitCount: 1,
1430
1439
  autoHiddenButton: !0
1431
- }), C === "image" && (c.imageTypes = ["jpg", "jpeg", "png", "gif", "apk"]), { name: "#upload", props: c, events: b };
1440
+ }), C === "image" && (c.imageTypes = ["jpg", "jpeg", "png", "gif", "apk"]), { name: "#upload", props: c, events: H };
1432
1441
  };
1433
1442
  function F() {
1434
1443
  }
@@ -1446,7 +1455,7 @@ const useRender = () => {
1446
1455
  renderNumber: f,
1447
1456
  renderLov: s,
1448
1457
  renderSelectLocal: M,
1449
- renderDate: u,
1458
+ renderDate: b,
1450
1459
  renderRangeDate: m,
1451
1460
  renderSwitch: p,
1452
1461
  renderCellTag: y,
@@ -1564,10 +1573,10 @@ const deviceDetection = () => {
1564
1573
  collapseTagsTooltip: !0,
1565
1574
  multiple: !0
1566
1575
  }, t = o.map((Z, d) => {
1567
- var n, f, u;
1576
+ var n, f, b;
1568
1577
  return Z.folding = r ? e && d > 1 : e && d > 2, Z.span = getDateRange(Z) ? 12 : Z.span || 6, Z.code && !Z.itemRender && (Z.itemRender = renderHook.renderDict(Z.code)), Z.itemRender = Z.itemRender || { name: "VxeInput" }, Z.resetValue = Z.itemRender.defaultValue, Z.title = Z.title || `message.${Z.field}`, (Z.multiple || (f = (n = Z.itemRender) == null ? void 0 : n.props) != null && f.multiple) && (Z.itemRender.props = Object.assign(
1569
1578
  i,
1570
- ((u = Z.itemRender) == null ? void 0 : u.props) || {}
1579
+ ((b = Z.itemRender) == null ? void 0 : b.props) || {}
1571
1580
  )), Z;
1572
1581
  }), v = clone(formSearchButtons, !0);
1573
1582
  if (v.collapseNode = e, l && v.itemRender.options.length < 3 && (v.itemRender.options.push(l), v.itemRender.events = l.events), e) {
@@ -2626,9 +2635,9 @@ const http = new SuHttp(), lunarCalendar = {
2626
2635
  const n = /* @__PURE__ */ new Date();
2627
2636
  let f = !1;
2628
2637
  n.getFullYear() === h && n.getMonth() + 1 === r && n.getDate() === e && (f = !0);
2629
- let u = i.getDay();
2630
- const m = this.nStr1[u];
2631
- u === 0 && (u = 7);
2638
+ let b = i.getDay();
2639
+ const m = this.nStr1[b];
2640
+ b === 0 && (b = 7);
2632
2641
  const s = t;
2633
2642
  v = this.leapMonth(t);
2634
2643
  let M = !1;
@@ -2640,7 +2649,7 @@ const http = new SuHttp(), lunarCalendar = {
2640
2649
  e >= V && (w = this.toGanZhi((h - 1900) * 12 + r + 12));
2641
2650
  let E = !1, F;
2642
2651
  V === e && (E = !0, F = this.solarTerm[r * 2 - 2]), R === e && (E = !0, F = this.solarTerm[r * 2 - 1]);
2643
- const c = Date.UTC(h, A, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, b = this.toGanZhi(c + e - 1), H = this.toAstro(r, e), C = h + "-" + r + "-" + e, L = s + "-" + p + "-" + y, S = this.festival, I = this.lFestival, D = r + "-" + e;
2652
+ const c = Date.UTC(h, A, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, H = this.toGanZhi(c + e - 1), u = this.toAstro(r, e), C = h + "-" + r + "-" + e, L = s + "-" + p + "-" + y, S = this.festival, I = this.lFestival, D = r + "-" + e;
2644
2653
  let N = p + "-" + y;
2645
2654
  return p === 12 && y === 29 && this.monthDays(s, p) === 29 && (N = "12-30"), {
2646
2655
  date: C,
@@ -2658,14 +2667,14 @@ const http = new SuHttp(), lunarCalendar = {
2658
2667
  cDay: e,
2659
2668
  gzYear: k,
2660
2669
  gzMonth: w,
2661
- gzDay: b,
2670
+ gzDay: H,
2662
2671
  isToday: f,
2663
2672
  isLeap: M,
2664
- nWeek: u,
2673
+ nWeek: b,
2665
2674
  ncWeek: "星期" + m,
2666
2675
  isTerm: E,
2667
2676
  Term: F,
2668
- astro: H
2677
+ astro: u
2669
2678
  };
2670
2679
  },
2671
2680
  /**
@@ -2694,8 +2703,8 @@ const http = new SuHttp(), lunarCalendar = {
2694
2703
  for (v = 1; v < l; v++)
2695
2704
  Z = this.leapMonth(a), d || Z <= v && Z > 0 && (t += this.leapDays(a), d = !0), t += this.monthDays(a, v);
2696
2705
  h && (t += e);
2697
- const n = Date.UTC(1900, 1, 30, 0, 0, 0), f = new Date((t + o - 31) * 864e5 + n), u = f.getUTCFullYear(), m = f.getUTCMonth() + 1, s = f.getUTCDate();
2698
- return this.solar2lunar(u, m, s);
2706
+ const n = Date.UTC(1900, 1, 30, 0, 0, 0), f = new Date((t + o - 31) * 864e5 + n), b = f.getUTCFullYear(), m = f.getUTCMonth() + 1, s = f.getUTCDate();
2707
+ return this.solar2lunar(b, m, s);
2699
2708
  }
2700
2709
  }, dict = storageLocal.getItem("kLov"), formats = {
2701
2710
  formatDate: {