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

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.
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";
@@ -206,7 +206,7 @@ const VxetableRender = (VXETable, {
206
206
  } = t, {
207
207
  loading: n = !1,
208
208
  multiple: f,
209
- mapField: u
209
+ mapField: b
210
210
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
211
211
  m.setDefaultValue(i, h, r.field);
212
212
  function M(V) {
@@ -222,7 +222,7 @@ const VxetableRender = (VXETable, {
222
222
  v != null && v.input && v.input(l, V);
223
223
  }
224
224
  function A() {
225
- m.clear(h, r.field, u, v, "row");
225
+ m.clear(h, r.field, b, v, "row");
226
226
  }
227
227
  function k() {
228
228
  !e.length && M(""), v != null && v.focus && v.focus(l, r.field);
@@ -266,7 +266,7 @@ const VxetableRender = (VXETable, {
266
266
  } = t, {
267
267
  loading: n = !1,
268
268
  multiple: f,
269
- mapField: u
269
+ mapField: b
270
270
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
271
271
  m.setDefaultValue(i, h, r.field);
272
272
  function M(V) {
@@ -282,7 +282,7 @@ const VxetableRender = (VXETable, {
282
282
  v != null && v.input && v.input(l, V);
283
283
  }
284
284
  function A() {
285
- m.clear(h, r.field, u, v, "row");
285
+ m.clear(h, r.field, b, v, "row");
286
286
  }
287
287
  function k() {
288
288
  !e.length && M(""), v != null && v.focus && v.focus(l, r.field);
@@ -340,7 +340,7 @@ const VxetableRender = (VXETable, {
340
340
  } = t, {
341
341
  mapField: n,
342
342
  multiple: f,
343
- loading: u = !1
343
+ loading: b = !1
344
344
  } = i, m = useComponent(), s = f ? `_${r}` : r;
345
345
  m.setDefaultValue(i, h, r);
346
346
  async function M(V) {
@@ -368,7 +368,7 @@ const VxetableRender = (VXETable, {
368
368
  clearable: !0,
369
369
  style: "width: 100%",
370
370
  placeholder: "请录入关键字搜索",
371
- loading: u,
371
+ loading: b,
372
372
  "remote-method": M
373
373
  }, i, {
374
374
  onFocus: () => k(),
@@ -442,16 +442,16 @@ const VxetableRender = (VXETable, {
442
442
  } = t, {
443
443
  multiple: n,
444
444
  mapField: f
445
- } = i, u = useComponent(), m = n ? `_${r.field}` : r.field;
446
- u.setDefaultValue(i, h, r.field);
445
+ } = i, b = useComponent(), m = n ? `_${r.field}` : r.field;
446
+ b.setDefaultValue(i, h, r.field);
447
447
  function s(p) {
448
- u.selectChange(p, h, r.field, a, {
448
+ b.selectChange(p, h, r.field, a, {
449
449
  column: r,
450
450
  datasource: "row"
451
451
  });
452
452
  }
453
453
  function M() {
454
- u.clear(h, r.field, f, v, "row");
454
+ b.clear(h, r.field, f, v, "row");
455
455
  }
456
456
  return [createVNode(resolveComponent("el-select"), mergeProps({
457
457
  modelValue: h[m],
@@ -486,7 +486,7 @@ const VxetableRender = (VXETable, {
486
486
  extLabel: n
487
487
  } = t, {
488
488
  multiple: f,
489
- mapField: u
489
+ mapField: b
490
490
  } = i, m = useComponent(), s = f ? `_${r.field}` : r.field;
491
491
  m.setDefaultValue(i, h, r.field);
492
492
  function M(y) {
@@ -496,7 +496,7 @@ const VxetableRender = (VXETable, {
496
496
  });
497
497
  }
498
498
  function p() {
499
- m.clear(h, r.field, u, v, "row");
499
+ m.clear(h, r.field, b, v, "row");
500
500
  }
501
501
  return [createVNode(resolveComponent("el-select"), mergeProps({
502
502
  modelValue: h[s],
@@ -550,8 +550,8 @@ const VxetableRender = (VXETable, {
550
550
  value: d = "value"
551
551
  } = t, n = useComponent(), {
552
552
  mapField: f,
553
- multiple: u
554
- } = i, m = u ? `_${r}` : r;
553
+ multiple: b
554
+ } = i, m = b ? `_${r}` : r;
555
555
  n.setDefaultValue(i, h, r);
556
556
  function s(p) {
557
557
  n.selectChange(p, h, r, a, {
@@ -593,7 +593,7 @@ const VxetableRender = (VXETable, {
593
593
  t && (o[h] = t);
594
594
  function Z(n, f) {
595
595
  const {
596
- mapField: u,
596
+ mapField: b,
597
597
  field: m,
598
598
  displayName: s,
599
599
  multiple: M
@@ -602,8 +602,8 @@ const VxetableRender = (VXETable, {
602
602
  if (M) {
603
603
  const y = {};
604
604
  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]];
605
+ for (const V in b)
606
+ y[V] = A ? y[V] + "," + k[b[V]] : k[b[V]];
607
607
  return A = A ? A + "," + k[s || m] : k[s || m], A;
608
608
  }, ""), Object.assign(o, y);
609
609
  }
@@ -611,8 +611,8 @@ const VxetableRender = (VXETable, {
611
611
  const y = {
612
612
  [s || m]: n[f || s || m]
613
613
  };
614
- for (const A in u)
615
- y[A] = n[u[A]];
614
+ for (const A in b)
615
+ y[A] = n[b[A]];
616
616
  Object.assign(o, y);
617
617
  }
618
618
  const p = {
@@ -646,12 +646,12 @@ const VxetableRender = (VXETable, {
646
646
  const {
647
647
  mapField: n,
648
648
  field: f,
649
- displayName: u,
649
+ displayName: b,
650
650
  multiple: m
651
651
  } = r;
652
652
  if (!m) {
653
653
  const M = {
654
- [u || f]: Z[d || u || f]
654
+ [b || f]: Z[d || b || f]
655
655
  };
656
656
  for (const p in n)
657
657
  M[p] = Z[n[p]];
@@ -689,12 +689,12 @@ const VxetableRender = (VXETable, {
689
689
  const {
690
690
  mapField: n,
691
691
  field: f,
692
- displayName: u,
692
+ displayName: b,
693
693
  multiple: m
694
694
  } = r;
695
695
  if (!m) {
696
696
  const M = {
697
- [u || f]: Z[d || u || f]
697
+ [b || f]: Z[d || b || f]
698
698
  };
699
699
  for (const p in n)
700
700
  M[p] = Z[n[p]];
@@ -1044,7 +1044,7 @@ const VxetableRender = (VXETable, {
1044
1044
  fetchField: d,
1045
1045
  url: n,
1046
1046
  defaultParams: f = {},
1047
- method: u = "get"
1047
+ method: b = "get"
1048
1048
  } = v, m = getCookieParam(), s = Object.assign({
1049
1049
  pageSize: 20,
1050
1050
  pageNum: 1,
@@ -1056,7 +1056,7 @@ const VxetableRender = (VXETable, {
1056
1056
  if (v.loading) return;
1057
1057
  let M;
1058
1058
  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));
1059
+ 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
1060
  } finally {
1061
1061
  v.loading = !1;
1062
1062
  }
@@ -1068,21 +1068,21 @@ const VxetableRender = (VXETable, {
1068
1068
  } = v, {
1069
1069
  options: n,
1070
1070
  props: f,
1071
- optionProps: u = {},
1071
+ optionProps: b = {},
1072
1072
  events: m
1073
1073
  } = t, s = {
1074
1074
  [d]: e,
1075
1075
  field: i
1076
1076
  };
1077
1077
  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]);
1078
+ const p = n.find((y) => M === y[b == null ? void 0 : b.value]);
1079
1079
  p && !isEmpty(f.mapField) && isObject(f.mapField) && Object.keys(f.mapField).forEach((y) => {
1080
1080
  const A = p[f.mapField[y]], k = e[y] ? e[y].toString() : "";
1081
1081
  e[y] = k && !k.includes(A) ? `${k},${A}` : A;
1082
1082
  }), p && Z.push(p);
1083
1083
  }), Object.assign(s, {
1084
1084
  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) => {
1085
+ })) : (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
1086
  e[M] = Z ? Z[f.mapField[M]] : null;
1087
1087
  }), Object.assign(s, {
1088
1088
  option: Z
@@ -1174,10 +1174,10 @@ function useWatermark(a = ref(document.body)) {
1174
1174
  d && (Z && d.removeChild(Z), removeResizeListener(d, l));
1175
1175
  };
1176
1176
  function e(Z, d) {
1177
- const n = document.createElement("canvas"), f = 260, u = 180;
1178
- Object.assign(n, { width: f, height: u });
1177
+ const n = document.createElement("canvas"), f = 260, b = 180;
1178
+ Object.assign(n, { width: f, height: b });
1179
1179
  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");
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, b)), n.toDataURL("image/png");
1181
1181
  }
1182
1182
  function i(Z = {}) {
1183
1183
  const d = unref(h);
@@ -1193,8 +1193,8 @@ function useWatermark(a = ref(document.body)) {
1193
1193
  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
1194
  const f = unref(a);
1195
1195
  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;
1196
+ const { clientHeight: b, clientWidth: m } = f;
1197
+ return i({ str: Z, width: m, height: b, attr: d }), f.appendChild(n), o;
1198
1198
  };
1199
1199
  function v(Z, d) {
1200
1200
  t(Z, d), addResizeListener(document.documentElement, l), getCurrentInstance() && onBeforeUnmount(() => {
@@ -1217,9 +1217,9 @@ function useAttrs(a = {}) {
1217
1217
  }), r;
1218
1218
  }
1219
1219
  const useRender = () => {
1220
- const a = { value: "dictCode", label: "dictName" }, l = (c, b) => {
1220
+ const a = { value: "dictCode", label: "dictName" }, l = (c, H) => {
1221
1221
  var N;
1222
- const H = w(b);
1222
+ const u = w(H);
1223
1223
  let C = {
1224
1224
  clearable: !0,
1225
1225
  disabled: !1,
@@ -1234,19 +1234,19 @@ const useRender = () => {
1234
1234
  options: D,
1235
1235
  props: C,
1236
1236
  defaultValue: L,
1237
- events: H
1237
+ events: u
1238
1238
  };
1239
- }, o = (c, b) => {
1240
- const H = w(b);
1239
+ }, o = (c, H) => {
1240
+ const u = w(H);
1241
1241
  return {
1242
1242
  name: "#SuSelect",
1243
1243
  optionProps: (c == null ? void 0 : c.optionProps) || { label: "label", value: "value" },
1244
1244
  props: c == null ? void 0 : c.props,
1245
1245
  options: (c == null ? void 0 : c.options) || [],
1246
- events: H
1246
+ events: u
1247
1247
  };
1248
- }, h = (c, b) => {
1249
- const H = {
1248
+ }, h = (c, H) => {
1249
+ const u = {
1250
1250
  optionProps: { extLabel: "userName", value: "employeeName" },
1251
1251
  props: {
1252
1252
  attrs: { disabled: c == null ? void 0 : c.disabled },
@@ -1258,9 +1258,9 @@ const useRender = () => {
1258
1258
  fetchField: "employeeName"
1259
1259
  }
1260
1260
  };
1261
- return o(H, b);
1261
+ return o(u, H);
1262
1262
  }, r = (c) => {
1263
- const b = {
1263
+ const H = {
1264
1264
  optionProps: { extLabel: "userName", value: "name" },
1265
1265
  props: {
1266
1266
  code: "sys/listUsers",
@@ -1269,9 +1269,9 @@ const useRender = () => {
1269
1269
  mapField: c == null ? void 0 : c.mapField
1270
1270
  }
1271
1271
  };
1272
- return o(b);
1273
- }, e = (c, b) => {
1274
- const H = {
1272
+ return o(H);
1273
+ }, e = (c, H) => {
1274
+ const u = {
1275
1275
  label: "organizationName",
1276
1276
  value: (c == null ? void 0 : c.field) || "organizationName"
1277
1277
  }, C = {
@@ -1286,12 +1286,12 @@ const useRender = () => {
1286
1286
  return Object.assign(C.mapField, L, (c == null ? void 0 : c.mapField) || {}), {
1287
1287
  name: "#SuSelect",
1288
1288
  props: C,
1289
- optionProps: H,
1289
+ optionProps: u,
1290
1290
  options: [],
1291
- events: w(b)
1291
+ events: w(H)
1292
1292
  };
1293
- }, i = (c, b) => {
1294
- const H = {
1293
+ }, i = (c, H) => {
1294
+ const u = {
1295
1295
  label: "orgName",
1296
1296
  value: (c == null ? void 0 : c.field) || "orgName"
1297
1297
  }, C = {
@@ -1303,42 +1303,46 @@ const useRender = () => {
1303
1303
  return Object.assign(C.mapField, L, (c == null ? void 0 : c.mapField) || {}), {
1304
1304
  name: "#SuSelect",
1305
1305
  props: C,
1306
- optionProps: H,
1306
+ optionProps: u,
1307
1307
  options: [],
1308
- events: w(b)
1308
+ events: w(H)
1309
1309
  };
1310
- }, t = (c, b) => {
1311
- const H = Object.assign({ disabled: !1 }, c), C = H == null ? void 0 : H.defaultValue;
1310
+ }, t = (c, H) => {
1311
+ const u = Object.assign({ disabled: !1 }, c), C = u == null ? void 0 : u.defaultValue;
1312
1312
  return {
1313
1313
  name: "VxeInput",
1314
- props: H,
1314
+ props: u,
1315
1315
  defaultValue: C,
1316
- events: w(b)
1316
+ events: w(H)
1317
1317
  };
1318
- }, v = (c, b) => {
1319
- const H = Object.assign({ disabled: !1, rows: 3 }, c), C = H == null ? void 0 : H.defaultValue;
1318
+ }, v = (c, H) => {
1319
+ const u = Object.assign({ disabled: !1, rows: 3 }, c), C = u == null ? void 0 : u.defaultValue;
1320
1320
  return {
1321
1321
  name: "#textarea",
1322
- props: H,
1322
+ props: u,
1323
1323
  defaultValue: C,
1324
- events: w(b)
1324
+ events: w(H)
1325
1325
  };
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) };
1326
+ }, Z = (c, H) => {
1327
+ const u = "VxeCheckboxGroup", { defaultValue: C, options: L, props: S } = n(c);
1328
+ return { name: u, defaultValue: C, options: L, props: S, events: w(H) };
1329
+ }, d = (c, H) => {
1330
+ const u = "VxeRadioGroup", { defaultValue: C, options: L, props: S } = n(c);
1331
+ return { name: u, defaultValue: C, options: L, props: S, events: w(H) };
1332
1332
  }, n = (c) => {
1333
1333
  var I;
1334
- let b = { disabled: !1 }, H;
1334
+ let H = { disabled: !1 }, u;
1335
1335
  const C = storageLocal.getItem("kLov");
1336
1336
  let L = "";
1337
- isObject(c) ? (H = c.defaultValue, L = c.code, b = Object.assign(b, c || {})) : isString(c) && (L = c);
1337
+ 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
1338
  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);
1339
+ return {
1340
+ props: H,
1341
+ defaultValue: u,
1342
+ options: isObject(c) && c.options ? c.options : S
1343
+ };
1344
+ }, f = (c, H) => {
1345
+ const u = w(H);
1342
1346
  return {
1343
1347
  name: "VxeNumberInput",
1344
1348
  props: Object.assign(
@@ -1346,13 +1350,13 @@ const useRender = () => {
1346
1350
  c || {}
1347
1351
  ),
1348
1352
  defaultValue: c == null ? void 0 : c.defaultValue,
1349
- events: H
1353
+ events: u
1350
1354
  };
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 || {});
1355
+ }, b = (c, H) => {
1356
+ const u = w(H), C = "yyyy-MM-dd HH:mm:ss", L = c == null ? void 0 : c.defaultValue;
1357
+ return { name: "VxeDatePicker", props: Object.assign({ type: "date", valueFormat: C, clearable: !0 }, c || {}), defaultValue: L, events: u };
1358
+ }, m = (c, H) => {
1359
+ 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
1360
  return {
1357
1361
  name: "VxeDateRangePicker",
1358
1362
  startField: I,
@@ -1360,13 +1364,13 @@ const useRender = () => {
1360
1364
  startValue: L,
1361
1365
  endValue: S,
1362
1366
  props: T,
1363
- events: H
1367
+ events: u
1364
1368
  };
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) || {
1369
+ }, s = (c, H) => {
1370
+ const u = w(H);
1371
+ return { name: "#lov", props: Object.assign({}, c || {}), events: u };
1372
+ }, M = (c, H) => {
1373
+ const u = w(H), C = (c == null ? void 0 : c.optionProps) || {
1370
1374
  label: "label",
1371
1375
  value: "value"
1372
1376
  }, L = Object.assign(
@@ -1378,39 +1382,39 @@ const useRender = () => {
1378
1382
  optionProps: C,
1379
1383
  options: (c == null ? void 0 : c.options) || [],
1380
1384
  props: L,
1381
- events: H
1385
+ events: u
1382
1386
  };
1383
- }, p = (c, b) => {
1384
- let H = {
1387
+ }, p = (c, H) => {
1388
+ let u = {
1385
1389
  openLabel: "是",
1386
1390
  closeLabel: "否",
1387
1391
  openValue: "Y",
1388
1392
  closeValue: "N"
1389
1393
  }, 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 = {
1394
+ 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 }));
1395
+ const L = isFunction(c) ? w(c) : w(H);
1396
+ return { name: "VxeSwitch", props: u, defaultValue: C, events: L };
1397
+ }, y = (c, H) => ({ name: "#tag", props: { code: c, tagMap: H } }), A = (c, H) => {
1398
+ const u = {
1395
1399
  openLabel: "启用",
1396
1400
  closeLabel: "禁用",
1397
1401
  openValue: "1",
1398
1402
  closeValue: "0",
1399
1403
  defaultValue: "1"
1400
1404
  };
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);
1405
+ !isFunction(c) && isObject(c) && Object.assign(u, c);
1406
+ const C = isFunction(c) ? c : H;
1407
+ return p(u, C);
1408
+ }, k = () => ({ name: "#iconSelect" }), V = (c = [], H = {}, u) => ({ name: "#treeSelect", sourceData: c, props: H, events: u }), R = (c, H) => {
1409
+ const u = w(H);
1406
1410
  return {
1407
1411
  name: "#area",
1408
1412
  props: { mapField: (c == null ? void 0 : c.mapField) || ["province", "city", "region"] },
1409
- events: H
1413
+ events: u
1410
1414
  };
1411
1415
  }, w = (c) => {
1412
- let b = {};
1413
- return isObject(c) && !isFunction(c) ? b = {
1416
+ let H = {};
1417
+ return isObject(c) && !isFunction(c) ? H = {
1414
1418
  change: (c == null ? void 0 : c.change) || F,
1415
1419
  blur: (c == null ? void 0 : c.blur) || F,
1416
1420
  focus: (c == null ? void 0 : c.focus) || F,
@@ -1420,15 +1424,15 @@ const useRender = () => {
1420
1424
  suffixClick: c == null ? void 0 : c.suffixClick,
1421
1425
  prefixClick: c == null ? void 0 : c.prefixClick,
1422
1426
  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, {
1427
+ } : c && (H = { change: c }), H;
1428
+ }, E = (c, H) => {
1429
+ c = c || { fieldType: "string", mode: "image" };
1430
+ const { singleMode: u, mode: C } = c;
1431
+ return u && Object.assign(c, {
1428
1432
  multiple: !1,
1429
1433
  limitCount: 1,
1430
1434
  autoHiddenButton: !0
1431
- }), C === "image" && (c.imageTypes = ["jpg", "jpeg", "png", "gif", "apk"]), { name: "#upload", props: c, events: b };
1435
+ }), C === "image" && (c.imageTypes = ["jpg", "jpeg", "png", "gif", "apk"]), { name: "#upload", props: c, events: H };
1432
1436
  };
1433
1437
  function F() {
1434
1438
  }
@@ -1446,7 +1450,7 @@ const useRender = () => {
1446
1450
  renderNumber: f,
1447
1451
  renderLov: s,
1448
1452
  renderSelectLocal: M,
1449
- renderDate: u,
1453
+ renderDate: b,
1450
1454
  renderRangeDate: m,
1451
1455
  renderSwitch: p,
1452
1456
  renderCellTag: y,
@@ -1564,10 +1568,10 @@ const deviceDetection = () => {
1564
1568
  collapseTagsTooltip: !0,
1565
1569
  multiple: !0
1566
1570
  }, t = o.map((Z, d) => {
1567
- var n, f, u;
1571
+ var n, f, b;
1568
1572
  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
1573
  i,
1570
- ((u = Z.itemRender) == null ? void 0 : u.props) || {}
1574
+ ((b = Z.itemRender) == null ? void 0 : b.props) || {}
1571
1575
  )), Z;
1572
1576
  }), v = clone(formSearchButtons, !0);
1573
1577
  if (v.collapseNode = e, l && v.itemRender.options.length < 3 && (v.itemRender.options.push(l), v.itemRender.events = l.events), e) {
@@ -2626,9 +2630,9 @@ const http = new SuHttp(), lunarCalendar = {
2626
2630
  const n = /* @__PURE__ */ new Date();
2627
2631
  let f = !1;
2628
2632
  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);
2633
+ let b = i.getDay();
2634
+ const m = this.nStr1[b];
2635
+ b === 0 && (b = 7);
2632
2636
  const s = t;
2633
2637
  v = this.leapMonth(t);
2634
2638
  let M = !1;
@@ -2640,7 +2644,7 @@ const http = new SuHttp(), lunarCalendar = {
2640
2644
  e >= V && (w = this.toGanZhi((h - 1900) * 12 + r + 12));
2641
2645
  let E = !1, F;
2642
2646
  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;
2647
+ 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
2648
  let N = p + "-" + y;
2645
2649
  return p === 12 && y === 29 && this.monthDays(s, p) === 29 && (N = "12-30"), {
2646
2650
  date: C,
@@ -2658,14 +2662,14 @@ const http = new SuHttp(), lunarCalendar = {
2658
2662
  cDay: e,
2659
2663
  gzYear: k,
2660
2664
  gzMonth: w,
2661
- gzDay: b,
2665
+ gzDay: H,
2662
2666
  isToday: f,
2663
2667
  isLeap: M,
2664
- nWeek: u,
2668
+ nWeek: b,
2665
2669
  ncWeek: "星期" + m,
2666
2670
  isTerm: E,
2667
2671
  Term: F,
2668
- astro: H
2672
+ astro: u
2669
2673
  };
2670
2674
  },
2671
2675
  /**
@@ -2694,8 +2698,8 @@ const http = new SuHttp(), lunarCalendar = {
2694
2698
  for (v = 1; v < l; v++)
2695
2699
  Z = this.leapMonth(a), d || Z <= v && Z > 0 && (t += this.leapDays(a), d = !0), t += this.monthDays(a, v);
2696
2700
  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);
2701
+ 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();
2702
+ return this.solar2lunar(b, m, s);
2699
2703
  }
2700
2704
  }, dict = storageLocal.getItem("kLov"), formats = {
2701
2705
  formatDate: {