cc1-form 1.4.2 → 1.4.4

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/cc1-form.js CHANGED
@@ -1,6 +1,6 @@
1
- import { ElMessage as rt, ElLoading as it, ElFormItem as he, ElInput as fe, ElInputNumber as st, ElSwitch as ge, ElSelect as ce, ElOption as ne, ElRadioGroup as je, ElRadioButton as dt, ElRadio as Pe, ElCheckboxGroup as ut, ElCheckboxButton as ft, ElCheckbox as ct, ElColorPicker as pt, ElSlider as mt, ElTreeSelect as bt, ElDatePicker as Ke, ElForm as oe, ElDialog as $e, ElButton as P, ElTableColumn as ue, ElDropdown as Ue, ElDropdownMenu as Ae, ElDropdownItem as de, ElPagination as Be, ElTable as gt } from "element-plus";
1
+ import { ElMessage as lt, ElLoading as rt, ElFormItem as ge, ElInput as ue, ElInputNumber as it, ElSwitch as be, ElSelect as fe, ElOption as ne, ElRadioGroup as Le, ElRadioButton as Te, ElRadio as je, ElCheckboxGroup as st, ElCheckboxButton as dt, ElCheckbox as ut, ElColorPicker as ft, ElSlider as ct, ElTreeSelect as pt, ElDatePicker as Pe, ElForm as oe, ElDialog as $e, ElButton as L, ElTableColumn as de, ElDropdown as mt, ElDropdownMenu as bt, ElDropdownItem as ze, ElPagination as Ue, ElTable as gt } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as Q, reactive as ie, onMounted as He, resolveComponent as pe, openBlock as b, createElementBlock as C, renderSlot as z, createVNode as M, withCtx as h, createTextVNode as O, createCommentVNode as V, Fragment as A, renderList as G, createBlock as y, normalizeClass as J, normalizeStyle as ye, ref as Y, watch as Ne, nextTick as Ce, unref as i, createElementVNode as R, mergeProps as S, toHandlers as $, createSlots as Z, toDisplayString as F, resolveDynamicComponent as ee, computed as ae, onUnmounted as Ie, normalizeProps as Me, guardReactiveProps as Oe, getCurrentInstance as Ge, onBeforeUnmount as ht, withModifiers as yt, resolveDirective as wt, withDirectives as vt } from "vue";
3
+ import { defineComponent as Q, reactive as ie, onMounted as Ke, resolveComponent as ce, openBlock as b, createElementBlock as v, renderSlot as $, createVNode as O, withCtx as y, createTextVNode as M, createCommentVNode as S, Fragment as A, renderList as I, createBlock as h, normalizeClass as J, normalizeStyle as he, ref as Y, watch as He, nextTick as ve, unref as i, createElementVNode as R, mergeProps as V, toHandlers as z, createSlots as Z, toDisplayString as F, resolveDynamicComponent as ee, computed as ae, onUnmounted as Ne, normalizeProps as Me, guardReactiveProps as Oe, getCurrentInstance as Ie, onBeforeUnmount as ht, withModifiers as yt, resolveDirective as wt, withDirectives as kt } from "vue";
4
4
  import { Scope as Fe } from "cc1-vue3";
5
5
  class E {
6
6
  /**
@@ -27,7 +27,7 @@ class E {
27
27
  * @param data 数据
28
28
  * @returns 是否显示
29
29
  */
30
- static isFun = (o, ...s) => Array.isArray(o) ? o.some((t) => typeof t == "function" ? t(...s) : t) : typeof o == "function" ? o(...s) : o;
30
+ static isFun = (o, ...s) => Array.isArray(o) ? o.some((r) => typeof r == "function" ? r(...s) : r) : typeof o == "function" ? o(...s) : o;
31
31
  /**
32
32
  * 获取路由参数,自动获取query、params中的参数, 哪个有就返回哪个
33
33
  */
@@ -72,18 +72,18 @@ class E {
72
72
  * @param type 消息类型
73
73
  * @param options 其他选项
74
74
  */
75
- static showMessage(o, s, t = {}) {
76
- const l = Date.now();
77
- if (!this.tipMessages[o] || l - this.tipMessages[o] > this.tipMessagesGap) {
78
- this.tipMessages[o] = l;
75
+ static showMessage(o, s, r = {}) {
76
+ const t = Date.now();
77
+ if (!this.tipMessages[o] || t - this.tipMessages[o] > this.tipMessagesGap) {
78
+ this.tipMessages[o] = t;
79
79
  const e = Object.assign(
80
80
  {
81
81
  message: o,
82
82
  type: s
83
83
  },
84
- t
84
+ r
85
85
  );
86
- rt(e), setTimeout(() => {
86
+ lt(e), setTimeout(() => {
87
87
  delete this.tipMessages[o];
88
88
  }, this.tipMessagesGap);
89
89
  }
@@ -113,7 +113,7 @@ class E {
113
113
  */
114
114
  static loading = (o = !0, s = "Loading...") => {
115
115
  Timer.un(this.loadingTimer), this.loadingTimer = Timer.once(() => {
116
- o ? this.loadingObj = it.service({
116
+ o ? this.loadingObj = rt.service({
117
117
  lock: !0,
118
118
  text: s,
119
119
  background: "rgba(0, 0, 0, 0.3)"
@@ -127,11 +127,11 @@ class E {
127
127
  */
128
128
  static openUrl = (o, s = !0) => {
129
129
  if (s) {
130
- let t = screen.width / 2 - 500, l = screen.height / 2 - 800 / 2 - 30;
130
+ let r = screen.width / 2 - 500, t = screen.height / 2 - 800 / 2 - 30;
131
131
  window.open(
132
132
  o,
133
133
  "_blank",
134
- "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + l + ", left=" + t
134
+ "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + t + ", left=" + r
135
135
  );
136
136
  } else
137
137
  window.open(o, "DescriptiveWindowName" + StrUtil.getId(), "resizable,scrollbars=yes,status=1,width=1024, height=600, top=0, left=0");
@@ -141,11 +141,11 @@ class E {
141
141
  * @param param
142
142
  * @returns
143
143
  */
144
- static getImgPic = (o) => new Promise(async (s, t) => {
145
- let l = document.getElementById(o.id);
144
+ static getImgPic = (o) => new Promise(async (s, r) => {
145
+ let t = document.getElementById(o.id);
146
146
  const e = await E.loadModule("html2canvas");
147
147
  try {
148
- e(l, {
148
+ e(t, {
149
149
  logging: !1,
150
150
  allowTaint: !0,
151
151
  scale: window.devicePixelRatio,
@@ -155,12 +155,12 @@ class E {
155
155
  windowHeight: o.windowHeight,
156
156
  useCORS: !0,
157
157
  backgroundColor: "#ffffff00"
158
- }).then(function(r) {
159
- let n = r.toDataURL("image/png");
158
+ }).then(function(l) {
159
+ let n = l.toDataURL("image/png");
160
160
  s(n);
161
161
  });
162
- } catch (r) {
163
- t(r);
162
+ } catch (l) {
163
+ r(l);
164
164
  }
165
165
  });
166
166
  }
@@ -402,6 +402,7 @@ class B {
402
402
  scroll: !1,
403
403
  field: "sortNo",
404
404
  rule: "index",
405
+ order: "asc",
405
406
  api: {}
406
407
  }
407
408
  },
@@ -565,9 +566,9 @@ class q {
565
566
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
566
567
  */
567
568
  static findOptions = (o, s) => {
568
- const t = o.column.find((e) => e.key === s), l = (e) => e.replace(/-([a-z])/g, (r, n) => n.toUpperCase());
569
- if (t)
570
- return t.options[l(t.type)];
569
+ const r = o.column.find((e) => e.key === s), t = (e) => e.replace(/-([a-z])/g, (l, n) => n.toUpperCase());
570
+ if (r)
571
+ return r.options[t(r.type)];
571
572
  };
572
573
  /**
573
574
  * 更新组件数据
@@ -585,9 +586,9 @@ class q {
585
586
  }))
586
587
  )
587
588
  */
588
- static setOptionsData = (o, s, t) => {
589
- const l = q.findOptions(o, s);
590
- l && (l.data = t);
589
+ static setOptionsData = (o, s, r) => {
590
+ const t = q.findOptions(o, s);
591
+ t && (t.data = r);
591
592
  };
592
593
  static form = {
593
594
  openBefore: {
@@ -598,9 +599,9 @@ class q {
598
599
  * @param treeData 树形数据
599
600
  * @param option 组件配置
600
601
  */
601
- parentId: (o, s, t, l) => {
602
+ parentId: (o, s, r, t) => {
602
603
  const e = B.config.table.rowKey;
603
- o ? s.type === E.EDialog.Add ? (s.form.parentId = o[e], s.form.sort = o.children.length + 1) : s.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = t.length + 1), q.setOptionsData(l, "parentId", [{ [e]: "0", title: "根", children: t }]);
604
+ o ? s.type === E.EDialog.Add ? (s.form.parentId = o[e], s.form.sort = o.children.length + 1) : s.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = r.length + 1), q.setOptionsData(t, "parentId", [{ [e]: "0", title: "根", children: r }]);
604
605
  }
605
606
  }
606
607
  };
@@ -615,14 +616,14 @@ class X {
615
616
  * @param field 字段名
616
617
  * @param row 行数据
617
618
  */
618
- static setId = (o, s, t) => {
619
+ static setId = (o, s, r) => {
619
620
  s[o] || (s[o] = []);
620
- const l = B.config.table.rowKey;
621
+ const t = B.config.table.rowKey;
621
622
  s[o].forEach((e) => {
622
- t.forEach((r) => {
623
- let n = r.default ?? "";
624
- r.type === "number" && (n = r.default ?? 0), r.type === "boolean" && (n = r.default ?? !1), r.type === "time" && (n = r.default ?? /* @__PURE__ */ new Date()), e[r.value] === void 0 && (e[r.value] = n);
625
- }), e[l] || (e[l] = X.getIdFun());
623
+ r.forEach((l) => {
624
+ let n = l.default ?? "";
625
+ l.type === "number" && (n = l.default ?? 0), l.type === "boolean" && (n = l.default ?? !1), l.type === "time" && (n = l.default ?? /* @__PURE__ */ new Date()), e[l.value] === void 0 && (e[l.value] = n);
626
+ }), e[t] || (e[t] = X.getIdFun());
626
627
  });
627
628
  };
628
629
  /**
@@ -632,19 +633,19 @@ class X {
632
633
  * @param itemFields 元素字段-如:[{label:'',value:''}]
633
634
  * @param callback 回调函数
634
635
  */
635
- static add = (o, s, t, l) => {
636
- const e = JSONUtil.cp(t);
637
- X.setId(o, s, t);
638
- const r = B.config.table.rowKey;
636
+ static add = (o, s, r, t) => {
637
+ const e = JSONUtil.cp(r);
638
+ X.setId(o, s, r);
639
+ const l = B.config.table.rowKey;
639
640
  s[o].push(
640
641
  e.reduce(
641
642
  (n, u) => {
642
643
  let f = u.default ?? "";
643
644
  return u.type === "number" && (f = u.default ?? 0), u.type === "boolean" && (f = u.default ?? !1), u.type === "time" && (f = u.default ?? /* @__PURE__ */ new Date()), n[u.value] = f, n;
644
645
  },
645
- { [r]: X.getIdFun() }
646
+ { [l]: X.getIdFun() }
646
647
  )
647
- ), l?.(s);
648
+ ), t?.(s);
648
649
  };
649
650
  /**
650
651
  * 删除数组元素
@@ -653,9 +654,9 @@ class X {
653
654
  * @param item 元素-如:{_id:''}
654
655
  * @param callback 回调函数
655
656
  */
656
- static remove = (o, s, t, l) => {
657
+ static remove = (o, s, r, t) => {
657
658
  const e = B.config.table.rowKey;
658
- s[o] = s[o].filter((r) => r[e] !== t[e]), l?.(s);
659
+ s[o] = s[o].filter((l) => l[e] !== r[e]), t?.(s);
659
660
  };
660
661
  /**
661
662
  * 获取没有id的数据
@@ -664,20 +665,20 @@ class X {
664
665
  * @returns 没有id的数据
665
666
  */
666
667
  static getNoIdData = (o, s) => {
667
- const t = JSONUtil.cp(o), l = B.config.table.rowKey;
668
- return t.forEach((e) => {
669
- e[l] && delete e[l], s && e[s] && X.getNoIdData(e[s], s);
670
- }), t;
668
+ const r = JSONUtil.cp(o), t = B.config.table.rowKey;
669
+ return r.forEach((e) => {
670
+ e[t] && delete e[t], s && e[s] && X.getNoIdData(e[s], s);
671
+ }), r;
671
672
  };
672
673
  }
673
- const kt = {
674
+ const vt = {
674
675
  key: 0,
675
676
  class: "column curd-form-com-list",
676
677
  style: { width: "100%", gap: "10px" }
677
678
  }, Ct = { key: 0 }, Vt = {
678
679
  class: "row items-center",
679
680
  style: { gap: "10px", width: "100%" }
680
- }, St = { key: 1 }, We = /* @__PURE__ */ Q({
681
+ }, St = { key: 1 }, Ge = /* @__PURE__ */ Q({
681
682
  __name: "list",
682
683
  props: {
683
684
  row: {
@@ -716,81 +717,81 @@ const kt = {
716
717
  },
717
718
  emits: ["change"],
718
719
  setup(a, { emit: o }) {
719
- const s = a, t = ie({
720
+ const s = a, r = ie({
720
721
  show: !1,
721
- add: (e, r, n) => {
722
- X.add(e, r, n, () => {
723
- l("change");
722
+ add: (e, l, n) => {
723
+ X.add(e, l, n, () => {
724
+ t("change");
724
725
  });
725
726
  },
726
- remove: (e, r, n) => {
727
- X.remove(e, r, n, () => {
728
- l("change");
727
+ remove: (e, l, n) => {
728
+ X.remove(e, l, n, () => {
729
+ t("change");
729
730
  });
730
731
  }
731
732
  });
732
- He(() => {
733
- X.setId(s.field, s.row, s.itemFields), t.show = !0;
733
+ Ke(() => {
734
+ X.setId(s.field, s.row, s.itemFields), r.show = !0;
734
735
  });
735
- const l = o;
736
- return (e, r) => {
737
- const n = pe("el-button"), u = pe("el-input");
738
- return t.show ? (b(), C("div", kt, [
739
- z(e.$slots, "list-start", { row: a.row }),
740
- a.addBottom ? V("", !0) : (b(), C("div", Ct, [
741
- M(n, {
736
+ const t = o;
737
+ return (e, l) => {
738
+ const n = ce("el-button"), u = ce("el-input");
739
+ return r.show ? (b(), v("div", vt, [
740
+ $(e.$slots, "list-start", { row: a.row }),
741
+ a.addBottom ? S("", !0) : (b(), v("div", Ct, [
742
+ O(n, {
742
743
  link: "",
743
744
  type: "primary",
744
- onClick: r[0] || (r[0] = (f) => t.add(a.field, a.row, a.itemFields))
745
+ onClick: l[0] || (l[0] = (f) => r.add(a.field, a.row, a.itemFields))
745
746
  }, {
746
- default: h(() => r[3] || (r[3] = [
747
- O("添加")
747
+ default: y(() => l[3] || (l[3] = [
748
+ M("添加")
748
749
  ])),
749
750
  _: 1
750
751
  })
751
752
  ])),
752
- (b(!0), C(A, null, G(a.row[a.field], (f) => (b(), C("div", Vt, [
753
- z(e.$slots, "item-start", {
753
+ (b(!0), v(A, null, I(a.row[a.field], (f) => (b(), v("div", Vt, [
754
+ $(e.$slots, "item-start", {
754
755
  item: f,
755
756
  row: a.row
756
757
  }),
757
- (b(!0), C(A, null, G(a.itemFields, (d) => (b(), y(u, {
758
+ (b(!0), v(A, null, I(a.itemFields, (d) => (b(), h(u, {
758
759
  modelValue: f[d.value],
759
760
  "onUpdate:modelValue": (m) => f[d.value] = m,
760
- style: ye({ width: a.inputWidth }),
761
+ style: he({ width: a.inputWidth }),
761
762
  class: J(a.inputClass),
762
763
  placeholder: d[a.label] || d[a.value],
763
- onChange: r[1] || (r[1] = (m) => l("change"))
764
+ onChange: l[1] || (l[1] = (m) => t("change"))
764
765
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
765
- z(e.$slots, "item-end", {
766
+ $(e.$slots, "item-end", {
766
767
  item: f,
767
768
  row: a.row
768
769
  }),
769
- M(n, {
770
+ O(n, {
770
771
  link: "",
771
772
  type: "danger",
772
- onClick: (d) => t.remove(a.field, a.row, f)
773
+ onClick: (d) => r.remove(a.field, a.row, f)
773
774
  }, {
774
- default: h(() => r[4] || (r[4] = [
775
- O("删除")
775
+ default: y(() => l[4] || (l[4] = [
776
+ M("删除")
776
777
  ])),
777
778
  _: 2
778
779
  }, 1032, ["onClick"])
779
780
  ]))), 256)),
780
- a.addBottom ? (b(), C("div", St, [
781
- M(n, {
781
+ a.addBottom ? (b(), v("div", St, [
782
+ O(n, {
782
783
  link: "",
783
784
  type: "primary",
784
- onClick: r[2] || (r[2] = (f) => t.add(a.field, a.row, a.itemFields))
785
+ onClick: l[2] || (l[2] = (f) => r.add(a.field, a.row, a.itemFields))
785
786
  }, {
786
- default: h(() => r[5] || (r[5] = [
787
- O("添加")
787
+ default: y(() => l[5] || (l[5] = [
788
+ M("添加")
788
789
  ])),
789
790
  _: 1
790
791
  })
791
- ])) : V("", !0),
792
- z(e.$slots, "list-end", { row: a.row })
793
- ])) : V("", !0);
792
+ ])) : S("", !0),
793
+ $(e.$slots, "list-end", { row: a.row })
794
+ ])) : S("", !0);
794
795
  };
795
796
  }
796
797
  }), Et = {
@@ -808,184 +809,184 @@ const kt = {
808
809
  getDisabled: { type: Function }
809
810
  },
810
811
  setup(a) {
811
- const o = a, s = Y(), t = () => {
812
+ const o = a, s = Y(), r = () => {
812
813
  const e = s.value?.validateState;
813
814
  return e && typeof e == "object" && "value" in e ? e.value : e;
814
- }, l = () => {
815
- t() === "error" && s.value?.clearValidate?.();
815
+ }, t = () => {
816
+ r() === "error" && s.value?.clearValidate?.();
816
817
  };
817
- return Ne(
818
+ return He(
818
819
  () => o.form?.[o.item.key],
819
820
  () => {
820
- l(), Ce(() => l());
821
+ t(), ve(() => t());
821
822
  },
822
823
  { deep: !0, flush: "post" }
823
- ), (e, r) => (b(), y(i(he), {
824
+ ), (e, l) => (b(), h(i(ge), {
824
825
  ref_key: "formItemRef",
825
826
  ref: s,
826
827
  label: e.item.text?.form?.label ?? e.item.label,
827
828
  prop: e.item.key,
828
829
  "label-width": e.item.text?.form?.label == "" ? 0 : e.item.form?.labelWidth || e.labelWidth
829
830
  }, {
830
- default: h(() => [
831
+ default: y(() => [
831
832
  R("div", Et, [
832
- z(e.$slots, "form-" + e.item.key + "-start", {
833
+ $(e.$slots, "form-" + e.item.key + "-start", {
833
834
  row: e.form,
834
835
  item: e.item
835
836
  }),
836
837
  R("div", zt, [
837
838
  R("div", $t, [
838
- z(e.$slots, "form-" + e.item.key, {
839
+ $(e.$slots, "form-" + e.item.key, {
839
840
  row: e.form,
840
841
  item: e.item
841
842
  }, () => [
842
- e.item.type === "input" ? (b(), y(i(fe), S({
843
+ e.item.type === "input" ? (b(), h(i(ue), V({
843
844
  key: 0,
844
845
  modelValue: e.form[e.item.key],
845
- "onUpdate:modelValue": r[0] || (r[0] = (n) => e.form[e.item.key] = n)
846
- }, e.getBind(e.item), $(e.getOn(e.item)), {
846
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => e.form[e.item.key] = n)
847
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
847
848
  disabled: e.getDisabled(e.item)
848
849
  }), Z({ _: 2 }, [
849
850
  e.getBind(e.item).prepend ? {
850
851
  name: "prepend",
851
- fn: h(() => [
852
- O(F(typeof e.getBind(e.item).prepend == "function" ? e.getBind(e.item).prepend(e.form) : e.getBind(e.item).prepend), 1)
852
+ fn: y(() => [
853
+ M(F(typeof e.getBind(e.item).prepend == "function" ? e.getBind(e.item).prepend(e.form) : e.getBind(e.item).prepend), 1)
853
854
  ]),
854
855
  key: "0"
855
856
  } : void 0
856
- ]), 1040, ["modelValue", "disabled"])) : e.item.type === "number" ? (b(), y(i(st), S({
857
+ ]), 1040, ["modelValue", "disabled"])) : e.item.type === "number" ? (b(), h(i(it), V({
857
858
  key: 1,
858
859
  modelValue: e.form[e.item.key],
859
- "onUpdate:modelValue": r[1] || (r[1] = (n) => e.form[e.item.key] = n)
860
- }, e.getBind(e.item), $(e.getOn(e.item)), {
860
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => e.form[e.item.key] = n)
861
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
861
862
  disabled: e.getDisabled(e.item)
862
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "textarea" ? (b(), y(i(fe), S({
863
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "textarea" ? (b(), h(i(ue), V({
863
864
  key: 2,
864
865
  type: "textarea",
865
866
  modelValue: e.form[e.item.key],
866
- "onUpdate:modelValue": r[2] || (r[2] = (n) => e.form[e.item.key] = n)
867
- }, e.getBind(e.item), $(e.getOn(e.item)), {
867
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => e.form[e.item.key] = n)
868
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
868
869
  disabled: e.getDisabled(e.item)
869
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "switch" ? (b(), y(i(ge), S({
870
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "switch" ? (b(), h(i(be), V({
870
871
  key: 3,
871
872
  modelValue: e.form[e.item.key],
872
- "onUpdate:modelValue": r[3] || (r[3] = (n) => e.form[e.item.key] = n)
873
- }, e.getBind(e.item), $(e.getOn(e.item)), {
873
+ "onUpdate:modelValue": l[3] || (l[3] = (n) => e.form[e.item.key] = n)
874
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
874
875
  disabled: e.getDisabled(e.item)
875
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "select" ? (b(), y(i(ce), S({
876
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "select" ? (b(), h(i(fe), V({
876
877
  key: 4,
877
878
  modelValue: e.form[e.item.key],
878
- "onUpdate:modelValue": r[4] || (r[4] = (n) => e.form[e.item.key] = n)
879
- }, e.getBind(e.item), $(e.getOn(e.item)), {
879
+ "onUpdate:modelValue": l[4] || (l[4] = (n) => e.form[e.item.key] = n)
880
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
880
881
  disabled: e.getDisabled(e.item),
881
882
  style: { width: "100%" }
882
883
  }), {
883
- default: h(() => [
884
- (b(!0), C(A, null, G(e.getBind(e.item).data || [], (n) => (b(), y(i(ne), S({
884
+ default: y(() => [
885
+ (b(!0), v(A, null, I(e.getBind(e.item).data || [], (n) => (b(), h(i(ne), V({
885
886
  key: n.value,
886
887
  ref_for: !0
887
- }, n, $(n.on || {})), null, 16))), 128))
888
+ }, n, z(n.on || {})), null, 16))), 128))
888
889
  ]),
889
890
  _: 1
890
- }, 16, ["modelValue", "disabled"])) : e.item.type === "radio" ? (b(), y(i(je), S({
891
+ }, 16, ["modelValue", "disabled"])) : e.item.type === "radio" ? (b(), h(i(Le), V({
891
892
  key: 5,
892
893
  modelValue: e.form[e.item.key],
893
- "onUpdate:modelValue": r[5] || (r[5] = (n) => e.form[e.item.key] = n)
894
- }, e.getBind(e.item), $(e.getOn(e.item)), {
894
+ "onUpdate:modelValue": l[5] || (l[5] = (n) => e.form[e.item.key] = n)
895
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
895
896
  disabled: e.getDisabled(e.item),
896
897
  style: { width: "100%" }
897
898
  }), {
898
- default: h(() => [
899
- e.getBind(e.item).type === "group" ? (b(!0), C(A, { key: 0 }, G(e.getBind(e.item).data || [], (n) => (b(), y(i(dt), S({
899
+ default: y(() => [
900
+ e.getBind(e.item).type === "group" ? (b(!0), v(A, { key: 0 }, I(e.getBind(e.item).data || [], (n) => (b(), h(i(Te), V({
900
901
  key: n.value,
901
902
  ref_for: !0
902
- }, n, $(n.on || {})), null, 16))), 128)) : (b(!0), C(A, { key: 1 }, G(e.getBind(e.item).data || [], (n) => (b(), y(i(Pe), S({
903
+ }, n, z(n.on || {})), null, 16))), 128)) : (b(!0), v(A, { key: 1 }, I(e.getBind(e.item).data || [], (n) => (b(), h(i(je), V({
903
904
  key: n.value,
904
905
  ref_for: !0
905
- }, n, $(n.on || {})), null, 16))), 128))
906
+ }, n, z(n.on || {})), null, 16))), 128))
906
907
  ]),
907
908
  _: 1
908
- }, 16, ["modelValue", "disabled"])) : e.item.type === "checkbox" ? (b(), y(i(ut), S({
909
+ }, 16, ["modelValue", "disabled"])) : e.item.type === "checkbox" ? (b(), h(i(st), V({
909
910
  key: 6,
910
911
  modelValue: e.form[e.item.key],
911
- "onUpdate:modelValue": r[6] || (r[6] = (n) => e.form[e.item.key] = n)
912
- }, e.getBind(e.item), $(e.getOn(e.item)), {
912
+ "onUpdate:modelValue": l[6] || (l[6] = (n) => e.form[e.item.key] = n)
913
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
913
914
  disabled: e.getDisabled(e.item),
914
915
  style: { width: "100%" }
915
916
  }), {
916
- default: h(() => [
917
- e.getBind(e.item).type === "group" ? (b(!0), C(A, { key: 0 }, G(e.getBind(e.item).data || [], (n) => (b(), y(i(ft), S({
917
+ default: y(() => [
918
+ e.getBind(e.item).type === "group" ? (b(!0), v(A, { key: 0 }, I(e.getBind(e.item).data || [], (n) => (b(), h(i(dt), V({
918
919
  key: n.value,
919
920
  ref_for: !0
920
- }, n, $(n.on || {})), null, 16))), 128)) : (b(!0), C(A, { key: 1 }, G(e.getBind(e.item).data || [], (n) => (b(), y(i(ct), S({
921
+ }, n, z(n.on || {})), null, 16))), 128)) : (b(!0), v(A, { key: 1 }, I(e.getBind(e.item).data || [], (n) => (b(), h(i(ut), V({
921
922
  key: n.value,
922
923
  ref_for: !0
923
- }, n, $(n.on || {})), null, 16))), 128))
924
+ }, n, z(n.on || {})), null, 16))), 128))
924
925
  ]),
925
926
  _: 1
926
- }, 16, ["modelValue", "disabled"])) : e.item.type === "color" ? (b(), y(i(pt), S({
927
+ }, 16, ["modelValue", "disabled"])) : e.item.type === "color" ? (b(), h(i(ft), V({
927
928
  key: 7,
928
929
  modelValue: e.form[e.item.key],
929
- "onUpdate:modelValue": r[7] || (r[7] = (n) => e.form[e.item.key] = n)
930
- }, e.getBind(e.item), $(e.getOn(e.item)), {
930
+ "onUpdate:modelValue": l[7] || (l[7] = (n) => e.form[e.item.key] = n)
931
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
931
932
  disabled: e.getDisabled(e.item)
932
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "slider" ? (b(), y(i(mt), S({
933
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "slider" ? (b(), h(i(ct), V({
933
934
  key: 8,
934
935
  modelValue: e.form[e.item.key],
935
- "onUpdate:modelValue": r[8] || (r[8] = (n) => e.form[e.item.key] = n)
936
- }, e.getBind(e.item), $(e.getOn(e.item)), {
936
+ "onUpdate:modelValue": l[8] || (l[8] = (n) => e.form[e.item.key] = n)
937
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
937
938
  disabled: e.getDisabled(e.item)
938
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "list" ? (b(), y(We, S({
939
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "list" ? (b(), h(Ge, V({
939
940
  key: 9,
940
941
  row: e.form,
941
942
  field: e.item.key
942
- }, e.getBind(e.item), $(e.getOn(e.item)), {
943
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
943
944
  disabled: e.getDisabled(e.item),
944
945
  style: { width: "100%" }
945
- }), null, 16, ["row", "field", "disabled"])) : e.item.type === "treeSelect" ? (b(), y(i(bt), S({
946
+ }), null, 16, ["row", "field", "disabled"])) : e.item.type === "treeSelect" ? (b(), h(i(pt), V({
946
947
  key: 10,
947
948
  modelValue: e.form[e.item.key],
948
- "onUpdate:modelValue": r[9] || (r[9] = (n) => e.form[e.item.key] = n)
949
- }, e.getBind(e.item), $(e.getOn(e.item)), {
949
+ "onUpdate:modelValue": l[9] || (l[9] = (n) => e.form[e.item.key] = n)
950
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
950
951
  disabled: e.getDisabled(e.item),
951
952
  style: { width: "100%" }
952
- }), null, 16, ["modelValue", "disabled"])) : e.item.type === "datetime" ? (b(), y(i(Ke), S({
953
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type === "datetime" ? (b(), h(i(Pe), V({
953
954
  key: 11,
954
955
  modelValue: e.form[e.item.key],
955
- "onUpdate:modelValue": r[10] || (r[10] = (n) => e.form[e.item.key] = n)
956
- }, e.getBind(e.item), $(e.getOn(e.item)), {
956
+ "onUpdate:modelValue": l[10] || (l[10] = (n) => e.form[e.item.key] = n)
957
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
957
958
  disabled: e.getDisabled(e.item)
958
- }), null, 16, ["modelValue", "disabled"])) : e.item.type && typeof e.item.type == "object" ? (b(), y(ee(e.item.type), S({
959
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type && typeof e.item.type == "object" ? (b(), h(ee(e.item.type), V({
959
960
  key: 12,
960
961
  modelValue: e.form[e.item.key],
961
- "onUpdate:modelValue": r[11] || (r[11] = (n) => e.form[e.item.key] = n)
962
- }, e.getBind(e.item), $(e.getOn(e.item)), {
962
+ "onUpdate:modelValue": l[11] || (l[11] = (n) => e.form[e.item.key] = n)
963
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
963
964
  disabled: e.getDisabled(e.item)
964
- }), null, 16, ["modelValue", "disabled"])) : e.item.type && (i(q).customComponent[e.item.type] || i(q).customComponent[e.item.type]?.form) ? (b(), y(ee(i(q).customComponent[e.item.type]?.form || i(q).customComponent[e.item.type]), S({
965
+ }), null, 16, ["modelValue", "disabled"])) : e.item.type && (i(q).customComponent[e.item.type] || i(q).customComponent[e.item.type]?.form) ? (b(), h(ee(i(q).customComponent[e.item.type]?.form || i(q).customComponent[e.item.type]), V({
965
966
  key: 13,
966
967
  modelValue: e.form[e.item.key],
967
- "onUpdate:modelValue": r[12] || (r[12] = (n) => e.form[e.item.key] = n)
968
- }, e.getBind(e.item), $(e.getOn(e.item)), {
968
+ "onUpdate:modelValue": l[12] || (l[12] = (n) => e.form[e.item.key] = n)
969
+ }, e.getBind(e.item), z(e.getOn(e.item)), {
969
970
  disabled: e.getDisabled(e.item)
970
- }), null, 16, ["modelValue", "disabled"])) : V("", !0)
971
+ }), null, 16, ["modelValue", "disabled"])) : S("", !0)
971
972
  ]),
972
- z(e.$slots, "form-" + e.item.key + "-right", {
973
+ $(e.$slots, "form-" + e.item.key + "-right", {
973
974
  row: e.form,
974
975
  item: e.item
975
976
  })
976
977
  ]),
977
- z(e.$slots, "form-" + e.item.key + "-tip", {
978
+ $(e.$slots, "form-" + e.item.key + "-tip", {
978
979
  row: e.form,
979
980
  item: e.item
980
981
  }, () => [
981
- e.item.form?.tipText ? (b(), C("div", {
982
+ e.item.form?.tipText ? (b(), v("div", {
982
983
  key: 0,
983
984
  class: "form-tip-text",
984
985
  innerHTML: typeof e.item.form?.tipText == "function" ? e.item.form?.tipText(e.form, e.type) : e.item.form?.tipText
985
- }, null, 8, Mt)) : V("", !0)
986
+ }, null, 8, Mt)) : S("", !0)
986
987
  ])
987
988
  ]),
988
- z(e.$slots, "form-" + e.item.key + "-end", {
989
+ $(e.$slots, "form-" + e.item.key + "-end", {
989
990
  row: e.form,
990
991
  item: e.item
991
992
  })
@@ -1037,17 +1038,17 @@ const Ft = {
1037
1038
  sortableExit: "退出排序",
1038
1039
  sortableUpdateApiRequired: "未配置排序保存接口"
1039
1040
  };
1040
- class k {
1041
+ class C {
1041
1042
  /** 解析国际化值:函数则执行并返回字符串,字符串则替换 `{key}` 占位符 */
1042
1043
  static t(o, ...s) {
1043
1044
  if (typeof o == "function")
1044
1045
  return o(...s);
1045
1046
  o = String(o);
1046
- let t = 0;
1047
- return o.replace(/{([^}]+)}/g, (l, e) => t < s.length ? String(s[t++]) : `{${e}}`);
1047
+ let r = 0;
1048
+ return o.replace(/{([^}]+)}/g, (t, e) => r < s.length ? String(s[r++]) : `{${e}}`);
1048
1049
  }
1049
1050
  static setI18n = (o) => {
1050
- k.curd = ObjectUtil.deepMerge(k.curd, o);
1051
+ C.curd = ObjectUtil.deepMerge(C.curd, o);
1051
1052
  };
1052
1053
  /** 解析curd国际化值 */
1053
1054
  static tCurd(o, ...s) {
@@ -1074,52 +1075,52 @@ class x {
1074
1075
  * @param delAll 是否删除目标对象所有属性
1075
1076
  * @returns
1076
1077
  */
1077
- static setValue = (o, s, t = !1) => {
1078
- t && x.delAllKey(o), Object.keys(s).forEach((l) => {
1079
- o[l] !== s[l] && (o[l] = s[l]);
1078
+ static setValue = (o, s, r = !1) => {
1079
+ r && x.delAllKey(o), Object.keys(s).forEach((t) => {
1080
+ o[t] !== s[t] && (o[t] = s[t]);
1080
1081
  });
1081
1082
  };
1082
1083
  }
1083
- const we = (a) => {
1084
- const o = ie({}), s = () => typeof a == "function" ? a() : a, t = () => {
1085
- const l = s();
1086
- return l ?? o;
1084
+ const ye = (a) => {
1085
+ const o = ie({}), s = () => typeof a == "function" ? a() : a, r = () => {
1086
+ const t = s();
1087
+ return t ?? o;
1087
1088
  };
1088
1089
  return {
1089
1090
  internal: o,
1090
1091
  isExternal: () => s() != null,
1091
1092
  get() {
1092
- return t();
1093
+ return r();
1093
1094
  },
1094
- set(l) {
1095
- x.setValue(t(), l, !0);
1095
+ set(t) {
1096
+ x.setValue(r(), t, !0);
1096
1097
  },
1097
- merge(l) {
1098
- x.setValue(t(), l, !1);
1098
+ merge(t) {
1099
+ x.setValue(r(), t, !1);
1099
1100
  },
1100
1101
  clear() {
1101
- x.delAllKey(t());
1102
+ x.delAllKey(r());
1102
1103
  }
1103
1104
  };
1104
- }, me = (a) => {
1105
+ }, pe = (a) => {
1105
1106
  a.forEach((o) => {
1106
1107
  console.error({
1107
1108
  field: o.field || "",
1108
1109
  error: o.error || ""
1109
1110
  });
1110
1111
  });
1111
- }, Rt = (a) => a ? typeof a == "string" ? a : a instanceof Error ? a.message : a.message || String(a) : "", ve = (a) => !a || typeof a != "object" ? [] : Object.keys(a).flatMap((o) => (Array.isArray(a[o]) ? a[o] : [a[o]]).map((t) => ({
1112
- field: t?.field || o,
1113
- error: Rt(t)
1114
- }))), be = E.EDialog, le = (a) => typeof a.type == "object" ? "component" : a.type || "input", Dt = (a, o, s) => {
1115
- const t = we(() => o.form), l = (r) => De(r.update.formGrid || [], r.update.form, r.update.type, r.update.formMaxSpan).map((u) => u.item.key).filter(Boolean), e = async (r) => {
1112
+ }, Rt = (a) => a ? typeof a == "string" ? a : a instanceof Error ? a.message : a.message || String(a) : "", we = (a) => !a || typeof a != "object" ? [] : Object.keys(a).flatMap((o) => (Array.isArray(a[o]) ? a[o] : [a[o]]).map((r) => ({
1113
+ field: r?.field || o,
1114
+ error: Rt(r)
1115
+ }))), me = E.EDialog, le = (a) => typeof a.type == "object" ? "component" : a.type || "input", Dt = (a, o, s) => {
1116
+ const r = ye(() => o.form), t = (l) => De(l.update.formGrid || [], l.update.form, l.update.type, l.update.formMaxSpan).map((u) => u.item.key).filter(Boolean), e = async (l) => {
1116
1117
  const n = s.ruleFormRef.value;
1117
1118
  if (!n) return !0;
1118
- await Ce();
1119
- const u = l(r), f = Object.keys(r.update.rules || {}).filter((m) => !u.includes(m));
1119
+ await ve();
1120
+ const u = t(l), f = Object.keys(l.update.rules || {}).filter((m) => !u.includes(m));
1120
1121
  if (f.length && n.clearValidate(f), !u.length) return !0;
1121
1122
  if (!await n.validateField(u, async (m, c) => {
1122
- m || me(ve(c));
1123
+ m || pe(we(c));
1123
1124
  })) throw !1;
1124
1125
  return !0;
1125
1126
  };
@@ -1130,33 +1131,33 @@ const we = (a) => {
1130
1131
  show: !1,
1131
1132
  showContent: !1,
1132
1133
  loading: !1,
1133
- type: be.Update,
1134
+ type: me.Update,
1134
1135
  get form() {
1135
- return t.get();
1136
+ return r.get();
1136
1137
  },
1137
- set form(r) {
1138
- t.set(r);
1138
+ set form(l) {
1139
+ r.set(l);
1139
1140
  },
1140
1141
  formDefault: {},
1141
1142
  formColumn: [],
1142
1143
  formGrid: [],
1143
1144
  formMaxSpan: 12,
1144
- getDisabled: (r, n = !1) => {
1145
+ getDisabled: (l, n = !1) => {
1145
1146
  const u = a();
1146
- return o.option.table?.editMode && n ? r.disabled?.table === void 0 ? !1 : E.isFun(r.disabled?.table, u.update.form) : Qe(r, u.update.type, u.update.form);
1147
+ return o.option.table?.editMode && n ? l.disabled?.table === void 0 ? !1 : E.isFun(l.disabled?.table, u.update.form) : Je(l, u.update.type, u.update.form);
1147
1148
  },
1148
- getBind: (r) => {
1149
+ getBind: (l) => {
1149
1150
  const n = a();
1150
- return Xe(r, n.update.type);
1151
+ return Qe(l, n.update.type);
1151
1152
  },
1152
- getOn: (r, n) => {
1153
+ getOn: (l, n) => {
1153
1154
  const u = a();
1154
- return Ye(r, u.update.type, [n || u.update.form, r]);
1155
+ return Xe(l, u.update.type, [n || u.update.form, l]);
1155
1156
  },
1156
- getOptions: (r) => {
1157
+ getOptions: (l) => {
1157
1158
  const n = a();
1158
1159
  try {
1159
- const f = Lt(n.update.formGrid?.length ? n.update.formGrid : n.update.formColumn).find((d) => d.item.key === r)?.item;
1160
+ const f = Lt(n.update.formGrid?.length ? n.update.formGrid : n.update.formColumn).find((d) => d.item.key === l)?.item;
1160
1161
  return f ? {
1161
1162
  options: f.options,
1162
1163
  //@ts-ignore
@@ -1168,27 +1169,27 @@ const we = (a) => {
1168
1169
  },
1169
1170
  edit: {
1170
1171
  data: {},
1171
- getApiData: (r) => {
1172
+ getApiData: (l) => {
1172
1173
  const n = a();
1173
- if (o.option.form?.editAll) return r;
1174
+ if (o.option.form?.editAll) return l;
1174
1175
  const u = {
1175
1176
  [o.option.table?.rowKey]: n.update.edit.data[o.option.table?.rowKey]
1176
1177
  };
1177
1178
  return Object.keys(n.update.edit.data).forEach((f) => {
1178
- r[f] !== n.update.edit.data[f] && (u[f] = r[f]);
1179
+ l[f] !== n.update.edit.data[f] && (u[f] = l[f]);
1179
1180
  }), u;
1180
1181
  }
1181
1182
  },
1182
1183
  view: {},
1183
1184
  openLoading: !1,
1184
- open: async (r, n) => {
1185
+ open: async (l, n) => {
1185
1186
  const u = a();
1186
1187
  if (!(u.update.showContent || u.update.openLoading)) {
1187
1188
  E.loading(!0), u.update.openLoading = !0;
1188
1189
  try {
1189
- u.update.type = r;
1190
- const f = r === be.Add;
1191
- u.update.edit.data = f ? void 0 : JSONUtil.cp(n), u.update.title = k.tCurd(f ? "add" : r === be.View ? "view" : "edit");
1190
+ u.update.type = l;
1191
+ const f = l === me.Add;
1192
+ u.update.edit.data = f ? void 0 : JSONUtil.cp(n), u.update.title = C.tCurd(f ? "add" : l === me.View ? "view" : "edit");
1192
1193
  const d = f ? ObjectUtil.deepMerge(JSONUtil.cp(u.update.formDefault), n ? JSONUtil.cp(n) : {}) : JSONUtil.cp(n);
1193
1194
  x.setValue(u.update.form, d, !0), await u.initApiData("update"), await o.option.form?.openBefore?.(u.update.form, u.update), (!o.option.table?.inlineEdit || f) && (u.update.show = !0, u.update.showContent = !0), o.option.form?.openAfter?.(u.update.form, u.update);
1194
1195
  } catch (f) {
@@ -1201,31 +1202,31 @@ const we = (a) => {
1201
1202
  /** 临时错误信息,直接赋值会取最后一个完成校验的错误信息,使用setErrorText方法只会提示第一个设置的错误信息 */
1202
1203
  errorText: "",
1203
1204
  /** 设置临时错误信息,只会提示第一个设置的错误信息 */
1204
- setErrorText: (r) => {
1205
+ setErrorText: (l) => {
1205
1206
  const n = a();
1206
- n.update.errorText || (n.update.errorText = r);
1207
+ n.update.errorText || (n.update.errorText = l);
1207
1208
  },
1208
- validate: async (r = !0) => {
1209
+ validate: async (l = !0) => {
1209
1210
  const n = a();
1210
1211
  try {
1211
1212
  const u = o.option.table?.editMode ? n.tableEditValidate.validate() : e(n);
1212
1213
  return await Promise.all([u, n.formRef.validate()]), !0;
1213
1214
  } catch {
1214
- return r && E.fail(n.update.errorText || k.tCurd("checkFormData")), n.update.errorText = "", !1;
1215
+ return l && E.fail(n.update.errorText || C.tCurd("checkFormData")), n.update.errorText = "", !1;
1215
1216
  }
1216
1217
  },
1217
1218
  submit: async () => {
1218
- const r = a();
1219
- if (!await r.update.validate() || r.update.loading) return;
1220
- r.update.loading = !0;
1221
- const u = r.update.type === be.Add ? o.option.api.create : o.option.api.update;
1219
+ const l = a();
1220
+ if (!await l.update.validate() || l.update.loading) return;
1221
+ l.update.loading = !0;
1222
+ const u = l.update.type === me.Add ? o.option.api.create : o.option.api.update;
1222
1223
  try {
1223
- await o.option.form?.submitBefore?.(r.update.form, r.update);
1224
+ await o.option.form?.submitBefore?.(l.update.form, l.update);
1224
1225
  } catch {
1225
- r.update.loading = !1;
1226
+ l.update.loading = !1;
1226
1227
  return;
1227
1228
  }
1228
- let f = ObjectUtil.deepMerge(r.update.form, {});
1229
+ let f = ObjectUtil.deepMerge(l.update.form, {});
1229
1230
  delete f.children;
1230
1231
  const d = new Set(o.option.column.filter((m) => m.type === "datetime").map((m) => m.key));
1231
1232
  Object.keys(f).forEach((m) => {
@@ -1236,158 +1237,158 @@ const we = (a) => {
1236
1237
  });
1237
1238
  try {
1238
1239
  if (!u) return;
1239
- await u({ ...f }), r.update.close(), await r.table.getList(), o.option.form?.submitAfter?.(f, r.update);
1240
+ await u({ ...f }), l.update.close(), await l.table.getList(), o.option.form?.submitAfter?.(f, l.update);
1240
1241
  } catch (m) {
1241
1242
  console.error(m);
1242
1243
  } finally {
1243
- r.update.loading = !1;
1244
+ l.update.loading = !1;
1244
1245
  }
1245
1246
  },
1246
1247
  close: () => {
1247
- const r = a();
1248
- r.update.show = !1, r.update.edit.data = void 0, setTimeout(() => {
1249
- r.update.showContent = !1, s.ruleFormRef.value?.resetFields?.(), t.clear();
1248
+ const l = a();
1249
+ l.update.show = !1, l.update.edit.data = void 0, setTimeout(() => {
1250
+ l.update.showContent = !1, s.ruleFormRef.value?.resetFields?.(), r.clear();
1250
1251
  }, 350);
1251
1252
  }
1252
1253
  }
1253
1254
  };
1254
1255
  }, W = 12, ke = (a, o) => {
1255
1256
  a.isForm = o, Array.isArray(a.children) && a.children.forEach((s) => ke(s, o));
1256
- }, Ut = (a) => a.isForm === !1 ? !1 : typeof a.show?.form == "boolean" ? a.show.form : !0, qe = (a) => a > W ? Math.floor(a / 2) : a, At = (a, o, s) => (a.form = a.form || { span: o }, s === "column" ? a.form.span = a.form.span ?? 12 : a.form.span = a.form.span ?? o, a.form.span = qe(a.form.span), a.form.span), Je = (a) => {
1257
+ }, Ut = (a) => a.isForm === !1 ? !1 : typeof a.show?.form == "boolean" ? a.show.form : !0, We = (a) => a > W ? Math.floor(a / 2) : a, At = (a, o, s) => (a.form = a.form || { span: o }, s === "column" ? a.form.span = a.form.span ?? 12 : a.form.span = a.form.span ?? o, a.form.span = We(a.form.span), a.form.span), qe = (a) => {
1257
1258
  const o = a.form;
1258
- return o?.row != null && o.row > 0 ? qe(o.row) : W;
1259
- }, re = (a) => Math.floor((a.gridRow - 1) / W), Qe = (a, o, s) => {
1259
+ return o?.row != null && o.row > 0 ? We(o.row) : W;
1260
+ }, re = (a) => Math.floor((a.gridRow - 1) / W), Je = (a, o, s) => {
1260
1261
  if (o === E.EDialog.View)
1261
1262
  return a.disabled?.view === void 0 ? !0 : E.isFun(a.disabled?.view, s);
1262
- const t = a.disabled?.[o === E.EDialog.Add ? "create" : "update"];
1263
- return E.isFun(t, s);
1264
- }, Xe = (a, o) => {
1263
+ const r = a.disabled?.[o === E.EDialog.Add ? "create" : "update"];
1264
+ return E.isFun(r, s);
1265
+ }, Qe = (a, o) => {
1265
1266
  const s = le(a);
1266
1267
  return a.options?.[o === E.EDialog.Add ? "formAdd" : "formUpdate"]?.[s] || a.options?.[s] || {};
1267
- }, Ye = (a, o, s = []) => {
1268
- const t = le(a), e = a.options?.[o === E.EDialog.Add ? "formAdd" : "formUpdate"]?.[t]?.on || a.options?.[t]?.on || {}, r = {};
1268
+ }, Xe = (a, o, s = []) => {
1269
+ const r = le(a), e = a.options?.[o === E.EDialog.Add ? "formAdd" : "formUpdate"]?.[r]?.on || a.options?.[r]?.on || {}, l = {};
1269
1270
  return Object.keys(e).forEach((n) => {
1270
1271
  const u = e[n];
1271
- typeof u == "function" ? r[n] = function(...f) {
1272
+ typeof u == "function" ? l[n] = function(...f) {
1272
1273
  return u.apply(this, [...f, ...s]);
1273
- } : r[n] = u;
1274
- }), r;
1275
- }, Ze = (a, o, s, t, l) => {
1276
- const e = a, r = e.colSpan ?? a.span;
1274
+ } : l[n] = u;
1275
+ }), l;
1276
+ }, Ye = (a, o, s, r, t) => {
1277
+ const e = a, l = e.colSpan ?? a.span;
1277
1278
  if (!a.item.form?.spanCol)
1278
- return r;
1279
- const n = l?.maxSpan || 12, u = l?.defaultSpan || n / 2, f = e.gridBand, m = o.filter((c) => f != null ? c.gridBand === f && !E.isFun(c.item.show?.form, s, t) : c.gridRow === e.gridRow && !E.isFun(c.item.show?.form, s, t)).reduce((c, p) => c + (p.colSpan ?? p.span ?? u), 0);
1280
- return r + m;
1279
+ return l;
1280
+ const n = t?.maxSpan || 12, u = t?.defaultSpan || n / 2, f = e.gridBand, m = o.filter((c) => f != null ? c.gridBand === f && !E.isFun(c.item.show?.form, s, r) : c.gridRow === e.gridRow && !E.isFun(c.item.show?.form, s, r)).reduce((c, p) => c + (p.colSpan ?? p.span ?? u), 0);
1281
+ return l + m;
1281
1282
  }, Bt = (a, o) => {
1282
- const s = (t, l) => {
1283
- const e = t.gridRow, r = t.gridRow + t.rowSpan - 1, n = l.gridRow, u = l.gridRow + l.rowSpan - 1;
1284
- return e <= u && n <= r;
1283
+ const s = (r, t) => {
1284
+ const e = r.gridRow, l = r.gridRow + r.rowSpan - 1, n = t.gridRow, u = t.gridRow + t.rowSpan - 1;
1285
+ return e <= u && n <= l;
1285
1286
  };
1286
- return a.map((t) => a.filter((e) => s(t, e)).length !== 1 || t.colSpan >= o ? t : {
1287
- ...t,
1287
+ return a.map((r) => a.filter((e) => s(r, e)).length !== 1 || r.colSpan >= o ? r : {
1288
+ ...r,
1288
1289
  span: o,
1289
1290
  colSpan: o,
1290
1291
  gridColumn: 1
1291
1292
  });
1292
- }, xe = (a, o, s = {}) => {
1293
- const t = /* @__PURE__ */ new Set(), l = [];
1294
- let e = 0, r = 0;
1293
+ }, Ze = (a, o, s = {}) => {
1294
+ const r = /* @__PURE__ */ new Set(), t = [];
1295
+ let e = 0, l = 0;
1295
1296
  const n = (p) => Math.floor(p / W) * W, u = (p, w) => `${p},${w}`, f = (p, w, U, K) => {
1296
1297
  if (w + U > o) return !1;
1297
- for (let L = 0; L < K; L++)
1298
- for (let T = 0; T < U; T++)
1299
- if (t.has(u(p + L, w + T))) return !1;
1298
+ for (let T = 0; T < K; T++)
1299
+ for (let j = 0; j < U; j++)
1300
+ if (r.has(u(p + T, w + j))) return !1;
1300
1301
  return !0;
1301
1302
  }, d = (p, w, U, K) => {
1302
- for (let L = 0; L < K; L++)
1303
- for (let T = 0; T < U; T++)
1304
- t.add(u(p + L, w + T));
1303
+ for (let T = 0; T < K; T++)
1304
+ for (let j = 0; j < U; j++)
1305
+ r.add(u(p + T, w + j));
1305
1306
  }, m = (p, w, U, K) => {
1306
- for (let T = n(p); T < 500 * W; T += W) {
1307
- const Ve = T + W, Se = T === n(p) ? Math.max(T, p) : T;
1308
- for (let _ = Se; _ < Ve; _++) {
1309
- const Ee = _ === p ? w : 0;
1310
- for (let te = Ee; te <= o - U; te++)
1307
+ for (let j = n(p); j < 500 * W; j += W) {
1308
+ const Ce = j + W, Ve = j === n(p) ? Math.max(j, p) : j;
1309
+ for (let _ = Ve; _ < Ce; _++) {
1310
+ const Se = _ === p ? w : 0;
1311
+ for (let te = Se; te <= o - U; te++)
1311
1312
  if (f(_, te, U, K)) return { tr: _, tc: te };
1312
1313
  }
1313
1314
  }
1314
1315
  return { tr: p, tc: w };
1315
1316
  }, c = (p, w, U, K) => {
1316
- const L = n(p);
1317
- if (K < W && p + K < L + W) {
1318
- e = p + K, r = w;
1317
+ const T = n(p);
1318
+ if (K < W && p + K < T + W) {
1319
+ e = p + K, l = w;
1319
1320
  return;
1320
1321
  }
1321
- const T = w + U;
1322
- if (T < o) {
1323
- r = T, e = L;
1322
+ const j = w + U;
1323
+ if (j < o) {
1324
+ l = j, e = T;
1324
1325
  return;
1325
1326
  }
1326
- r = 0, e = L + W;
1327
+ l = 0, e = T + W;
1327
1328
  };
1328
1329
  return a.forEach((p) => {
1329
- const w = p.colSpan ?? (p.span === 0 ? o : p.span), U = p.rowSpan ?? Je(p.item);
1330
- p.item.form?.rowBreak && l.length && (r = 0, e = n(e) + W);
1331
- let { tr: K, tc: L } = f(e, r, w, U) ? { tr: e, tc: r } : m(e, r, w, U);
1332
- f(K, L, w, U) || ({ tr: K, tc: L } = m(0, 0, w, U)), d(K, L, w, U);
1333
- const T = K + 1;
1334
- l.push({
1330
+ const w = p.colSpan ?? (p.span === 0 ? o : p.span), U = p.rowSpan ?? qe(p.item);
1331
+ p.item.form?.rowBreak && t.length && (l = 0, e = n(e) + W);
1332
+ let { tr: K, tc: T } = f(e, l, w, U) ? { tr: e, tc: l } : m(e, l, w, U);
1333
+ f(K, T, w, U) || ({ tr: K, tc: T } = m(0, 0, w, U)), d(K, T, w, U);
1334
+ const j = K + 1;
1335
+ t.push({
1335
1336
  ...p,
1336
1337
  span: w,
1337
1338
  colSpan: w,
1338
1339
  rowSpan: U,
1339
- gridRow: T,
1340
- gridColumn: L + 1,
1341
- gridBand: re({ gridRow: T })
1342
- }), c(K, L, w, U);
1343
- }), s.fillSingleRows ? Bt(l, o) : l;
1344
- }, De = (a, o, s, t = W) => {
1345
- const l = a.filter((n) => E.isFun(n.item.show?.form, o, s)), e = /* @__PURE__ */ new Map();
1340
+ gridRow: j,
1341
+ gridColumn: T + 1,
1342
+ gridBand: re({ gridRow: j })
1343
+ }), c(K, T, w, U);
1344
+ }), s.fillSingleRows ? Bt(t, o) : t;
1345
+ }, De = (a, o, s, r = W) => {
1346
+ const t = a.filter((n) => E.isFun(n.item.show?.form, o, s)), e = /* @__PURE__ */ new Map();
1346
1347
  a.forEach((n) => {
1347
1348
  const f = `${n.gridBand ?? re(n)}:${n.gridColumn}:${n.colSpan}`;
1348
1349
  e.has(f) || e.set(f, []), e.get(f).push(n);
1349
1350
  });
1350
- const r = /* @__PURE__ */ new Map();
1351
+ const l = /* @__PURE__ */ new Map();
1351
1352
  return e.forEach((n) => {
1352
1353
  const u = n.reduce((c, p) => c + p.rowSpan, 0);
1353
1354
  if (!(n.length > 1 && u === W && n.every((c) => c.rowSpan < W))) return;
1354
1355
  const d = n.filter((c) => E.isFun(c.item.show?.form, o, s));
1355
1356
  if (d.length !== 1) return;
1356
1357
  const m = d[0];
1357
- r.set(m.item.key, {
1358
+ l.set(m.item.key, {
1358
1359
  ...m,
1359
1360
  rowSpan: W
1360
1361
  });
1361
- }), xe(l.map((n) => r.get(n.item.key) || n), t, {
1362
+ }), Ze(t.map((n) => l.get(n.item.key) || n), r, {
1362
1363
  fillSingleRows: !0
1363
1364
  });
1364
- }, _e = (a) => {
1365
+ }, xe = (a) => {
1365
1366
  const o = /* @__PURE__ */ new Map();
1366
1367
  return a.forEach((s) => {
1367
- const t = s.gridBand ?? re(s);
1368
- o.has(t) || o.set(t, []), o.get(t).push(s);
1369
- }), Array.from(o.keys()).sort((s, t) => s - t).map((s) => o.get(s));
1368
+ const r = s.gridBand ?? re(s);
1369
+ o.has(r) || o.set(r, []), o.get(r).push(s);
1370
+ }), Array.from(o.keys()).sort((s, r) => s - r).map((s) => o.get(s));
1370
1371
  }, Lt = (a) => a?.length ? Array.isArray(a[0]) ? a.flat() : a : [], Tt = (a, o) => {
1371
1372
  if (!Ut(a) || !a.key) return null;
1372
- const s = o.defaultSpan ?? (o.maxSpan || 12) / 2, t = At(a, s, o.layout);
1373
- return { item: a, span: t };
1373
+ const s = o.defaultSpan ?? (o.maxSpan || 12) / 2, r = At(a, s, o.layout);
1374
+ return { item: a, span: r };
1374
1375
  }, jt = (a, o = {}) => {
1375
- const s = [], t = (l) => {
1376
- if (l.children?.length) {
1377
- l.children.forEach((r) => t(r));
1376
+ const s = [], r = (t) => {
1377
+ if (t.children?.length) {
1378
+ t.children.forEach((l) => r(l));
1378
1379
  return;
1379
1380
  }
1380
- const e = Tt(l, o);
1381
+ const e = Tt(t, o);
1381
1382
  e && s.push(e);
1382
1383
  };
1383
- return a.forEach((l) => t(l)), s;
1384
- }, et = (a, o = {}) => {
1385
- const s = o.maxSpan ?? 12, t = o.defaultSpan ?? s / 2, l = o.layout ?? "row", r = jt(a, { maxSpan: s, defaultSpan: t, layout: l });
1386
- if (l === "column") {
1384
+ return a.forEach((t) => r(t)), s;
1385
+ }, _e = (a, o = {}) => {
1386
+ const s = o.maxSpan ?? 12, r = o.defaultSpan ?? s / 2, t = o.layout ?? "row", l = jt(a, { maxSpan: s, defaultSpan: r, layout: t });
1387
+ if (t === "column") {
1387
1388
  const n = [];
1388
1389
  let u = 1;
1389
- return r.forEach((f) => {
1390
- const d = Je(f.item), m = s;
1390
+ return l.forEach((f) => {
1391
+ const d = qe(f.item), m = s;
1391
1392
  n.push({
1392
1393
  ...f,
1393
1394
  span: m,
@@ -1399,69 +1400,69 @@ const we = (a) => {
1399
1400
  }), u += d;
1400
1401
  }), { cells: n, maxSpan: s };
1401
1402
  }
1402
- return { cells: xe(r, s), maxSpan: s };
1403
+ return { cells: Ze(l, s), maxSpan: s };
1403
1404
  }, Pt = (a) => a.map((o) => o.item?.show?.form), Kt = (a, o, s) => {
1404
1405
  if (!a.rules) return;
1405
- const t = {
1406
+ const r = {
1406
1407
  required: !0,
1407
1408
  message: o(a),
1408
1409
  trigger: "blur"
1409
- }, l = le(a), e = a.options?.datetime?.type, r = l === "datetime" && typeof e == "string" && e.includes("range"), n = l === "select" && !!a.options?.select?.multiple;
1410
- (r || l === "checkbox" || n) && (t.type = "array", t.min = r ? 2 : 1);
1411
- const u = typeof a.rules == "boolean" ? [t] : a.rules;
1410
+ }, t = le(a), e = a.options?.datetime?.type, l = t === "datetime" && typeof e == "string" && e.includes("range"), n = t === "select" && !!a.options?.select?.multiple;
1411
+ (l || t === "checkbox" || n) && (r.type = "array", r.min = l ? 2 : 1);
1412
+ const u = typeof a.rules == "boolean" ? [r] : a.rules;
1412
1413
  return s ? u.map((f) => s(f)) : u;
1413
- }, Le = (a) => typeof a == "function" ? a() : a, tt = (a) => (o, s) => Kt(o, a, (t) => {
1414
- const l = (e, r) => {
1415
- if (r && Object.prototype.hasOwnProperty.call(r, o.key) && r[o.key] !== void 0) return r[o.key];
1416
- const n = Le(s);
1414
+ }, Ae = (a) => typeof a == "function" ? a() : a, et = (a) => (o, s) => Kt(o, a, (r) => {
1415
+ const t = (e, l) => {
1416
+ if (l && Object.prototype.hasOwnProperty.call(l, o.key) && l[o.key] !== void 0) return l[o.key];
1417
+ const n = Ae(s);
1417
1418
  return n && Object.prototype.hasOwnProperty.call(n, o.key) ? n[o.key] : e;
1418
1419
  };
1419
- if (t.validator) {
1420
- const e = t.validator;
1420
+ if (r.validator) {
1421
+ const e = r.validator;
1421
1422
  return {
1422
- ...t,
1423
- validator: (r, n, u, f) => {
1424
- const d = Le(s);
1425
- return e(r, l(n, f), u, d || f);
1423
+ ...r,
1424
+ validator: (l, n, u, f) => {
1425
+ const d = Ae(s);
1426
+ return e(l, t(n, f), u, d || f);
1426
1427
  }
1427
1428
  };
1428
1429
  }
1429
- return t;
1430
- }), ot = (a, o) => {
1430
+ return r;
1431
+ }), tt = (a, o) => {
1431
1432
  const s = {
1432
- input: k.tCurd("placeholderInput"),
1433
- select: k.tCurd("placeholderSelect")
1434
- }, t = (s[le(a) || "input"] || s.input) + a.label;
1435
- return (o || q.error.callback)?.(a.key, a) || t;
1436
- }, at = (a) => tt((o) => ot(o, a?.error)), Ht = (a, o, s) => {
1437
- const t = {}, l = {}, e = o?.maxSpan || 12, r = o?.defaultSpan || e / 2, n = at(o);
1438
- a.forEach((d) => ke(d, !0)), Re(a, t, l, (d) => n(d, s));
1439
- const { cells: u, maxSpan: f } = et(a, {
1433
+ input: C.tCurd("placeholderInput"),
1434
+ select: C.tCurd("placeholderSelect")
1435
+ }, r = (s[le(a) || "input"] || s.input) + a.label;
1436
+ return (o || q.error.callback)?.(a.key, a) || r;
1437
+ }, ot = (a) => et((o) => tt(o, a?.error)), Ht = (a, o, s) => {
1438
+ const r = {}, t = {}, e = o?.maxSpan || 12, l = o?.defaultSpan || e / 2, n = ot(o);
1439
+ a.forEach((d) => ke(d, !0)), Re(a, r, t, (d) => n(d, s));
1440
+ const { cells: u, maxSpan: f } = _e(a, {
1440
1441
  maxSpan: e,
1441
- defaultSpan: r,
1442
+ defaultSpan: l,
1442
1443
  layout: o?.layout
1443
1444
  });
1444
1445
  return {
1445
- formDefault: t,
1446
- rules: l,
1446
+ formDefault: r,
1447
+ rules: t,
1447
1448
  formGrid: u,
1448
1449
  formMaxSpan: f,
1449
- formColumn: _e(u)
1450
+ formColumn: xe(u)
1450
1451
  };
1451
- }, Re = (a, o, s, t) => {
1452
- const l = (e) => {
1452
+ }, Re = (a, o, s, r) => {
1453
+ const t = (e) => {
1453
1454
  if (e.children?.length) {
1454
- e.children.forEach((r) => l(r));
1455
+ e.children.forEach((l) => t(l));
1455
1456
  return;
1456
1457
  }
1457
1458
  if (e.key) {
1458
1459
  o[e.key] = e.value;
1459
- const r = t(e);
1460
- r && (s[e.key] = r);
1460
+ const l = r(e);
1461
+ l && (s[e.key] = l);
1461
1462
  }
1462
1463
  };
1463
- a.forEach(l);
1464
- }, Nt = { class: "curd-form-cell-inner" }, nt = /* @__PURE__ */ Q({
1464
+ a.forEach(t);
1465
+ }, Nt = { class: "curd-form-cell-inner" }, at = /* @__PURE__ */ Q({
1465
1466
  __name: "layout",
1466
1467
  props: {
1467
1468
  formGrid: {},
@@ -1476,25 +1477,25 @@ const we = (a) => {
1476
1477
  getDisabled: { type: Function }
1477
1478
  },
1478
1479
  setup(a) {
1479
- const o = E.isFun, s = a, t = ae(() => De(s.formGrid, s.form, s.type, s.maxSpan)), l = ae(() => {
1480
+ const o = E.isFun, s = a, r = ae(() => De(s.formGrid, s.form, s.type, s.maxSpan)), t = ae(() => {
1480
1481
  const c = Array.from(
1481
1482
  new Set(
1482
- t.value.map((p) => p.gridBand ?? re(p))
1483
+ r.value.map((p) => p.gridBand ?? re(p))
1483
1484
  )
1484
1485
  ).sort((p, w) => p - w);
1485
1486
  return new Map(c.map((p, w) => [p, w]));
1486
1487
  }), e = ae(() => ({
1487
1488
  gridTemplateColumns: `repeat(${s.maxSpan}, minmax(0, 1fr))`
1488
- })), r = ae(() => {
1489
+ })), l = ae(() => {
1489
1490
  let c = 0;
1490
- return t.value.forEach((p) => {
1491
+ return r.value.forEach((p) => {
1491
1492
  const w = p.gridRow + p.rowSpan - 1;
1492
1493
  w > c && (c = w);
1493
1494
  }), c;
1494
- }), n = (c) => c.gridRow + c.rowSpan - 1 >= r.value, u = (c) => c.rowSpan >= W, f = (c) => {
1495
+ }), n = (c) => c.gridRow + c.rowSpan - 1 >= l.value, u = (c) => c.rowSpan >= W, f = (c) => {
1495
1496
  const p = c.gridBand ?? re(c);
1496
- return l.value.get(p) ?? p;
1497
- }, d = (c) => Ze(c, t.value, s.form, s.type, {
1497
+ return t.value.get(p) ?? p;
1498
+ }, d = (c) => Ye(c, r.value, s.form, s.type, {
1498
1499
  maxSpan: s.maxSpan,
1499
1500
  defaultSpan: s.formOption?.defaultSpan
1500
1501
  }), m = (c) => {
@@ -1504,13 +1505,13 @@ const we = (a) => {
1504
1505
  gridColumn: `${c.gridColumn} / span ${p}`
1505
1506
  };
1506
1507
  };
1507
- return (c, p) => i(o)(i(Pt)(c.formGrid), c.form, c.type) ? (b(), C(A, { key: 0 }, [
1508
- z(c.$slots, "form-start", { row: c.form }),
1508
+ return (c, p) => i(o)(i(Pt)(c.formGrid), c.form, c.type) ? (b(), v(A, { key: 0 }, [
1509
+ $(c.$slots, "form-start", { row: c.form }),
1509
1510
  R("div", {
1510
1511
  class: J(["curd-form-grid", { stripe: c.stripe !== !1 }]),
1511
- style: ye(e.value)
1512
+ style: he(e.value)
1512
1513
  }, [
1513
- (b(!0), C(A, null, G(t.value, (w) => (b(), C("div", {
1514
+ (b(!0), v(A, null, I(r.value, (w) => (b(), v("div", {
1514
1515
  key: w.item.key,
1515
1516
  class: J(["curd-form-grid-cell", [
1516
1517
  c.stripe !== !1 && f(w) % 2 === 0 ? "stripe-band-odd" : "",
@@ -1519,10 +1520,10 @@ const we = (a) => {
1519
1520
  u(w) ? "is-row-span" : "",
1520
1521
  `form-item-col-${w.item.key}`
1521
1522
  ]]),
1522
- style: ye(m(w))
1523
+ style: he(m(w))
1523
1524
  }, [
1524
1525
  R("div", Nt, [
1525
- i(o)(w.item.show?.form, c.form, c.type) ? (b(), y(Ot, {
1526
+ i(o)(w.item.show?.form, c.form, c.type) ? (b(), h(Ot, {
1526
1527
  key: 0,
1527
1528
  class: J({ "is-row-span-field": u(w) }),
1528
1529
  item: w.item,
@@ -1533,18 +1534,18 @@ const we = (a) => {
1533
1534
  "get-on": c.getOn,
1534
1535
  "get-disabled": c.getDisabled
1535
1536
  }, Z({ _: 2 }, [
1536
- G(c.$slots, (U, K) => ({
1537
+ I(c.$slots, (U, K) => ({
1537
1538
  name: K,
1538
- fn: h((L) => [
1539
- z(c.$slots, K, S({ ref_for: !0 }, L || {}))
1539
+ fn: y((T) => [
1540
+ $(c.$slots, K, V({ ref_for: !0 }, T || {}))
1540
1541
  ])
1541
1542
  }))
1542
- ]), 1032, ["class", "item", "form", "type", "label-width", "get-bind", "get-on", "get-disabled"])) : V("", !0)
1543
+ ]), 1032, ["class", "item", "form", "type", "label-width", "get-bind", "get-on", "get-disabled"])) : S("", !0)
1543
1544
  ])
1544
1545
  ], 6))), 128))
1545
1546
  ], 6),
1546
- z(c.$slots, "form-end", { row: c.form })
1547
- ], 64)) : V("", !0);
1547
+ $(c.$slots, "form-end", { row: c.form })
1548
+ ], 64)) : S("", !0);
1548
1549
  }
1549
1550
  }), It = /* @__PURE__ */ Q({
1550
1551
  __name: "column",
@@ -1563,17 +1564,17 @@ const we = (a) => {
1563
1564
  }
1564
1565
  },
1565
1566
  setup(a, { expose: o }) {
1566
- const s = E.EDialog, t = Y(), l = a;
1567
- let e = we(l.form);
1568
- const r = Fe.getConf("curdConf"), n = "formRef-" + StrUtil.getId();
1569
- Ie(() => {
1570
- r?.formRef?.remove(n);
1567
+ const s = E.EDialog, r = Y(), t = a;
1568
+ let e = ye(t.form);
1569
+ const l = Fe.getConf("curdConf"), n = "formRef-" + StrUtil.getId();
1570
+ Ne(() => {
1571
+ l?.formRef?.remove(n);
1571
1572
  });
1572
1573
  const u = ie({
1573
1574
  rules: {},
1574
1575
  show: !0,
1575
1576
  formDefault: {},
1576
- type: l.type || r?.update?.type || s.Add,
1577
+ type: t.type || l?.update?.type || s.Add,
1577
1578
  formColumn: [],
1578
1579
  formGrid: [],
1579
1580
  formMaxSpan: 12,
@@ -1583,42 +1584,42 @@ const we = (a) => {
1583
1584
  set form(f) {
1584
1585
  e.set(f);
1585
1586
  },
1586
- getDisabled: (f) => Qe(f, u.type, u.form),
1587
- getBind: (f) => Xe(f, u.type),
1588
- getOn: (f) => Ye(f, u.type, [u.form, f]),
1587
+ getDisabled: (f) => Je(f, u.type, u.form),
1588
+ getBind: (f) => Qe(f, u.type),
1589
+ getOn: (f) => Xe(f, u.type, [u.form, f]),
1589
1590
  initColumnForm: () => {
1590
- const f = e, d = Ht(l.option.column, l.option.form, () => f.get());
1591
- u.formDefault = d.formDefault, u.rules = d.rules, u.formGrid = d.formGrid, u.formMaxSpan = d.formMaxSpan, u.formColumn = d.formColumn, u.type === s.Add ? f.isExternal() ? f.merge(JSONUtil.cp(u.formDefault)) : f.set(JSONUtil.cp(u.formDefault)) : !f.isExternal() && l.form && f.set(JSONUtil.cp(l.form));
1591
+ const f = e, d = Ht(t.option.column, t.option.form, () => f.get());
1592
+ u.formDefault = d.formDefault, u.rules = d.rules, u.formGrid = d.formGrid, u.formMaxSpan = d.formMaxSpan, u.formColumn = d.formColumn, u.type === s.Add ? f.isExternal() ? f.merge(JSONUtil.cp(u.formDefault)) : f.set(JSONUtil.cp(u.formDefault)) : !f.isExternal() && t.form && f.set(JSONUtil.cp(t.form));
1592
1593
  }
1593
1594
  });
1594
- return r?.formRef?.set(n, {
1595
+ return l?.formRef?.set(n, {
1595
1596
  validate: async (f) => {
1596
- const d = t.value;
1597
+ const d = r.value;
1597
1598
  if (!d)
1598
1599
  return f?.(!0), !0;
1599
- await Ce();
1600
+ await ve();
1600
1601
  const m = De(u.formGrid || [], u.form, u.type, u.formMaxSpan).map((w) => w.item.key).filter(Boolean), c = Object.keys(u.rules || {}).filter((w) => !m.includes(w));
1601
1602
  if (c.length && d.clearValidate(c), !m.length)
1602
1603
  return f?.(!0), !0;
1603
1604
  const p = await d.validateField(m, async (w, U) => {
1604
- w || me(ve(U));
1605
+ w || pe(we(U));
1605
1606
  });
1606
1607
  if (f?.(!!p), !p) throw !1;
1607
1608
  return !0;
1608
1609
  }
1609
- }), l.option.form?.initStart?.(u), u.initColumnForm(), l.option.form?.initEnd?.(u), Ne(
1610
- () => l.form,
1610
+ }), t.option.form?.initStart?.(u), u.initColumnForm(), t.option.form?.initEnd?.(u), He(
1611
+ () => t.form,
1611
1612
  (f) => {
1612
- e = we(f), u.initColumnForm();
1613
+ e = ye(f), u.initColumnForm();
1613
1614
  }
1614
- ), o({ ref: t, conf: u }), (f, d) => (b(), y(i(oe), {
1615
+ ), o({ ref: r, conf: u }), (f, d) => (b(), h(i(oe), {
1615
1616
  ref_key: "ruleFormRef",
1616
- ref: t,
1617
+ ref: r,
1617
1618
  model: u.form,
1618
1619
  rules: u.rules
1619
1620
  }, {
1620
- default: h(() => [
1621
- u.show ? (b(), y(nt, {
1621
+ default: y(() => [
1622
+ u.show ? (b(), h(at, {
1622
1623
  key: 0,
1623
1624
  "form-grid": u.formGrid,
1624
1625
  "max-span": u.formMaxSpan,
@@ -1631,31 +1632,31 @@ const we = (a) => {
1631
1632
  "get-on": u.getOn,
1632
1633
  "get-disabled": u.getDisabled
1633
1634
  }, Z({ _: 2 }, [
1634
- G(f.$slots, (m, c) => ({
1635
+ I(f.$slots, (m, c) => ({
1635
1636
  name: c,
1636
- fn: h((p) => [
1637
- z(f.$slots, c, Me(Oe(p || {})))
1637
+ fn: y((p) => [
1638
+ $(f.$slots, c, Me(Oe(p || {})))
1638
1639
  ])
1639
1640
  }))
1640
- ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : V("", !0)
1641
+ ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : S("", !0)
1641
1642
  ]),
1642
1643
  _: 3
1643
1644
  }, 8, ["model", "rules"]));
1644
1645
  }
1645
1646
  }), Gt = (a) => a?.value || a, Wt = (a) => {
1646
1647
  const o = Gt(a);
1647
- return o?.validate ? new Promise((s, t) => {
1648
- let l = !1;
1649
- const e = (r, n) => {
1650
- l || (l = !0, r === !1 ? (me(ve(n)), t(!1)) : s(!0));
1648
+ return o?.validate ? new Promise((s, r) => {
1649
+ let t = !1;
1650
+ const e = (l, n) => {
1651
+ t || (t = !0, l === !1 ? (pe(we(n)), r(!1)) : s(!0));
1651
1652
  };
1652
1653
  try {
1653
- const r = o.validate(e);
1654
- r && typeof r.then == "function" ? r.then((n) => e(n)).catch((n) => {
1655
- me(ve(n?.fields || n)), t(n);
1656
- }) : (r !== void 0 || o.validate.length === 0) && e(r);
1657
- } catch (r) {
1658
- t(r);
1654
+ const l = o.validate(e);
1655
+ l && typeof l.then == "function" ? l.then((n) => e(n)).catch((n) => {
1656
+ pe(we(n?.fields || n)), r(n);
1657
+ }) : (l !== void 0 || o.validate.length === 0) && e(l);
1658
+ } catch (l) {
1659
+ r(l);
1659
1660
  }
1660
1661
  }) : Promise.resolve(!0);
1661
1662
  }, qt = () => {
@@ -1689,13 +1690,13 @@ const we = (a) => {
1689
1690
  * } }, 'formRef-1')
1690
1691
  * @returns
1691
1692
  */
1692
- regFormRef(o, s, t) {
1693
- o ? t ? a.formRef.set(s, {
1694
- validate: async (l) => {
1693
+ regFormRef(o, s, r) {
1694
+ o ? r ? a.formRef.set(s, {
1695
+ validate: async (t) => {
1695
1696
  try {
1696
- l(await t());
1697
+ t(await r());
1697
1698
  } catch {
1698
- l(!1);
1699
+ t(!1);
1699
1700
  }
1700
1701
  }
1701
1702
  }) : a.formRef.set(s, o) : a.formRef.remove(s);
@@ -1703,7 +1704,7 @@ const we = (a) => {
1703
1704
  });
1704
1705
  return a;
1705
1706
  }, Jt = (a, o) => {
1706
- const s = we(() => o.searchForm);
1707
+ const s = ye(() => o.searchForm);
1707
1708
  return {
1708
1709
  search: {
1709
1710
  column: {
@@ -1712,31 +1713,31 @@ const we = (a) => {
1712
1713
  get form() {
1713
1714
  return s.get();
1714
1715
  },
1715
- set form(t) {
1716
- s.set(t);
1716
+ set form(r) {
1717
+ s.set(r);
1717
1718
  },
1718
1719
  formDefault: {},
1719
- getPlaceholder: (t, l = k.tCurd("placeholderInput")) => t.text?.search?.placeholder === void 0 ? `${l}${t.label}` : t.text?.search?.placeholder,
1720
+ getPlaceholder: (r, t = C.tCurd("placeholderInput")) => r.text?.search?.placeholder === void 0 ? `${t}${r.label}` : r.text?.search?.placeholder,
1720
1721
  getFormData: () => {
1721
- const t = a();
1722
- let l = {};
1723
- o.option.column.forEach((r) => {
1724
- (typeof r.show?.search == "function" ? r.show?.search(t.search.form) : r.show?.search) && (l[r.key] = t.search.form[r.key]);
1722
+ const r = a();
1723
+ let t = {};
1724
+ o.option.column.forEach((l) => {
1725
+ (typeof l.show?.search == "function" ? l.show?.search(r.search.form) : l.show?.search) && (t[l.key] = r.search.form[l.key]);
1725
1726
  });
1726
- const e = o.option.search?.before?.(l);
1727
- return e && (l = e), l;
1727
+ const e = o.option.search?.before?.(t);
1728
+ return e && (t = e), t;
1728
1729
  },
1729
1730
  reset: () => {
1730
- const t = a(), l = t.search.formDefault;
1731
- Object.keys(l).forEach((r) => {
1732
- o.option.search?.resetMode === "none" ? l[r] = void 0 : l[r] = t.search.formDefault[r];
1731
+ const r = a(), t = r.search.formDefault;
1732
+ Object.keys(t).forEach((l) => {
1733
+ o.option.search?.resetMode === "none" ? t[l] = void 0 : t[l] = r.search.formDefault[l];
1733
1734
  });
1734
- const e = ObjectUtil.deepMerge(l, {});
1735
- x.setValue(t.search.form, e, !0), t.page.num = 1, o.option.init !== !1 && t.table.getList();
1735
+ const e = ObjectUtil.deepMerge(t, {});
1736
+ x.setValue(r.search.form, e, !0), r.page.num = 1, o.option.init !== !1 && r.table.getList();
1736
1737
  },
1737
1738
  submit: () => {
1738
- const t = a();
1739
- t.page.num = 1, t.table.getList();
1739
+ const r = a();
1740
+ r.page.num = 1, r.table.getList();
1740
1741
  }
1741
1742
  }
1742
1743
  };
@@ -1750,42 +1751,42 @@ const we = (a) => {
1750
1751
  sizeList: o.option.page?.sizeList || B.config.pagination.pageSizes,
1751
1752
  pagerCount: o.option.page?.pagerCount || B.config.pagination.pagerCount,
1752
1753
  getQuery: (s = {}) => {
1753
- const t = a();
1754
+ const r = a();
1754
1755
  return {
1755
- [B.config.field.page.size]: s.size || t.page.size,
1756
- [B.config.field.page.num]: s.num || t.page.num,
1757
- ...t.search.getFormData()
1756
+ [B.config.field.page.size]: s.size || r.page.size,
1757
+ [B.config.field.page.num]: s.num || r.page.num,
1758
+ ...r.search.getFormData()
1758
1759
  };
1759
1760
  }
1760
1761
  }
1761
1762
  }), Xt = (a, o, s) => {
1762
- const t = a;
1763
+ const r = a;
1763
1764
  return {
1764
1765
  table: {
1765
1766
  op: {
1766
- width: (...l) => l.filter((r) => r).length * 30 + 60
1767
+ width: (...t) => t.filter((l) => l).length * 30 + 60
1767
1768
  },
1768
1769
  loading: !1,
1769
1770
  data: [],
1770
1771
  expand: {
1771
1772
  isExpand: !1,
1772
1773
  rowKeys: [],
1773
- change: (l, e) => {
1774
+ change: (t, e) => {
1774
1775
  },
1775
1776
  all: () => {
1776
- const l = t();
1777
- if (l.table.expand.isExpand)
1778
- l.table.expand.rowKeys = [];
1777
+ const t = r();
1778
+ if (t.table.expand.isExpand)
1779
+ t.table.expand.rowKeys = [];
1779
1780
  else {
1780
- const e = (r) => {
1781
+ const e = (l) => {
1781
1782
  let n = [];
1782
- return r.forEach((u) => {
1783
+ return l.forEach((u) => {
1783
1784
  n.push(u[o.option.table.rowKey]), u.children?.length && (n = n.concat(e(u.children)));
1784
1785
  }), n;
1785
1786
  };
1786
- l.table.expand.rowKeys = e(l.table.data);
1787
+ t.table.expand.rowKeys = e(t.table.data);
1787
1788
  }
1788
- l.table.expand.isExpand = !l.table.expand.isExpand;
1789
+ t.table.expand.isExpand = !t.table.expand.isExpand;
1789
1790
  }
1790
1791
  },
1791
1792
  column: {
@@ -1802,70 +1803,71 @@ const we = (a) => {
1802
1803
  modulePromise: void 0,
1803
1804
  getOption: () => o.option.table?.sortable || {},
1804
1805
  showTriggerButton: () => {
1805
- const l = t();
1806
- return o.option.table?.sortable?.button && !l.table.sortable.mode;
1806
+ const t = r();
1807
+ return o.option.table?.sortable?.button && !t.table.sortable.mode;
1807
1808
  },
1808
1809
  showActionButton: () => {
1809
- const l = t();
1810
- return o.option.table?.sortable?.button && l.table.sortable.mode;
1810
+ const t = r();
1811
+ return o.option.table?.sortable?.button && t.table.sortable.mode;
1811
1812
  },
1812
1813
  showSaveButton: () => !o.option.table?.sortable?.button && o.option.table?.sortable?.show && o.option.table?.sortable?.saveButton,
1813
1814
  isActive: () => {
1814
- const l = t(), e = l.table.sortable.getOption();
1815
- return e.button ? l.table.sortable.mode : !!e.show;
1815
+ const t = r(), e = t.table.sortable.getOption();
1816
+ return e.button ? t.table.sortable.mode : !!e.show;
1816
1817
  },
1817
1818
  showPagination: () => {
1818
- const l = t();
1819
- return !l.table.sortable.isActive() || l.table.sortable.getOption().page;
1819
+ const t = r();
1820
+ return !t.table.sortable.isActive() || t.table.sortable.getOption().page;
1820
1821
  },
1821
1822
  disableScroll: () => {
1822
- const l = t(), e = l.table.sortable.getOption();
1823
- return l.table.sortable.isActive() && !e.page && !e.scroll;
1823
+ const t = r(), e = t.table.sortable.getOption();
1824
+ return t.table.sortable.isActive() && !e.page && !e.scroll;
1824
1825
  },
1825
1826
  getTableBindOption: () => {
1826
- const l = t();
1827
+ const t = r();
1827
1828
  return {
1828
1829
  ...o.option.table || {},
1829
- ...l.table.sortable.disableScroll() ? {
1830
+ ...t.table.sortable.disableScroll() ? {
1830
1831
  height: void 0,
1831
1832
  maxHeight: void 0
1832
1833
  } : {}
1833
1834
  };
1834
1835
  },
1835
1836
  getColumnBind: () => {
1836
- const { show: l, button: e, page: r, scroll: n, field: u, rule: f, api: d, onEnd: m, ...c } = t().table.sortable.getOption();
1837
+ const { show: t, button: e, page: l, scroll: n, field: u, rule: f, api: d, onEnd: m, ...c } = r().table.sortable.getOption();
1837
1838
  return c;
1838
1839
  },
1839
1840
  destroy: () => {
1840
- const l = t();
1841
- l.table.sortable.instance?.destroy(), l.table.sortable.instance = void 0;
1841
+ const t = r();
1842
+ t.table.sortable.instance?.destroy(), t.table.sortable.instance = void 0;
1842
1843
  },
1843
1844
  getBody: () => s.tableRef.value?.$el?.querySelector(".el-table__body-wrapper tbody"),
1844
1845
  loadModule: async () => {
1845
- const l = t();
1846
- l.table.sortable.modulePromise ??= E.loadModule("sortablejs");
1847
- const e = await l.table.sortable.modulePromise;
1846
+ const t = r();
1847
+ t.table.sortable.modulePromise ??= E.loadModule("sortablejs");
1848
+ const e = await t.table.sortable.modulePromise;
1848
1849
  return e.default || e;
1849
1850
  },
1850
- applyRule: (l, e, r, n) => {
1851
- if (r === "value") {
1852
- l.forEach((u, f) => {
1853
- u[e] = n[f];
1851
+ applyRule: (t, e, l, n, u = "asc") => {
1852
+ if (l === "value") {
1853
+ const f = u === "desc" ? n.slice().reverse() : n;
1854
+ t.forEach((d, m) => {
1855
+ d[e] = f[m];
1854
1856
  });
1855
1857
  return;
1856
1858
  }
1857
- l.forEach((u, f) => {
1858
- u[e] = f + 1;
1859
+ t.forEach((f, d) => {
1860
+ f[e] = u === "desc" ? t.length - d : d + 1;
1859
1861
  });
1860
1862
  },
1861
1863
  sync: async () => {
1862
- const l = t();
1863
- if (l.table.sortable.destroy(), !l.table.sortable.isActive() || l.table.loading) return;
1864
- await Ce();
1865
- const e = l.table.sortable.getBody();
1864
+ const t = r();
1865
+ if (t.table.sortable.destroy(), !t.table.sortable.isActive() || t.table.loading) return;
1866
+ await ve();
1867
+ const e = t.table.sortable.getBody();
1866
1868
  if (!e) return;
1867
- const r = await l.table.sortable.loadModule(), n = l.table.sortable.getOption();
1868
- l.table.sortable.instance = r.create(e, {
1869
+ const l = await t.table.sortable.loadModule(), n = t.table.sortable.getOption();
1870
+ t.table.sortable.instance = l.create(e, {
1869
1871
  animation: 150,
1870
1872
  handle: ".cc1-form-drag-handle",
1871
1873
  draggable: ".el-table__row",
@@ -1874,79 +1876,71 @@ const we = (a) => {
1874
1876
  if (!Number.isInteger(p) || !Number.isInteger(w) || p === w || p < 0 || w < 0 || p >= c.length || w >= c.length) return;
1875
1877
  const U = c.splice(p, 1)[0];
1876
1878
  c.splice(w, 0, U);
1877
- }, m = l.table.data.map((c) => c?.[n.field]);
1878
- d(l.table.data, u, f), n.onEnd ? n.onEnd(l.table.data) : l.table.sortable.applyRule(l.table.data, n.field, n.rule, m);
1879
+ }, m = t.table.data.map((c) => c?.[n.field]);
1880
+ d(t.table.data, u, f), n.onEnd ? n.onEnd(t.table.data) : t.table.sortable.applyRule(t.table.data, n.field, n.rule, m, n.order || "asc");
1879
1881
  }
1880
1882
  });
1881
1883
  },
1882
1884
  refreshList: async () => {
1883
- const l = t();
1884
- await l.table.getList(l.table.sortable.isActive() ? "sortable" : void 0), l.table.sortable.sync();
1885
+ const t = r();
1886
+ await t.table.getList(t.table.sortable.isActive() ? "sortable" : void 0), t.table.sortable.sync();
1885
1887
  },
1886
1888
  /** 临时保存fitHeight,用于排序时临时关闭 */
1887
1889
  fitHeight: !1,
1888
1890
  start: async () => {
1889
- const l = t(), e = l.table?.sortable.getOption();
1890
- l.table.sortable.fitHeight = o.option.table.fitHeight, e.scroll || (o.option.table.fitHeight = !1), l.table.sortable.mode = !0, await l.table.sortable.refreshList();
1891
+ const t = r(), e = t.table?.sortable.getOption();
1892
+ t.table.sortable.fitHeight = o.option.table.fitHeight, e.scroll || (o.option.table.fitHeight = !1), t.table.sortable.mode = !0, await t.table.sortable.refreshList();
1891
1893
  },
1892
1894
  exit: async () => {
1893
- const l = t();
1894
- o.option.table.fitHeight = l.table.sortable.fitHeight, await l.table.getList(), l.table.sortable.mode = !1, l.table.sortable.destroy();
1895
+ const t = r();
1896
+ t.table.sortable.mode = !1, o.option.table.fitHeight = t.table.sortable.fitHeight, await t.table.getList(), t.table.sortable.destroy();
1895
1897
  },
1896
1898
  save: async () => {
1897
- const l = t(), r = l.table.sortable.getOption().api?.update || o.option.api.update;
1898
- if (!r) {
1899
- E.fail(k.tCurd("sortableUpdateApiRequired"));
1899
+ const t = r(), l = t.table.sortable.getOption().api?.update || o.option.api.update;
1900
+ if (!l) {
1901
+ E.fail(C.tCurd("sortableUpdateApiRequired"));
1900
1902
  return;
1901
1903
  }
1902
- l.table.sortable.actionLoading = !0, l.table.loading = !0;
1904
+ t.table.sortable.actionLoading = !0, t.table.loading = !0;
1903
1905
  try {
1904
- await r(l.table.data, "sortable"), E.success(k.tCurd("operationSuccess")), await l.table.sortable.exit();
1906
+ await l(t.table.data, "sortable"), E.success(C.tCurd("operationSuccess")), await t.table.sortable.exit();
1905
1907
  } catch (n) {
1906
1908
  console.error(n);
1907
1909
  } finally {
1908
- l.table.sortable.actionLoading = !1, l.table.loading = !1;
1909
- }
1910
- },
1911
- command: async (l) => {
1912
- const e = t();
1913
- if (l === "save") {
1914
- await e.table.sortable.save();
1915
- return;
1910
+ t.table.sortable.actionLoading = !1, t.table.loading = !1;
1916
1911
  }
1917
- await e.table.sortable.exit();
1918
1912
  }
1919
1913
  },
1920
1914
  header: {
1921
1915
  group: {
1922
1916
  expand: !1,
1923
1917
  toggleExpandAll: () => {
1924
- const l = t(), e = !l.table.header.group.expand;
1925
- l.table.header.group.expand = e;
1926
- const r = (n) => {
1918
+ const t = r(), e = !t.table.header.group.expand;
1919
+ t.table.header.group.expand = e;
1920
+ const l = (n) => {
1927
1921
  n.forEach((u) => {
1928
- u.table?.header?.group !== void 0 && (u.table.header.group = !e), u.table?.header?.groupKey !== void 0 && (u.table.header.show = e), Array.isArray(u.children) && u.children.length && r(u.children);
1922
+ u.table?.header?.group !== void 0 && (u.table.header.group = !e), u.table?.header?.groupKey !== void 0 && (u.table.header.show = e), Array.isArray(u.children) && u.children.length && l(u.children);
1929
1923
  });
1930
1924
  };
1931
- r(l.table.column.list);
1925
+ l(t.table.column.list);
1932
1926
  }
1933
1927
  }
1934
1928
  },
1935
- parseListResult: async (l) => {
1936
- const e = B.config.field.result, r = l?.data || { [e.list]: l }, n = Array.isArray(r) ? r : (Array.isArray(r[e.list]), r[e.list]), f = ObjectUtil.deepMerge({ data: n }, {}).data;
1929
+ parseListResult: async (t) => {
1930
+ const e = B.config.field.result, l = t?.data || { [e.list]: t }, n = Array.isArray(l) ? l : (Array.isArray(l[e.list]), l[e.list]), f = ObjectUtil.deepMerge({ data: n }, {}).data;
1937
1931
  return {
1938
1932
  data: o.option.data ? await o.option.data(f, n) : f,
1939
- total: r[e.total] || 0
1933
+ total: l[e.total] || 0
1940
1934
  };
1941
1935
  },
1942
- applyListResult: async (l, e) => {
1943
- const r = t(), n = await r.table.parseListResult(l);
1944
- return r.table.data = n.data, r.page.total = e ?? n.total, r.tableEditValidate?.clear?.(), n;
1936
+ applyListResult: async (t, e) => {
1937
+ const l = r(), n = await l.table.parseListResult(t);
1938
+ return l.table.data = n.data, l.page.total = e ?? n.total, l.tableEditValidate?.clear?.(), n;
1945
1939
  },
1946
- getList: async (l) => {
1947
- const e = t();
1940
+ getList: async (t) => {
1941
+ const e = r();
1948
1942
  e.table.loading = !0;
1949
- const r = o.option.table?.sortable, n = l === "sortable" && r?.api?.list || o.option.api.list, u = JSONUtil.cp(e.table.selection.list);
1943
+ const l = o.option.table?.sortable, n = t === "sortable" && l?.api?.list || o.option.api.list, u = JSONUtil.cp(e.table.selection.list);
1950
1944
  try {
1951
1945
  await e.initApiData("init");
1952
1946
  let f = {};
@@ -1957,7 +1951,7 @@ const we = (a) => {
1957
1951
  [p.field]: e.table.sort.order
1958
1952
  };
1959
1953
  }
1960
- const d = l === "sortable" && r?.page === !1 ? e.page.getQuery({
1954
+ const d = t === "sortable" && l?.page === !1 ? e.page.getQuery({
1961
1955
  num: 1,
1962
1956
  size: e.page.total || 999999
1963
1957
  }) : e.page.getQuery(), m = await n(
@@ -1965,9 +1959,9 @@ const we = (a) => {
1965
1959
  ...d,
1966
1960
  ...f
1967
1961
  },
1968
- l
1962
+ t
1969
1963
  );
1970
- await e.table.applyListResult(m, l === "sortable" && r?.page === !1 ? e.page.total : void 0), setTimeout(() => {
1964
+ await e.table.applyListResult(m, t === "sortable" && l?.page === !1 ? e.page.total : void 0), setTimeout(() => {
1971
1965
  e.table.selection.setList(u), o.option.table?.sortable?.show && !o.option.table?.sortable?.button && e.table.sortable.sync();
1972
1966
  }, 20);
1973
1967
  } catch (f) {
@@ -1978,14 +1972,14 @@ const we = (a) => {
1978
1972
  },
1979
1973
  selection: {
1980
1974
  list: [],
1981
- change: (l) => {
1982
- t().table.selection.list = l;
1975
+ change: (t) => {
1976
+ r().table.selection.list = t;
1983
1977
  },
1984
- setList: (l, e) => {
1985
- const r = t();
1986
- r.table.selection.list = [];
1978
+ setList: (t, e) => {
1979
+ const l = r();
1980
+ l.table.selection.list = [];
1987
1981
  const n = s.tableRef.value;
1988
- if (n?.clearSelection(), !n || !l?.length) return;
1982
+ if (n?.clearSelection(), !n || !t?.length) return;
1989
1983
  const u = o.option.table?.rowKey, f = (d) => {
1990
1984
  const m = (c) => {
1991
1985
  for (const p of c) {
@@ -1999,9 +1993,9 @@ const we = (a) => {
1999
1993
  }
2000
1994
  }
2001
1995
  };
2002
- return m(r.table.data);
1996
+ return m(l.table.data);
2003
1997
  };
2004
- l.forEach((d) => {
1998
+ t.forEach((d) => {
2005
1999
  const m = f(d);
2006
2000
  if (m)
2007
2001
  if (e) {
@@ -2015,125 +2009,125 @@ const we = (a) => {
2015
2009
  sort: {
2016
2010
  prop: "",
2017
2011
  order: "",
2018
- change: (l) => {
2019
- const e = t();
2012
+ change: (t) => {
2013
+ const e = r();
2020
2014
  B.config.table.sort.resetPage && (e.page.num = 1);
2021
- const r = B.config.table.sort;
2022
- if (r.change) {
2023
- r.change(l, e);
2015
+ const l = B.config.table.sort;
2016
+ if (l.change) {
2017
+ l.change(t, e);
2024
2018
  return;
2025
2019
  }
2026
- e.table.sort.prop = l.prop, l.order === null ? (e.table.sort.order = "", e.table.sort.prop = "") : e.table.sort.order = l.order === "ascending" ? r.order.asc : r.order.desc, e.table.getList();
2020
+ e.table.sort.prop = t.prop, t.order === null ? (e.table.sort.order = "", e.table.sort.prop = "") : e.table.sort.order = t.order === "ascending" ? l.order.asc : l.order.desc, e.table.getList();
2027
2021
  }
2028
2022
  }
2029
2023
  }
2030
2024
  };
2031
2025
  }, Yt = (a, o) => {
2032
- const s = ie({}), t = /* @__PURE__ */ new WeakMap();
2033
- let l = 0;
2026
+ const s = ie({}), r = /* @__PURE__ */ new WeakMap();
2027
+ let t = 0;
2034
2028
  const e = (g) => {
2035
- let v = t.get(g);
2036
- return v || (l += 1, v = `fallback-${l}`, t.set(g, v)), v;
2037
- }, r = (g) => {
2038
- const v = o.option.table?.rowKey, D = v ? g[v] : void 0;
2029
+ let k = r.get(g);
2030
+ return k || (t += 1, k = `fallback-${t}`, r.set(g, k)), k;
2031
+ }, l = (g) => {
2032
+ const k = o.option.table?.rowKey, D = k ? g[k] : void 0;
2039
2033
  return D != null && D !== "" ? String(D) : e(g);
2040
- }, n = (g, v) => `${r(g)}-${v.key}`, u = (g) => ot(g, o.option.form?.error), f = tt(u), d = () => {
2034
+ }, n = (g, k) => `${l(g)}-${k.key}`, u = (g) => tt(g, o.option.form?.error), f = et(u), d = () => {
2041
2035
  Object.keys(s).forEach((g) => {
2042
2036
  delete s[g];
2043
2037
  });
2044
- }, m = (g, v) => {
2045
- delete s[n(g, v)];
2046
- }, c = (g, v) => s[n(g, v)] || "", p = (g, v) => g.message || u(v), w = (g) => g == null || g === "" || Array.isArray(g) && g.length === 0, U = (g) => {
2038
+ }, m = (g, k) => {
2039
+ delete s[n(g, k)];
2040
+ }, c = (g, k) => s[n(g, k)] || "", p = (g, k) => g.message || u(k), w = (g) => g == null || g === "" || Array.isArray(g) && g.length === 0, U = (g) => {
2047
2041
  if (typeof g == "number") return g;
2048
2042
  if (typeof g == "string" || Array.isArray(g)) return g.length;
2049
- }, K = (g, v) => {
2050
- if (g === "array") return Array.isArray(v);
2051
- if (g === "integer") return typeof v == "number" && Number.isInteger(v);
2052
- if (g === "float") return typeof v == "number" && !Number.isInteger(v);
2053
- if (g === "number") return typeof v == "number" && !Number.isNaN(v);
2054
- if (g === "boolean") return typeof v == "boolean";
2055
- if (g === "object") return v !== null && typeof v == "object" && !Array.isArray(v);
2056
- if (g === "date") return v instanceof Date || !Number.isNaN(new Date(v).getTime());
2057
- if (g === "email") return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(v));
2043
+ }, K = (g, k) => {
2044
+ if (g === "array") return Array.isArray(k);
2045
+ if (g === "integer") return typeof k == "number" && Number.isInteger(k);
2046
+ if (g === "float") return typeof k == "number" && !Number.isInteger(k);
2047
+ if (g === "number") return typeof k == "number" && !Number.isNaN(k);
2048
+ if (g === "boolean") return typeof k == "boolean";
2049
+ if (g === "object") return k !== null && typeof k == "object" && !Array.isArray(k);
2050
+ if (g === "date") return k instanceof Date || !Number.isNaN(new Date(k).getTime());
2051
+ if (g === "email") return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(k));
2058
2052
  if (g === "url")
2059
2053
  try {
2060
- return new URL(String(v)), !0;
2054
+ return new URL(String(k)), !0;
2061
2055
  } catch {
2062
2056
  return !1;
2063
2057
  }
2064
- return g === "string" ? typeof v == "string" : !0;
2065
- }, L = (g, v, D) => typeof g.validator != "function" ? Promise.resolve(!0) : new Promise((H) => {
2058
+ return g === "string" ? typeof k == "string" : !0;
2059
+ }, T = (g, k, D) => typeof g.validator != "function" ? Promise.resolve(!0) : new Promise((H) => {
2066
2060
  let N = !1;
2067
- const j = (I) => {
2061
+ const P = (G) => {
2068
2062
  if (!N) {
2069
- if (N = !0, I == null) {
2063
+ if (N = !0, G == null) {
2070
2064
  H(!0);
2071
2065
  return;
2072
2066
  }
2073
- if (I instanceof Error) {
2074
- H(I.message || p(g, D));
2067
+ if (G instanceof Error) {
2068
+ H(G.message || p(g, D));
2075
2069
  return;
2076
2070
  }
2077
- if (Array.isArray(I)) {
2078
- const ze = I[0];
2079
- H(ze instanceof Error ? ze.message : String(ze || p(g, D)));
2071
+ if (Array.isArray(G)) {
2072
+ const Ee = G[0];
2073
+ H(Ee instanceof Error ? Ee.message : String(Ee || p(g, D)));
2080
2074
  return;
2081
2075
  }
2082
- H(String(I));
2076
+ H(String(G));
2083
2077
  }
2084
2078
  };
2085
2079
  try {
2086
- const I = g.validator(g, v, j);
2087
- I && typeof I.then == "function" ? I.then(() => j()).catch(j) : I === !1 ? j(p(g, D)) : typeof I == "string" || I instanceof Error ? j(I) : g.validator.length < 3 && j();
2088
- } catch (I) {
2089
- j(I);
2080
+ const G = g.validator(g, k, P);
2081
+ G && typeof G.then == "function" ? G.then(() => P()).catch(P) : G === !1 ? P(p(g, D)) : typeof G == "string" || G instanceof Error ? P(G) : g.validator.length < 3 && P();
2082
+ } catch (G) {
2083
+ P(G);
2090
2084
  }
2091
- }), T = async (g, v, D) => {
2092
- const H = typeof g.transform == "function" ? g.transform(v) : v, N = w(H);
2085
+ }), j = async (g, k, D) => {
2086
+ const H = typeof g.transform == "function" ? g.transform(k) : k, N = w(H);
2093
2087
  if (g.required && N) return p(g, D);
2094
2088
  if (N && !g.required) return !0;
2095
2089
  if (g.whitespace && typeof H == "string" && H.trim() === "" || g.type && !K(g.type, H) || Array.isArray(g.enum) && !g.enum.includes(H) || g.pattern && !new RegExp(g.pattern).test(String(H))) return p(g, D);
2096
- const j = U(H);
2097
- return g.len !== void 0 && j !== void 0 && j !== g.len || g.min !== void 0 && j !== void 0 && j < g.min || g.max !== void 0 && j !== void 0 && j > g.max ? p(g, D) : L(g, H, D);
2098
- }, Ve = (g) => {
2099
- const v = a();
2100
- return !g.key || !v.table.column.show.list.includes(g.key) || g.table?.header?.groupKey !== void 0 && !g.table.header.show ? !1 : g.show?.table !== void 0 ? E.isFun(g.show?.table, v.table.data) : !0;
2101
- }, Se = (g, v) => g.show?.form !== void 0 ? E.isFun(g.show.form, v, E.EDialog.Update) : !0, _ = () => {
2102
- const g = a(), v = [], D = (H) => {
2090
+ const P = U(H);
2091
+ return g.len !== void 0 && P !== void 0 && P !== g.len || g.min !== void 0 && P !== void 0 && P < g.min || g.max !== void 0 && P !== void 0 && P > g.max ? p(g, D) : T(g, H, D);
2092
+ }, Ce = (g) => {
2093
+ const k = a();
2094
+ return !g.key || !k.table.column.show.list.includes(g.key) || g.table?.header?.groupKey !== void 0 && !g.table.header.show ? !1 : g.show?.table !== void 0 ? E.isFun(g.show?.table, k.table.data) : !0;
2095
+ }, Ve = (g, k) => g.show?.form !== void 0 ? E.isFun(g.show.form, k, E.EDialog.Update) : !0, _ = () => {
2096
+ const g = a(), k = [], D = (H) => {
2103
2097
  H.forEach((N) => {
2104
- if (Ve(N)) {
2098
+ if (Ce(N)) {
2105
2099
  if (N.children?.length) {
2106
2100
  D(N.children);
2107
2101
  return;
2108
2102
  }
2109
- v.push(N);
2103
+ k.push(N);
2110
2104
  }
2111
2105
  });
2112
2106
  };
2113
- return D(g.table.column.list), v;
2114
- }, Ee = async (g, v) => {
2115
- if (!Se(v, g))
2116
- return m(g, v), !0;
2117
- const D = f(v, g);
2107
+ return D(g.table.column.list), k;
2108
+ }, Se = async (g, k) => {
2109
+ if (!Ve(k, g))
2110
+ return m(g, k), !0;
2111
+ const D = f(k, g);
2118
2112
  if (!D) return !0;
2119
- m(g, v);
2113
+ m(g, k);
2120
2114
  const H = Array.isArray(D) ? D : [D];
2121
2115
  for (const N of H) {
2122
- const j = await T(N, g[v.key], v);
2123
- if (j !== !0)
2124
- return s[n(g, v)] = j, {
2125
- field: v.key,
2126
- error: j
2116
+ const P = await j(N, g[k.key], k);
2117
+ if (P !== !0)
2118
+ return s[n(g, k)] = P, {
2119
+ field: k.key,
2120
+ error: P
2127
2121
  };
2128
2122
  }
2129
2123
  return !0;
2130
2124
  }, te = (g) => {
2131
- const v = [], D = (H) => {
2125
+ const k = [], D = (H) => {
2132
2126
  H.forEach((N) => {
2133
- v.push(N), Array.isArray(N.children) && N.children.length && D(N.children);
2127
+ k.push(N), Array.isArray(N.children) && N.children.length && D(N.children);
2134
2128
  });
2135
2129
  };
2136
- return D(g), v;
2130
+ return D(g), k;
2137
2131
  };
2138
2132
  return {
2139
2133
  tableEditValidate: {
@@ -2143,9 +2137,9 @@ const we = (a) => {
2143
2137
  getFieldError: c,
2144
2138
  validate: async () => {
2145
2139
  if (d(), !o.option.table?.editMode) return !0;
2146
- const g = a(), v = _(), D = te(g.table.data || []), N = (await Promise.all(D.flatMap((j) => v.map((I) => Ee(j, I))))).filter((j) => j !== !0);
2140
+ const g = a(), k = _(), D = te(g.table.data || []), N = (await Promise.all(D.flatMap((P) => k.map((G) => Se(P, G))))).filter((P) => P !== !0);
2147
2141
  if (N.length)
2148
- throw me(N), !1;
2142
+ throw pe(N), !1;
2149
2143
  return !0;
2150
2144
  }
2151
2145
  }
@@ -2159,24 +2153,24 @@ class Zt {
2159
2153
  * @param columns - 列配置数组,需包含 `key`(数据字段)和 `label`(Excel 表头)
2160
2154
  * @param fileName - 文件名(不含扩展名),支持字符串或返回字符串的函数;默认生成「导出数据_日期_时间戳」
2161
2155
  */
2162
- static exportToExcel = async (o, s, t) => {
2156
+ static exportToExcel = async (o, s, r) => {
2163
2157
  if (!o || o.length === 0) return;
2164
- const l = await E.loadModule("xlsx"), e = o.map((u) => {
2158
+ const t = await E.loadModule("xlsx"), e = o.map((u) => {
2165
2159
  const f = {};
2166
2160
  return s.forEach((d) => {
2167
2161
  f[d.label] = u[d.key];
2168
2162
  }), f;
2169
- }), r = l.utils.json_to_sheet(e), n = l.utils.book_new();
2170
- l.utils.book_append_sheet(n, r, "Sheet1"), t ? typeof t == "function" && (t = t()) : t = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, l.writeFile(n, `${t}.xlsx`);
2163
+ }), l = t.utils.json_to_sheet(e), n = t.utils.book_new();
2164
+ t.utils.book_append_sheet(n, l, "Sheet1"), r ? typeof r == "function" && (r = r()) : r = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, t.writeFile(n, `${r}.xlsx`);
2171
2165
  };
2172
2166
  }
2173
2167
  const xt = (a, o) => ({
2174
2168
  export: {
2175
2169
  run: {
2176
2170
  start: async (s) => {
2177
- let l = await a().export.run[s]();
2178
- const e = o.option.column, r = ObjectUtil.deepMerge({ data: l, columns: e }, {}), n = o.option.tools?.export || {};
2179
- n.before?.(r), Zt.exportToExcel(r.data, r.columns, n.fileName);
2171
+ let t = await a().export.run[s]();
2172
+ const e = o.option.column, l = ObjectUtil.deepMerge({ data: t, columns: e }, {}), n = o.option.tools?.export || {};
2173
+ n.before?.(l), Zt.exportToExcel(l.data, l.columns, n.fileName);
2180
2174
  },
2181
2175
  select: async () => {
2182
2176
  const s = a();
@@ -2190,10 +2184,10 @@ const xt = (a, o) => ({
2190
2184
  return;
2191
2185
  }
2192
2186
  if (s.table.selection.list.length === 0)
2193
- throw E.fail(k.tCurd("selectDataToExport")), new Error(k.tCurd("selectDataToExport"));
2187
+ throw E.fail(C.tCurd("selectDataToExport")), new Error(C.tCurd("selectDataToExport"));
2194
2188
  return s.table.selection.list;
2195
- } catch (t) {
2196
- console.error(t);
2189
+ } catch (r) {
2190
+ console.error(r);
2197
2191
  } finally {
2198
2192
  s.export.loading = !1;
2199
2193
  }
@@ -2209,10 +2203,10 @@ const xt = (a, o) => ({
2209
2203
  return;
2210
2204
  }
2211
2205
  if (s.table.data.length === 0)
2212
- throw E.fail(k.tCurd("noData")), new Error(k.tCurd("noData"));
2206
+ throw E.fail(C.tCurd("noData")), new Error(C.tCurd("noData"));
2213
2207
  return s.table.data;
2214
- } catch (t) {
2215
- console.error(t);
2208
+ } catch (r) {
2209
+ console.error(r);
2216
2210
  } finally {
2217
2211
  s.export.loading = !1;
2218
2212
  }
@@ -2227,12 +2221,12 @@ const xt = (a, o) => ({
2227
2221
  });
2228
2222
  return;
2229
2223
  }
2230
- const t = o.option.api.list, l = await t({
2224
+ const r = o.option.api.list, t = await r({
2231
2225
  ...s.page.getQuery({ size: 999999, num: 1 })
2232
2226
  });
2233
- return (l.data || { [B.config.field.result.list]: l })[B.config.field.result.list];
2234
- } catch (t) {
2235
- console.error(t);
2227
+ return (t.data || { [B.config.field.result.list]: t })[B.config.field.result.list];
2228
+ } catch (r) {
2229
+ console.error(r);
2236
2230
  } finally {
2237
2231
  s.export.loading = !1;
2238
2232
  }
@@ -2240,13 +2234,13 @@ const xt = (a, o) => ({
2240
2234
  },
2241
2235
  loading: !1,
2242
2236
  click: (s) => {
2243
- const t = a();
2244
- t.export.loading || t.export.run.start(s);
2237
+ const r = a();
2238
+ r.export.loading || r.export.run.start(s);
2245
2239
  }
2246
2240
  }
2247
2241
  }), _t = (a, o) => ({
2248
2242
  remove: {
2249
- title: k.tCurd("deleteTitle"),
2243
+ title: C.tCurd("deleteTitle"),
2250
2244
  show: !1,
2251
2245
  items: [],
2252
2246
  loading: !1,
@@ -2255,25 +2249,25 @@ const xt = (a, o) => ({
2255
2249
  },
2256
2250
  open: (s) => {
2257
2251
  if (s.length === 0) {
2258
- E.fail(k.tCurd("selectDataToDelete"));
2252
+ E.fail(C.tCurd("selectDataToDelete"));
2259
2253
  return;
2260
2254
  }
2261
- const t = a();
2262
- t.remove.items = s, t.remove.show = !0;
2255
+ const r = a();
2256
+ r.remove.items = s, r.remove.show = !0;
2263
2257
  },
2264
2258
  submit: () => {
2265
2259
  FunUtil.throttle(async () => {
2266
2260
  const s = a();
2267
2261
  s.remove.loading = !0;
2268
- const t = o.option.api.delete;
2262
+ const r = o.option.api.delete;
2269
2263
  try {
2270
- if (!t) return;
2271
- await t({
2272
- [o.option.table?.rowKey]: s.remove.items.map((l) => l[o.option.table?.rowKey]),
2264
+ if (!r) return;
2265
+ await r({
2266
+ [o.option.table?.rowKey]: s.remove.items.map((t) => t[o.option.table?.rowKey]),
2273
2267
  items: s.remove.items
2274
- }), E.success(k.tCurd("operationSuccess")), s.table.data.length <= 1 && s.page.num > 1 && (s.page.num -= 1), s.remove.close(), await s.table.getList();
2275
- } catch (l) {
2276
- console.error(l);
2268
+ }), E.success(C.tCurd("operationSuccess")), s.table.data.length <= 1 && s.page.num > 1 && (s.page.num -= 1), s.remove.close(), await s.table.getList();
2269
+ } catch (t) {
2270
+ console.error(t);
2277
2271
  } finally {
2278
2272
  s.remove.loading = !1;
2279
2273
  }
@@ -2282,36 +2276,36 @@ const xt = (a, o) => ({
2282
2276
  }
2283
2277
  }), eo = (a, o, s) => ({
2284
2278
  apiDataMap: {},
2285
- getColumnSpan: (t, l) => {
2286
- const e = a(), r = e.update.formGrid?.length ? e.update.formGrid : l || [];
2287
- return Ze(t, r, e.update.form, e.update.type, {
2279
+ getColumnSpan: (r, t) => {
2280
+ const e = a(), l = e.update.formGrid?.length ? e.update.formGrid : t || [];
2281
+ return Ye(r, l, e.update.form, e.update.type, {
2288
2282
  maxSpan: e.update.formMaxSpan || o.option.form?.maxSpan,
2289
2283
  defaultSpan: o.option.form?.defaultSpan || B.config.form.defaultSpan
2290
2284
  });
2291
2285
  },
2292
2286
  init: () => {
2293
- const t = a();
2294
- t.initCurdConfig(), t.initColumnOptions(), t.initColumnForm();
2287
+ const r = a();
2288
+ r.initCurdConfig(), r.initColumnOptions(), r.initColumnForm();
2295
2289
  },
2296
- initApiData: async (t) => {
2297
- const l = a(), e = [], r = (n) => {
2290
+ initApiData: async (r) => {
2291
+ const t = a(), e = [], l = (n) => {
2298
2292
  if (n.children?.length) {
2299
- n.children.forEach((d) => r(d));
2293
+ n.children.forEach((d) => l(d));
2300
2294
  return;
2301
2295
  }
2302
2296
  const u = le(n), f = () => {
2303
2297
  n.table?.format || (n.table ??= {}, n.table.format = (d) => n.options[u].data.find((c) => c.value === d[n.key])?.label ?? d[n.key]);
2304
2298
  };
2305
- if (n.options?.[u]?.dataApi && n.options?.[u]?.dataApiConfig?.[t]) {
2306
- if (l.apiDataMap[n.key] && n.options?.[u]?.dataApiConfig?.once) return;
2299
+ if (n.options?.[u]?.dataApi && n.options?.[u]?.dataApiConfig?.[r]) {
2300
+ if (t.apiDataMap[n.key] && n.options?.[u]?.dataApiConfig?.once) return;
2307
2301
  const d = (async () => {
2308
2302
  try {
2309
- let m = await n.options?.[u]?.dataApi?.(l.update.form, l.update.type);
2303
+ let m = await n.options?.[u]?.dataApi?.(t.update.form, t.update.type);
2310
2304
  if (m) {
2311
2305
  const c = n.options?.[u]?.dataPath;
2312
2306
  !Array.isArray(m) && c && (m = ObjectUtil.getPathValue(m, c)), n.options[u].data = m, n.options.search[u].data = m;
2313
2307
  const p = n.options.search.type ?? u;
2314
- n.options.search[p] ??= {}, n.options.search[p].data = m, n.options.formAdd[u].data = m, n.options.formUpdate[u].data = m, f(), l.apiDataMap[n.key] = m;
2308
+ n.options.search[p] ??= {}, n.options.search[p].data = m, n.options.formAdd[u].data = m, n.options.formUpdate[u].data = m, f(), t.apiDataMap[n.key] = m;
2315
2309
  }
2316
2310
  } catch {
2317
2311
  }
@@ -2319,47 +2313,47 @@ const xt = (a, o) => ({
2319
2313
  e.push(d);
2320
2314
  } else Array.isArray(n.options?.[u]?.data) && f();
2321
2315
  };
2322
- return o.option.column.forEach((n) => r(n)), await Promise.all(e), !0;
2316
+ return o.option.column.forEach((n) => l(n)), await Promise.all(e), !0;
2323
2317
  },
2324
2318
  initCurdConfig: () => {
2325
- const t = ObjectUtil.deepMerge(B.config, {});
2326
- t.table.emptyText = k.tCurd("noData"), o.option.size = o.option.size || {}, t.table.size = o.option.size.table || t.size.table, t.form.size = o.option.size.form || t.size.form, t.size.search = o.option.size.search || t.size.search;
2327
- const l = ObjectUtil.deepMerge(t, o.option || {});
2328
- Object.keys(l).forEach((e) => {
2329
- o.option[e] = l[e];
2319
+ const r = ObjectUtil.deepMerge(B.config, {});
2320
+ r.table.emptyText = C.tCurd("noData"), o.option.size = o.option.size || {}, r.table.size = o.option.size.table || r.size.table, r.form.size = o.option.size.form || r.size.form, r.size.search = o.option.size.search || r.size.search;
2321
+ const t = ObjectUtil.deepMerge(r, o.option || {});
2322
+ Object.keys(t).forEach((e) => {
2323
+ o.option[e] = t[e];
2330
2324
  });
2331
2325
  },
2332
2326
  initColumnOptions: () => {
2333
- const t = a();
2334
- let l = JSONUtil.cp(B.config.columnConfig);
2335
- l.options = ObjectUtil.deepMerge(
2327
+ const r = a();
2328
+ let t = JSONUtil.cp(B.config.columnConfig);
2329
+ t.options = ObjectUtil.deepMerge(
2336
2330
  {
2337
2331
  switch: {
2338
- activeText: k.tCurd("switchOn"),
2339
- inactiveText: k.tCurd("switchOff")
2332
+ activeText: C.tCurd("switchOn"),
2333
+ inactiveText: C.tCurd("switchOff")
2340
2334
  }
2341
2335
  },
2342
- l.options
2336
+ t.options
2343
2337
  );
2344
- const e = (r) => {
2345
- const n = le(r);
2346
- for (const f in l) {
2338
+ const e = (l) => {
2339
+ const n = le(l);
2340
+ for (const f in t) {
2347
2341
  if (f === "table") {
2348
- if (r.table = ObjectUtil.deepMerge(l.table, r.table || {}), r.children) {
2349
- r.children.forEach((d) => e(d));
2342
+ if (l.table = ObjectUtil.deepMerge(t.table, l.table || {}), l.children) {
2343
+ l.children.forEach((d) => e(d));
2350
2344
  return;
2351
2345
  }
2352
- } else f === "type" ? r.type = r.type || l.type : r[f] = ObjectUtil.deepMerge(l[f], r[f] || {});
2353
- r.options = r.options || {}, r.options[n] = r.options[n] || {}, r.options[n].size = o.option.size.form;
2346
+ } else f === "type" ? l.type = l.type || t.type : l[f] = ObjectUtil.deepMerge(t[f], l[f] || {});
2347
+ l.options = l.options || {}, l.options[n] = l.options[n] || {}, l.options[n].size = o.option.size.form;
2354
2348
  }
2355
2349
  ["search", "formAdd", "formUpdate"].forEach((f) => {
2356
- r.options[f] = ObjectUtil.deepMerge(r.options, r.options[f] || {}), f === "search" ? o.option.size.search && (r.options[f][n].size = o.option.size.search) : o.option.size.form && (r.options[f][n].size = o.option.size.form);
2357
- }), r.table = ObjectUtil.deepMerge(r.table, r.options[n].table || {}), n === "switch" && (r.options.switch.tableBeforeChange = async (f, d) => {
2358
- const m = r.options?.switch;
2350
+ l.options[f] = ObjectUtil.deepMerge(l.options, l.options[f] || {}), f === "search" ? o.option.size.search && (l.options[f][n].size = o.option.size.search) : o.option.size.form && (l.options[f][n].size = o.option.size.form);
2351
+ }), l.table = ObjectUtil.deepMerge(l.table, l.options[n].table || {}), n === "switch" && (l.options.switch.tableBeforeChange = async (f, d) => {
2352
+ const m = l.options?.switch;
2359
2353
  try {
2360
2354
  m.tableConfig?.confirm && await s.switchConfirmRef.value?.open({
2361
- title: k.tCurd("confirmModify"),
2362
- content: k.tCurd("confirmSwitchMessage")
2355
+ title: C.tCurd("confirmModify"),
2356
+ content: C.tCurd("confirmSwitchMessage")
2363
2357
  });
2364
2358
  try {
2365
2359
  if (!o.option.api.update && !m.tableConfig?.api) return;
@@ -2368,57 +2362,57 @@ const xt = (a, o) => ({
2368
2362
  const p = d[f] === m.activeValue ? m.inactiveValue : m.activeValue, w = m.tableConfig?.api ? m.tableConfig.api : o.option.api.update;
2369
2363
  if (!w) return;
2370
2364
  try {
2371
- await w({ ...d, [f]: p }, "switch");
2365
+ await w({ ...d, [f]: p }, "switch"), m.tableConfig?.needTip !== !1 && E.success(C.tCurd("operationSuccess"));
2372
2366
  } catch {
2373
2367
  return !1;
2374
2368
  } finally {
2375
2369
  m.loadingMap[c].loading = !1;
2376
2370
  }
2377
- return E.success(k.tCurd("operationSuccess")), m.tableConfig?.loadList && (t.table.loading = !0, t.table.getList(), t.table.loading = !1), !0;
2371
+ return m.tableConfig?.loadList && (r.table.loading = !0, r.table.getList(), r.table.loading = !1), !0;
2378
2372
  } catch (c) {
2379
2373
  return console.error(c), !1;
2380
2374
  } finally {
2381
- t.table.loading = !1;
2375
+ r.table.loading = !1;
2382
2376
  }
2383
2377
  } catch {
2384
2378
  return !1;
2385
2379
  }
2386
- }), n === "treeSelect" && (r.options.treeSelect.rowKey = o.option.table?.rowKey, r.options.treeSelect.nodeKey = o.option.table?.rowKey);
2380
+ }), n === "treeSelect" && (l.options.treeSelect.rowKey = o.option.table?.rowKey, l.options.treeSelect.nodeKey = o.option.table?.rowKey);
2387
2381
  };
2388
2382
  o.option.column.forEach(e), o.option.table?.column?.forEach(e);
2389
2383
  },
2390
2384
  initColumnForm: () => {
2391
- const t = a(), l = o.option;
2392
- t.update.formColumn = [], t.update.formGrid = [], t.update.formMaxSpan = 12, t.table.column.show = { list: [], listSource: [] };
2393
- const e = o.option.form?.maxSpan || 12, r = o.option.form?.defaultSpan || e / 2, n = at(o.option.form), u = (c) => {
2385
+ const r = a(), t = o.option;
2386
+ r.update.formColumn = [], r.update.formGrid = [], r.update.formMaxSpan = 12, r.table.column.show = { list: [], listSource: [] };
2387
+ const e = o.option.form?.maxSpan || 12, l = o.option.form?.defaultSpan || e / 2, n = ot(o.option.form), u = (c) => {
2394
2388
  if (c.children) {
2395
- t.table.column.show.list.push(c.key), c.children.forEach((p) => u(p));
2389
+ r.table.column.show.list.push(c.key), c.children.forEach((p) => u(p));
2396
2390
  return;
2397
2391
  }
2398
- t.update.formDefault[c.key] = c.value, c.table?.table && (c.show?.table && t.table.column.show.list.push(c.key), t.table.column.show.listSource.push(c.key));
2392
+ r.update.formDefault[c.key] = c.value, c.table?.table && (c.show?.table && r.table.column.show.list.push(c.key), r.table.column.show.listSource.push(c.key));
2399
2393
  };
2400
- l.column.forEach((c) => {
2394
+ t.column.forEach((c) => {
2401
2395
  ke(c, !0), u(c);
2402
2396
  }), o.option.table?.column?.forEach((c) => {
2403
2397
  ke(c, !1), u(c);
2404
- }), t.search.column.list = l.column.concat(l.table?.column || []), t.table.column.list = t.search.column.list.filter((c) => c.table?.table), t.search.column.list.sort((c, p) => c.sort?.search - p.sort?.search), t.table.column.list.sort((c, p) => c.sort?.table - p.sort?.table), t.update.rules = {}, Re(l.column, t.update.formDefault, t.update.rules, (c) => n(c, () => t.update.form)), l.table?.editMode && Re(l.table?.column || [], t.update.formDefault, t.update.rules, (c) => n(c, () => t.update.form));
2405
- const f = et(l.column, {
2398
+ }), r.search.column.list = t.column.concat(t.table?.column || []), r.table.column.list = r.search.column.list.filter((c) => c.table?.table), r.search.column.list.sort((c, p) => c.sort?.search - p.sort?.search), r.table.column.list.sort((c, p) => c.sort?.table - p.sort?.table), r.update.rules = {}, Re(t.column, r.update.formDefault, r.update.rules, (c) => n(c, () => r.update.form)), t.table?.editMode && Re(t.table?.column || [], r.update.formDefault, r.update.rules, (c) => n(c, () => r.update.form));
2399
+ const f = _e(t.column, {
2406
2400
  maxSpan: e,
2407
- defaultSpan: r,
2401
+ defaultSpan: l,
2408
2402
  layout: o.option.form?.layout
2409
2403
  });
2410
- t.update.formGrid = f.cells, t.update.formMaxSpan = f.maxSpan, t.update.formColumn = _e(f.cells);
2404
+ r.update.formGrid = f.cells, r.update.formMaxSpan = f.maxSpan, r.update.formColumn = xe(f.cells);
2411
2405
  const d = o.option.search?.formDefault;
2412
2406
  d && Object.keys(d).forEach((c) => {
2413
- t.search.formDefault[c] = d[c];
2414
- }), l.column.forEach((c) => {
2415
- c.show?.search || (t.search.formDefault[c.key] = void 0);
2407
+ r.search.formDefault[c] = d[c];
2408
+ }), t.column.forEach((c) => {
2409
+ c.show?.search || (r.search.formDefault[c.key] = void 0);
2416
2410
  });
2417
- const m = ObjectUtil.deepMerge(t.search.formDefault, {});
2418
- x.setValue(t.search.form, m, !0);
2411
+ const m = ObjectUtil.deepMerge(r.search.formDefault, {});
2412
+ x.setValue(r.search.form, m, !0);
2419
2413
  }
2420
2414
  }), to = (a) => {
2421
- const o = Y(), s = Y(), t = Y(), l = { switchConfirmRef: o, ruleFormRef: s, tableRef: t }, e = Ge(), r = Fe.getConf("curdConf"), n = (m) => {
2415
+ const o = Y(), s = Y(), r = Y(), t = { switchConfirmRef: o, ruleFormRef: s, tableRef: r }, e = Ie(), l = Fe.getConf("curdConf"), n = (m) => {
2422
2416
  m = m || f;
2423
2417
  let c = m, p = m;
2424
2418
  for (; c?.parentCurdConf; )
@@ -2426,31 +2420,31 @@ const xt = (a, o) => ({
2426
2420
  return p;
2427
2421
  }, u = () => f;
2428
2422
  let f = ie({
2429
- parentCurdConf: r,
2423
+ parentCurdConf: l,
2430
2424
  getCurdConf: n,
2431
2425
  getRootCurdConf: n,
2432
2426
  ...qt(),
2433
2427
  option: a.option,
2434
2428
  ...Jt(u, a),
2435
2429
  ...Qt(u, a),
2436
- ...Xt(u, a, l),
2430
+ ...Xt(u, a, t),
2437
2431
  ...Yt(u, a),
2438
2432
  ...xt(u, a),
2439
- ...Dt(u, a, l),
2433
+ ...Dt(u, a, t),
2440
2434
  ..._t(u, a),
2441
- ...eo(u, a, l)
2435
+ ...eo(u, a, t)
2442
2436
  });
2443
2437
  f.init();
2444
2438
  const d = e ? `curdRef-${e.uid}` : "";
2445
- return r?.formRef && d && (r.formRef.set(d, {
2439
+ return l?.formRef && d && (l.formRef.set(d, {
2446
2440
  validate: async (m) => {
2447
2441
  const c = await f.update.validate(!1);
2448
2442
  if (m?.(!!c), !c) throw !1;
2449
2443
  return !0;
2450
2444
  }
2451
- }), Ie(() => {
2452
- r.formRef.remove(d);
2453
- })), He(() => {
2445
+ }), Ne(() => {
2446
+ l.formRef.remove(d);
2447
+ })), Ke(() => {
2454
2448
  if (a.option.init !== !1) {
2455
2449
  if (a.option.table?.sortable?.show && !a.option.table?.sortable?.button) {
2456
2450
  (f.table?.sortable.getOption()).scroll || (a.option.table.fitHeight = !1), f.table.sortable.refreshList();
@@ -2460,49 +2454,49 @@ const xt = (a, o) => ({
2460
2454
  }
2461
2455
  }), ht(() => {
2462
2456
  f.table.sortable.destroy();
2463
- }), Fe.setConf("curdConf", f), { conf: f, switchConfirmRef: o, ruleFormRef: s, tableRef: t };
2457
+ }), Fe.setConf("curdConf", f), { conf: f, switchConfirmRef: o, ruleFormRef: s, tableRef: r };
2464
2458
  }, oo = { class: "dialog-footer" }, ao = /* @__PURE__ */ Q({
2465
2459
  __name: "switchConfirm",
2466
2460
  props: {
2467
2461
  size: {}
2468
2462
  },
2469
2463
  setup(a, { expose: o }) {
2470
- const s = Y(!1), t = Y("确认修改"), l = Y("确认要修改状态吗?");
2471
- let e = null, r = null;
2472
- const n = (d) => (d?.title && (t.value = d.title), d?.content && (l.value = d.content), s.value = !0, new Promise((m, c) => {
2473
- e = m, r = c;
2464
+ const s = Y(!1), r = Y("确认修改"), t = Y("确认要修改状态吗?");
2465
+ let e = null, l = null;
2466
+ const n = (d) => (d?.title && (r.value = d.title), d?.content && (t.value = d.content), s.value = !0, new Promise((m, c) => {
2467
+ e = m, l = c;
2474
2468
  })), u = () => {
2475
- s.value = !1, e?.(!0), e = null, r = null;
2469
+ s.value = !1, e?.(!0), e = null, l = null;
2476
2470
  }, f = () => {
2477
- s.value = !1, r?.(new Error("用户取消操作")), e = null, r = null;
2471
+ s.value = !1, l?.(new Error("用户取消操作")), e = null, l = null;
2478
2472
  };
2479
2473
  return o({
2480
2474
  open: n
2481
2475
  }), (d, m) => {
2482
- const c = pe("el-form");
2483
- return b(), y(i($e), {
2476
+ const c = ce("el-form");
2477
+ return b(), h(i($e), {
2484
2478
  modelValue: s.value,
2485
2479
  "onUpdate:modelValue": m[0] || (m[0] = (p) => s.value = p),
2486
- title: t.value,
2480
+ title: r.value,
2487
2481
  "close-on-click-modal": !1,
2488
2482
  width: "400px"
2489
2483
  }, {
2490
- footer: h(() => [
2491
- M(c, { size: d.size }, {
2492
- default: h(() => [
2484
+ footer: y(() => [
2485
+ O(c, { size: d.size }, {
2486
+ default: y(() => [
2493
2487
  R("span", oo, [
2494
- M(i(P), { onClick: f }, {
2495
- default: h(() => m[1] || (m[1] = [
2496
- O("取消")
2488
+ O(i(L), { onClick: f }, {
2489
+ default: y(() => m[1] || (m[1] = [
2490
+ M("取消")
2497
2491
  ])),
2498
2492
  _: 1
2499
2493
  }),
2500
- M(i(P), {
2494
+ O(i(L), {
2501
2495
  type: "primary",
2502
2496
  onClick: u
2503
2497
  }, {
2504
- default: h(() => m[2] || (m[2] = [
2505
- O("确认")
2498
+ default: y(() => m[2] || (m[2] = [
2499
+ M("确认")
2506
2500
  ])),
2507
2501
  _: 1
2508
2502
  })
@@ -2511,8 +2505,8 @@ const xt = (a, o) => ({
2511
2505
  _: 1
2512
2506
  }, 8, ["size"])
2513
2507
  ]),
2514
- default: h(() => [
2515
- R("div", null, F(l.value), 1)
2508
+ default: y(() => [
2509
+ R("div", null, F(t.value), 1)
2516
2510
  ]),
2517
2511
  _: 1
2518
2512
  }, 8, ["modelValue", "title"]);
@@ -2526,12 +2520,12 @@ const xt = (a, o) => ({
2526
2520
  },
2527
2521
  setup(a) {
2528
2522
  const o = a, s = ae(() => typeof o.content == "function" ? o.content(o.value) : o.content);
2529
- return (t, l) => typeof s.value == "object" ? (b(), y(ee(s.value), { key: 0 })) : (b(), C("div", {
2523
+ return (r, t) => typeof s.value == "object" ? (b(), h(ee(s.value), { key: 0 })) : (b(), v("div", {
2530
2524
  key: 1,
2531
2525
  innerHTML: s.value
2532
2526
  }, null, 8, no));
2533
2527
  }
2534
- }), Te = /* @__PURE__ */ Q({
2528
+ }), Be = /* @__PURE__ */ Q({
2535
2529
  __name: "searchField",
2536
2530
  props: {
2537
2531
  item: {},
@@ -2544,93 +2538,106 @@ const xt = (a, o) => ({
2544
2538
  set: (t) => {
2545
2539
  o.item?.key !== void 0 && (o.conf.search.form[o.item.key] = t);
2546
2540
  }
2547
- });
2548
- return (t, l) => i(q).customComponent[t.type ?? ""]?.search ? (b(), y(ee(i(q).customComponent[t.type ?? ""]?.search), S({
2541
+ }), r = (t) => {
2542
+ const e = [
2543
+ t.options?.search?.radio,
2544
+ t.options?.search?.select,
2545
+ t.options?.radio,
2546
+ t.options?.select
2547
+ ];
2548
+ for (const l of e)
2549
+ if (Array.isArray(l?.data) && l.data.length > 0)
2550
+ return l.data;
2551
+ return [];
2552
+ };
2553
+ return (t, e) => i(q).customComponent[t.type ?? ""]?.search ? (b(), h(ee(i(q).customComponent[t.type ?? ""]?.search), V({
2549
2554
  key: 0,
2550
2555
  modelValue: s.value,
2551
- "onUpdate:modelValue": l[0] || (l[0] = (e) => s.value = e)
2552
- }, t.item.options?.search?.[t.type ?? ""], $(t.item.options?.search?.[t.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : t.type === "input" ? (b(), y(i(fe), S({
2556
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => s.value = l)
2557
+ }, t.item.options?.search?.[t.type ?? ""], z(t.item.options?.search?.[t.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : t.type === "input" ? (b(), h(i(ue), V({
2553
2558
  key: 1,
2554
2559
  modelValue: s.value,
2555
- "onUpdate:modelValue": l[1] || (l[1] = (e) => s.value = e),
2560
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => s.value = l),
2556
2561
  placeholder: t.conf.search.getPlaceholder(t.item),
2557
2562
  clearable: "",
2558
2563
  disabled: t.item.disabled?.search
2559
- }, t.item.options?.search?.input || t.item.options?.input, $(t.item.options?.search?.input?.on || t.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "switch" ? (b(), y(i(ce), S({
2564
+ }, t.item.options?.search?.input || t.item.options?.input, z(t.item.options?.search?.input?.on || t.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "switch" ? (b(), h(i(fe), V({
2560
2565
  key: 2,
2561
2566
  modelValue: s.value,
2562
- "onUpdate:modelValue": l[2] || (l[2] = (e) => s.value = e),
2563
- placeholder: t.conf.search.getPlaceholder(t.item, i(k).tCurd("placeholderSelect")),
2567
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => s.value = l),
2568
+ placeholder: t.conf.search.getPlaceholder(t.item, i(C).tCurd("placeholderSelect")),
2564
2569
  clearable: "",
2565
2570
  disabled: t.item.disabled?.search
2566
- }, t.item.options?.search?.switch || t.item.options?.switch, $(t.item.options?.search?.switch?.on || t.item.options?.switch?.on || {})), {
2567
- default: h(() => [
2568
- (b(), y(i(ne), {
2571
+ }, t.item.options?.search?.switch || t.item.options?.switch, z(t.item.options?.search?.switch?.on || t.item.options?.switch?.on || {})), {
2572
+ default: y(() => [
2573
+ (b(), h(i(ne), {
2569
2574
  key: t.item.options?.switch?.activeValue,
2570
2575
  label: t.item.options?.switch?.activeText,
2571
2576
  value: t.item.options?.switch?.activeValue
2572
2577
  }, null, 8, ["label", "value"])),
2573
- (b(), y(i(ne), {
2578
+ (b(), h(i(ne), {
2574
2579
  key: t.item.options?.switch?.inactiveValue,
2575
2580
  label: t.item.options?.switch?.inactiveText,
2576
2581
  value: t.item.options?.switch?.inactiveValue
2577
2582
  }, null, 8, ["label", "value"]))
2578
2583
  ]),
2579
2584
  _: 1
2580
- }, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "select" ? (b(), y(i(ce), S({
2585
+ }, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "select" ? (b(), h(i(fe), V({
2581
2586
  key: 3,
2582
2587
  modelValue: s.value,
2583
- "onUpdate:modelValue": l[3] || (l[3] = (e) => s.value = e),
2584
- placeholder: t.conf.search.getPlaceholder(t.item, i(k).tCurd("placeholderSelect")),
2588
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => s.value = l),
2589
+ placeholder: t.conf.search.getPlaceholder(t.item, i(C).tCurd("placeholderSelect")),
2585
2590
  clearable: "",
2586
2591
  disabled: t.item.disabled?.search
2587
- }, t.item.options?.search?.select || t.item.options?.select, $(t.item.options?.search?.select?.on || t.item.options?.select?.on || {})), {
2588
- default: h(() => [
2589
- (b(!0), C(A, null, G(t.item.options?.search?.select?.data || t.item.options?.select?.data || [], (e) => (b(), y(i(ne), {
2590
- key: e.value,
2591
- label: e.label,
2592
- value: e.value
2592
+ }, t.item.options?.search?.select || t.item.options?.select, z(t.item.options?.search?.select?.on || t.item.options?.select?.on || {})), {
2593
+ default: y(() => [
2594
+ (b(!0), v(A, null, I(r(t.item), (l) => (b(), h(i(ne), {
2595
+ key: l.value,
2596
+ label: l.label,
2597
+ value: l.value
2593
2598
  }, null, 8, ["label", "value"]))), 128))
2594
2599
  ]),
2595
2600
  _: 1
2596
- }, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "radio" ? (b(), y(i(je), S({
2601
+ }, 16, ["modelValue", "placeholder", "disabled"])) : t.type === "radio" ? (b(), h(i(Le), V({
2597
2602
  key: 4,
2598
2603
  modelValue: s.value,
2599
- "onUpdate:modelValue": l[4] || (l[4] = (e) => s.value = e),
2604
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => s.value = l),
2600
2605
  disabled: t.item.disabled?.search
2601
- }, t.item.options?.search?.radio || t.item.options?.radio, $(t.item.options?.search?.radio?.on || t.item.options?.radio?.on || {})), {
2602
- default: h(() => [
2603
- (b(!0), C(A, null, G(t.item.options?.radio?.data, (e) => (b(), y(i(Pe), {
2604
- key: e.value,
2605
- label: e.label,
2606
- value: e.value
2607
- }, null, 8, ["label", "value"]))), 128))
2606
+ }, t.item.options?.search?.radio || t.item.options?.radio, z(t.item.options?.search?.radio?.on || t.item.options?.radio?.on || {})), {
2607
+ default: y(() => [
2608
+ (t.item.options?.search?.radio?.type || t.item.options?.radio?.type) === "group" ? (b(!0), v(A, { key: 0 }, I(r(t.item), (l) => (b(), h(i(Te), V({
2609
+ key: l.value,
2610
+ ref_for: !0
2611
+ }, l, z(l.on || {})), null, 16))), 128)) : (b(!0), v(A, { key: 1 }, I(r(t.item), (l) => (b(), h(i(je), V({
2612
+ key: l.value,
2613
+ ref_for: !0
2614
+ }, l, z(l.on || {})), null, 16))), 128))
2608
2615
  ]),
2609
2616
  _: 1
2610
- }, 16, ["modelValue", "disabled"])) : t.type === "datetime" ? (b(), y(i(Ke), S({
2617
+ }, 16, ["modelValue", "disabled"])) : t.type === "datetime" ? (b(), h(i(Pe), V({
2611
2618
  key: 5,
2612
2619
  modelValue: s.value,
2613
- "onUpdate:modelValue": l[5] || (l[5] = (e) => s.value = e),
2620
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => s.value = l),
2614
2621
  disabled: t.item.disabled?.search
2615
- }, t.item.options?.search?.datetime || t.item.options?.datetime, $(t.item.options?.search?.datetime?.on || t.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : t.type && i(q).customComponent[t.type] ? (b(), y(ee(i(q).customComponent[t.type]), S({
2622
+ }, t.item.options?.search?.datetime || t.item.options?.datetime, z(t.item.options?.search?.datetime?.on || t.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : t.type && i(q).customComponent[t.type] ? (b(), h(ee(i(q).customComponent[t.type]), V({
2616
2623
  key: 6,
2617
2624
  modelValue: s.value,
2618
- "onUpdate:modelValue": l[6] || (l[6] = (e) => s.value = e)
2619
- }, t.item.options?.search?.[t.type] || t.item.options?.[t.type], $(t.item.options?.search?.[t.type]?.on || t.item.options?.[t.type]?.on || {}), {
2625
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => s.value = l)
2626
+ }, t.item.options?.search?.[t.type] || t.item.options?.[t.type], z(t.item.options?.search?.[t.type]?.on || t.item.options?.[t.type]?.on || {}), {
2620
2627
  disabled: t.item.disabled?.search
2621
- }), null, 16, ["modelValue", "disabled"])) : V("", !0);
2628
+ }), null, 16, ["modelValue", "disabled"])) : S("", !0);
2622
2629
  }
2623
2630
  }), se = (a, o) => {
2624
2631
  const s = a.__vccOpts || a;
2625
- for (const [t, l] of o)
2626
- s[t] = l;
2632
+ for (const [r, t] of o)
2633
+ s[r] = t;
2627
2634
  return s;
2628
2635
  }, ro = {}, io = {
2629
2636
  xmlns: "http://www.w3.org/2000/svg",
2630
2637
  viewBox: "64 64 896 896"
2631
2638
  };
2632
2639
  function so(a, o) {
2633
- return b(), C("svg", io, o[0] || (o[0] = [
2640
+ return b(), v("svg", io, o[0] || (o[0] = [
2634
2641
  R("path", {
2635
2642
  fill: "currentColor",
2636
2643
  d: "M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"
@@ -2642,7 +2649,7 @@ const uo = /* @__PURE__ */ se(ro, [["render", so]]), fo = {}, co = {
2642
2649
  viewBox: "64 64 896 896"
2643
2650
  };
2644
2651
  function po(a, o) {
2645
- return b(), C("svg", co, o[0] || (o[0] = [
2652
+ return b(), v("svg", co, o[0] || (o[0] = [
2646
2653
  R("path", {
2647
2654
  fill: "currentColor",
2648
2655
  d: "M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"
@@ -2654,33 +2661,33 @@ const mo = /* @__PURE__ */ se(fo, [["render", po]]), bo = {}, go = {
2654
2661
  viewBox: "0 0 1024 1024"
2655
2662
  };
2656
2663
  function ho(a, o) {
2657
- return b(), C("svg", go, o[0] || (o[0] = [
2664
+ return b(), v("svg", go, o[0] || (o[0] = [
2658
2665
  R("path", {
2659
2666
  fill: "currentColor",
2660
2667
  d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
2661
2668
  }, null, -1)
2662
2669
  ]));
2663
2670
  }
2664
- const yo = /* @__PURE__ */ se(bo, [["render", ho]]), wo = {}, vo = {
2671
+ const yo = /* @__PURE__ */ se(bo, [["render", ho]]), wo = {}, ko = {
2665
2672
  "data-v-58697b5c": "",
2666
2673
  xmlns: "http://www.w3.org/2000/svg",
2667
2674
  viewBox: "0 0 1024 1024"
2668
2675
  };
2669
- function ko(a, o) {
2670
- return b(), C("svg", vo, o[0] || (o[0] = [
2676
+ function vo(a, o) {
2677
+ return b(), v("svg", ko, o[0] || (o[0] = [
2671
2678
  R("path", {
2672
2679
  fill: "currentColor",
2673
2680
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"
2674
2681
  }, null, -1)
2675
2682
  ]));
2676
2683
  }
2677
- const lt = /* @__PURE__ */ se(wo, [["render", ko]]), Co = {}, Vo = {
2684
+ const nt = /* @__PURE__ */ se(wo, [["render", vo]]), Co = {}, Vo = {
2678
2685
  "data-v-58697b5c": "",
2679
2686
  xmlns: "http://www.w3.org/2000/svg",
2680
2687
  viewBox: "0 0 1024 1024"
2681
2688
  };
2682
2689
  function So(a, o) {
2683
- return b(), C("svg", Vo, o[0] || (o[0] = [
2690
+ return b(), v("svg", Vo, o[0] || (o[0] = [
2684
2691
  R("path", {
2685
2692
  fill: "currentColor",
2686
2693
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"
@@ -2693,7 +2700,7 @@ const Eo = /* @__PURE__ */ se(Co, [["render", So]]), zo = {}, $o = {
2693
2700
  viewBox: "0 0 1024 1024"
2694
2701
  };
2695
2702
  function Mo(a, o) {
2696
- return b(), C("svg", $o, o[0] || (o[0] = [
2703
+ return b(), v("svg", $o, o[0] || (o[0] = [
2697
2704
  R("path", {
2698
2705
  fill: "currentColor",
2699
2706
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"
@@ -2714,42 +2721,42 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
2714
2721
  option: {}
2715
2722
  },
2716
2723
  setup(a) {
2717
- const o = E.isFun, s = a, l = Ge().type, e = (n) => n === !0 ? !0 : (Array.isArray(n) ? n : n ? [n] : []).some((f) => f?.required === !0), r = (n) => s.option.table?.editMode ? e(n.rules) || e(s.conf.update.rules?.[n.key]) : !1;
2724
+ const o = E.isFun, s = a, t = Ie().type, e = (n) => n === !0 ? !0 : (Array.isArray(n) ? n : n ? [n] : []).some((f) => f?.required === !0), l = (n) => s.option.table?.editMode ? e(n.rules) || e(s.conf.update.rules?.[n.key]) : !1;
2718
2725
  return (n, u) => {
2719
- const f = pe("el-tooltip");
2720
- return b(!0), C(A, null, G(n.columnList, (d) => (b(), C(A, {
2726
+ const f = ce("el-tooltip");
2727
+ return b(!0), v(A, null, I(n.columnList, (d) => (b(), v(A, {
2721
2728
  key: d.key
2722
2729
  }, [
2723
- n.conf.table.column.show.list.includes(d.key) && (d.show?.table === void 0 || i(o)(d.show?.table, n.conf.table.data)) ? (b(), C(A, { key: 0 }, [
2724
- d.table?.header?.groupKey === void 0 || d.table.header.show ? (b(), y(i(ue), S({
2730
+ n.conf.table.column.show.list.includes(d.key) && (d.show?.table === void 0 || i(o)(d.show?.table, n.conf.table.data)) ? (b(), v(A, { key: 0 }, [
2731
+ d.table?.header?.groupKey === void 0 || d.table.header.show ? (b(), h(i(de), V({
2725
2732
  key: 0,
2726
2733
  prop: d.key,
2727
2734
  label: d.label,
2728
2735
  ref_for: !0
2729
2736
  }, d.table), {
2730
- header: h(() => [
2731
- z(n.$slots, "table-header-" + d.key, { item: d }, () => [
2737
+ header: y(() => [
2738
+ $(n.$slots, "table-header-" + d.key, { item: d }, () => [
2732
2739
  R("div", Fo, [
2733
- d.table?.header?.tooltip ? (b(), y(f, {
2740
+ d.table?.header?.tooltip ? (b(), h(f, {
2734
2741
  key: 0,
2735
2742
  effect: "dark",
2736
2743
  placement: "top"
2737
2744
  }, {
2738
- content: h(() => [
2745
+ content: y(() => [
2739
2746
  R("div", {
2740
2747
  innerHTML: d.table?.header?.tooltip
2741
2748
  }, null, 8, Do)
2742
2749
  ]),
2743
- default: h(() => [
2750
+ default: y(() => [
2744
2751
  R("span", Ro, [
2745
- M(lt)
2752
+ O(nt)
2746
2753
  ])
2747
2754
  ]),
2748
2755
  _: 2
2749
- }, 1024)) : V("", !0),
2750
- r(d) ? (b(), C("span", Uo, "*")) : V("", !0),
2751
- O(" " + F(d.label) + " ", 1),
2752
- d.table?.header?.group !== void 0 ? (b(), C("span", {
2756
+ }, 1024)) : S("", !0),
2757
+ l(d) ? (b(), v("span", Uo, "*")) : S("", !0),
2758
+ M(" " + F(d.label) + " ", 1),
2759
+ d.table?.header?.group !== void 0 ? (b(), v("span", {
2753
2760
  key: 2,
2754
2761
  class: "table-header-plus",
2755
2762
  onClick: yt(
@@ -2761,88 +2768,88 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
2761
2768
  ["stop"]
2762
2769
  )
2763
2770
  }, [
2764
- d.table.header.group ? (b(), y(Eo, { key: 0 })) : (b(), y(Oo, { key: 1 }))
2765
- ], 8, Ao)) : V("", !0)
2771
+ d.table.header.group ? (b(), h(Eo, { key: 0 })) : (b(), h(Oo, { key: 1 }))
2772
+ ], 8, Ao)) : S("", !0)
2766
2773
  ])
2767
2774
  ])
2768
2775
  ]),
2769
- default: h(({ row: m }) => [
2770
- d.children ? (b(), C(A, { key: 0 }, [
2771
- u[0] || (u[0] = O("   ")),
2772
- (b(), y(ee(i(l)), {
2776
+ default: y(({ row: m }) => [
2777
+ d.children ? (b(), v(A, { key: 0 }, [
2778
+ u[0] || (u[0] = M("   ")),
2779
+ (b(), h(ee(i(t)), {
2773
2780
  conf: n.conf,
2774
2781
  columnList: d.children,
2775
2782
  option: n.option
2776
2783
  }, Z({ _: 2 }, [
2777
- G(n.$slots, (c, p) => ({
2784
+ I(n.$slots, (c, p) => ({
2778
2785
  name: p,
2779
- fn: h((w) => [
2780
- z(n.$slots, p, S({ ref_for: !0 }, w || {}))
2786
+ fn: y((w) => [
2787
+ $(n.$slots, p, V({ ref_for: !0 }, w || {}))
2781
2788
  ])
2782
2789
  }))
2783
2790
  ]), 1032, ["conf", "columnList", "option"]))
2784
- ], 64)) : (b(), C(A, { key: 1 }, [
2785
- n.option.table?.editMode ? (b(), C("div", Bo, [
2786
- M(i(he), {
2791
+ ], 64)) : (b(), v(A, { key: 1 }, [
2792
+ n.option.table?.editMode ? (b(), v("div", Bo, [
2793
+ O(i(ge), {
2787
2794
  size: n.option.size?.table,
2788
2795
  error: n.conf.tableEditValidate.getFieldError(m, d),
2789
2796
  class: "table-edit-form-item"
2790
2797
  }, {
2791
- default: h(() => [
2798
+ default: y(() => [
2792
2799
  R("div", {
2793
2800
  class: J(["row", ["table-edit-" + d.key]]),
2794
2801
  style: { width: "100%" }
2795
2802
  }, [
2796
- z(n.$slots, "table-edit-left-" + d.key, {
2803
+ $(n.$slots, "table-edit-left-" + d.key, {
2797
2804
  row: m,
2798
2805
  item: d
2799
2806
  }),
2800
- d.type === "input" ? (b(), y(i(fe), S({
2807
+ d.type === "input" ? (b(), h(i(ue), V({
2801
2808
  key: 0,
2802
2809
  modelValue: m[d.key],
2803
2810
  "onUpdate:modelValue": (c) => m[d.key] = c,
2804
2811
  disabled: n.conf.update.getDisabled(d, !0),
2805
2812
  class: "col",
2806
2813
  ref_for: !0
2807
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), {
2814
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), {
2808
2815
  "onUpdate:modelValue": (c) => n.conf.tableEditValidate.clearField(m, d)
2809
2816
  }), Z({ _: 2 }, [
2810
2817
  d.options?.input?.prepend ? {
2811
2818
  name: "prepend",
2812
- fn: h(() => [
2813
- O(F(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(m) : d.options?.input?.prepend), 1)
2819
+ fn: y(() => [
2820
+ M(F(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(m) : d.options?.input?.prepend), 1)
2814
2821
  ]),
2815
2822
  key: "0"
2816
2823
  } : void 0
2817
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "select" ? (b(), y(i(ce), S({
2824
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "select" ? (b(), h(i(fe), V({
2818
2825
  key: 1,
2819
2826
  modelValue: m[d.key],
2820
2827
  "onUpdate:modelValue": (c) => m[d.key] = c,
2821
2828
  disabled: n.conf.update.getDisabled(d, !0),
2822
2829
  class: "col",
2823
2830
  ref_for: !0
2824
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), {
2831
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), {
2825
2832
  "onUpdate:modelValue": (c) => n.conf.tableEditValidate.clearField(m, d)
2826
2833
  }), {
2827
- default: h(() => [
2828
- (b(!0), C(A, null, G(d.options?.search?.select?.data || d.options?.select?.data, (c) => (b(), y(i(ne), {
2834
+ default: y(() => [
2835
+ (b(!0), v(A, null, I(d.options?.search?.select?.data || d.options?.select?.data, (c) => (b(), h(i(ne), {
2829
2836
  key: c.value,
2830
2837
  label: c.label,
2831
2838
  value: c.value
2832
2839
  }, null, 8, ["label", "value"]))), 128))
2833
2840
  ]),
2834
2841
  _: 2
2835
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "switch" ? (b(), y(i(ge), S({
2842
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "switch" ? (b(), h(i(be), V({
2836
2843
  key: 2,
2837
2844
  modelValue: m[d.key],
2838
2845
  "onUpdate:modelValue": (c) => m[d.key] = c,
2839
2846
  disabled: n.conf.update.getDisabled(d, !0),
2840
2847
  class: "col",
2841
2848
  ref_for: !0
2842
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), {
2849
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), {
2843
2850
  "onUpdate:modelValue": (c) => n.conf.tableEditValidate.clearField(m, d)
2844
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : V("", !0),
2845
- z(n.$slots, "table-edit-right-" + d.key, {
2851
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : S("", !0),
2852
+ $(n.$slots, "table-edit-right-" + d.key, {
2846
2853
  row: m,
2847
2854
  item: d
2848
2855
  })
@@ -2850,67 +2857,67 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
2850
2857
  ]),
2851
2858
  _: 2
2852
2859
  }, 1032, ["size", "error"])
2853
- ])) : (b(), C(A, { key: 1 }, [
2854
- n.conf.update.type === i(E).EDialog.Update && i(o)(d.show?.form, n.conf.update.form, i(E).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === m[n.option.table?.rowKey] && (d.type === "input" || d.type === "select") ? (b(), C(A, { key: 0 }, [
2855
- d.type === "input" ? (b(), y(i(fe), S({
2860
+ ])) : (b(), v(A, { key: 1 }, [
2861
+ n.conf.update.type === i(E).EDialog.Update && i(o)(d.show?.form, n.conf.update.form, i(E).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === m[n.option.table?.rowKey] && (d.type === "input" || d.type === "select") ? (b(), v(A, { key: 0 }, [
2862
+ d.type === "input" ? (b(), h(i(ue), V({
2856
2863
  key: 0,
2857
2864
  modelValue: n.conf.update.form[d.key],
2858
2865
  "onUpdate:modelValue": (c) => n.conf.update.form[d.key] = c,
2859
2866
  disabled: n.conf.update.getDisabled(d, !0),
2860
2867
  ref_for: !0
2861
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), { style: { width: "100%" } }), Z({ _: 2 }, [
2868
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), { style: { width: "100%" } }), Z({ _: 2 }, [
2862
2869
  d.options?.input?.prepend ? {
2863
2870
  name: "prepend",
2864
- fn: h(() => [
2865
- O(F(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(m) : d.options?.input?.prepend), 1)
2871
+ fn: y(() => [
2872
+ M(F(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(m) : d.options?.input?.prepend), 1)
2866
2873
  ]),
2867
2874
  key: "0"
2868
2875
  } : void 0
2869
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "select" ? (b(), y(i(ce), S({
2876
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "select" ? (b(), h(i(fe), V({
2870
2877
  key: 1,
2871
2878
  modelValue: n.conf.update.form[d.key],
2872
2879
  "onUpdate:modelValue": (c) => n.conf.update.form[d.key] = c,
2873
2880
  disabled: n.conf.update.getDisabled(d, !0),
2874
2881
  ref_for: !0
2875
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), { style: { width: "100%" } }), {
2876
- default: h(() => [
2877
- (b(!0), C(A, null, G(d.options?.search?.select?.data || d.options?.select?.data, (c) => (b(), y(i(ne), {
2882
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), { style: { width: "100%" } }), {
2883
+ default: y(() => [
2884
+ (b(!0), v(A, null, I(d.options?.search?.select?.data || d.options?.select?.data, (c) => (b(), h(i(ne), {
2878
2885
  key: c.value,
2879
2886
  label: c.label,
2880
2887
  value: c.value
2881
2888
  }, null, 8, ["label", "value"]))), 128))
2882
2889
  ]),
2883
2890
  _: 2
2884
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "switch" ? (b(), y(i(ge), S({
2891
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.type === "switch" ? (b(), h(i(be), V({
2885
2892
  key: 2,
2886
2893
  modelValue: n.conf.update.form[d.key],
2887
2894
  "onUpdate:modelValue": (c) => n.conf.update.form[d.key] = c,
2888
2895
  ref_for: !0
2889
- }, n.conf.update.getBind(d), $(n.conf.update.getOn(d, m)), {
2896
+ }, n.conf.update.getBind(d), z(n.conf.update.getOn(d, m)), {
2890
2897
  disabled: n.conf.update.getDisabled(d, !0)
2891
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : V("", !0)
2892
- ], 64)) : z(n.$slots, "table-" + d.key, {
2898
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : S("", !0)
2899
+ ], 64)) : $(n.$slots, "table-" + d.key, {
2893
2900
  key: 1,
2894
2901
  row: m,
2895
2902
  item: d
2896
2903
  }, () => [
2897
- i(q).customComponent[d.type ?? ""]?.table ? (b(), y(ee(i(q).customComponent[d.type ?? ""]?.table), S({
2904
+ i(q).customComponent[d.type ?? ""]?.table ? (b(), h(ee(i(q).customComponent[d.type ?? ""]?.table), V({
2898
2905
  key: 0,
2899
2906
  modelValue: m[d.key],
2900
2907
  "onUpdate:modelValue": (c) => m[d.key] = c,
2901
2908
  ref_for: !0
2902
- }, d.options?.[d.type ?? ""], $(d.options?.[d.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : d.type === "switch" ? (b(), C(A, { key: 1 }, [
2903
- d.options?.switch?.tableConfig?.change ? (b(), y(i(ge), S({
2909
+ }, d.options?.[d.type ?? ""], z(d.options?.[d.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : d.type === "switch" ? (b(), v(A, { key: 1 }, [
2910
+ d.options?.switch?.tableConfig?.change ? (b(), h(i(be), V({
2904
2911
  key: 0,
2905
2912
  modelValue: m[d.key],
2906
2913
  "onUpdate:modelValue": (c) => m[d.key] = c,
2907
2914
  loading: d.options?.switch?.loadingMap?.[m[n.option.table?.rowKey]]?.loading,
2908
2915
  "before-change": () => d.options?.switch?.tableBeforeChange?.(d.key, m),
2909
2916
  ref_for: !0
2910
- }, d.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (b(), C("span", Lo, F(m[d.key] === d.options?.switch?.activeValue ? d.options?.switch?.activeText : d.options?.switch?.inactiveText), 1))
2911
- ], 64)) : (b(), C("span", {
2917
+ }, d.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (b(), v("span", Lo, F(m[d.key] === d.options?.switch?.activeValue ? d.options?.switch?.activeText : d.options?.switch?.inactiveText), 1))
2918
+ ], 64)) : (b(), v("span", {
2912
2919
  key: 2,
2913
- style: ye({
2920
+ style: he({
2914
2921
  "--table-text-click-color": d.table?.click?.color
2915
2922
  }),
2916
2923
  class: J({ "table-text-click": d.table?.click?.callback }),
@@ -2922,8 +2929,8 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
2922
2929
  ], 64))
2923
2930
  ]),
2924
2931
  _: 2
2925
- }, 1040, ["prop", "label"])) : V("", !0)
2926
- ], 64)) : V("", !0)
2932
+ }, 1040, ["prop", "label"])) : S("", !0)
2933
+ ], 64)) : S("", !0)
2927
2934
  ], 64))), 128);
2928
2935
  };
2929
2936
  }
@@ -2962,218 +2969,218 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
2962
2969
  }
2963
2970
  },
2964
2971
  setup(a, { expose: o }) {
2965
- const s = E.EDialog, t = a, l = E.isFun, { conf: e, switchConfirmRef: r, ruleFormRef: n, tableRef: u } = to(t);
2972
+ const s = E.EDialog, r = a, t = E.isFun, { conf: e, switchConfirmRef: l, ruleFormRef: n, tableRef: u } = to(r);
2966
2973
  return o({
2967
2974
  conf: e
2968
2975
  }), (f, d) => {
2969
- const m = pe("el-tooltip"), c = wt("loading");
2970
- return b(), C("div", {
2976
+ const m = ce("el-tooltip"), c = wt("loading");
2977
+ return b(), v("div", {
2971
2978
  class: J(["relative cc1-form-box", [a.option.table?.fitHeight ? "col" : "no-min-height"]])
2972
2979
  }, [
2973
2980
  R("div", {
2974
2981
  class: J(["row", [a.option.table?.fitHeight ? "absolute fit" : ""]]),
2975
2982
  style: { overflow: "hidden" }
2976
2983
  }, [
2977
- z(f.$slots, "box-left"),
2984
+ $(f.$slots, "box-left"),
2978
2985
  R("div", {
2979
2986
  class: J(["column fit-width no-wrap", [a.option.table?.fitHeight ? "col" : ""]])
2980
2987
  }, [
2981
- a.option.search?.show !== !1 ? (b(), C("div", Po, [
2982
- M(i(oe), {
2988
+ a.option.search?.show !== !1 ? (b(), v("div", Po, [
2989
+ O(i(oe), {
2983
2990
  model: i(e).search.form,
2984
2991
  inline: "",
2985
2992
  size: a.option.size?.search
2986
2993
  }, {
2987
- default: h(() => [
2988
- z(f.$slots, "search-start", {
2994
+ default: y(() => [
2995
+ $(f.$slots, "search-start", {
2989
2996
  row: i(e).search.form
2990
2997
  }),
2991
- (b(!0), C(A, null, G(i(e).search.column.list, (p) => (b(), C(A, {
2998
+ (b(!0), v(A, null, I(i(e).search.column.list, (p) => (b(), v(A, {
2992
2999
  key: p.key
2993
3000
  }, [
2994
- z(f.$slots, "search-" + p.key + "-start", {
3001
+ $(f.$slots, "search-" + p.key + "-start", {
2995
3002
  row: i(e).search.form
2996
3003
  }),
2997
- (typeof p.show?.search == "function" ? p.show?.search(i(e).search.form) : p.show?.search) ? (b(), y(i(he), {
3004
+ (typeof p.show?.search == "function" ? p.show?.search(i(e).search.form) : p.show?.search) ? (b(), h(i(ge), {
2998
3005
  key: 0,
2999
3006
  label: p.text?.search?.label ?? p.label
3000
3007
  }, {
3001
- default: h(() => [
3002
- z(f.$slots, "search-" + p.key + "-left", {
3008
+ default: y(() => [
3009
+ $(f.$slots, "search-" + p.key + "-left", {
3003
3010
  row: i(e).search.form
3004
3011
  }),
3005
- z(f.$slots, "search-" + p.key, {
3012
+ $(f.$slots, "search-" + p.key, {
3006
3013
  row: i(e).search.form
3007
3014
  }, () => [
3008
- p.options?.search?.type ? (b(), y(Te, {
3015
+ p.options?.search?.type ? (b(), h(Be, {
3009
3016
  key: 0,
3010
3017
  item: p,
3011
3018
  conf: i(e),
3012
3019
  type: p.options.search.type
3013
- }, null, 8, ["item", "conf", "type"])) : (b(), y(Te, {
3020
+ }, null, 8, ["item", "conf", "type"])) : (b(), h(Be, {
3014
3021
  key: 1,
3015
3022
  item: p,
3016
3023
  conf: i(e),
3017
3024
  type: p.type
3018
3025
  }, null, 8, ["item", "conf", "type"]))
3019
3026
  ]),
3020
- z(f.$slots, "search-" + p.key + "-right", {
3027
+ $(f.$slots, "search-" + p.key + "-right", {
3021
3028
  row: i(e).search.form
3022
3029
  })
3023
3030
  ]),
3024
3031
  _: 2
3025
- }, 1032, ["label"])) : V("", !0),
3026
- z(f.$slots, "search-" + p.key + "-end", {
3032
+ }, 1032, ["label"])) : S("", !0),
3033
+ $(f.$slots, "search-" + p.key + "-end", {
3027
3034
  row: i(e).search.form
3028
3035
  })
3029
3036
  ], 64))), 128)),
3030
- z(f.$slots, "search-center", {
3037
+ $(f.$slots, "search-center", {
3031
3038
  row: i(e).search.form
3032
3039
  }),
3033
- a.option.tools?.search || a.option.tools?.reset ? (b(), y(i(he), { key: 0 }, {
3034
- default: h(() => [
3035
- a.option.tools?.search ? (b(), y(i(P), {
3040
+ a.option.tools?.search || a.option.tools?.reset ? (b(), h(i(ge), { key: 0 }, {
3041
+ default: y(() => [
3042
+ a.option.tools?.search ? (b(), h(i(L), {
3036
3043
  key: 0,
3037
3044
  type: "primary",
3038
3045
  onClick: i(e).search.submit
3039
3046
  }, {
3040
- default: h(() => [
3041
- O(F(i(k).tCurd("search")), 1)
3047
+ default: y(() => [
3048
+ M(F(i(C).tCurd("search")), 1)
3042
3049
  ]),
3043
3050
  _: 1
3044
- }, 8, ["onClick"])) : V("", !0),
3045
- a.option.tools?.reset ? (b(), y(i(P), {
3051
+ }, 8, ["onClick"])) : S("", !0),
3052
+ a.option.tools?.reset ? (b(), h(i(L), {
3046
3053
  key: 1,
3047
3054
  onClick: i(e).search.reset
3048
3055
  }, {
3049
- default: h(() => [
3050
- O(F(i(k).tCurd("reset")), 1)
3056
+ default: y(() => [
3057
+ M(F(i(C).tCurd("reset")), 1)
3051
3058
  ]),
3052
3059
  _: 1
3053
- }, 8, ["onClick"])) : V("", !0)
3060
+ }, 8, ["onClick"])) : S("", !0)
3054
3061
  ]),
3055
3062
  _: 1
3056
- })) : V("", !0),
3057
- z(f.$slots, "search-end", {
3063
+ })) : S("", !0),
3064
+ $(f.$slots, "search-end", {
3058
3065
  row: i(e).search.form
3059
3066
  })
3060
3067
  ]),
3061
3068
  _: 3
3062
3069
  }, 8, ["model", "size"])
3063
- ])) : V("", !0),
3070
+ ])) : S("", !0),
3064
3071
  R("div", Ko, [
3065
3072
  R("div", Ho, [
3066
- i(l)(a.option.tools?.add) ? (b(), C("div", No, [
3067
- M(i(P), {
3073
+ i(t)(a.option.tools?.add) ? (b(), v("div", No, [
3074
+ O(i(L), {
3068
3075
  type: "primary",
3069
3076
  onClick: d[0] || (d[0] = (p) => i(e).update.open(i(s).Add)),
3070
3077
  size: a.option.size?.search
3071
3078
  }, {
3072
- default: h(() => [
3073
- O(F(i(k).tCurd("add")), 1)
3079
+ default: y(() => [
3080
+ M(F(i(C).tCurd("add")), 1)
3074
3081
  ]),
3075
3082
  _: 1
3076
3083
  }, 8, ["size"])
3077
- ])) : V("", !0),
3078
- i(l)(a.option.tools?.delete) ? (b(), C("div", Io, [
3079
- M(i(P), {
3084
+ ])) : S("", !0),
3085
+ i(t)(a.option.tools?.delete) ? (b(), v("div", Io, [
3086
+ O(i(L), {
3080
3087
  type: "danger",
3081
3088
  onClick: d[1] || (d[1] = (p) => i(e).remove.open(i(e).table.selection.list)),
3082
3089
  size: a.option.size?.search
3083
3090
  }, {
3084
- default: h(() => [
3085
- O(F(i(k).tCurd("delete")), 1)
3091
+ default: y(() => [
3092
+ M(F(i(C).tCurd("delete")), 1)
3086
3093
  ]),
3087
3094
  _: 1
3088
3095
  }, 8, ["size"])
3089
- ])) : V("", !0),
3090
- a.option.tools?.expand ? (b(), C("div", Go, [
3091
- M(i(P), {
3096
+ ])) : S("", !0),
3097
+ a.option.tools?.expand ? (b(), v("div", Go, [
3098
+ O(i(L), {
3092
3099
  type: "warning",
3093
3100
  onClick: d[2] || (d[2] = (p) => i(e).table.expand.all()),
3094
3101
  size: a.option.size?.search
3095
3102
  }, {
3096
- default: h(() => [
3097
- O(F(i(k).tCurd("expandCollapse")), 1)
3103
+ default: y(() => [
3104
+ M(F(i(C).tCurd("expandCollapse")), 1)
3098
3105
  ]),
3099
3106
  _: 1
3100
3107
  }, 8, ["size"])
3101
- ])) : V("", !0),
3102
- a.option.tools?.export?.show ? (b(), C(A, { key: 3 }, [
3103
- a.option.tools?.export?.dropdown?.show ? (b(), y(i(Ue), {
3108
+ ])) : S("", !0),
3109
+ a.option.tools?.export?.show ? (b(), v(A, { key: 3 }, [
3110
+ a.option.tools?.export?.dropdown?.show ? (b(), h(i(mt), {
3104
3111
  key: 0,
3105
3112
  onCommand: i(e).export.click
3106
3113
  }, {
3107
- dropdown: h(() => [
3108
- M(i(Ae), {
3114
+ dropdown: y(() => [
3115
+ O(i(bt), {
3109
3116
  size: a.option.size?.search
3110
3117
  }, {
3111
- default: h(() => [
3112
- a.option.tools?.export?.dropdown?.select && (a.option.table?.selectable || i(l)(a.option.tools?.delete)) ? (b(), y(i(de), {
3118
+ default: y(() => [
3119
+ a.option.tools?.export?.dropdown?.select && (a.option.table?.selectable || i(t)(a.option.tools?.delete)) ? (b(), h(i(ze), {
3113
3120
  key: 0,
3114
3121
  command: "select"
3115
3122
  }, {
3116
- default: h(() => [
3117
- O(F(i(k).tCurd("exportSelect")), 1)
3123
+ default: y(() => [
3124
+ M(F(i(C).tCurd("exportSelect")), 1)
3118
3125
  ]),
3119
3126
  _: 1
3120
- })) : V("", !0),
3121
- a.option.tools?.export?.dropdown?.page ? (b(), y(i(de), {
3127
+ })) : S("", !0),
3128
+ a.option.tools?.export?.dropdown?.page ? (b(), h(i(ze), {
3122
3129
  key: 1,
3123
3130
  command: "page"
3124
3131
  }, {
3125
- default: h(() => [
3126
- O(F(i(k).tCurd("exportPage")), 1)
3132
+ default: y(() => [
3133
+ M(F(i(C).tCurd("exportPage")), 1)
3127
3134
  ]),
3128
3135
  _: 1
3129
- })) : V("", !0),
3130
- a.option.tools?.export?.dropdown?.all ? (b(), y(i(de), {
3136
+ })) : S("", !0),
3137
+ a.option.tools?.export?.dropdown?.all ? (b(), h(i(ze), {
3131
3138
  key: 2,
3132
3139
  command: "all"
3133
3140
  }, {
3134
- default: h(() => [
3135
- O(F(i(k).tCurd("exportAll")), 1)
3141
+ default: y(() => [
3142
+ M(F(i(C).tCurd("exportAll")), 1)
3136
3143
  ]),
3137
3144
  _: 1
3138
- })) : V("", !0)
3145
+ })) : S("", !0)
3139
3146
  ]),
3140
3147
  _: 1
3141
3148
  }, 8, ["size"])
3142
3149
  ]),
3143
- default: h(() => [
3150
+ default: y(() => [
3144
3151
  R("div", Wo, [
3145
- M(i(P), {
3152
+ O(i(L), {
3146
3153
  type: "warning",
3147
3154
  loading: i(e).export.loading,
3148
3155
  size: a.option.size?.search
3149
3156
  }, {
3150
- default: h(() => [
3151
- O(F(i(k).tCurd("export")), 1)
3157
+ default: y(() => [
3158
+ M(F(i(C).tCurd("export")), 1)
3152
3159
  ]),
3153
3160
  _: 1
3154
3161
  }, 8, ["loading", "size"])
3155
3162
  ])
3156
3163
  ]),
3157
3164
  _: 1
3158
- }, 8, ["onCommand"])) : (b(), C("div", qo, [
3159
- M(i(P), {
3165
+ }, 8, ["onCommand"])) : (b(), v("div", qo, [
3166
+ O(i(L), {
3160
3167
  type: "warning",
3161
3168
  loading: i(e).export.loading,
3162
3169
  size: a.option.size?.search,
3163
3170
  onClick: d[3] || (d[3] = (p) => i(e).export.run.start("all"))
3164
3171
  }, {
3165
- default: h(() => [
3166
- O(F(i(k).tCurd("export")), 1)
3172
+ default: y(() => [
3173
+ M(F(i(C).tCurd("export")), 1)
3167
3174
  ]),
3168
3175
  _: 1
3169
3176
  }, 8, ["loading", "size"])
3170
3177
  ]))
3171
- ], 64)) : V("", !0),
3172
- z(f.$slots, "tools-left")
3178
+ ], 64)) : S("", !0),
3179
+ $(f.$slots, "tools-left")
3173
3180
  ]),
3174
3181
  R("div", Jo, [
3175
- z(f.$slots, "tools-right"),
3176
- i(e).page.showTools && i(e).table.sortable.showPagination() ? (b(), y(i(Be), S({
3182
+ $(f.$slots, "tools-right"),
3183
+ i(e).page.showTools && i(e).table.sortable.showPagination() ? (b(), h(i(Ue), V({
3177
3184
  key: 0,
3178
3185
  "current-page": i(e).page.num,
3179
3186
  "onUpdate:currentPage": d[4] || (d[4] = (p) => i(e).page.num = p),
@@ -3187,95 +3194,79 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3187
3194
  size: a.option.size?.table,
3188
3195
  onSizeChange: i(e).table.sortable.refreshList,
3189
3196
  onCurrentChange: i(e).table.sortable.refreshList
3190
- }, a.option.page?.pagination || {}, $(a.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : V("", !0),
3191
- i(e).table.sortable.showTriggerButton() ? (b(), y(i(P), {
3197
+ }, a.option.page?.pagination || {}, z(a.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : S("", !0),
3198
+ i(e).table.sortable.showTriggerButton() ? (b(), h(i(L), {
3192
3199
  key: 1,
3193
3200
  type: "warning",
3194
3201
  onClick: i(e).table.sortable.start,
3195
3202
  size: a.option.size?.search,
3196
3203
  loading: i(e).table.sortable.actionLoading
3197
3204
  }, {
3198
- default: h(() => [
3199
- O(F(i(k).tCurd("sortableStart")), 1)
3205
+ default: y(() => [
3206
+ M(F(i(C).tCurd("sortableStart")), 1)
3200
3207
  ]),
3201
3208
  _: 1
3202
- }, 8, ["onClick", "size", "loading"])) : V("", !0),
3203
- i(e).table.sortable.showActionButton() ? (b(), y(i(Ue), {
3204
- key: 2,
3205
- onCommand: i(e).table.sortable.command
3206
- }, {
3207
- dropdown: h(() => [
3208
- M(i(Ae), {
3209
- size: a.option.size?.search
3210
- }, {
3211
- default: h(() => [
3212
- M(i(de), { command: "save" }, {
3213
- default: h(() => [
3214
- O(F(i(k).tCurd("sortableSave")), 1)
3215
- ]),
3216
- _: 1
3217
- }),
3218
- M(i(de), { command: "exit" }, {
3219
- default: h(() => [
3220
- O(F(i(k).tCurd("sortableExit")), 1)
3221
- ]),
3222
- _: 1
3223
- })
3224
- ]),
3225
- _: 1
3226
- }, 8, ["size"])
3227
- ]),
3228
- default: h(() => [
3229
- M(i(P), {
3230
- type: "warning",
3231
- size: a.option.size?.search,
3232
- loading: i(e).table.sortable.actionLoading
3233
- }, {
3234
- default: h(() => [
3235
- O(F(i(k).tCurd("sortableAction")), 1)
3236
- ]),
3237
- _: 1
3238
- }, 8, ["size", "loading"])
3239
- ]),
3240
- _: 1
3241
- }, 8, ["onCommand"])) : V("", !0),
3242
- i(e).table.sortable.showSaveButton() ? (b(), y(i(P), {
3209
+ }, 8, ["onClick", "size", "loading"])) : S("", !0),
3210
+ i(e).table.sortable.showActionButton() ? (b(), v(A, { key: 2 }, [
3211
+ O(i(L), {
3212
+ type: "success",
3213
+ size: a.option.size?.search,
3214
+ loading: i(e).table.sortable.actionLoading,
3215
+ onClick: i(e).table.sortable.save
3216
+ }, {
3217
+ default: y(() => [
3218
+ M(F(i(C).tCurd("sortableSave")), 1)
3219
+ ]),
3220
+ _: 1
3221
+ }, 8, ["size", "loading", "onClick"]),
3222
+ O(i(L), {
3223
+ type: "info",
3224
+ size: a.option.size?.search,
3225
+ onClick: i(e).table.sortable.exit
3226
+ }, {
3227
+ default: y(() => [
3228
+ M(F(i(C).tCurd("sortableExit")), 1)
3229
+ ]),
3230
+ _: 1
3231
+ }, 8, ["size", "onClick"])
3232
+ ], 64)) : S("", !0),
3233
+ i(e).table.sortable.showSaveButton() ? (b(), h(i(L), {
3243
3234
  key: 3,
3244
3235
  type: "warning",
3245
3236
  onClick: i(e).table.sortable.save,
3246
3237
  size: a.option.size?.search,
3247
3238
  loading: i(e).table.sortable.actionLoading
3248
3239
  }, {
3249
- default: h(() => [
3250
- O(F(i(k).tCurd("sortableSave")), 1)
3240
+ default: y(() => [
3241
+ M(F(i(C).tCurd("sortableSave")), 1)
3251
3242
  ]),
3252
3243
  _: 1
3253
- }, 8, ["onClick", "size", "loading"])) : V("", !0),
3254
- a.option.tools?.expandColumn === void 0 || a.option.tools?.expandColumn ? (b(), y(m, {
3244
+ }, 8, ["onClick", "size", "loading"])) : S("", !0),
3245
+ a.option.tools?.expandColumn === void 0 || a.option.tools?.expandColumn ? (b(), h(m, {
3255
3246
  key: 4,
3256
3247
  effect: "dark",
3257
- content: i(e).table.header.group.expand ? i(k).tCurd("mergeColumn") : i(k).tCurd("expandColumn"),
3248
+ content: i(e).table.header.group.expand ? i(C).tCurd("mergeColumn") : i(C).tCurd("expandColumn"),
3258
3249
  placement: "top"
3259
3250
  }, {
3260
- default: h(() => [
3251
+ default: y(() => [
3261
3252
  R("div", {
3262
3253
  class: J(["refresh-btn", [a.option.size?.search]]),
3263
3254
  onClick: d[6] || (d[6] = //@ts-ignore
3264
3255
  (...p) => i(e).table.header.group.toggleExpandAll && i(e).table.header.group.toggleExpandAll(...p))
3265
3256
  }, [
3266
- i(e).table.header.group.expand ? (b(), y(uo, { key: 0 })) : (b(), y(mo, { key: 1 }))
3257
+ i(e).table.header.group.expand ? (b(), h(uo, { key: 0 })) : (b(), h(mo, { key: 1 }))
3267
3258
  ], 2)
3268
3259
  ]),
3269
3260
  _: 1
3270
- }, 8, ["content"])) : V("", !0),
3271
- a.option.tools?.refresh === void 0 || a.option.tools?.refresh ? (b(), C("div", {
3261
+ }, 8, ["content"])) : S("", !0),
3262
+ a.option.tools?.refresh === void 0 || a.option.tools?.refresh ? (b(), v("div", {
3272
3263
  key: 5,
3273
3264
  class: J(["refresh-btn", [a.option.size?.search]]),
3274
3265
  onClick: d[7] || (d[7] = //@ts-ignore
3275
3266
  (...p) => i(e).table.sortable.refreshList && i(e).table.sortable.refreshList(...p))
3276
3267
  }, [
3277
- M(yo)
3278
- ], 2)) : V("", !0)
3268
+ O(yo)
3269
+ ], 2)) : S("", !0)
3279
3270
  ])
3280
3271
  ]),
3281
3272
  R("div", {
@@ -3284,7 +3275,7 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3284
3275
  R("div", {
3285
3276
  class: J(["column form-box-content", [a.option.table?.fitHeight ? "absolute fit" : ""]])
3286
3277
  }, [
3287
- vt((b(), y(i(gt), S({
3278
+ kt((b(), h(i(gt), V({
3288
3279
  ref_key: "tableRef",
3289
3280
  ref: u,
3290
3281
  data: i(e).table.data,
@@ -3294,9 +3285,9 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3294
3285
  onSortChange: i(e).table.sort.change,
3295
3286
  "expand-row-keys": i(e).table.expand.rowKeys,
3296
3287
  onExpandChange: i(e).table.expand.change
3297
- }, i(e).table.sortable.getTableBindOption(), $(a.option.table?.on || {})), {
3298
- default: h(() => [
3299
- (typeof a.option.table?.selectable == "object" ? a.option.table?.selectable?.show : a.option.table?.selectable) || i(l)(a.option.tools?.delete) || a.option.tools?.export?.show && a.option.tools?.export?.select ? (b(), y(i(ue), S({
3288
+ }, i(e).table.sortable.getTableBindOption(), z(a.option.table?.on || {})), {
3289
+ default: y(() => [
3290
+ (typeof a.option.table?.selectable == "object" ? a.option.table?.selectable?.show : a.option.table?.selectable) || i(t)(a.option.tools?.delete) || a.option.tools?.export?.show && a.option.tools?.export?.select ? (b(), h(i(de), V({
3300
3291
  key: 0,
3301
3292
  type: "selection",
3302
3293
  width: "40",
@@ -3304,8 +3295,8 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3304
3295
  fixed: "left",
3305
3296
  "show-overflow-tooltip": !1,
3306
3297
  className: "cc1-form-selectable-column"
3307
- }, typeof a.option.table?.selectable == "object" ? a.option.table?.selectable : {}, $(typeof a.option.table?.selectable == "object" ? a.option.table?.selectable?.on || {} : {})), null, 16)) : V("", !0),
3308
- (typeof a.option.table?.index == "object" ? a.option.table?.index?.show : a.option.table?.index) ? (b(), y(i(ue), S({
3298
+ }, typeof a.option.table?.selectable == "object" ? a.option.table?.selectable : {}, z(typeof a.option.table?.selectable == "object" ? a.option.table?.selectable?.on || {} : {})), null, 16)) : S("", !0),
3299
+ (typeof a.option.table?.index == "object" ? a.option.table?.index?.show : a.option.table?.index) ? (b(), h(i(de), V({
3309
3300
  key: 1,
3310
3301
  type: "index",
3311
3302
  fixed: "left",
@@ -3314,51 +3305,51 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3314
3305
  label: "#",
3315
3306
  "show-overflow-tooltip": !1,
3316
3307
  className: "cc1-form-index-column"
3317
- }, typeof a.option.table?.index == "object" ? a.option.table?.index : {}, $(typeof a.option.table?.index == "object" ? a.option.table?.index?.on || {} : {})), null, 16)) : V("", !0),
3318
- i(e).table.sortable.isActive() ? (b(), y(i(ue), S({
3308
+ }, typeof a.option.table?.index == "object" ? a.option.table?.index : {}, z(typeof a.option.table?.index == "object" ? a.option.table?.index?.on || {} : {})), null, 16)) : S("", !0),
3309
+ i(e).table.sortable.isActive() ? (b(), h(i(de), V({
3319
3310
  key: 2,
3320
3311
  align: "center",
3321
3312
  "show-overflow-tooltip": !1,
3322
3313
  className: "cc1-form-drag-column"
3323
- }, i(e).table.sortable.getColumnBind(), $(i(e).table.sortable.getColumnBind().on || {})), {
3324
- header: h(() => [
3325
- z(f.$slots, "table-header-sortable", {}, () => [
3326
- M(m, {
3314
+ }, i(e).table.sortable.getColumnBind(), z(i(e).table.sortable.getColumnBind().on || {})), {
3315
+ header: y(() => [
3316
+ $(f.$slots, "table-header-sortable", {}, () => [
3317
+ O(m, {
3327
3318
  effect: "dark",
3328
3319
  placement: "top"
3329
3320
  }, {
3330
- content: h(() => [
3321
+ content: y(() => [
3331
3322
  R("div", {
3332
- innerHTML: a.option.table?.sortable?.tipText ?? i(k).tCurd("sortable")
3323
+ innerHTML: a.option.table?.sortable?.tipText ?? i(C).tCurd("sortable")
3333
3324
  }, null, 8, Xo)
3334
3325
  ]),
3335
- default: h(() => [
3326
+ default: y(() => [
3336
3327
  R("span", Qo, [
3337
- M(lt)
3328
+ O(nt)
3338
3329
  ])
3339
3330
  ]),
3340
3331
  _: 1
3341
3332
  })
3342
3333
  ])
3343
3334
  ]),
3344
- default: h(() => d[12] || (d[12] = [
3335
+ default: y(() => d[12] || (d[12] = [
3345
3336
  R("span", { class: "cc1-form-drag-handle" }, "::", -1)
3346
3337
  ])),
3347
3338
  _: 3
3348
- }, 16)) : V("", !0),
3349
- M(jo, {
3339
+ }, 16)) : S("", !0),
3340
+ O(jo, {
3350
3341
  conf: i(e),
3351
3342
  columnList: i(e).table.column.list,
3352
3343
  option: a.option
3353
3344
  }, Z({ _: 2 }, [
3354
- G(f.$slots, (p, w) => ({
3345
+ I(f.$slots, (p, w) => ({
3355
3346
  name: w,
3356
- fn: h((U) => [
3357
- z(f.$slots, w, Me(Oe(U || {})))
3347
+ fn: y((U) => [
3348
+ $(f.$slots, w, Me(Oe(U || {})))
3358
3349
  ])
3359
3350
  }))
3360
3351
  ]), 1032, ["conf", "columnList", "option"]),
3361
- i(l)(a.option.table?.add) || i(l)(a.option.table?.update) || i(l)(a.option.table?.delete) || i(l)(a.option.table?.view) || f.$slots["table-op-left"] || f.$slots["table-op-right"] ? (b(), y(i(ue), S({
3352
+ i(t)(a.option.table?.add) || i(t)(a.option.table?.update) || i(t)(a.option.table?.delete) || i(t)(a.option.table?.view) || f.$slots["table-op-left"] || f.$slots["table-op-right"] ? (b(), h(i(de), V({
3362
3353
  key: 3,
3363
3354
  align: "center",
3364
3355
  fixed: "right"
@@ -3366,93 +3357,93 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3366
3357
  width: a.option.table?.operate?.width || 120,
3367
3358
  "show-overflow-tooltip": !1
3368
3359
  }), {
3369
- header: h(() => [
3370
- z(f.$slots, "table-header-op", {}, () => [
3371
- O(F(i(k).tCurd("operation")), 1)
3360
+ header: y(() => [
3361
+ $(f.$slots, "table-header-op", {}, () => [
3362
+ M(F(i(C).tCurd("operation")), 1)
3372
3363
  ])
3373
3364
  ]),
3374
- default: h(({ row: p }) => [
3375
- M(i(oe), {
3365
+ default: y(({ row: p }) => [
3366
+ O(i(oe), {
3376
3367
  size: a.option.size?.table
3377
3368
  }, {
3378
- default: h(() => [
3379
- z(f.$slots, "table-op-left", { row: p }),
3380
- i(e).update.type === i(s).Update && a.option.table?.inlineEdit && i(e).update.form[t.option.table?.rowKey] === p[t.option.table?.rowKey] ? (b(), C(A, { key: 0 }, [
3381
- M(i(P), {
3369
+ default: y(() => [
3370
+ $(f.$slots, "table-op-left", { row: p }),
3371
+ i(e).update.type === i(s).Update && a.option.table?.inlineEdit && i(e).update.form[r.option.table?.rowKey] === p[r.option.table?.rowKey] ? (b(), v(A, { key: 0 }, [
3372
+ O(i(L), {
3382
3373
  link: "",
3383
3374
  type: "info",
3384
3375
  onClick: i(e).update.close
3385
3376
  }, {
3386
- default: h(() => [
3387
- O(F(i(k).tCurd("cancel")), 1)
3377
+ default: y(() => [
3378
+ M(F(i(C).tCurd("cancel")), 1)
3388
3379
  ]),
3389
3380
  _: 1
3390
3381
  }, 8, ["onClick"]),
3391
- M(i(P), {
3382
+ O(i(L), {
3392
3383
  link: "",
3393
3384
  type: "primary",
3394
3385
  onClick: i(e).update.submit,
3395
3386
  loading: i(e).update.loading
3396
3387
  }, {
3397
- default: h(() => [
3398
- O(F(i(k).tCurd("confirm")), 1)
3388
+ default: y(() => [
3389
+ M(F(i(C).tCurd("confirm")), 1)
3399
3390
  ]),
3400
3391
  _: 1
3401
3392
  }, 8, ["onClick", "loading"]),
3402
- z(f.$slots, "table-op-edit-right", { row: p })
3403
- ], 64)) : (b(), C(A, { key: 1 }, [
3404
- i(l)(a.option.table?.add, p) ? (b(), y(i(P), {
3393
+ $(f.$slots, "table-op-edit-right", { row: p })
3394
+ ], 64)) : (b(), v(A, { key: 1 }, [
3395
+ i(t)(a.option.table?.add, p) ? (b(), h(i(L), {
3405
3396
  key: 0,
3406
3397
  link: "",
3407
3398
  type: "primary",
3408
3399
  onClick: (w) => i(e).update.open(i(s).Add, p)
3409
3400
  }, {
3410
- default: h(() => [
3411
- O(F(i(k).tCurd("add")), 1)
3401
+ default: y(() => [
3402
+ M(F(i(C).tCurd("add")), 1)
3412
3403
  ]),
3413
3404
  _: 2
3414
- }, 1032, ["onClick"])) : V("", !0),
3415
- i(l)(a.option.table?.view, p) ? (b(), y(i(P), {
3405
+ }, 1032, ["onClick"])) : S("", !0),
3406
+ i(t)(a.option.table?.view, p) ? (b(), h(i(L), {
3416
3407
  key: 1,
3417
3408
  link: "",
3418
3409
  type: "primary",
3419
3410
  onClick: (w) => i(e).update.open(i(s).View, p)
3420
3411
  }, {
3421
- default: h(() => [
3422
- O(F(i(k).tCurd("view")), 1)
3412
+ default: y(() => [
3413
+ M(F(i(C).tCurd("view")), 1)
3423
3414
  ]),
3424
3415
  _: 2
3425
- }, 1032, ["onClick"])) : V("", !0),
3426
- i(l)(a.option.table?.update, p) ? (b(), y(i(P), {
3416
+ }, 1032, ["onClick"])) : S("", !0),
3417
+ i(t)(a.option.table?.update, p) ? (b(), h(i(L), {
3427
3418
  key: 2,
3428
3419
  link: "",
3429
3420
  type: "warning",
3430
3421
  onClick: (w) => i(e).update.open(i(s).Update, p)
3431
3422
  }, {
3432
- default: h(() => [
3433
- O(F(i(k).tCurd("edit")), 1)
3423
+ default: y(() => [
3424
+ M(F(i(C).tCurd("edit")), 1)
3434
3425
  ]),
3435
3426
  _: 2
3436
- }, 1032, ["onClick"])) : V("", !0),
3437
- i(l)(a.option.table?.delete, p) ? (b(), y(i(P), {
3427
+ }, 1032, ["onClick"])) : S("", !0),
3428
+ i(t)(a.option.table?.delete, p) ? (b(), h(i(L), {
3438
3429
  key: 3,
3439
3430
  link: "",
3440
3431
  type: "danger",
3441
3432
  onClick: (w) => i(e).remove.open([p])
3442
3433
  }, {
3443
- default: h(() => [
3444
- O(F(i(k).tCurd("delete")), 1)
3434
+ default: y(() => [
3435
+ M(F(i(C).tCurd("delete")), 1)
3445
3436
  ]),
3446
3437
  _: 2
3447
- }, 1032, ["onClick"])) : V("", !0),
3448
- z(f.$slots, "table-op-right", { row: p })
3438
+ }, 1032, ["onClick"])) : S("", !0),
3439
+ $(f.$slots, "table-op-right", { row: p })
3449
3440
  ], 64))
3450
3441
  ]),
3451
3442
  _: 2
3452
3443
  }, 1032, ["size"])
3453
3444
  ]),
3454
3445
  _: 3
3455
- }, 16, ["width"])) : V("", !0)
3446
+ }, 16, ["width"])) : S("", !0)
3456
3447
  ]),
3457
3448
  _: 3
3458
3449
  }, 16, ["data", "border", "class", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
@@ -3461,7 +3452,7 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3461
3452
  ], 2)
3462
3453
  ], 2),
3463
3454
  R("div", Yo, [
3464
- (a.option.page?.show === void 0 || a.option.page?.show) && !i(e).page.showTools && i(e).table.sortable.showPagination() ? (b(), y(i(Be), S({
3455
+ (a.option.page?.show === void 0 || a.option.page?.show) && !i(e).page.showTools && i(e).table.sortable.showPagination() ? (b(), h(i(Ue), V({
3465
3456
  key: 0,
3466
3457
  "current-page": i(e).page.num,
3467
3458
  "onUpdate:currentPage": d[8] || (d[8] = (p) => i(e).page.num = p),
@@ -3475,56 +3466,56 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3475
3466
  size: a.option.size?.table,
3476
3467
  onSizeChange: i(e).table.sortable.refreshList,
3477
3468
  onCurrentChange: i(e).table.sortable.refreshList
3478
- }, a.option.page?.pagination || {}, $(a.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : V("", !0)
3469
+ }, a.option.page?.pagination || {}, z(a.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : S("", !0)
3479
3470
  ])
3480
3471
  ], 2),
3481
- z(f.$slots, "box-right")
3472
+ $(f.$slots, "box-right")
3482
3473
  ], 2),
3483
- M(i($e), S({
3474
+ O(i($e), V({
3484
3475
  modelValue: i(e).update.show,
3485
3476
  "onUpdate:modelValue": d[10] || (d[10] = (p) => i(e).update.show = p),
3486
3477
  title: i(e).update.title,
3487
3478
  "before-close": i(e).update.close
3488
3479
  }, a.option.dialog), {
3489
- footer: h(() => [
3480
+ footer: y(() => [
3490
3481
  R("span", Zo, [
3491
- M(i(oe), {
3482
+ O(i(oe), {
3492
3483
  size: a.option.size?.form
3493
3484
  }, {
3494
- default: h(() => [
3495
- z(f.$slots, "dialog-footer", {
3485
+ default: y(() => [
3486
+ $(f.$slots, "dialog-footer", {
3496
3487
  row: i(e).update
3497
3488
  }, () => [
3498
- M(i(P), {
3489
+ O(i(L), {
3499
3490
  onClick: i(e).update.close
3500
3491
  }, {
3501
- default: h(() => [
3502
- O(F(i(k).tCurd("close")), 1)
3492
+ default: y(() => [
3493
+ M(F(i(C).tCurd("close")), 1)
3503
3494
  ]),
3504
3495
  _: 1
3505
3496
  }, 8, ["onClick"]),
3506
- i(e).update.type !== i(s).View ? (b(), y(i(P), {
3497
+ i(e).update.type !== i(s).View ? (b(), h(i(L), {
3507
3498
  key: 0,
3508
3499
  type: "primary",
3509
3500
  onClick: i(e).update.submit,
3510
3501
  loading: i(e).update.loading
3511
3502
  }, {
3512
- default: h(() => [
3513
- O(F(i(k).tCurd("submit")), 1)
3503
+ default: y(() => [
3504
+ M(F(i(C).tCurd("submit")), 1)
3514
3505
  ]),
3515
3506
  _: 1
3516
- }, 8, ["onClick", "loading"])) : V("", !0)
3507
+ }, 8, ["onClick", "loading"])) : S("", !0)
3517
3508
  ])
3518
3509
  ]),
3519
3510
  _: 3
3520
3511
  }, 8, ["size"])
3521
3512
  ])
3522
3513
  ]),
3523
- default: h(() => [
3524
- z(f.$slots, "dialog-start", {
3514
+ default: y(() => [
3515
+ $(f.$slots, "dialog-start", {
3525
3516
  row: i(e).update
3526
3517
  }),
3527
- M(i(oe), {
3518
+ O(i(oe), {
3528
3519
  ref_key: "ruleFormRef",
3529
3520
  ref: n,
3530
3521
  model: i(e).update.form,
@@ -3532,8 +3523,8 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3532
3523
  size: a.option.size?.form,
3533
3524
  class: "update-dialog-form"
3534
3525
  }, {
3535
- default: h(() => [
3536
- i(e).update.showContent ? (b(), y(nt, {
3526
+ default: y(() => [
3527
+ i(e).update.showContent ? (b(), h(at, {
3537
3528
  key: 0,
3538
3529
  "form-grid": i(e).update.formGrid,
3539
3530
  "max-span": i(e).update.formMaxSpan,
@@ -3546,49 +3537,49 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3546
3537
  "get-on": i(e).update.getOn,
3547
3538
  "get-disabled": i(e).update.getDisabled
3548
3539
  }, Z({ _: 2 }, [
3549
- G(f.$slots, (p, w) => ({
3540
+ I(f.$slots, (p, w) => ({
3550
3541
  name: w,
3551
- fn: h((U) => [
3552
- z(f.$slots, w, Me(Oe(U || {})))
3542
+ fn: y((U) => [
3543
+ $(f.$slots, w, Me(Oe(U || {})))
3553
3544
  ])
3554
3545
  }))
3555
- ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : V("", !0)
3546
+ ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : S("", !0)
3556
3547
  ]),
3557
3548
  _: 3
3558
3549
  }, 8, ["model", "rules", "size"]),
3559
- z(f.$slots, "dialog-end", {
3550
+ $(f.$slots, "dialog-end", {
3560
3551
  row: i(e).update
3561
3552
  })
3562
3553
  ]),
3563
3554
  _: 3
3564
3555
  }, 16, ["modelValue", "title", "before-close"]),
3565
- M(i($e), {
3556
+ O(i($e), {
3566
3557
  modelValue: i(e).remove.show,
3567
3558
  "onUpdate:modelValue": d[11] || (d[11] = (p) => i(e).remove.show = p),
3568
3559
  title: i(e).remove.title,
3569
3560
  "close-on-click-modal": !1
3570
3561
  }, {
3571
- footer: h(() => [
3562
+ footer: y(() => [
3572
3563
  R("span", ea, [
3573
- M(i(oe), {
3564
+ O(i(oe), {
3574
3565
  size: a.option.size?.form
3575
3566
  }, {
3576
- default: h(() => [
3577
- M(i(P), {
3567
+ default: y(() => [
3568
+ O(i(L), {
3578
3569
  onClick: i(e).remove.close
3579
3570
  }, {
3580
- default: h(() => [
3581
- O(F(i(k).tCurd("close")), 1)
3571
+ default: y(() => [
3572
+ M(F(i(C).tCurd("close")), 1)
3582
3573
  ]),
3583
3574
  _: 1
3584
3575
  }, 8, ["onClick"]),
3585
- M(i(P), {
3576
+ O(i(L), {
3586
3577
  type: "danger",
3587
3578
  onClick: i(e).remove.submit,
3588
3579
  loading: i(e).remove.loading
3589
3580
  }, {
3590
- default: h(() => [
3591
- O(F(i(k).tCurd("confirmDelete")), 1)
3581
+ default: y(() => [
3582
+ M(F(i(C).tCurd("confirmDelete")), 1)
3592
3583
  ]),
3593
3584
  _: 1
3594
3585
  }, 8, ["onClick", "loading"])
@@ -3597,19 +3588,19 @@ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-cen
3597
3588
  }, 8, ["size"])
3598
3589
  ])
3599
3590
  ]),
3600
- default: h(() => [
3601
- a.option.dialog?.delete?.content ? (b(), C("div", xo, [
3602
- M(lo, {
3591
+ default: y(() => [
3592
+ a.option.dialog?.delete?.content ? (b(), v("div", xo, [
3593
+ O(lo, {
3603
3594
  content: a.option.dialog?.delete?.content,
3604
3595
  value: i(e).remove.items
3605
3596
  }, null, 8, ["content", "value"])
3606
- ])) : (b(), C("div", _o, F(i(k).tCurd("confirmDeleteMessage", i(e).remove.items.length)), 1))
3597
+ ])) : (b(), v("div", _o, F(i(C).tCurd("confirmDeleteMessage", i(e).remove.items.length)), 1))
3607
3598
  ]),
3608
3599
  _: 1
3609
3600
  }, 8, ["modelValue", "title"]),
3610
- M(ao, {
3601
+ O(ao, {
3611
3602
  ref_key: "switchConfirmRef",
3612
- ref: r,
3603
+ ref: l,
3613
3604
  size: a.option.size?.form
3614
3605
  }, null, 8, ["size"])
3615
3606
  ], 2);
@@ -3624,8 +3615,8 @@ class ia {
3624
3615
  * @param name - 下载后的文件名,默认 `'download.png'`
3625
3616
  */
3626
3617
  static async download(o, s = "download.png") {
3627
- const t = document.createElement("a");
3628
- t.style.display = "none", t.href = o, t.setAttribute("download", s), typeof t.download > "u" && t.setAttribute("target", "_blank"), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(o);
3618
+ const r = document.createElement("a");
3619
+ r.style.display = "none", r.href = o, r.setAttribute("download", s), typeof r.download > "u" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), document.body.removeChild(r), window.URL.revokeObjectURL(o);
3629
3620
  }
3630
3621
  /**
3631
3622
  * 将json对象或者json数组导出为json文件保存
@@ -3633,22 +3624,22 @@ class ia {
3633
3624
  * @param name
3634
3625
  */
3635
3626
  static exportJSONFile = (o, s) => {
3636
- const t = new Blob([JSON.stringify(o)], { type: "application/json" }), l = URL.createObjectURL(t), e = document.createElement("a");
3637
- e.href = l, e.download = `${s || "config"}.json`, e.click();
3627
+ const r = new Blob([JSON.stringify(o)], { type: "application/json" }), t = URL.createObjectURL(r), e = document.createElement("a");
3628
+ e.href = t, e.download = `${s || "config"}.json`, e.click();
3638
3629
  };
3639
3630
  /**
3640
3631
  * 导入文件内容,默认为json
3641
3632
  * @param param
3642
3633
  * @returns
3643
3634
  */
3644
- static importFile = async (o) => new Promise((s, t) => {
3645
- const l = document.createElement("input");
3646
- l.type = "file";
3635
+ static importFile = async (o) => new Promise((s, r) => {
3636
+ const t = document.createElement("input");
3637
+ t.type = "file";
3647
3638
  const e = o?.accept || ".json";
3648
- l.accept = e, l.style.display = "none", l.onchange = (r) => {
3649
- const n = r.target.files[0];
3639
+ t.accept = e, t.style.display = "none", t.onchange = (l) => {
3640
+ const n = l.target.files[0];
3650
3641
  if (!n) {
3651
- E.fail("未选择文件"), t("未选择文件");
3642
+ E.fail("未选择文件"), r("未选择文件");
3652
3643
  return;
3653
3644
  }
3654
3645
  const u = new FileReader();
@@ -3656,13 +3647,13 @@ class ia {
3656
3647
  const d = e == ".json" ? JSON.parse(f.target.result) : f.target.result;
3657
3648
  s(d);
3658
3649
  }, u.onerror = () => {
3659
- E.fail("文件读取失败"), t("文件读取失败");
3660
- }, u.readAsText(n), document.body.removeChild(l);
3661
- }, document.body.appendChild(l), l.click();
3650
+ E.fail("文件读取失败"), r("文件读取失败");
3651
+ }, u.readAsText(n), document.body.removeChild(t);
3652
+ }, document.body.appendChild(t), t.click();
3662
3653
  });
3663
3654
  }
3664
3655
  const oa = (a, o) => {
3665
- if (a.component("TCurd", ta), a.component("TFormList", We), a.component("TColumn", It), o?.customComponent) {
3656
+ if (a.component("TCurd", ta), a.component("TFormList", Ge), a.component("TColumn", It), o?.customComponent) {
3666
3657
  q.customComponent = o.customComponent;
3667
3658
  for (const s in o.customComponent)
3668
3659
  a.component(s, o.customComponent[s]);
@@ -3678,8 +3669,8 @@ export {
3678
3669
  ia as TFile,
3679
3670
  q as TForm,
3680
3671
  B as TFormConfig,
3681
- k as TFormI18n,
3682
- We as TFormList,
3672
+ C as TFormI18n,
3673
+ Ge as TFormList,
3683
3674
  E as TSys,
3684
3675
  sa as default,
3685
3676
  oa as install