@utogether/utils 3.0.0-beta.25 → 3.0.0-beta.26

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
1
  var T = Object.defineProperty;
2
- var j = (a, l, h) => l in a ? T(a, l, { enumerable: !0, configurable: !0, writable: !0, value: h }) : a[l] = h;
3
- var k = (a, l, h) => j(a, typeof l != "symbol" ? l + "" : l, h);
2
+ var U = (a, l, h) => l in a ? T(a, l, { enumerable: !0, configurable: !0, writable: !0, value: h }) : a[l] = h;
3
+ var k = (a, l, h) => U(a, typeof l != "symbol" ? l + "" : l, h);
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, has } from "xe-utils";
@@ -201,51 +201,111 @@ const VxetableRender = (VXETable, {
201
201
  optionProps: Z = {},
202
202
  events: e
203
203
  } = a, {
204
- label: t = "label",
204
+ label: v = "label",
205
205
  value: d = "value"
206
206
  } = Z, {
207
- loading: f = !1,
208
- multiple: m,
207
+ loading: m = !1,
208
+ multiple: V,
209
209
  mapField: u
210
- } = i, V = useComponent(), p = m ? `_${r.field}` : r.field;
211
- V.setDefaultValue(i, o, r.field);
212
- function n(H) {
213
- V.remote(H, r.field, a);
210
+ } = i, H = useComponent(), p = V ? `_${r.field}` : r.field;
211
+ H.setDefaultValue(i, o, r.field);
212
+ function n(f) {
213
+ H.remote(f, r.field, a);
214
214
  }
215
- function L(H) {
216
- V.selectChange(H, data, r.field, a, {
215
+ function y(f) {
216
+ H.selectChange(f, o, r.field, a, {
217
217
  column: r,
218
218
  datasource: "row"
219
219
  });
220
220
  }
221
- function C(H) {
222
- e != null && e.input && e.input(l, H);
221
+ function C(f) {
222
+ e != null && e.input && e.input(l, f);
223
223
  }
224
224
  function A() {
225
- V.clear(o, r.field, u, e, "row");
225
+ H.clear(o, r.field, u, e, "row");
226
226
  }
227
227
  function w() {
228
228
  !c.length && n(""), e != null && e.focus && e.focus(l, r.field);
229
229
  }
230
230
  return [createVNode(resolveComponent("el-select"), mergeProps({
231
231
  modelValue: o[p],
232
- "onUpdate:modelValue": (H) => o[p] = H,
232
+ "onUpdate:modelValue": (f) => o[p] = f,
233
233
  filterable: !0,
234
234
  remote: !0,
235
235
  clearable: !0,
236
236
  placeholder: "请录入关键字搜索",
237
237
  style: "width: 100%",
238
238
  "remote-method": n,
239
- loading: f
239
+ loading: m
240
240
  }, i, {
241
241
  onFocus: () => w(),
242
- onChange: (H) => L(H),
242
+ onChange: (f) => y(f),
243
243
  onClear: () => A(),
244
- onInput: (H) => C(H)
245
- }), _isSlot(h = c.map((H) => createVNode(resolveComponent("el-option"), {
246
- key: H[d],
247
- label: H[t],
248
- value: H[d]
244
+ onInput: (f) => C(f)
245
+ }), _isSlot(h = c.map((f) => createVNode(resolveComponent("el-option"), {
246
+ key: f[d],
247
+ label: f[v],
248
+ value: f[d]
249
+ }, null))) ? h : {
250
+ default: () => [h]
251
+ })];
252
+ },
253
+ renderTableDefault(a, l) {
254
+ let h;
255
+ const {
256
+ row: o,
257
+ column: r
258
+ } = l, {
259
+ options: c,
260
+ props: i,
261
+ optionProps: Z = {},
262
+ events: e
263
+ } = a, {
264
+ label: v = "label",
265
+ value: d = "value"
266
+ } = Z, {
267
+ loading: m = !1,
268
+ multiple: V,
269
+ mapField: u
270
+ } = i, H = useComponent(), p = V ? `_${r.field}` : r.field;
271
+ H.setDefaultValue(i, o, r.field);
272
+ function n(f) {
273
+ H.remote(f, r.field, a);
274
+ }
275
+ function y(f) {
276
+ H.selectChange(f, o, r.field, a, {
277
+ column: r,
278
+ datasource: "row"
279
+ });
280
+ }
281
+ function C(f) {
282
+ e != null && e.input && e.input(l, f);
283
+ }
284
+ function A() {
285
+ H.clear(o, r.field, u, e, "row");
286
+ }
287
+ function w() {
288
+ !c.length && n(""), e != null && e.focus && e.focus(l, r.field);
289
+ }
290
+ return [createVNode(resolveComponent("el-select"), mergeProps({
291
+ modelValue: o[p],
292
+ "onUpdate:modelValue": (f) => o[p] = f,
293
+ filterable: !0,
294
+ remote: !0,
295
+ clearable: !0,
296
+ placeholder: "请录入关键字搜索",
297
+ style: "width: 100%",
298
+ "remote-method": n,
299
+ loading: m
300
+ }, i, {
301
+ onFocus: () => w(),
302
+ onChange: (f) => y(f),
303
+ onClear: () => A(),
304
+ onInput: (f) => C(f)
305
+ }), _isSlot(h = c.map((f) => createVNode(resolveComponent("el-option"), {
306
+ key: f[d],
307
+ label: f[v],
308
+ value: f[d]
249
309
  }, null))) ? h : {
250
310
  default: () => [h]
251
311
  })];
@@ -275,34 +335,34 @@ const VxetableRender = (VXETable, {
275
335
  optionProps: Z = {},
276
336
  events: e
277
337
  } = a, {
278
- label: t = "label",
338
+ label: v = "label",
279
339
  value: d = "value"
280
340
  } = Z, {
281
- mapField: f,
282
- multiple: m,
341
+ mapField: m,
342
+ multiple: V,
283
343
  loading: u = !1
284
- } = i, V = useComponent(), p = m ? `_${r}` : r;
285
- V.setDefaultValue(i, o, r);
286
- async function n(H) {
287
- V.remote(H, r, a);
344
+ } = i, H = useComponent(), p = V ? `_${r}` : r;
345
+ H.setDefaultValue(i, o, r);
346
+ async function n(f) {
347
+ H.remote(f, r, a);
288
348
  }
289
- function L(H) {
290
- V.selectChange(H, o, r, a, {
349
+ function y(f) {
350
+ H.selectChange(f, o, r, a, {
291
351
  datasource: "data"
292
352
  });
293
353
  }
294
- function C(H) {
295
- e != null && e.input && e.input(l, H);
354
+ function C(f) {
355
+ e != null && e.input && e.input(l, f);
296
356
  }
297
357
  function A() {
298
- V.clear(o, r, f, e, "data");
358
+ H.clear(o, r, m, e, "data");
299
359
  }
300
360
  function w() {
301
361
  !c.length && n(""), e != null && e.focus && e.focus(l);
302
362
  }
303
363
  return [createVNode(resolveComponent("el-select"), mergeProps({
304
364
  modelValue: o[p],
305
- "onUpdate:modelValue": (H) => o[p] = H,
365
+ "onUpdate:modelValue": (f) => o[p] = f,
306
366
  filterable: !0,
307
367
  remote: !0,
308
368
  clearable: !0,
@@ -312,13 +372,13 @@ const VxetableRender = (VXETable, {
312
372
  "remote-method": n
313
373
  }, i, {
314
374
  onFocus: () => w(),
315
- onChange: (H) => L(H),
375
+ onChange: (f) => y(f),
316
376
  onClear: () => A(),
317
377
  onInput: () => C()
318
- }), _isSlot(h = c.map((H) => createVNode(resolveComponent("el-option"), {
319
- key: H[d],
320
- label: H[t],
321
- value: H[d]
378
+ }), _isSlot(h = c.map((f) => createVNode(resolveComponent("el-option"), {
379
+ key: f[d],
380
+ label: f[v],
381
+ value: f[d]
322
382
  }, null))) ? h : {
323
383
  default: () => [h]
324
384
  })];
@@ -353,7 +413,7 @@ const VxetableRender = (VXETable, {
353
413
  }, {
354
414
  text: i18n("message.udp.anniversary", !0),
355
415
  value: () => [Z(1, "year"), c]
356
- }], Z = (e, t) => dayjs().subtract(e, t).add("1", "day").format();
416
+ }], Z = (e, v) => dayjs().subtract(e, v).add("1", "day").format();
357
417
  return [createVNode(resolveComponent("el-date-picker"), mergeProps({
358
418
  modelValue: h[o],
359
419
  "onUpdate:modelValue": (e) => h[o] = e,
@@ -377,26 +437,26 @@ const VxetableRender = (VXETable, {
377
437
  optionProps: Z = {},
378
438
  events: e
379
439
  } = a, {
380
- label: t = "label",
440
+ label: v = "label",
381
441
  value: d = "value",
382
- extLabel: f
442
+ extLabel: m
383
443
  } = Z, {
384
- mapField: m
444
+ mapField: V
385
445
  } = i, u = useComponent();
386
446
  i.multiple && o[r.field] && !isArray(o[r.field]) && o[r.field].split(",").forEach((n) => {
387
- !c.some((C) => C[t] === n) && c.push({
447
+ !c.some((C) => C[v] === n) && c.push({
388
448
  [d]: n,
389
- [t]: n
449
+ [v]: n
390
450
  });
391
451
  });
392
- function V(n) {
452
+ function H(n) {
393
453
  u.selectChange(n, o, r.field, a, {
394
454
  column: r,
395
455
  datasource: "row"
396
456
  });
397
457
  }
398
458
  function p() {
399
- u.clear(o, r.field, m, e, "row");
459
+ u.clear(o, r.field, V, e, "row");
400
460
  }
401
461
  return [createVNode(resolveComponent("el-select"), mergeProps({
402
462
  modelValue: o[r.field],
@@ -405,11 +465,11 @@ const VxetableRender = (VXETable, {
405
465
  clearable: !0
406
466
  }, i, {
407
467
  style: "width: 100%",
408
- onChange: (n) => V(n),
468
+ onChange: (n) => H(n),
409
469
  onClear: () => p()
410
470
  }), _isSlot(h = c.map((n) => createVNode(resolveComponent("el-option"), {
411
471
  key: n[d],
412
- label: f && n[f] ? n[d] : n[t],
472
+ label: m && n[m] ? n[d] : n[v],
413
473
  value: n[d]
414
474
  }, null))) ? h : {
415
475
  default: () => [h]
@@ -426,26 +486,26 @@ const VxetableRender = (VXETable, {
426
486
  optionProps: Z = {},
427
487
  events: e
428
488
  } = a, {
429
- label: t = "label",
489
+ label: v = "label",
430
490
  value: d = "value",
431
- extLabel: f
491
+ extLabel: m
432
492
  } = Z, {
433
- mapField: m
493
+ mapField: V
434
494
  } = i, u = useComponent();
435
495
  i.multiple && o[r.field] && !isArray(o[r.field]) && o[r.field].split(",").forEach((n) => {
436
- !c.some((C) => C[t] === n) && c.push({
496
+ !c.some((C) => C[v] === n) && c.push({
437
497
  [d]: n,
438
- [t]: n
498
+ [v]: n
439
499
  });
440
500
  });
441
- function V(n) {
501
+ function H(n) {
442
502
  u.selectChange(n, o, r.field, a, {
443
503
  column: r,
444
504
  datasource: "row"
445
505
  });
446
506
  }
447
507
  function p() {
448
- u.clear(o, r.field, m, e, "row");
508
+ u.clear(o, r.field, V, e, "row");
449
509
  }
450
510
  return [createVNode(resolveComponent("el-select"), mergeProps({
451
511
  modelValue: o[r.field],
@@ -454,11 +514,11 @@ const VxetableRender = (VXETable, {
454
514
  clearable: !0
455
515
  }, i, {
456
516
  style: "width: 100%",
457
- onChange: (n) => V(n),
517
+ onChange: (n) => H(n),
458
518
  onClear: () => p()
459
519
  }), _isSlot(h = c.map((n) => createVNode(resolveComponent("el-option"), {
460
520
  key: n[d],
461
- label: f && n[f] ? n[d] : n[t],
521
+ label: m && n[m] ? n[d] : n[v],
462
522
  value: n[d]
463
523
  }, null))) ? h : {
464
524
  default: () => [h]
@@ -495,20 +555,20 @@ const VxetableRender = (VXETable, {
495
555
  optionProps: Z = {},
496
556
  events: e
497
557
  } = a, {
498
- label: t = "label",
558
+ label: v = "label",
499
559
  value: d = "value"
500
- } = Z, f = useComponent(), {
501
- defaultValues: m,
560
+ } = Z, m = useComponent(), {
561
+ defaultValues: V,
502
562
  mapField: u
503
563
  } = i;
504
- m && (o[r] = m);
505
- function V(n) {
506
- f.selectChange(n, o, r, a, {
564
+ V && (o[r] = V);
565
+ function H(n) {
566
+ m.selectChange(n, o, r, a, {
507
567
  datasource: "data"
508
568
  });
509
569
  }
510
570
  function p() {
511
- f.clear(o, r, u, e, "data");
571
+ m.clear(o, r, u, e, "data");
512
572
  }
513
573
  return [createVNode(resolveComponent("el-select"), mergeProps({
514
574
  modelValue: o[r],
@@ -517,11 +577,11 @@ const VxetableRender = (VXETable, {
517
577
  clearable: !0,
518
578
  style: "width: 100%"
519
579
  }, i, {
520
- onChange: (n) => V(n),
580
+ onChange: (n) => H(n),
521
581
  onClear: () => p()
522
582
  }), _isSlot(h = c.map((n) => createVNode(resolveComponent("el-option"), {
523
583
  key: n[d],
524
- label: n[t],
584
+ label: n[v],
525
585
  value: n[d]
526
586
  }, null))) ? h : {
527
587
  default: () => [h]
@@ -540,37 +600,37 @@ const VxetableRender = (VXETable, {
540
600
  mapField: e
541
601
  } = r;
542
602
  Z && (h[o] = Z);
543
- function t(f, m) {
603
+ function v(m, V) {
544
604
  const {
545
605
  mapField: u,
546
- field: V,
606
+ field: H,
547
607
  displayName: p,
548
608
  multiple: n
549
609
  } = r;
550
610
  if (n) {
551
611
  if (n) {
552
612
  const C = {};
553
- h[p || V] = f.reduce((A, w) => {
554
- for (const H in u)
555
- C[H] = A ? C[H] + "," + w[u[H]] : w[u[H]];
556
- return A = A ? A + "," + w[p || V] : w[p || V], A;
613
+ h[p || H] = m.reduce((A, w) => {
614
+ for (const f in u)
615
+ C[f] = A ? C[f] + "," + w[u[f]] : w[u[f]];
616
+ return A = A ? A + "," + w[p || H] : w[p || H], A;
557
617
  }, ""), Object.assign(h, C);
558
618
  }
559
619
  } else {
560
620
  const C = {
561
- [p || V]: f[m || p || V]
621
+ [p || H]: m[V || p || H]
562
622
  };
563
623
  for (const A in u)
564
- C[A] = f[u[A]];
624
+ C[A] = m[u[A]];
565
625
  Object.assign(h, C);
566
626
  }
567
- const L = {
627
+ const y = {
568
628
  row: h,
569
- property: V,
570
- item: f,
571
- field: V
629
+ property: H,
630
+ item: m,
631
+ field: H
572
632
  };
573
- c != null && c.change && c.change(L);
633
+ c != null && c.change && c.change(y);
574
634
  }
575
635
  function d() {
576
636
  i.clear(h, o, e, c, "data");
@@ -579,7 +639,7 @@ const VxetableRender = (VXETable, {
579
639
  record: h
580
640
  }, r, {
581
641
  mode: "vxe",
582
- onChange: (f, m) => t(f, m),
642
+ onChange: (m, V) => v(m, V),
583
643
  onClear: () => d()
584
644
  }), null)];
585
645
  },
@@ -592,31 +652,32 @@ const VxetableRender = (VXETable, {
592
652
  props: r,
593
653
  events: c
594
654
  } = a, i = useComponent();
595
- function Z(t, d) {
655
+ function Z(v, d) {
596
656
  const {
597
- mapField: f,
598
- field: m,
657
+ mapField: m,
658
+ field: V,
599
659
  displayName: u,
600
- multiple: V
660
+ multiple: H
601
661
  } = r;
602
- if (!V) {
662
+ if (!H) {
603
663
  const p = {
604
- [u || m]: t[d || u || m]
664
+ [u || V]: v[d || u || V]
605
665
  };
606
- for (const n in f)
607
- p[n] = t[f[n]];
666
+ for (const n in m)
667
+ p[n] = v[m[n]];
608
668
  Object.assign(h, p);
609
669
  }
610
- c != null && c.change && c.change(l, t, h[o.field]);
670
+ c != null && c.change && c.change(l, v, h[o.field]);
611
671
  }
612
672
  function e() {
613
673
  i.clear(h, field, mapField, c, "row");
614
674
  }
615
675
  return [createVNode(resolveComponent("ut-lov"), mergeProps({
616
676
  record: h,
617
- mode: "vxe"
677
+ mode: "vxe",
678
+ transfer: !0
618
679
  }, r, {
619
- onChange: (t, d) => Z(t, d),
680
+ onChange: (v, d) => Z(v, d),
620
681
  onClear: () => e()
621
682
  }), null)];
622
683
  },
@@ -629,22 +690,22 @@ const VxetableRender = (VXETable, {
629
690
  props: r,
630
691
  events: c
631
692
  } = a, i = useComponent();
632
- function Z(t, d) {
693
+ function Z(v, d) {
633
694
  const {
634
- mapField: f,
635
- field: m,
695
+ mapField: m,
696
+ field: V,
636
697
  displayName: u,
637
- multiple: V
698
+ multiple: H
638
699
  } = r;
639
- if (!V) {
700
+ if (!H) {
640
701
  const p = {
641
- [u || m]: t[d || u || m]
702
+ [u || V]: v[d || u || V]
642
703
  };
643
- for (const n in f)
644
- p[n] = t[f[n]];
704
+ for (const n in m)
705
+ p[n] = v[m[n]];
645
706
  Object.assign(h, p);
646
707
  }
647
- c != null && c.change && c.change(l, t, h[o.field]);
708
+ c != null && c.change && c.change(l, v, h[o.field]);
648
709
  }
649
710
  function e() {
650
711
  i.clear(h, field, mapField, c, "row");
@@ -653,7 +714,7 @@ const VxetableRender = (VXETable, {
653
714
  record: h,
654
715
  mode: "ele"
655
716
  }, r, {
656
- onChange: (t, d) => Z(t, d),
717
+ onChange: (v, d) => Z(v, d),
657
718
  onClear: () => e()
658
719
  }), null)];
659
720
  },
@@ -720,24 +781,24 @@ const VxetableRender = (VXETable, {
720
781
  },
721
782
  events: Z
722
783
  } = a;
723
- function e(t) {
784
+ function e(v) {
724
785
  const d = {
725
786
  row: h,
726
787
  column: o,
727
- value: t
788
+ value: v
728
789
  };
729
790
  Z != null && Z.change && Z.change(d);
730
791
  }
731
792
  return [h[o.field] ? createVNode(resolveComponent("el-switch"), mergeProps({
732
793
  modelValue: h[o.field],
733
- "onUpdate:modelValue": (t) => h[o.field] = t,
794
+ "onUpdate:modelValue": (v) => h[o.field] = v,
734
795
  "inline-prompt": !0,
735
796
  size: "large",
736
797
  style: "--el-switch-on-color: #13ce66; --el-switch-off-color: #E6A23C"
737
798
  }, a.props, {
738
799
  "active-text": getValue(r, c),
739
800
  "inactive-text": getValue(r, i),
740
- onChange: (t) => e(t)
801
+ onChange: (v) => e(v)
741
802
  }), null) : null];
742
803
  }
743
804
  }), VXETable.renderer.add("#iconSelect", {
@@ -790,8 +851,8 @@ const VxetableRender = (VXETable, {
790
851
  "check-strictly": !0
791
852
  }, r, {
792
853
  filterable: !0,
793
- onCheckChange: (Z, e, t) => onCheckChange(Z, e, t, i),
794
- onNodeClick: (Z, e, t) => onNodeClick(Z, e, t, i),
854
+ onCheckChange: (Z, e, v) => onCheckChange(Z, e, v, i),
855
+ onNodeClick: (Z, e, v) => onNodeClick(Z, e, v, i),
795
856
  onCurrentChange: (Z, e) => onCurrentChange(Z, e, i)
796
857
  }), null)];
797
858
  },
@@ -805,7 +866,7 @@ const VxetableRender = (VXETable, {
805
866
  } = a, {
806
867
  children: i = "children",
807
868
  label: Z = "label"
808
- } = c, e = findTree(r, (t) => t.value === h[o.field], {
869
+ } = c, e = findTree(r, (v) => v.value === h[o.field], {
809
870
  children: i
810
871
  });
811
872
  return e ? [createVNode("span", null, [e.item[Z]])] : null;
@@ -826,8 +887,8 @@ const VxetableRender = (VXETable, {
826
887
  "check-strictly": !0
827
888
  }, r, {
828
889
  filterable: !0,
829
- onCheckChange: (Z, e, t) => onCheckChange(Z, e, t, i),
830
- onNodeClick: (Z, e, t) => onNodeClick(Z, e, t, i),
890
+ onCheckChange: (Z, e, v) => onCheckChange(Z, e, v, i),
891
+ onNodeClick: (Z, e, v) => onNodeClick(Z, e, v, i),
831
892
  onCurrentChange: (Z, e) => onCurrentChange(Z, e, i)
832
893
  }), null)];
833
894
  }
@@ -835,8 +896,8 @@ const VxetableRender = (VXETable, {
835
896
  const useComponent = () => ({
836
897
  clear: (r, c, i, Z, e) => {
837
898
  if (r[c] = null, !isEmpty(i))
838
- for (const t in i)
839
- r[t] = null;
899
+ for (const v in i)
900
+ r[v] = null;
840
901
  Z != null && Z.clear && Z.clear({
841
902
  [e]: r,
842
903
  field: c
@@ -846,66 +907,66 @@ const VxetableRender = (VXETable, {
846
907
  const {
847
908
  options: Z,
848
909
  props: e,
849
- events: t
910
+ events: v
850
911
  } = i, {
851
912
  fetchField: d,
852
- url: f,
853
- defaultParams: m = {},
913
+ url: m,
914
+ defaultParams: V = {},
854
915
  method: u = "get"
855
- } = e, V = getCookieParam(), p = Object.assign({
916
+ } = e, H = getCookieParam(), p = Object.assign({
856
917
  pageSize: 20,
857
918
  pageNum: 1,
858
- ...V,
859
- ...m
919
+ ...H,
920
+ ...V
860
921
  }, {
861
922
  [d || c]: r
862
923
  });
863
924
  if (e.loading) return;
864
925
  let n;
865
926
  try {
866
- Z.length = 0, e.loading = !0, n = await serviceApi[u](f, p), t != null && t.filterMethod ? Z.push(...t.filterMethod(n.list || n)) : n && (n.list ? Z.push(...n.list) : Z.push(...n));
927
+ Z.length = 0, e.loading = !0, n = await serviceApi[u](m, p), v != null && v.filterMethod ? Z.push(...v.filterMethod(n.list || n)) : n && (n.list ? Z.push(...n.list) : Z.push(...n));
867
928
  } finally {
868
929
  e.loading = !1;
869
930
  }
870
931
  },
871
932
  selectChange: (r, c, i, Z, e) => {
872
- let t = null;
933
+ let v = null;
873
934
  const {
874
935
  datasource: d
875
936
  } = e, {
876
- options: f,
877
- props: m,
937
+ options: m,
938
+ props: V,
878
939
  optionProps: u = {},
879
- events: V
940
+ events: H
880
941
  } = Z, p = {
881
942
  [d]: c,
882
943
  field: i
883
944
  };
884
- c[i] = null, !isEmpty(r) && (m != null && m.multiple) ? (c[i] = r.join(","), t = [], r.forEach((n) => {
885
- const L = f.find((C) => n === C[u == null ? void 0 : u.value]);
886
- L && !isEmpty(m.mapField) && isObject(m.mapField) && Object.keys(m.mapField).forEach((C) => {
887
- const A = L[m.mapField[C]], w = c[C] ? c[C].toString() : "";
945
+ c[i] = null, !isEmpty(r) && (V != null && V.multiple) ? (c[i] = r.join(","), v = [], r.forEach((n) => {
946
+ const y = m.find((C) => n === C[u == null ? void 0 : u.value]);
947
+ y && !isEmpty(V.mapField) && isObject(V.mapField) && Object.keys(V.mapField).forEach((C) => {
948
+ const A = y[V.mapField[C]], w = c[C] ? c[C].toString() : "";
888
949
  c[C] = w && !w.includes(A) ? `${w},${A}` : A;
889
- }), L && t.push(L);
950
+ }), y && v.push(y);
890
951
  }), Object.assign(p, {
891
- options: t
892
- })) : (c[i] = m != null && m.multiple ? null : r, t = f.find((n) => r === n[u == null ? void 0 : u.value]), !isEmpty(m.mapField) && isObject(m.mapField) && Object.keys(m.mapField).forEach((n) => {
893
- c[n] = t ? t[m.mapField[n]] : null;
952
+ options: v
953
+ })) : (c[i] = V != null && V.multiple ? null : r, v = m.find((n) => r === n[u == null ? void 0 : u.value]), !isEmpty(V.mapField) && isObject(V.mapField) && Object.keys(V.mapField).forEach((n) => {
954
+ c[n] = v ? v[V.mapField[n]] : null;
894
955
  }), Object.assign(p, {
895
- option: t
956
+ option: v
896
957
  })), d === "row" && Object.assign(p, {
897
958
  column: e.column
898
- }), V != null && V.change && V.change(p);
959
+ }), H != null && H.change && H.change(p);
899
960
  },
900
961
  setDefaultValue: (r, c, i) => {
901
962
  var d;
902
963
  const {
903
964
  multiple: Z,
904
965
  defaultValue: e
905
- } = r, t = Z ? `_${i}` : i;
906
- !c[i] && e && (c[i] = e, isPlainObject(e) && Object.keys(e).forEach((m) => {
907
- c[m] = c[m] || e[m];
908
- })), !c[t] && c[i] && (c[t] = Z ? (d = c[i]) == null ? void 0 : d.split(",") : c[i]);
966
+ } = r, v = Z ? `_${i}` : i;
967
+ !c[i] && e && (c[i] = e, isPlainObject(e) && Object.keys(e).forEach((V) => {
968
+ c[V] = c[V] || e[V];
969
+ })), !c[v] && c[i] && (c[v] = Z ? (d = c[i]) == null ? void 0 : d.split(",") : c[i]);
909
970
  }
910
971
  }), onCheckChange = (a, l, h, o) => {
911
972
  console.log(a, l, h), o != null && o.checkChange && (o == null || o.checkChange(a, l, h));
@@ -970,41 +1031,41 @@ const openLink = (a) => {
970
1031
  }, domSymbol = Symbol("watermark-dom");
971
1032
  function useWatermark(a = ref(document.body)) {
972
1033
  const l = useRafThrottle(function() {
973
- const t = unref(a);
974
- if (!t) return;
975
- const { clientHeight: d, clientWidth: f } = t;
976
- i({ height: d, width: f });
1034
+ const v = unref(a);
1035
+ if (!v) return;
1036
+ const { clientHeight: d, clientWidth: m } = v;
1037
+ i({ height: d, width: m });
977
1038
  }), h = domSymbol.toString(), o = shallowRef(), r = () => {
978
- const t = unref(o);
1039
+ const v = unref(o);
979
1040
  o.value = void 0;
980
1041
  const d = unref(a);
981
- d && (t && d.removeChild(t), removeResizeListener(d, l));
1042
+ d && (v && d.removeChild(v), removeResizeListener(d, l));
982
1043
  };
983
- function c(t, d) {
984
- const f = document.createElement("canvas"), m = 260, u = 180;
985
- Object.assign(f, { width: m, height: u });
986
- const V = f.getContext("2d");
987
- return V && (V.rotate(-20 * Math.PI / 120), V.font = (d == null ? void 0 : d.font) ?? "15px Reggae One", V.fillStyle = (d == null ? void 0 : d.fillStyle) ?? "rgba(180, 180, 180, 0.75)", V.textAlign = "left", V.textBaseline = "middle", V.fillText(t, m / 20, u)), f.toDataURL("image/png");
1044
+ function c(v, d) {
1045
+ const m = document.createElement("canvas"), V = 260, u = 180;
1046
+ Object.assign(m, { width: V, height: u });
1047
+ const H = m.getContext("2d");
1048
+ return H && (H.rotate(-20 * Math.PI / 120), H.font = (d == null ? void 0 : d.font) ?? "15px Reggae One", H.fillStyle = (d == null ? void 0 : d.fillStyle) ?? "rgba(180, 180, 180, 0.75)", H.textAlign = "left", H.textBaseline = "middle", H.fillText(v, V / 20, u)), m.toDataURL("image/png");
988
1049
  }
989
- function i(t = {}) {
1050
+ function i(v = {}) {
990
1051
  const d = unref(o);
991
- d && (isUndefined(t.width) || (d.style.width = `${t.width}px`), isUndefined(t.height) || (d.style.height = `${t.height}px`), isUndefined(t.str) || (d.style.background = `url(${c(
992
- t.str,
993
- t.attr
1052
+ d && (isUndefined(v.width) || (d.style.width = `${v.width}px`), isUndefined(v.height) || (d.style.height = `${v.height}px`), isUndefined(v.str) || (d.style.background = `url(${c(
1053
+ v.str,
1054
+ v.attr
994
1055
  )}) left top repeat`));
995
1056
  }
996
- const Z = (t, d) => {
1057
+ const Z = (v, d) => {
997
1058
  if (unref(o))
998
- return i({ str: t, attr: d }), h;
999
- const f = document.createElement("div");
1000
- o.value = f, f.id = h, f.style.pointerEvents = "none", f.style.top = "0px", f.style.left = "0px", f.style.position = "absolute", f.style.zIndex = "100000";
1001
- const m = unref(a);
1002
- if (!m) return h;
1003
- const { clientHeight: u, clientWidth: V } = m;
1004
- return i({ str: t, width: V, height: u, attr: d }), m.appendChild(f), h;
1059
+ return i({ str: v, attr: d }), h;
1060
+ const m = document.createElement("div");
1061
+ o.value = m, m.id = h, m.style.pointerEvents = "none", m.style.top = "0px", m.style.left = "0px", m.style.position = "absolute", m.style.zIndex = "100000";
1062
+ const V = unref(a);
1063
+ if (!V) return h;
1064
+ const { clientHeight: u, clientWidth: H } = V;
1065
+ return i({ str: v, width: H, height: u, attr: d }), V.appendChild(m), h;
1005
1066
  };
1006
- function e(t, d) {
1007
- Z(t, d), addResizeListener(document.documentElement, l), getCurrentInstance() && onBeforeUnmount(() => {
1067
+ function e(v, d) {
1068
+ Z(v, d), addResizeListener(document.documentElement, l), getCurrentInstance() && onBeforeUnmount(() => {
1008
1069
  r();
1009
1070
  });
1010
1071
  }
@@ -1019,162 +1080,162 @@ function useAttrs(a = {}) {
1019
1080
  if (!l) return {};
1020
1081
  const { excludeListeners: h = !1, excludeKeys: o = [] } = a, r = shallowRef({}), c = o.concat(DEFAULT_EXCLUDE_KEYS);
1021
1082
  return l.attrs = reactive(l.attrs), watchEffect(() => {
1022
- const i = entries(l.attrs).reduce((Z, [e, t]) => (!c.includes(e) && !(h && LISTENER_PREFIX.test(e)) && (Z[e] = t), Z), {});
1083
+ const i = entries(l.attrs).reduce((Z, [e, v]) => (!c.includes(e) && !(h && LISTENER_PREFIX.test(e)) && (Z[e] = v), Z), {});
1023
1084
  r.value = i;
1024
1085
  }), r;
1025
1086
  }
1026
1087
  const useRender = () => {
1027
- const a = { value: "dictCode", label: "dictName" }, l = (v, M) => {
1028
- var E;
1029
- const b = H(M);
1088
+ const a = { value: "dictCode", label: "dictName" }, l = (t, M) => {
1089
+ var F;
1090
+ const b = f(M);
1030
1091
  let s = {
1031
1092
  clearable: !0,
1032
1093
  disabled: !1,
1033
1094
  showValue: !1,
1034
1095
  placeholder: null
1035
- }, y, S;
1036
- isObject(v) ? (s = Object.assign(s, v), y = v.defaultValue, S = v == null ? void 0 : v.code) : S = v;
1037
- const x = (E = storageLocal.getItem("kLov")[S]) == null ? void 0 : E.children, D = x ? x.filter((N) => N.enabled === "1") : [];
1096
+ }, L, S;
1097
+ isObject(t) ? (s = Object.assign(s, t), L = t.defaultValue, S = t == null ? void 0 : t.code) : S = t;
1098
+ const x = (F = storageLocal.getItem("kLov")[S]) == null ? void 0 : F.children, D = x ? x.filter((E) => E.enabled === "1") : [];
1038
1099
  return {
1039
1100
  name: "#select",
1040
1101
  optionProps: a,
1041
1102
  options: D,
1042
1103
  props: s,
1043
- defaultValue: y,
1104
+ defaultValue: L,
1044
1105
  events: b
1045
1106
  };
1046
- }, h = (v, M) => {
1047
- const b = H(M);
1107
+ }, h = (t, M) => {
1108
+ const b = f(M);
1048
1109
  return {
1049
1110
  name: "#SuSelect",
1050
- optionProps: (v == null ? void 0 : v.optionProps) || { label: "label", value: "value" },
1051
- props: v == null ? void 0 : v.props,
1052
- options: (v == null ? void 0 : v.options) || [],
1111
+ optionProps: (t == null ? void 0 : t.optionProps) || { label: "label", value: "value" },
1112
+ props: t == null ? void 0 : t.props,
1113
+ options: (t == null ? void 0 : t.options) || [],
1053
1114
  events: b
1054
1115
  };
1055
- }, o = (v, M) => {
1116
+ }, o = (t, M) => {
1056
1117
  const b = {
1057
1118
  optionProps: { extLabel: "userName", value: "employeeName" },
1058
1119
  props: {
1059
- attrs: { disabled: v == null ? void 0 : v.disabled },
1060
- disabled: v == null ? void 0 : v.disabled,
1061
- defaultValue: v == null ? void 0 : v.defaultValue,
1062
- mapField: v == null ? void 0 : v.mapField,
1120
+ attrs: { disabled: t == null ? void 0 : t.disabled },
1121
+ disabled: t == null ? void 0 : t.disabled,
1122
+ defaultValue: t == null ? void 0 : t.defaultValue,
1123
+ mapField: t == null ? void 0 : t.mapField,
1063
1124
  code: "SYS037",
1064
1125
  url: "/uums/employee/listEmployeeIsUser",
1065
1126
  fetchField: "employeeName"
1066
1127
  }
1067
1128
  };
1068
1129
  return h(b, M);
1069
- }, r = (v) => {
1130
+ }, r = (t) => {
1070
1131
  const M = {
1071
1132
  optionProps: { extLabel: "userName", value: "name" },
1072
1133
  props: {
1073
1134
  code: "sys/listUsers",
1074
1135
  url: "/uums/user",
1075
1136
  fetchField: "name",
1076
- mapField: v == null ? void 0 : v.mapField
1137
+ mapField: t == null ? void 0 : t.mapField
1077
1138
  }
1078
1139
  };
1079
1140
  return h(M);
1080
- }, c = (v, M) => {
1141
+ }, c = (t, M) => {
1081
1142
  const b = {
1082
1143
  label: "organizationName",
1083
- value: (v == null ? void 0 : v.field) || "organizationName"
1144
+ value: (t == null ? void 0 : t.field) || "organizationName"
1084
1145
  }, s = {
1085
1146
  mapField: {},
1086
- defaultParams: v == null ? void 0 : v.defaultParams,
1147
+ defaultParams: t == null ? void 0 : t.defaultParams,
1087
1148
  url: "/uums/cusOrganization",
1088
1149
  fetchField: "organizationName"
1089
- }, y = {
1150
+ }, L = {
1090
1151
  organizationId: "id",
1091
1152
  organizationCode: "organizationCode"
1092
1153
  };
1093
- return Object.assign(s.mapField, y, (v == null ? void 0 : v.mapField) || {}), { name: "#SuSelect", props: s, optionProps: b, options: [], methods: M };
1094
- }, i = (v, M) => {
1154
+ return Object.assign(s.mapField, L, (t == null ? void 0 : t.mapField) || {}), { name: "#SuSelect", props: s, optionProps: b, options: [], methods: M };
1155
+ }, i = (t, M) => {
1095
1156
  const b = {
1096
1157
  label: "orgName",
1097
- value: (v == null ? void 0 : v.field) || "orgName"
1158
+ value: (t == null ? void 0 : t.field) || "orgName"
1098
1159
  }, s = {
1099
1160
  mapField: {},
1100
- defaultParams: v == null ? void 0 : v.defaultParams,
1161
+ defaultParams: t == null ? void 0 : t.defaultParams,
1101
1162
  url: "/uums/org",
1102
1163
  fetchField: "orgName"
1103
- }, y = { orgId: "id", orgCode: "orgCode" };
1104
- return Object.assign(s.mapField, y, (v == null ? void 0 : v.mapField) || {}), { name: "#SuSelect", props: s, optionProps: b, options: [], methods: M };
1105
- }, Z = (v, M) => {
1106
- const b = Object.assign({ disabled: !1 }, v), s = b == null ? void 0 : b.defaultValue;
1164
+ }, L = { orgId: "id", orgCode: "orgCode" };
1165
+ return Object.assign(s.mapField, L, (t == null ? void 0 : t.mapField) || {}), { name: "#SuSelect", props: s, optionProps: b, options: [], methods: M };
1166
+ }, Z = (t, M) => {
1167
+ const b = Object.assign({ disabled: !1 }, t), s = b == null ? void 0 : b.defaultValue;
1107
1168
  return {
1108
1169
  name: "VxeInput",
1109
1170
  props: b,
1110
1171
  defaultValue: s,
1111
- events: H(M)
1172
+ events: f(M)
1112
1173
  };
1113
- }, e = (v, M) => {
1114
- const b = Object.assign({ disabled: !1, rows: 3 }, v), s = b == null ? void 0 : b.defaultValue;
1174
+ }, e = (t, M) => {
1175
+ const b = Object.assign({ disabled: !1, rows: 3 }, t), s = b == null ? void 0 : b.defaultValue;
1115
1176
  return {
1116
1177
  name: "VxeTextarea",
1117
1178
  props: b,
1118
1179
  defaultValue: s,
1119
- events: H(M)
1180
+ events: f(M)
1120
1181
  };
1121
- }, t = (v, M) => {
1122
- const b = "VxeCheckbox", { defaultValue: s, options: y, props: S } = f(v);
1123
- return { name: b, defaultValue: s, options: y, props: S, events: H(M) };
1124
- }, d = (v, M) => {
1125
- const b = "VxeRadio", { defaultValue: s, options: y, props: S } = f(v);
1126
- return { name: b, defaultValue: s, options: y, props: S, events: H(M) };
1127
- }, f = (v) => {
1182
+ }, v = (t, M) => {
1183
+ const b = "VxeCheckbox", { defaultValue: s, options: L, props: S } = m(t);
1184
+ return { name: b, defaultValue: s, options: L, props: S, events: f(M) };
1185
+ }, d = (t, M) => {
1186
+ const b = "VxeRadio", { defaultValue: s, options: L, props: S } = m(t);
1187
+ return { name: b, defaultValue: s, options: L, props: S, events: f(M) };
1188
+ }, m = (t) => {
1128
1189
  var x;
1129
1190
  let M = { disabled: !1 }, b;
1130
1191
  const s = storageLocal.getItem("kLov");
1131
- let y = "";
1132
- isObject(v) ? (b = v.defaultValue, y = v.code, M = Object.assign(M, v || {})) : isString(v) && (y = v);
1133
- const S = y ? (x = s[y]) == null ? void 0 : x.children.map((D) => ({ label: D.dictName, value: D.dictCode })) : [];
1192
+ let L = "";
1193
+ isObject(t) ? (b = t.defaultValue, L = t.code, M = Object.assign(M, t || {})) : isString(t) && (L = t);
1194
+ const S = L ? (x = s[L]) == null ? void 0 : x.children.map((D) => ({ label: D.dictName, value: D.dictCode })) : [];
1134
1195
  return { props: M, defaultValue: b, options: S };
1135
- }, m = (v, M) => {
1136
- const b = H(M);
1196
+ }, V = (t, M) => {
1197
+ const b = f(M);
1137
1198
  return {
1138
1199
  name: "VxeInput",
1139
1200
  props: Object.assign(
1140
1201
  { type: "number", clearable: !0, min: 0, controls: !1 },
1141
- v || {}
1202
+ t || {}
1142
1203
  ),
1143
- defaultValue: v == null ? void 0 : v.defaultValue,
1204
+ defaultValue: t == null ? void 0 : t.defaultValue,
1144
1205
  events: b
1145
1206
  };
1146
- }, u = (v, M) => {
1147
- const b = H(M), s = "yyyy-MM-dd HH:mm:ss", y = v == null ? void 0 : v.defaultValue;
1148
- return { name: "VxeInput", props: Object.assign({ type: "date", valueFormat: s, clearable: !0 }, v || {}), defaultValue: y, events: b };
1149
- }, V = (v, M) => {
1150
- const b = H(M);
1151
- return { name: "#lov", props: Object.assign({}, v || {}), events: b };
1152
- }, p = (v, M) => {
1153
- const b = H(M), s = (v == null ? void 0 : v.optionProps) || {
1207
+ }, u = (t, M) => {
1208
+ const b = f(M), s = "yyyy-MM-dd HH:mm:ss", L = t == null ? void 0 : t.defaultValue;
1209
+ return { name: "VxeInput", props: Object.assign({ type: "date", valueFormat: s, clearable: !0 }, t || {}), defaultValue: L, events: b };
1210
+ }, H = (t, M) => {
1211
+ const b = f(M);
1212
+ return { name: "#lov", props: Object.assign({}, t || {}), events: b };
1213
+ }, p = (t, M) => {
1214
+ const b = f(M), s = (t == null ? void 0 : t.optionProps) || {
1154
1215
  label: "label",
1155
1216
  value: "value"
1156
- }, y = Object.assign(
1217
+ }, L = Object.assign(
1157
1218
  { clearable: !0, disabled: !1, showValue: !1 },
1158
- v || {}
1219
+ t || {}
1159
1220
  );
1160
1221
  return console.log("itemRender"), {
1161
1222
  name: "#select",
1162
1223
  optionProps: s,
1163
- options: (v == null ? void 0 : v.options) || [],
1164
- props: y,
1224
+ options: (t == null ? void 0 : t.options) || [],
1225
+ props: L,
1165
1226
  events: b
1166
1227
  };
1167
- }, n = (v, M) => {
1228
+ }, n = (t, M) => {
1168
1229
  let b = {
1169
1230
  openLabel: "是",
1170
1231
  closeLabel: "否",
1171
1232
  openValue: "Y",
1172
1233
  closeValue: "N"
1173
1234
  }, s = "Y";
1174
- isObject(v) && !isFunction(v) ? (b = Object.assign(b, v || {}), s = v.defaultValue || s) : !isEmpty(v) && isString(v) && (s = v, b = Object.assign(b, { defaultValue: s }));
1175
- const y = isFunction(v) ? H(v) : H(M);
1176
- return { name: "VxeSwitch", props: b, defaultValue: s, events: y };
1177
- }, L = (v, M) => ({ name: "#tag", props: { code: v, tagMap: M } }), C = (v, M) => {
1235
+ isObject(t) && !isFunction(t) ? (b = Object.assign(b, t || {}), s = t.defaultValue || s) : !isEmpty(t) && isString(t) && (s = t, b = Object.assign(b, { defaultValue: s }));
1236
+ const L = isFunction(t) ? f(t) : f(M);
1237
+ return { name: "VxeSwitch", props: b, defaultValue: s, events: L };
1238
+ }, y = (t, M) => ({ name: "#tag", props: { code: t, tagMap: M } }), C = (t, M) => {
1178
1239
  const b = {
1179
1240
  openLabel: "启用",
1180
1241
  closeLabel: "禁用",
@@ -1182,19 +1243,19 @@ const useRender = () => {
1182
1243
  closeValue: "0",
1183
1244
  defaultValue: "1"
1184
1245
  };
1185
- !isFunction(v) && isObject(v) && Object.assign(b, v);
1186
- const s = isFunction(v) ? v : M;
1246
+ !isFunction(t) && isObject(t) && Object.assign(b, t);
1247
+ const s = isFunction(t) ? t : M;
1187
1248
  return n(b, s);
1188
- }, A = () => ({ name: "#iconSelect" }), w = (v = [], M = {}, b) => ({ name: "#treeSelect", sourceData: v, props: M, events: b }), H = (v) => {
1249
+ }, A = () => ({ name: "#iconSelect" }), w = (t = [], M = {}, b) => ({ name: "#treeSelect", sourceData: t, props: M, events: b }), f = (t) => {
1189
1250
  let M = {};
1190
- return isObject(v) && !isFunction(v) ? M = {
1191
- change: (v == null ? void 0 : v.change) || I,
1192
- blur: (v == null ? void 0 : v.blur) || I,
1193
- focus: (v == null ? void 0 : v.focus) || I,
1194
- input: (v == null ? void 0 : v.input) || I,
1195
- clear: (v == null ? void 0 : v.clear) || I,
1196
- filterMethod: v == null ? void 0 : v.filterMethod
1197
- } : v && (M = { change: v }), M;
1251
+ return isObject(t) && !isFunction(t) ? M = {
1252
+ change: (t == null ? void 0 : t.change) || I,
1253
+ blur: (t == null ? void 0 : t.blur) || I,
1254
+ focus: (t == null ? void 0 : t.focus) || I,
1255
+ input: (t == null ? void 0 : t.input) || I,
1256
+ clear: (t == null ? void 0 : t.clear) || I,
1257
+ filterMethod: t == null ? void 0 : t.filterMethod
1258
+ } : t && (M = { change: t }), M;
1198
1259
  };
1199
1260
  function I() {
1200
1261
  }
@@ -1203,18 +1264,18 @@ const useRender = () => {
1203
1264
  renderSelect: h,
1204
1265
  renderInput: Z,
1205
1266
  renderTextarea: e,
1206
- renderCheckBox: t,
1267
+ renderCheckBox: v,
1207
1268
  renderRadio: d,
1208
1269
  renderUser: o,
1209
1270
  renderSysUser: r,
1210
1271
  renderInvOrg: c,
1211
1272
  renderBU: i,
1212
- renderNumber: m,
1213
- renderLov: V,
1273
+ renderNumber: V,
1274
+ renderLov: H,
1214
1275
  renderSelectLocal: p,
1215
1276
  renderDate: u,
1216
1277
  renderSwitch: n,
1217
- renderCellTag: L,
1278
+ renderCellTag: y,
1218
1279
  renderEnabled: C,
1219
1280
  renderIconSelect: A,
1220
1281
  renderTreeSelect: w
@@ -1318,20 +1379,20 @@ const deviceDetection = () => {
1318
1379
  events: null
1319
1380
  }
1320
1381
  }, formatGridItems = (a, l) => {
1321
- const h = a, o = h.length, r = o > 2 && h.some((t, d) => d < 3 && (t.span > 6 || getDateRange(t))), c = r || o > 3, i = {
1382
+ const h = a, o = h.length, r = o > 2 && h.some((v, d) => d < 3 && (v.span > 6 || getDateRange(v))), c = r || o > 3, i = {
1322
1383
  collapseTags: !0,
1323
1384
  collapseTagsTooltip: !0,
1324
1385
  multiple: !0
1325
- }, Z = h.map((t, d) => {
1326
- var f, m, u;
1327
- return t.folding = r ? c && d > 1 : c && d > 2, t.span = getDateRange(t) ? 12 : t.span || 6, t.code && !t.itemRender && (t.itemRender = renderHook.renderDict(t.code)), t.itemRender = t.itemRender || { name: "VxeInput" }, t.resetValue = t.itemRender.defaultValue, t.title = t.title || `message.${t.field}`, (t.multiple || (m = (f = t.itemRender) == null ? void 0 : f.props) != null && m.multiple) && (t.itemRender.props = Object.assign(
1386
+ }, Z = h.map((v, d) => {
1387
+ var m, V, u;
1388
+ return v.folding = r ? c && d > 1 : c && d > 2, v.span = getDateRange(v) ? 12 : v.span || 6, v.code && !v.itemRender && (v.itemRender = renderHook.renderDict(v.code)), v.itemRender = v.itemRender || { name: "VxeInput" }, v.resetValue = v.itemRender.defaultValue, v.title = v.title || `message.${v.field}`, (v.multiple || (V = (m = v.itemRender) == null ? void 0 : m.props) != null && V.multiple) && (v.itemRender.props = Object.assign(
1328
1389
  i,
1329
- ((u = t.itemRender) == null ? void 0 : u.props) || {}
1330
- )), t;
1390
+ ((u = v.itemRender) == null ? void 0 : u.props) || {}
1391
+ )), v;
1331
1392
  }), e = clone(formSearchButtons, !0);
1332
1393
  if (e.collapseNode = c, l && e.itemRender.options.length < 3 && (e.itemRender.options.push(l), e.itemRender.events = l.events), c) {
1333
- const t = r ? 2 : 3;
1334
- Z.splice(t, 0, e);
1394
+ const v = r ? 2 : 3;
1395
+ Z.splice(v, 0, e);
1335
1396
  } else
1336
1397
  Z.push(e);
1337
1398
  return Z;
@@ -1469,7 +1530,7 @@ const kTOKENKEY = "authorized-token", defaultConfig = {
1469
1530
  c.expires - i <= 0 ? (g.isRefreshing || (g.isRefreshing = !0, this.get(this.baseUrl + "/uath/refreshToken", {
1470
1531
  refreshToken: c.refreshToken
1471
1532
  }).then((e) => {
1472
- this.setToken(e), l.headers.Authorization = "Bearer " + e.access_token, g.requests.forEach((t) => t(e.access_token)), g.requests = [];
1533
+ this.setToken(e), l.headers.Authorization = "Bearer " + e.access_token, g.requests.forEach((v) => v(e.access_token)), g.requests = [];
1473
1534
  }).finally(() => {
1474
1535
  g.isRefreshing = !1;
1475
1536
  })), o(g.retryOriginalRequest(l))) : (l.headers.Authorization = "Bearer " + c.accessToken, o(l));
@@ -1526,16 +1587,16 @@ const kTOKENKEY = "authorized-token", defaultConfig = {
1526
1587
  else if ((e == null ? void 0 : e.code) !== "-1")
1527
1588
  i(e);
1528
1589
  else {
1529
- const t = (e == null ? void 0 : e.msg) || "服务异常";
1530
- errorMessage(t, { duration: 8e3 }), Z(t);
1590
+ const v = (e == null ? void 0 : e.msg) || "服务异常";
1591
+ errorMessage(v, { duration: 8e3 }), Z(v);
1531
1592
  }
1532
1593
  }).catch((e) => {
1533
- var t, d, f;
1594
+ var v, d, m;
1534
1595
  if (e != null && e.code) {
1535
- if (((t = e == null ? void 0 : e.response) == null ? void 0 : t.status) === 401)
1596
+ if (((v = e == null ? void 0 : e.response) == null ? void 0 : v.status) === 401)
1536
1597
  return (d = this.router) == null ? void 0 : d.push({ path: "/login" });
1537
1598
  errorMessage(
1538
- this.getNetworkError((f = e == null ? void 0 : e.response) == null ? void 0 : f.status) || (e == null ? void 0 : e.message),
1599
+ this.getNetworkError((m = e == null ? void 0 : e.response) == null ? void 0 : m.status) || (e == null ? void 0 : e.message),
1539
1600
  { duration: 8e3 }
1540
1601
  );
1541
1602
  }
@@ -2372,52 +2433,52 @@ const http = new SuHttp(), lunarCalendar = {
2372
2433
  return -1;
2373
2434
  let i;
2374
2435
  o ? i = new Date(o, parseInt(r.toString()) - 1, c) : i = /* @__PURE__ */ new Date();
2375
- let Z, e = 0, t = 0;
2436
+ let Z, e = 0, v = 0;
2376
2437
  o = i.getFullYear(), r = i.getMonth() + 1, c = i.getDate();
2377
2438
  let d = (Date.UTC(i.getFullYear(), i.getMonth(), i.getDate()) - Date.UTC(1900, 0, 31)) / 864e5;
2378
2439
  for (Z = 1900; Z < 2101 && d > 0; Z++)
2379
- t = this.lYearDays(Z), d -= t;
2380
- d < 0 && (d += t, Z--);
2381
- const f = /* @__PURE__ */ new Date();
2382
- let m = !1;
2383
- f.getFullYear() === o && f.getMonth() + 1 === r && f.getDate() === c && (m = !0);
2440
+ v = this.lYearDays(Z), d -= v;
2441
+ d < 0 && (d += v, Z--);
2442
+ const m = /* @__PURE__ */ new Date();
2443
+ let V = !1;
2444
+ m.getFullYear() === o && m.getMonth() + 1 === r && m.getDate() === c && (V = !0);
2384
2445
  let u = i.getDay();
2385
- const V = this.nStr1[u];
2446
+ const H = this.nStr1[u];
2386
2447
  u === 0 && (u = 7);
2387
2448
  const p = Z;
2388
2449
  e = this.leapMonth(Z);
2389
2450
  let n = !1;
2390
2451
  for (Z = 1; Z < 13 && d > 0; Z++)
2391
- e > 0 && Z === e + 1 && n === !1 ? (--Z, n = !0, t = this.leapDays(p)) : t = this.monthDays(p, Z), n === !0 && Z === e + 1 && (n = !1), d -= t;
2392
- d === 0 && e > 0 && Z === e + 1 && (n ? n = !1 : (n = !0, --Z)), d < 0 && (d += t, --Z);
2393
- const L = Z, C = d + 1, A = r - 1, w = this.toGanZhiYear(p), H = this.getTerm(o, r * 2 - 1), I = this.getTerm(o, r * 2);
2394
- let v = this.toGanZhi((o - 1900) * 12 + r + 11);
2395
- c >= H && (v = this.toGanZhi((o - 1900) * 12 + r + 12));
2452
+ e > 0 && Z === e + 1 && n === !1 ? (--Z, n = !0, v = this.leapDays(p)) : v = this.monthDays(p, Z), n === !0 && Z === e + 1 && (n = !1), d -= v;
2453
+ d === 0 && e > 0 && Z === e + 1 && (n ? n = !1 : (n = !0, --Z)), d < 0 && (d += v, --Z);
2454
+ const y = Z, C = d + 1, A = r - 1, w = this.toGanZhiYear(p), f = this.getTerm(o, r * 2 - 1), I = this.getTerm(o, r * 2);
2455
+ let t = this.toGanZhi((o - 1900) * 12 + r + 11);
2456
+ c >= f && (t = this.toGanZhi((o - 1900) * 12 + r + 12));
2396
2457
  let M = !1, b;
2397
- H === c && (M = !0, b = this.solarTerm[r * 2 - 2]), I === c && (M = !0, b = this.solarTerm[r * 2 - 1]);
2398
- const s = Date.UTC(o, A, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, y = this.toGanZhi(s + c - 1), S = this.toAstro(r, c), x = o + "-" + r + "-" + c, D = p + "-" + L + "-" + C, E = this.festival, N = this.lFestival, R = r + "-" + c;
2399
- let F = L + "-" + C;
2400
- return L === 12 && C === 29 && this.monthDays(p, L) === 29 && (F = "12-30"), {
2458
+ f === c && (M = !0, b = this.solarTerm[r * 2 - 2]), I === c && (M = !0, b = this.solarTerm[r * 2 - 1]);
2459
+ const s = Date.UTC(o, A, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, L = this.toGanZhi(s + c - 1), S = this.toAstro(r, c), x = o + "-" + r + "-" + c, D = p + "-" + y + "-" + C, F = this.festival, E = this.lFestival, R = r + "-" + c;
2460
+ let N = y + "-" + C;
2461
+ return y === 12 && C === 29 && this.monthDays(p, y) === 29 && (N = "12-30"), {
2401
2462
  date: x,
2402
2463
  lunarDate: D,
2403
- festival: E[R] ? E[R].title : null,
2404
- lunarFestival: N[F] ? N[F].title : null,
2464
+ festival: F[R] ? F[R].title : null,
2465
+ lunarFestival: E[N] ? E[N].title : null,
2405
2466
  lYear: p,
2406
- lMonth: L,
2467
+ lMonth: y,
2407
2468
  lDay: C,
2408
2469
  Animal: this.getAnimal(p),
2409
- IMonthCn: (n ? "闰" : "") + this.toChinaMonth(L),
2470
+ IMonthCn: (n ? "闰" : "") + this.toChinaMonth(y),
2410
2471
  IDayCn: this.toChinaDay(C),
2411
2472
  cYear: o,
2412
2473
  cMonth: r,
2413
2474
  cDay: c,
2414
2475
  gzYear: w,
2415
- gzMonth: v,
2416
- gzDay: y,
2417
- isToday: m,
2476
+ gzMonth: t,
2477
+ gzDay: L,
2478
+ isToday: V,
2418
2479
  isLeap: n,
2419
2480
  nWeek: u,
2420
- ncWeek: "星期" + V,
2481
+ ncWeek: "星期" + H,
2421
2482
  isTerm: M,
2422
2483
  Term: b,
2423
2484
  astro: S
@@ -2445,12 +2506,12 @@ const http = new SuHttp(), lunarCalendar = {
2445
2506
  let Z = 0, e;
2446
2507
  for (e = 1900; e < a; e++)
2447
2508
  Z += this.lYearDays(e);
2448
- let t = 0, d = !1;
2509
+ let v = 0, d = !1;
2449
2510
  for (e = 1; e < l; e++)
2450
- t = this.leapMonth(a), d || t <= e && t > 0 && (Z += this.leapDays(a), d = !0), Z += this.monthDays(a, e);
2511
+ v = this.leapMonth(a), d || v <= e && v > 0 && (Z += this.leapDays(a), d = !0), Z += this.monthDays(a, e);
2451
2512
  o && (Z += c);
2452
- const f = Date.UTC(1900, 1, 30, 0, 0, 0), m = new Date((Z + h - 31) * 864e5 + f), u = m.getUTCFullYear(), V = m.getUTCMonth() + 1, p = m.getUTCDate();
2453
- return this.solar2lunar(u, V, p);
2513
+ const m = Date.UTC(1900, 1, 30, 0, 0, 0), V = new Date((Z + h - 31) * 864e5 + m), u = V.getUTCFullYear(), H = V.getUTCMonth() + 1, p = V.getUTCDate();
2514
+ return this.solar2lunar(u, H, p);
2454
2515
  }
2455
2516
  }, dict = storageLocal.getItem("kLov"), formats = {
2456
2517
  formatDate: {