@das-fed/ui 6.4.0-hot.7 → 6.4.0-hot.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/esm-map.json +7 -4
  2. package/package.json +5 -6
  3. package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +16 -1
  4. package/packages/business-components/device-panel/index.js +22265 -16373
  5. package/packages/business-components/device-panel/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +129 -0
  7. package/packages/business-components/device-panel/src/components/drag-resize/type.d.ts +83 -0
  8. package/packages/business-components/device-panel/style.css +1 -1
  9. package/packages/business-components/device-panel/style.css.gz +0 -0
  10. package/packages/business-components/echarts/index.d.ts +199 -0
  11. package/packages/business-components/echarts/index.js +6959 -6863
  12. package/packages/business-components/echarts/index.js.gz +0 -0
  13. package/packages/business-components/echarts/src/Index.vue.d.ts +24 -0
  14. package/packages/business-components/echarts/src/type.d.ts +19 -0
  15. package/packages/business-components/echarts/style.css +1 -0
  16. package/packages/business-components/import-button/hooks/file.d.ts +1 -1
  17. package/packages/business-components/import-button/index.d.ts +3 -0
  18. package/packages/business-components/import-button/index.js +33 -32
  19. package/packages/business-components/import-button/index.js.gz +0 -0
  20. package/packages/business-components/import-button/src/App.vue.d.ts +1 -0
  21. package/packages/business-components/import-button/style.css +1 -1
  22. package/packages/business-components/model-table-dialog/index.js +156 -135
  23. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  24. package/packages/business-components/model-table-dialog/style.css +1 -1
  25. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  26. package/packages/business-components/process-form/App.vue.d.ts +6 -0
  27. package/packages/business-components/process-form/api-service/formPreView.d.ts +16 -0
  28. package/packages/business-components/process-form/apis.d.ts +4 -0
  29. package/packages/business-components/process-form/index.d.ts +12 -0
  30. package/packages/business-components/process-form/index.js +1414 -1000
  31. package/packages/business-components/process-form/index.js.gz +0 -0
  32. package/packages/business-components/process-form/src/hooks/useForm.d.ts +16 -1
  33. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +3 -1
  34. package/packages/business-components/process-form/src/widgets/base/radio.vue.d.ts +6 -2
  35. package/packages/business-components/process-form/src/widgets/store.d.ts +2 -0
  36. package/packages/business-components/process-form/style.css +1 -1
  37. package/packages/business-components/process-form/type.d.ts +2 -0
  38. package/packages/business-components/urgent-panel/index.d.ts +2 -1
  39. package/packages/business-components/urgent-panel/index.js +1505 -1586
  40. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  41. package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +129 -0
  42. package/packages/business-components/urgent-panel/src/components/drag-resize/type.d.ts +83 -0
  43. package/packages/business-components/urgent-panel/style.css +1 -1
  44. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  45. package/packages/components/calendar/index.js +219 -220
  46. package/packages/components/calendar/index.js.gz +0 -0
  47. package/packages/components/form/index.d.ts +35 -1
  48. package/packages/components/form/index.js +76 -40
  49. package/packages/components/form/index.js.gz +0 -0
  50. package/packages/components/form/src/Index.vue.d.ts +3 -0
  51. package/packages/components/form/src/type.d.ts +3 -0
  52. package/packages/components/form/src/utils/flat-form-item.d.ts +1 -0
  53. package/packages/components/form/style.css +1 -1
  54. package/packages/components/image-viewer/index.js +362 -329
  55. package/packages/components/image-viewer/index.js.gz +0 -0
  56. package/packages/components/image-viewer/src/hooks/use-handler-url-name.d.ts +3 -0
  57. package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +4 -2
  58. package/packages/components/image-viewer/style.css +1 -1
  59. package/packages/components/image-viewer/style.css.gz +0 -0
  60. package/packages/components/menu-aside/index.d.ts +1 -0
  61. package/packages/components/menu-aside/index.js +55 -52
  62. package/packages/components/menu-aside/index.js.gz +0 -0
  63. package/packages/components/menu-aside/src/Index.vue.d.ts +1 -0
  64. package/packages/components/menu-aside/style.css +1 -1
  65. package/packages/components/menu-aside/style.css.gz +0 -0
  66. package/packages/components/table/index.d.ts +35 -1
  67. package/packages/components/table/index.js +575 -571
  68. package/packages/components/table/index.js.gz +0 -0
  69. package/packages/components/table/src/Table.vue.d.ts +3 -0
  70. package/packages/components/table/src/type.d.ts +3 -0
  71. package/packages/components/table/style.css +1 -1
  72. package/packages/components/table/style.css.gz +0 -0
  73. package/packages/components/table/theme/index.d.ts +2 -0
@@ -34,20 +34,20 @@ const Rt = () => (e) => br(e).value, Lt = () => ({
34
34
  emits: ["confirm", "close", "open", "update:modelValue", "treeChange", "tableChange", "update:resultTree", "update:resultTable"],
35
35
  setup(e, { expose: t, emit: r }) {
36
36
  var ce;
37
- const n = e, u = r, p = Rt(), { getServiceApi: g, isEmpty: f } = Lt(), v = me(n, "options"), _ = me(n, "modelValue"), T = (d) => {
37
+ const n = e, u = r, v = Rt(), { getServiceApi: h, isEmpty: f } = Lt(), g = me(n, "options"), _ = me(n, "modelValue"), T = (d) => {
38
38
  _.value = d;
39
39
  };
40
40
  X(_, (d) => {
41
41
  u("update:modelValue", d), u(d ? "open" : "close");
42
42
  });
43
43
  const M = () => {
44
- const { left: d, content: w } = v.value, C = d == null ? void 0 : d.selectListProps, P = w == null ? void 0 : w.selectListProps, F = typeof C == "boolean" ? C : f(C || {}), S = typeof P == "boolean" ? P : f(P || {}), N = F && S ? { treeSelectList: $.value, tableSelectList: A.value } : F ? $.value : A.value, k = n == null ? void 0 : n.beforeConfirm;
44
+ const { left: d, content: w } = g.value, C = d == null ? void 0 : d.selectListProps, P = w == null ? void 0 : w.selectListProps, F = typeof C == "boolean" ? C : f(C || {}), S = typeof P == "boolean" ? P : f(P || {}), N = F && S ? { treeSelectList: $.value, tableSelectList: A.value } : F ? $.value : A.value, k = n == null ? void 0 : n.beforeConfirm;
45
45
  k && typeof k == "function" && !k(N) || je(N);
46
46
  }, $ = j([]), D = (d) => {
47
47
  $.value = d || {};
48
- }, A = j([]), se = (d) => {
48
+ }, A = j([]), ie = (d) => {
49
49
  A.value = d || {};
50
- }, { run: ge, loading: ie, data: Q, error: Ce } = g((ce = n.submitOptions) == null ? void 0 : ce.api), je = async (d) => {
50
+ }, { run: ge, loading: se, data: Q, error: Ce } = h((ce = n.submitOptions) == null ? void 0 : ce.api), je = async (d) => {
51
51
  var N;
52
52
  if (!ge) return u("confirm", d), T(!1);
53
53
  const { params: w = {}, query: C = {}, searchKey: P = "" } = n.submitOptions, F = { ...w, ...C };
@@ -62,7 +62,7 @@ const Rt = () => (e) => br(e).value, Lt = () => ({
62
62
  z(y(mr), H({
63
63
  class: "business-dialog",
64
64
  title: d.title,
65
- loading: y(ie)
65
+ loading: y(se)
66
66
  }, d.$attrs, {
67
67
  width: d.width,
68
68
  height: d.height,
@@ -76,7 +76,7 @@ const Rt = () => (e) => br(e).value, Lt = () => ({
76
76
  onClick: w[0] || (w[0] = (C) => T(!1))
77
77
  }, {
78
78
  default: L(() => [
79
- ft(dt(y(p)("取消")), 1)
79
+ ft(dt(y(v)("取消")), 1)
80
80
  ]),
81
81
  _: 1
82
82
  }),
@@ -86,7 +86,7 @@ const Rt = () => (e) => br(e).value, Lt = () => ({
86
86
  onClick: M
87
87
  }, {
88
88
  default: L(() => [
89
- ft(dt(y(p)("确定")), 1)
89
+ ft(dt(y(v)("确定")), 1)
90
90
  ]),
91
91
  _: 1
92
92
  })
@@ -96,9 +96,9 @@ const Rt = () => (e) => br(e).value, Lt = () => ({
96
96
  key: 0,
97
97
  ref_key: "$modelTableRef",
98
98
  ref: q
99
- }, y(v), {
99
+ }, y(g), {
100
100
  onTreeChange: D,
101
- onTableChange: se
101
+ onTableChange: ie
102
102
  }), It({ _: 2 }, [
103
103
  Et(d.$slots, (C, P, F) => ({
104
104
  name: P,
@@ -368,9 +368,9 @@ function ze(e, t, r) {
368
368
  }
369
369
  function In(e) {
370
370
  return function(t, r, n) {
371
- for (var u = -1, p = Object(t), g = n(t), f = g.length; f--; ) {
372
- var v = g[++u];
373
- if (r(p[v], v, p) === !1)
371
+ for (var u = -1, v = Object(t), h = n(t), f = h.length; f--; ) {
372
+ var g = h[++u];
373
+ if (r(v[g], g, v) === !1)
374
374
  break;
375
375
  }
376
376
  return t;
@@ -456,9 +456,9 @@ function ra(e) {
456
456
  var r = ea.call(t, "constructor") && t.constructor;
457
457
  return typeof r == "function" && r instanceof r && Xt.call(r) == ta;
458
458
  }
459
- var na = "[object Arguments]", aa = "[object Array]", oa = "[object Boolean]", la = "[object Date]", sa = "[object Error]", ia = "[object Function]", ua = "[object Map]", ca = "[object Number]", fa = "[object Object]", da = "[object RegExp]", pa = "[object Set]", va = "[object String]", ga = "[object WeakMap]", ha = "[object ArrayBuffer]", ba = "[object DataView]", ma = "[object Float32Array]", ya = "[object Float64Array]", Ta = "[object Int8Array]", _a = "[object Int16Array]", wa = "[object Int32Array]", Sa = "[object Uint8Array]", Oa = "[object Uint8ClampedArray]", Ca = "[object Uint16Array]", ja = "[object Uint32Array]", m = {};
459
+ var na = "[object Arguments]", aa = "[object Array]", oa = "[object Boolean]", la = "[object Date]", ia = "[object Error]", sa = "[object Function]", ua = "[object Map]", ca = "[object Number]", fa = "[object Object]", da = "[object RegExp]", pa = "[object Set]", va = "[object String]", ga = "[object WeakMap]", ha = "[object ArrayBuffer]", ba = "[object DataView]", ma = "[object Float32Array]", ya = "[object Float64Array]", Ta = "[object Int8Array]", _a = "[object Int16Array]", wa = "[object Int32Array]", Sa = "[object Uint8Array]", Oa = "[object Uint8ClampedArray]", Ca = "[object Uint16Array]", ja = "[object Uint32Array]", m = {};
460
460
  m[ma] = m[ya] = m[Ta] = m[_a] = m[wa] = m[Sa] = m[Oa] = m[Ca] = m[ja] = !0;
461
- m[na] = m[aa] = m[ha] = m[oa] = m[ba] = m[la] = m[sa] = m[ia] = m[ua] = m[ca] = m[fa] = m[da] = m[pa] = m[va] = m[ga] = !1;
461
+ m[na] = m[aa] = m[ha] = m[oa] = m[ba] = m[la] = m[ia] = m[sa] = m[ua] = m[ca] = m[fa] = m[da] = m[pa] = m[va] = m[ga] = !1;
462
462
  function Pa(e) {
463
463
  return ve(e) && Ht(e.length) && !!m[Se(e)];
464
464
  }
@@ -486,9 +486,9 @@ function Ia(e, t, r) {
486
486
  function Ea(e, t, r, n) {
487
487
  var u = !r;
488
488
  r || (r = {});
489
- for (var p = -1, g = t.length; ++p < g; ) {
490
- var f = t[p], v = void 0;
491
- v === void 0 && (v = e[f]), u ? Be(r, f, v) : Ia(r, f, v);
489
+ for (var v = -1, h = t.length; ++v < h; ) {
490
+ var f = t[v], g = void 0;
491
+ g === void 0 && (g = e[f]), u ? Be(r, f, g) : Ia(r, f, g);
492
492
  }
493
493
  return r;
494
494
  }
@@ -503,13 +503,13 @@ function Zt(e, t) {
503
503
  return t = t ?? Ra, !!t && (r == "number" || r != "symbol" && La.test(e)) && e > -1 && e % 1 == 0 && e < t;
504
504
  }
505
505
  function za(e, t) {
506
- var r = Fe(e), n = !r && Me(e), u = !r && !n && Wt(e), p = !r && !n && !u && Yt(e), g = r || n || u || p, f = g ? Ka(e.length, String) : [], v = f.length;
506
+ var r = Fe(e), n = !r && Me(e), u = !r && !n && Wt(e), v = !r && !n && !u && Yt(e), h = r || n || u || v, f = h ? Ka(e.length, String) : [], g = f.length;
507
507
  for (var _ in e)
508
- g && // Safari 9 has enumerable `arguments.length` in strict mode.
508
+ h && // Safari 9 has enumerable `arguments.length` in strict mode.
509
509
  (_ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
510
510
  u && (_ == "offset" || _ == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
511
- p && (_ == "buffer" || _ == "byteLength" || _ == "byteOffset") || // Skip index properties.
512
- Zt(_, v)) || f.push(_);
511
+ v && (_ == "buffer" || _ == "byteLength" || _ == "byteOffset") || // Skip index properties.
512
+ Zt(_, g)) || f.push(_);
513
513
  return f;
514
514
  }
515
515
  function Ma(e) {
@@ -534,26 +534,26 @@ function Qt(e) {
534
534
  function Ua(e) {
535
535
  return Ea(e, Qt(e));
536
536
  }
537
- function Ba(e, t, r, n, u, p, g) {
538
- var f = Ve(e, r), v = Ve(t, r), _ = g.get(v);
537
+ function Ba(e, t, r, n, u, v, h) {
538
+ var f = Ve(e, r), g = Ve(t, r), _ = h.get(g);
539
539
  if (_) {
540
540
  ze(e, r, _);
541
541
  return;
542
542
  }
543
- var T = p ? p(f, v, r + "", e, t, g) : void 0, M = T === void 0;
543
+ var T = v ? v(f, g, r + "", e, t, h) : void 0, M = T === void 0;
544
544
  if (M) {
545
- var $ = Fe(v), D = !$ && Wt(v), A = !$ && !D && Yt(v);
546
- T = v, $ || D || A ? Fe(f) ? T = f : Wn(f) ? T = Mn(f) : D ? (M = !1, T = Rn(v)) : A ? (M = !1, T = zn(v)) : T = [] : ra(v) || Me(v) ? (T = f, Me(f) ? T = Ua(f) : (!Z(f) || Ne(f)) && (T = Un(v))) : M = !1;
545
+ var $ = Fe(g), D = !$ && Wt(g), A = !$ && !D && Yt(g);
546
+ T = g, $ || D || A ? Fe(f) ? T = f : Wn(f) ? T = Mn(f) : D ? (M = !1, T = Rn(g)) : A ? (M = !1, T = zn(g)) : T = [] : ra(g) || Me(g) ? (T = f, Me(f) ? T = Ua(f) : (!Z(f) || Ne(f)) && (T = Un(g))) : M = !1;
547
547
  }
548
- M && (g.set(v, T), u(T, v, n, p, g), g.delete(v)), ze(e, r, T);
548
+ M && (h.set(g, T), u(T, g, n, v, h), h.delete(g)), ze(e, r, T);
549
549
  }
550
550
  function kt(e, t, r, n, u) {
551
- e !== t && En(t, function(p, g) {
552
- if (u || (u = new le()), Z(p))
553
- Ba(e, t, g, r, kt, n, u);
551
+ e !== t && En(t, function(v, h) {
552
+ if (u || (u = new le()), Z(v))
553
+ Ba(e, t, h, r, kt, n, u);
554
554
  else {
555
- var f = n ? n(Ve(e, g), p, g + "", e, t, u) : void 0;
556
- f === void 0 && (f = p), ze(e, g, f);
555
+ var f = n ? n(Ve(e, h), v, h + "", e, t, u) : void 0;
556
+ f === void 0 && (f = v), ze(e, h, f);
557
557
  }
558
558
  }, Qt);
559
559
  }
@@ -576,12 +576,12 @@ function Ga(e, t, r) {
576
576
  var $t = Math.max;
577
577
  function Ha(e, t, r) {
578
578
  return t = $t(t === void 0 ? e.length - 1 : t, 0), function() {
579
- for (var n = arguments, u = -1, p = $t(n.length - t, 0), g = Array(p); ++u < p; )
580
- g[u] = n[t + u];
579
+ for (var n = arguments, u = -1, v = $t(n.length - t, 0), h = Array(v); ++u < v; )
580
+ h[u] = n[t + u];
581
581
  u = -1;
582
582
  for (var f = Array(t + 1); ++u < t; )
583
583
  f[u] = n[u];
584
- return f[t] = r(g), Ga(e, this, f);
584
+ return f[t] = r(h), Ga(e, this, f);
585
585
  };
586
586
  }
587
587
  function qa(e) {
@@ -621,10 +621,10 @@ function eo(e, t, r) {
621
621
  }
622
622
  function to(e) {
623
623
  return ka(function(t, r) {
624
- var n = -1, u = r.length, p = u > 1 ? r[u - 1] : void 0, g = u > 2 ? r[2] : void 0;
625
- for (p = e.length > 3 && typeof p == "function" ? (u--, p) : void 0, g && eo(r[0], r[1], g) && (p = u < 3 ? void 0 : p, u = 1), t = Object(t); ++n < u; ) {
624
+ var n = -1, u = r.length, v = u > 1 ? r[u - 1] : void 0, h = u > 2 ? r[2] : void 0;
625
+ for (v = e.length > 3 && typeof v == "function" ? (u--, v) : void 0, h && eo(r[0], r[1], h) && (v = u < 3 ? void 0 : v, u = 1), t = Object(t); ++n < u; ) {
626
626
  var f = r[n];
627
- f && e(t, f, n, p);
627
+ f && e(t, f, n, v);
628
628
  }
629
629
  return t;
630
630
  });
@@ -651,68 +651,68 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
651
651
  emits: ["treeChange", "tableChange", "update:resultTree", "update:resultTable"],
652
652
  setup(e, { expose: t, emit: r }) {
653
653
  var at, ot, lt;
654
- const n = e, u = r, p = Rt(), { getServiceApi: g, isEmpty: f } = Lt(), v = "id" + (/* @__PURE__ */ new Date()).getTime(), _ = ((at = n.left) == null ? void 0 : at.vNodeName) || "全部", T = async (a) => {
654
+ const n = e, u = r, v = Rt(), { getServiceApi: h, isEmpty: f } = Lt(), g = "id" + (/* @__PURE__ */ new Date()).getTime(), _ = ((at = n.left) == null ? void 0 : at.vNodeName) || "全部", T = async (a) => {
655
655
  var x, I, U, B;
656
- const { query: o = {}, params: i = {}, api: s, searchKey: l = "id" } = ((x = n.left) == null ? void 0 : x.grandChildren) || {};
657
- if (!s) return [];
658
- const c = { ...o, ...i }, h = ((U = (I = n.left) == null ? void 0 : I.props) == null ? void 0 : U.nodeKey) || "id";
659
- a != null && a[h] && (c[l] = a[h]);
660
- const [O, b] = await ((B = s(c)) == null ? void 0 : B.run());
656
+ const { query: o = {}, params: s = {}, api: i, searchKey: l = "id" } = ((x = n.left) == null ? void 0 : x.grandChildren) || {};
657
+ if (!i) return [];
658
+ const c = { ...o, ...s }, p = ((U = (I = n.left) == null ? void 0 : I.props) == null ? void 0 : U.nodeKey) || "id";
659
+ a != null && a[p] && (c[l] = a[p]);
660
+ const [O, b] = await ((B = i(c)) == null ? void 0 : B.run());
661
661
  return O ? {} : (rt(b.data || b), qe(b.data || b), b.data || b);
662
662
  }, M = async (a) => {
663
663
  var x, I, U, B;
664
- const { query: o = {}, params: i = {}, api: s, searchKey: l = "id" } = n.left;
665
- if (!s) return [];
666
- let c = { ...i, ...o };
667
- const h = ((I = (x = n.left) == null ? void 0 : x.props) == null ? void 0 : I.nodeKey) || "id";
668
- c[l] = a[h] || "";
669
- const [O, b] = await ((U = s(c)) == null ? void 0 : U.run());
664
+ const { query: o = {}, params: s = {}, api: i, searchKey: l = "id" } = n.left;
665
+ if (!i) return [];
666
+ let c = { ...s, ...o };
667
+ const p = ((I = (x = n.left) == null ? void 0 : x.props) == null ? void 0 : I.nodeKey) || "id";
668
+ c[l] = a[p] || "";
669
+ const [O, b] = await ((U = i(c)) == null ? void 0 : U.run());
670
670
  return O ? {} : ((B = n.left) != null && B.multiple || rt(), qe(b.data || b), b);
671
671
  }, $ = K(() => {
672
- var o, i, s, l, c, h;
672
+ var o, s, i, l, c, p;
673
673
  const a = {
674
674
  nodeKey: "id",
675
675
  isFilter: !0,
676
676
  props: {
677
677
  children: "children",
678
- label: ((i = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : i.nodeName) || "name",
678
+ label: ((s = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : s.nodeName) || "name",
679
679
  disabled: "disabled",
680
680
  isLeaf: "leaf"
681
681
  },
682
682
  inputOptions: {
683
- placeholder: p("请输入关键词")
683
+ placeholder: v("请输入关键词")
684
684
  }
685
685
  };
686
- return (s = n.left) != null && s.multiple && Object.assign(a, {
686
+ return (i = n.left) != null && i.multiple && Object.assign(a, {
687
687
  showCheckbox: !0,
688
688
  parentLinkChildrenStrictly: !0,
689
- defaultExpandedKeys: [v]
689
+ defaultExpandedKeys: [g]
690
690
  }), (c = (l = n.left) == null ? void 0 : l.grandChildren) != null && c.api && Object.assign(a, {
691
691
  load: M,
692
692
  getGrandChildren: T,
693
693
  defaultExpandedKeys: [Ke]
694
- }), Dt(a, ((h = n.left) == null ? void 0 : h.props) || {});
694
+ }), Dt(a, ((p = n.left) == null ? void 0 : p.props) || {});
695
695
  }), D = K(() => {
696
- var o, i, s, l, c;
696
+ var o, s, i, l, c;
697
697
  const a = {
698
698
  data: [],
699
- valueKey: ((i = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : i.nodeKey) || "id",
700
- labelKey: ((l = (s = n.left) == null ? void 0 : s.props) == null ? void 0 : l.nodeName) || "name"
699
+ valueKey: ((s = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : s.nodeKey) || "id",
700
+ labelKey: ((l = (i = n.left) == null ? void 0 : i.props) == null ? void 0 : l.nodeName) || "name"
701
701
  };
702
702
  return Object.assign(a, ((c = n.left) == null ? void 0 : c.selectListProps) || {}), a;
703
703
  }), A = K(() => {
704
- var o, i, s, l, c;
704
+ var o, s, i, l, c;
705
705
  const a = {
706
706
  data: [],
707
- valueKey: ((i = (o = n.content) == null ? void 0 : o.props) == null ? void 0 : i.rowKey) || "id",
708
- labelKey: ((l = (s = n.content) == null ? void 0 : s.props) == null ? void 0 : l.rowName) || "name"
707
+ valueKey: ((s = (o = n.content) == null ? void 0 : o.props) == null ? void 0 : s.rowKey) || "id",
708
+ labelKey: ((l = (i = n.content) == null ? void 0 : i.props) == null ? void 0 : l.rowName) || "name"
709
709
  };
710
710
  return Object.assign(a, ((c = n.content) == null ? void 0 : c.selectListProps) || {}), a;
711
- }), se = K(() => ce(n.content)), ge = K(() => {
711
+ }), ie = K(() => ce(n.content)), ge = K(() => {
712
712
  var o;
713
713
  const a = (o = n.left) == null ? void 0 : o.selectListProps;
714
714
  return a != null && a.height ? `height:${a == null ? void 0 : a.height}` : "flex: 1;";
715
- }), ie = K(() => {
715
+ }), se = K(() => {
716
716
  var o;
717
717
  const a = (o = n.left) == null ? void 0 : o.selectListProps;
718
718
  return typeof a == "boolean" ? a : f(a || {});
@@ -721,13 +721,13 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
721
721
  const a = (o = n.content) == null ? void 0 : o.selectListProps;
722
722
  return typeof a > "u" ? !0 : typeof a == "boolean" ? a : f(a || {});
723
723
  }), Ce = K(() => {
724
- var a, o, i, s;
725
- return (o = (a = n.left) == null ? void 0 : a.props) != null && o.width || (s = (i = n.content) == null ? void 0 : i.props) != null && s.width ? "width:auto" : "width:250px";
724
+ var a, o, s, i;
725
+ return (o = (a = n.left) == null ? void 0 : a.props) != null && o.width || (i = (s = n.content) == null ? void 0 : s.props) != null && i.width ? "width:auto" : "width:250px";
726
726
  }), je = K(() => {
727
727
  var a;
728
728
  return (a = n.content) != null && a.searchKey && Pe.value || De.value;
729
729
  }), q = K(() => {
730
- var i;
730
+ var s;
731
731
  const a = {
732
732
  rowKey: "id",
733
733
  pageIndex: 1,
@@ -741,54 +741,64 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
741
741
  showPageSelectBtn: !0,
742
742
  toolip: !1
743
743
  }
744
- }), Dt(a, ((i = n.content) == null ? void 0 : i.props) || {});
744
+ }), Dt(a, ((s = n.content) == null ? void 0 : s.props) || {});
745
745
  }), ue = K(() => f(n.left)), ce = (a) => {
746
746
  var o;
747
747
  return (a == null ? void 0 : a.selectAll) || f(((o = a == null ? void 0 : a.props) == null ? void 0 : o.selection) || {});
748
- }, d = me(A.value, "data"), w = me(D.value, "data"), C = j([]), P = j([]), F = j(""), S = j(null), N = Sr(), { run: k, loading: Pe, data: He, error: tr } = g((ot = n.left) == null ? void 0 : ot.api), xe = async (a) => {
748
+ }, d = me(A.value, "data"), w = me(D.value, "data"), C = j([]), P = j([]), F = j(""), S = j(null), N = Sr(), {
749
+ run: k,
750
+ loading: Pe,
751
+ data: He,
752
+ error: tr
753
+ } = h((ot = n.left) == null ? void 0 : ot.api), xe = async (a) => {
749
754
  var l, c;
750
755
  if (!k) return;
751
756
  const o = ((l = n.left) == null ? void 0 : l.params) || {};
752
757
  if (a && Object.assign(o, a), await k(o), tr.value) return;
753
- const i = (c = n.left) == null ? void 0 : c.handleData, s = i ? i(He.value) : He.value || [];
754
- u("update:resultTree", s), ir((s == null ? void 0 : s.data) || s || []);
758
+ const s = (c = n.left) == null ? void 0 : c.handleData, i = s ? s(He.value) : He.value || [];
759
+ u("update:resultTree", i), sr((i == null ? void 0 : i.data) || i || []);
755
760
  }, qe = (a) => {
756
- var s, l;
757
- const o = [], i = ((l = (s = n.left) == null ? void 0 : s.props) == null ? void 0 : l.nodeKey) || "id";
758
- P.value.forEach((c) => o.push(c[i])), a.forEach((c) => !o.includes(c[i]) && P.value.push(c)), u("update:resultTree", P.value);
759
- }, We = j([]), Xe = j([]), ee = j(q.value.pageIndex), he = j(q.value.pageSize), Je = j(0), te = j([]), re = j(""), { run: $e, loading: De, data: rr, error: nr } = g((lt = n.content) == null ? void 0 : lt.api), W = async (a) => {
761
+ var i, l;
762
+ const o = [], s = ((l = (i = n.left) == null ? void 0 : i.props) == null ? void 0 : l.nodeKey) || "id";
763
+ P.value.forEach((c) => o.push(c[s])), a.forEach((c) => !o.includes(c[s]) && P.value.push(c)), u("update:resultTree", P.value);
764
+ }, We = j([]), Xe = j([]), ee = j(q.value.pageIndex), he = j(q.value.pageSize), Je = j(0), te = j([]), re = j(""), {
765
+ run: $e,
766
+ loading: De,
767
+ data: rr,
768
+ error: nr
769
+ } = h((lt = n.content) == null ? void 0 : lt.api), W = async (a) => {
760
770
  var O;
761
771
  if (!$e) return;
762
- const { params: o = {}, searchKey: i = "", query: s = {} } = n.content, l = {
772
+ const { params: o = {}, searchKey: s = "", query: i = {} } = n.content, l = {
763
773
  ...o,
764
- ...s,
774
+ ...i,
765
775
  pageIndex: ee.value,
766
776
  pageSize: he.value
767
777
  };
768
- i && (l[i] = Ye()), a && Object.assign(l, a);
778
+ s && (l[s] = Ye()), a && Object.assign(l, a);
769
779
  const c = (O = n.left) == null ? void 0 : O.handleParams;
770
780
  if (await $e(c ? c(l) : l), nr.value) return;
771
- const h = rr.value || [];
772
- Je.value = +h.totalCount, We.value = h.data, u("update:resultTable", h), sr();
781
+ const p = rr.value || [];
782
+ Je.value = +(p.totalCount || (p == null ? void 0 : p.length) || 0), We.value = (p == null ? void 0 : p.data) || p || [], u("update:resultTable", p), ir();
773
783
  }, be = async (a) => {
774
784
  var b, x;
775
- if (!$e || !se.value) return;
776
- const { searchKey: o = "", params: i = {} } = n.content, s = {
785
+ if (!$e || !ie.value) return;
786
+ const { searchKey: o = "", params: s = {} } = n.content, i = {
777
787
  pageIndex: 1,
778
788
  pageSize: -1,
779
- ...i
789
+ ...s
780
790
  };
781
- o && (s[o] = Ye()), a && Object.assign(s, a);
782
- const l = (b = n.left) == null ? void 0 : b.handleParams, [c, h] = await g((x = n.content) == null ? void 0 : x.api).run(l ? l(s) : s);
791
+ o && (i[o] = Ye()), a && Object.assign(i, a);
792
+ const l = (b = n.left) == null ? void 0 : b.handleParams, [c, p] = await h((x = n.content) == null ? void 0 : x.api).run(l ? l(i) : i);
783
793
  if (c) return;
784
- const O = h.data || h;
794
+ const O = p.data || p;
785
795
  Xe.value = O;
786
796
  }, Ye = () => {
787
- var i;
797
+ var s;
788
798
  const { searchKeyDataFormat: a = "string" } = n.content, o = a.toLocaleLowerCase() === "array";
789
- if ((i = $.value) != null && i.showCheckbox) {
790
- const s = (S.value || []).filter((l) => l !== v);
791
- return o ? s : s.join(",");
799
+ if ((s = $.value) != null && s.showCheckbox) {
800
+ const i = (S.value || []).filter((l) => l !== g);
801
+ return o ? i : i.join(",");
792
802
  }
793
803
  return o ? [S.value] : S.value;
794
804
  }, ar = (a, o) => {
@@ -798,85 +808,87 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
798
808
  }, Ze = (a) => {
799
809
  var o;
800
810
  (o = n.left) != null && o.multiple && hr(() => {
801
- var s;
802
- const { valueKey: i = "id" } = D.value;
803
- (s = N.value) == null || s.treeRef.setChecked(a[i], !1, !0);
811
+ var i;
812
+ const { valueKey: s = "id" } = D.value;
813
+ (i = N.value) == null || i.treeRef.setChecked(a[s], !1, !0);
804
814
  });
805
815
  }, Qe = () => {
806
816
  var a, o;
807
817
  (a = S.value) != null && a.length && (S.value = (o = n.left) != null && o.multiple ? [] : "");
808
818
  }, ke = (a) => {
809
819
  var l;
810
- const { valueKey: o = "id" } = A.value, { rowKey: i = "id" } = q.value, s = a[o];
820
+ const { valueKey: o = "id" } = A.value, { rowKey: s = "id" } = q.value, i = a[o];
811
821
  if ((l = n.content) != null && l.multiple) {
812
- const c = te.value.findIndex((h) => h[i] === s);
822
+ const c = te.value.findIndex((p) => p[s] === i);
813
823
  c !== -1 && te.value.splice(c, 1);
814
824
  return;
815
825
  }
816
- re.value === s && (re.value = "");
826
+ re.value === i && (re.value = "");
817
827
  }, Ae = () => {
818
828
  te.value = [], re.value = "";
819
829
  }, lr = (a) => {
820
- var U, B, st, it;
821
- const { showCheckbox: o, nodeKey: i, props: s } = $.value, { valueKey: l } = D.value, c = (o ? a.value : [a.value]).filter((E) => E !== v), h = [], O = Array.from((B = (U = n.left) == null ? void 0 : U.grandChildren) != null && B.api ? P.value : C.value), b = [], x = !((st = n.left) != null && st.disabledSort);
822
- x && o && (h.push(...new Array(c.length).fill({})), (it = w.value) == null || it.forEach((E) => c.includes(E[l || i]) && b.push(E[i])));
830
+ var U, B, it, st;
831
+ const { showCheckbox: o, nodeKey: s, props: i } = $.value, { valueKey: l } = D.value, c = (o ? a.value : [a.value]).filter((E) => E !== g), p = [], O = Array.from((B = (U = n.left) == null ? void 0 : U.grandChildren) != null && B.api ? P.value : C.value), b = [], x = !((it = n.left) != null && it.disabledSort);
832
+ x && o && (p.push(...new Array(c.length).fill({})), (st = w.value) == null || st.forEach(
833
+ (E) => c.includes(E[l || s]) && b.push(E[s])
834
+ ));
823
835
  const I = [...new Set(b.concat(c))];
824
836
  for (; O.length; ) {
825
- const E = O.shift(), ut = I.findIndex((cr) => E[i] === cr);
826
- ut !== -1 && (x ? h.splice(ut, 1, E) : h.push(E));
827
- const ct = (E == null ? void 0 : E[(s == null ? void 0 : s.children) || "children"]) || [];
837
+ const E = O.shift(), ut = I.findIndex((cr) => E[s] === cr);
838
+ ut !== -1 && (x ? p.splice(ut, 1, E) : p.push(E));
839
+ const ct = (E == null ? void 0 : E[(i == null ? void 0 : i.children) || "children"]) || [];
828
840
  ct.length && O.unshift(...ct);
829
841
  }
830
- return h;
842
+ return p;
831
843
  };
832
844
  let et = !0;
833
- const sr = () => {
845
+ const ir = () => {
834
846
  var a;
835
847
  if (et) {
836
848
  if ((a = n.content) != null && a.multiple)
837
849
  te.value.push(...d.value);
838
850
  else {
839
- const o = d.value[0], { valueKey: i = "id" } = A.value;
840
- o && (re.value = o[i]);
851
+ const o = d.value[0], { valueKey: s = "id" } = A.value;
852
+ o && (re.value = o[s]);
841
853
  }
842
854
  et = !1;
843
855
  }
844
856
  };
845
857
  let tt = !0;
846
858
  const rt = (a) => {
847
- var o, i;
859
+ var o, s;
848
860
  if (tt) {
849
861
  if (a) {
850
- const s = ((i = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : i.nodeKey) || "id", l = [Ke];
851
- a.forEach((c) => l.push(c[s])), S.value = [...new Set(l)];
862
+ const i = ((s = (o = n.left) == null ? void 0 : o.props) == null ? void 0 : s.nodeKey) || "id", l = [Ke];
863
+ a.forEach((c) => l.push(c[i])), S.value = [...new Set(l)];
852
864
  } else
853
865
  S.value = Ke;
854
866
  tt = !1;
855
867
  }
856
868
  };
857
869
  let nt = !0;
858
- const ir = (a) => {
870
+ const sr = (a) => {
859
871
  var O;
860
- const { showCheckbox: o, nodeKey: i, props: s } = $.value;
872
+ const { showCheckbox: o, nodeKey: s, props: i } = $.value;
861
873
  C.value = [], o && (a == null ? void 0 : a.length) > 1 ? C.value.push({
862
- [i]: v,
863
- [s.label || "label"]: p(_),
864
- [s.children || "children"]: a
874
+ [s]: g,
875
+ [i.label || "label"]: v(_),
876
+ [i.children || "children"]: a
865
877
  }) : C.value.push(...a);
866
878
  const { valueKey: l } = D.value;
867
879
  if (nt) {
868
880
  const b = [];
869
- (O = w.value) == null || O.forEach((x) => b.push(x[l || i])), S.value = o ? [...b] : b[0] || "", nt = !1;
881
+ (O = w.value) == null || O.forEach((x) => b.push(x[l || s])), S.value = o ? [...b] : b[0] || "", nt = !1;
870
882
  }
871
883
  if (S.value.length) return;
872
- const c = [], h = Array.from(a);
873
- for (; h.length; ) {
874
- const b = h.shift();
875
- !(typeof s.disabled == "string" ? b[s.disabled] : s.disabled(b)) && !c.includes(b[i]) && c.push(b[i]);
876
- const I = b[s.children || "children"] || [];
877
- I.length && (o ? h.unshift(...I) : h.push(...I));
884
+ const c = [], p = Array.from(a);
885
+ for (; p.length; ) {
886
+ const b = p.shift();
887
+ !(typeof i.disabled == "string" ? b[i.disabled] : i.disabled(b)) && !c.includes(b[s]) && c.push(b[s]);
888
+ const I = b[i.children || "children"] || [];
889
+ I.length && (o ? p.unshift(...I) : p.push(...I));
878
890
  }
879
- o || (S.value = c[0] || ""), o && !ie.value && (S.value = (a == null ? void 0 : a.length) > 1 ? [v] : [], S.value.push(...c));
891
+ o || (S.value = c[0] || ""), o && !se.value && (S.value = (a == null ? void 0 : a.length) > 1 ? [g] : [], S.value.push(...c));
880
892
  }, ur = (a) => {
881
893
  ee.value = a == null ? void 0 : a.pageIndex, he.value = a == null ? void 0 : a.pageSize;
882
894
  };
@@ -889,9 +901,9 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
889
901
  ), X(
890
902
  () => S,
891
903
  (a) => {
892
- var i;
904
+ var s;
893
905
  const o = lr(a);
894
- w.value = o, u("treeChange", o), (i = n.content) != null && i.searchKey && (W(), be());
906
+ w.value = o, u("treeChange", o), (s = n.content) != null && s.searchKey && (W(), be());
895
907
  },
896
908
  { deep: !0 }
897
909
  ), X(
@@ -924,8 +936,17 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
924
936
  ), fr(() => {
925
937
  var a, o;
926
938
  f(((a = n.left) == null ? void 0 : a.grandChildren) || {}) || xe(), (o = n.content) != null && o.searchKey || (W(), be());
927
- }), t({ getTableData: W, getAllTableData: be, getTreeData: xe, removeTableAll: Ae, removeTreeAll: Qe, removeTreeItem: Ze, removeTableItem: ke, setBaseTableConfig: ur }), (a, o) => {
928
- var i, s;
939
+ }), t({
940
+ getTableData: W,
941
+ getAllTableData: be,
942
+ getTreeData: xe,
943
+ removeTableAll: Ae,
944
+ removeTreeAll: Qe,
945
+ removeTreeItem: Ze,
946
+ removeTableItem: ke,
947
+ setBaseTableConfig: ur
948
+ }), (a, o) => {
949
+ var s, i;
929
950
  return R(), G("div", ro, [
930
951
  z(y(wr), H({
931
952
  "box-style": { border: "none" },
@@ -947,7 +968,7 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
947
968
  "selection-rows": te.value,
948
969
  "onUpdate:selectionRows": o[6] || (o[6] = (l) => te.value = l),
949
970
  data: We.value,
950
- allData: se.value ? Xe.value : null,
971
+ allData: ie.value ? Xe.value : null,
951
972
  loading: y(De),
952
973
  onRadioChange: ar,
953
974
  onSelectionChange: or,
@@ -961,15 +982,15 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
961
982
  ne(a.$slots, "pagination-left", {}, void 0, !0)
962
983
  ]),
963
984
  default: L((l) => {
964
- var c, h;
985
+ var c, p;
965
986
  return [
966
987
  ne(a.$slots, "table-column", pr(vr(l)), void 0, !0),
967
- (c = a.content) != null && c.multiple && Q.value && !se.value ? (R(), Le(y(ht), {
988
+ (c = a.content) != null && c.multiple && Q.value && !ie.value ? (R(), Le(y(ht), {
968
989
  key: 0,
969
990
  type: "selection",
970
991
  width: "50"
971
992
  })) : J("", !0),
972
- (R(!0), G(gr, null, Et(((h = a.content) == null ? void 0 : h.columns) || [], (O) => (R(), Le(y(ht), H({
993
+ (R(!0), G(gr, null, Et(((p = a.content) == null ? void 0 : p.columns) || [], (O) => (R(), Le(y(ht), H({
973
994
  key: O,
974
995
  ref_for: !0
975
996
  }, O), null, 16))), 128))
@@ -1014,7 +1035,7 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
1014
1035
  class: "right-box",
1015
1036
  style: pt(Ce.value)
1016
1037
  }, [
1017
- ie.value ? (R(), G("div", {
1038
+ se.value ? (R(), G("div", {
1018
1039
  key: 0,
1019
1040
  class: "tree-select",
1020
1041
  style: pt(ge.value)
@@ -1025,10 +1046,10 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
1025
1046
  }, D.value, {
1026
1047
  onItemRemove: Ze,
1027
1048
  onRemoveAll: Qe,
1028
- "is-view": !((i = a.left) != null && i.multiple)
1049
+ "is-view": !((s = a.left) != null && s.multiple)
1029
1050
  }), null, 16, ["modelValue", "is-view"])
1030
1051
  ], 4)) : J("", !0),
1031
- ie.value && Q.value ? (R(), G("div", ao)) : J("", !0),
1052
+ se.value && Q.value ? (R(), G("div", ao)) : J("", !0),
1032
1053
  Q.value ? (R(), G("div", oo, [
1033
1054
  z(y(gt), H({
1034
1055
  modelValue: y(d),
@@ -1036,14 +1057,14 @@ const ro = { class: "business-dialog-content" }, no = { class: "table-list-box"
1036
1057
  onItemRemove: ke,
1037
1058
  onRemoveAll: Ae
1038
1059
  }, A.value, {
1039
- "is-view": !((s = a.content) != null && s.multiple)
1060
+ "is-view": !((i = a.content) != null && i.multiple)
1040
1061
  }), null, 16, ["modelValue", "is-view"])
1041
1062
  ])) : J("", !0)
1042
1063
  ], 4)) : J("", !0)
1043
1064
  ]);
1044
1065
  };
1045
1066
  }
1046
- }), so = /* @__PURE__ */ zt(lo, [["__scopeId", "data-v-1d9ab6ed"]]), So = () => j(null), Oo = () => j(null), Co = Kt(xr), jo = Kt(so), Po = { name: "modelTable 表格弹窗" };
1067
+ }), io = /* @__PURE__ */ zt(lo, [["__scopeId", "data-v-8796a85b"]]), So = () => j(null), Oo = () => j(null), Co = Kt(xr), jo = Kt(io), Po = { name: "modelTable 表格弹窗" };
1047
1068
  export {
1048
1069
  jo as DasModelTable,
1049
1070
  Co as DasModelTableDialog,
@@ -1 +1 @@
1
- [data-v-2532ecd6] .business-dialog.das-ui-dialog.basic .das-dialog__body{padding:0}.business-dialog-content[data-v-1d9ab6ed]{width:100%;height:100%;display:flex}.business-dialog-content[data-v-1d9ab6ed] .das-ui-split-panel .das-split-panel-first,.business-dialog-content[data-v-1d9ab6ed] .das-ui-split-panel .das-split-panel-second{display:flex;flex-direction:column}.business-dialog-content[data-v-1d9ab6ed] .das-ui-split-panel .das-split-panel-second .table-list-box{flex:1;overflow-y:hidden}.business-dialog-content[data-v-1d9ab6ed] .das-ui-split-panel .das-split-panel-second .table-list-box .el-table__inner-wrapper:before{height:0}.business-dialog-content .right-box[data-v-1d9ab6ed]{display:flex;flex-direction:column;overflow:hidden;border-left:1px solid #d9d9d9}.business-dialog-content .right-box .tree-select[data-v-1d9ab6ed]{overflow:hidden}.business-dialog-content .right-box .line[data-v-1d9ab6ed]{border-top:1px solid #d9d9d9}.business-dialog-content .right-box .table-select[data-v-1d9ab6ed]{flex:1;overflow:hidden}
1
+ [data-v-2532ecd6] .business-dialog.das-ui-dialog.basic .das-dialog__body{padding:0}.business-dialog-content[data-v-8796a85b]{width:100%;height:100%;display:flex}.business-dialog-content[data-v-8796a85b] .das-ui-split-panel .das-split-panel-first,.business-dialog-content[data-v-8796a85b] .das-ui-split-panel .das-split-panel-second{display:flex;flex-direction:column}.business-dialog-content[data-v-8796a85b] .das-ui-split-panel .das-split-panel-second .table-list-box{flex:1;overflow-y:hidden}.business-dialog-content[data-v-8796a85b] .das-ui-split-panel .das-split-panel-second .table-list-box .el-table__inner-wrapper:before{height:0}.business-dialog-content .right-box[data-v-8796a85b]{display:flex;flex-direction:column;overflow:hidden;border-left:1px solid #d9d9d9}.business-dialog-content .right-box .tree-select[data-v-8796a85b]{overflow:hidden}.business-dialog-content .right-box .line[data-v-8796a85b]{border-top:1px solid #d9d9d9}.business-dialog-content .right-box .table-select[data-v-8796a85b]{flex:1;overflow:hidden}
@@ -1,6 +1,8 @@
1
1
  import type { Props } from './type';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
3
3
  isView: boolean;
4
+ showData: {};
5
+ data: {};
4
6
  }>, {
5
7
  validateFormData: () => Promise<unknown>;
6
8
  clearData: () => void;
@@ -8,10 +10,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
8
10
  handleClick: (btn: any, data: any) => void;
9
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
10
12
  isView: boolean;
13
+ showData: {};
14
+ data: {};
11
15
  }>>> & {
12
16
  onHandleClick?: ((btn: any, data: any) => any) | undefined;
13
17
  }, {
18
+ data: any;
14
19
  isView: boolean;
20
+ showData: any;
15
21
  }, {}>;
16
22
  export default _default;
17
23
  type __VLS_WithDefaults<P, D> = {