cc1-form 1.2.7 → 1.2.9

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
1
  import { ElMessage as ce, ElLoading as me, ElForm as W, ElFormItem as ee, ElInput as Z, ElSwitch as Y, ElSelect as q, ElOption as H, ElRadioGroup as se, ElRadio as de, ElTreeSelect as ue, ElDatePicker as le, ElDialog as oe, ElButton as T, ElTableColumn as ae, ElDropdown as he, ElDropdownMenu as ge, ElDropdownItem as te, ElPagination as re, ElTable as ye } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as Q, reactive as ne, onMounted as fe, resolveComponent as x, createElementBlock as b, createCommentVNode as v, openBlock as f, renderSlot as C, createVNode as U, withCtx as y, createTextVNode as $, Fragment as D, renderList as B, createBlock as g, normalizeClass as I, normalizeStyle as pe, ref as N, unref as a, createElementVNode as E, mergeProps as V, toHandlers as z, resolveDynamicComponent as _, nextTick as be, toDisplayString as O, getCurrentInstance as we, createSlots as J, resolveDirective as ke, withDirectives as ve, normalizeProps as Ce, guardReactiveProps as Ve } from "vue";
3
+ import { defineComponent as Q, reactive as ne, onMounted as fe, resolveComponent as x, createElementBlock as b, createCommentVNode as v, openBlock as f, renderSlot as C, createVNode as U, withCtx as y, createTextVNode as $, Fragment as D, renderList as B, createBlock as g, normalizeClass as I, normalizeStyle as pe, ref as N, unref as a, createElementVNode as E, mergeProps as V, toHandlers as z, resolveDynamicComponent as _, nextTick as be, toDisplayString as O, getCurrentInstance as we, createSlots as J, withModifiers as ke, resolveDirective as ve, withDirectives as Ce, normalizeProps as Ve, guardReactiveProps as ze } from "vue";
4
4
  class M {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
@@ -574,7 +574,7 @@ class L {
574
574
  }
575
575
  };
576
576
  }
577
- const ze = {
577
+ const $e = {
578
578
  search: "搜索",
579
579
  add: "新增",
580
580
  edit: "编辑",
@@ -626,7 +626,7 @@ class w {
626
626
  return this.t(this.curd[o], ...p);
627
627
  }
628
628
  /** curd表单 */
629
- static curd = ze;
629
+ static curd = $e;
630
630
  }
631
631
  class K {
632
632
  /**
@@ -661,9 +661,9 @@ class K {
661
661
  const e = A.config.table.rowKey;
662
662
  p[o].push(
663
663
  t.reduce(
664
- (i, u) => {
665
- let m = u.default ?? "";
666
- return u.type === "number" && (m = u.default ?? 0), u.type === "boolean" && (m = u.default ?? !1), u.type === "time" && (m = u.default ?? /* @__PURE__ */ new Date()), i[u.value] = m, i;
664
+ (i, d) => {
665
+ let m = d.default ?? "";
666
+ return d.type === "number" && (m = d.default ?? 0), d.type === "boolean" && (m = d.default ?? !1), d.type === "time" && (m = d.default ?? /* @__PURE__ */ new Date()), i[d.value] = m, i;
667
667
  },
668
668
  { [e]: K.getIdFun() }
669
669
  )
@@ -693,14 +693,14 @@ class K {
693
693
  }), s;
694
694
  };
695
695
  }
696
- const $e = {
696
+ const De = {
697
697
  key: 0,
698
698
  class: "column curd-form-com-list",
699
699
  style: { width: "100%", gap: "10px" }
700
- }, De = { key: 0 }, Ue = {
700
+ }, Ue = { key: 0 }, Ee = {
701
701
  class: "row items-center",
702
702
  style: { gap: "10px", width: "100%" }
703
- }, Ee = { key: 1 }, ie = /* @__PURE__ */ Q({
703
+ }, Oe = { key: 1 }, ie = /* @__PURE__ */ Q({
704
704
  __name: "list",
705
705
  props: {
706
706
  row: {
@@ -757,10 +757,10 @@ const $e = {
757
757
  });
758
758
  const l = o;
759
759
  return (t, e) => {
760
- const i = x("el-button"), u = x("el-input");
761
- return s.show ? (f(), b("div", $e, [
760
+ const i = x("el-button"), d = x("el-input");
761
+ return s.show ? (f(), b("div", De, [
762
762
  C(t.$slots, "list-start", { row: n.row }),
763
- n.addBottom ? v("", !0) : (f(), b("div", De, [
763
+ n.addBottom ? v("", !0) : (f(), b("div", Ue, [
764
764
  U(i, {
765
765
  link: "",
766
766
  type: "primary",
@@ -772,18 +772,18 @@ const $e = {
772
772
  _: 1
773
773
  })
774
774
  ])),
775
- (f(!0), b(D, null, B(n.row[n.field], (m) => (f(), b("div", Ue, [
775
+ (f(!0), b(D, null, B(n.row[n.field], (m) => (f(), b("div", Ee, [
776
776
  C(t.$slots, "item-start", {
777
777
  item: m,
778
778
  row: n.row
779
779
  }),
780
- (f(!0), b(D, null, B(n.itemFields, (c) => (f(), g(u, {
780
+ (f(!0), b(D, null, B(n.itemFields, (c) => (f(), g(d, {
781
781
  modelValue: m[c.value],
782
- "onUpdate:modelValue": (d) => m[c.value] = d,
782
+ "onUpdate:modelValue": (u) => m[c.value] = u,
783
783
  style: pe({ width: n.inputWidth }),
784
784
  class: I(n.inputClass),
785
785
  placeholder: c[n.label] || c[n.value],
786
- onChange: e[1] || (e[1] = (d) => l("change"))
786
+ onChange: e[1] || (e[1] = (u) => l("change"))
787
787
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
788
788
  C(t.$slots, "item-end", {
789
789
  item: m,
@@ -800,7 +800,7 @@ const $e = {
800
800
  _: 2
801
801
  }, 1032, ["onClick"])
802
802
  ]))), 256)),
803
- n.addBottom ? (f(), b("div", Ee, [
803
+ n.addBottom ? (f(), b("div", Oe, [
804
804
  U(i, {
805
805
  link: "",
806
806
  type: "primary",
@@ -816,10 +816,10 @@ const $e = {
816
816
  ])) : v("", !0);
817
817
  };
818
818
  }
819
- }), Oe = {
819
+ }), Se = {
820
820
  class: "row form-item-content",
821
821
  style: { width: "100%" }
822
- }, Se = { class: "col" }, Me = { class: "col" }, Ae = ["innerHTML"], Fe = /* @__PURE__ */ Q({
822
+ }, Me = { class: "col" }, Ae = { class: "col" }, Fe = ["innerHTML"], Te = /* @__PURE__ */ Q({
823
823
  __name: "column",
824
824
  props: {
825
825
  /**
@@ -846,9 +846,9 @@ const $e = {
846
846
  getDisabled: (i) => e.type === s.View ? i.disabled?.view === void 0 ? !0 : i.disabled?.view : i.disabled?.[e.type === s.Add ? "create" : "update"],
847
847
  getBind: (i) => i.options?.[e.type === s.Add ? "formAdd" : "formUpdate"]?.[i.type] || i.options?.[i.type] || {},
848
848
  getOn: (i) => i.options?.[e.type === s.Add ? "formAdd" : "formUpdate"]?.[i.type]?.on || i.options?.[i.type]?.on || {},
849
- getColumnSpan: (i, u) => {
849
+ getColumnSpan: (i, d) => {
850
850
  if (i.item.form?.spanCol) {
851
- const m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2, k = u.filter((r) => !M.isFun(r.item.show?.form, e.form, e.type)).reduce((r, h) => r + (h.item.form?.span || c), 0);
851
+ const m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2, k = d.filter((r) => !M.isFun(r.item.show?.form, e.form, e.type)).reduce((r, h) => r + (h.item.form?.span || c), 0);
852
852
  return (i.item.form?.span || c) + k;
853
853
  }
854
854
  return i.item.form?.span;
@@ -856,8 +856,8 @@ const $e = {
856
856
  initColumnForm: () => {
857
857
  const i = t.option;
858
858
  e.formColumn = [], e.rules = {}, e.formDefault = {};
859
- const u = [], m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2;
860
- let d = [];
859
+ const d = [], m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2;
860
+ let u = [];
861
861
  const k = (h) => {
862
862
  if (h.children) {
863
863
  h.children.forEach((S) => {
@@ -867,8 +867,8 @@ const $e = {
867
867
  }
868
868
  if (e.formDefault[h.key] = h.value, h.isForm && (typeof h.show?.form != "boolean" || h.show?.form)) {
869
869
  h.form = h.form || { span: c }, h.form.span = h.form.span ?? c;
870
- const S = h.form.span, j = d.reduce((R, X) => R + X.span, S), F = d.length;
871
- if (d.push({ item: h, span: S }), (F === 1 && d[0].span === 0 || j >= m || S === 0 && F > 1) && (u.push(d), d = []), h.rules) {
870
+ const S = h.form.span, j = u.reduce((R, X) => R + X.span, S), F = u.length;
871
+ if (u.push({ item: h, span: S }), (F === 1 && u[0].span === 0 || j >= m || S === 0 && F > 1) && (d.push(u), u = []), h.rules) {
872
872
  const R = {
873
873
  input: w.tCurd("placeholderInput"),
874
874
  select: w.tCurd("placeholderSelect")
@@ -887,13 +887,13 @@ const $e = {
887
887
  };
888
888
  i.column.forEach((h) => {
889
889
  r(h, !0), k(h);
890
- }), d.length > 0 && u.push(d), e.formColumn = u, e.form = JSONUtil.cp(e.formDefault);
890
+ }), u.length > 0 && d.push(u), e.formColumn = d, e.form = JSONUtil.cp(e.formDefault);
891
891
  }
892
892
  });
893
893
  return e.initColumnForm(), o({
894
894
  ref: l,
895
895
  conf: e
896
- }), (i, u) => (f(), g(a(W), {
896
+ }), (i, d) => (f(), g(a(W), {
897
897
  ref_key: "ruleFormRef",
898
898
  ref: l,
899
899
  model: e.form,
@@ -902,7 +902,7 @@ const $e = {
902
902
  default: y(() => [
903
903
  e.show ? (f(!0), b(D, { key: 0 }, B(e.formColumn, (m, c) => (f(), b(D, { key: c }, [
904
904
  a(p)(
905
- m.map((d) => d.item?.show?.form),
905
+ m.map((u) => u.item?.show?.form),
906
906
  e.form,
907
907
  e.type
908
908
  ) ? (f(), b("div", {
@@ -914,129 +914,129 @@ const $e = {
914
914
  C(i.$slots, "form-start", {
915
915
  row: e.form
916
916
  }),
917
- (f(!0), b(D, null, B(m, (d) => (f(), b(D, {
918
- key: d.item.key
917
+ (f(!0), b(D, null, B(m, (u) => (f(), b(D, {
918
+ key: u.item.key
919
919
  }, [
920
- a(p)(d.item.show?.form, e.form, e.type) ? (f(), b("div", {
920
+ a(p)(u.item.show?.form, e.form, e.type) ? (f(), b("div", {
921
921
  key: 0,
922
- class: I([d.item.form.span > 0 ? `col-${e.getColumnSpan(d, m)}` : "col", `form-item-col-${d.item.key}`])
922
+ class: I([u.item.form.span > 0 ? `col-${e.getColumnSpan(u, m)}` : "col", `form-item-col-${u.item.key}`])
923
923
  }, [
924
924
  U(a(ee), {
925
- label: d.item.text?.form?.label ?? d.item.label,
926
- prop: d.item.key,
927
- "label-width": d.item.text?.form?.label == "" ? 0 : d.item.form?.labelWidth || n.option.form?.labelWidth || "100px"
925
+ label: u.item.text?.form?.label ?? u.item.label,
926
+ prop: u.item.key,
927
+ "label-width": u.item.text?.form?.label == "" ? 0 : u.item.form?.labelWidth || n.option.form?.labelWidth || "100px"
928
928
  }, {
929
929
  default: y(() => [
930
- E("div", Oe, [
931
- C(i.$slots, "form-" + d.item.key + "-start", {
930
+ E("div", Se, [
931
+ C(i.$slots, "form-" + u.item.key + "-start", {
932
932
  row: e.form,
933
- item: d.item
933
+ item: u.item
934
934
  }),
935
- E("div", Se, [
936
- E("div", Me, [
937
- C(i.$slots, "form-" + d.item.key, {
935
+ E("div", Me, [
936
+ E("div", Ae, [
937
+ C(i.$slots, "form-" + u.item.key, {
938
938
  row: e.form,
939
- item: d.item
939
+ item: u.item
940
940
  }, () => [
941
- d.item.type === "input" ? (f(), g(a(Z), V({
941
+ u.item.type === "input" ? (f(), g(a(Z), V({
942
942
  key: 0,
943
- modelValue: e.form[d.item.key],
944
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
943
+ modelValue: e.form[u.item.key],
944
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
945
945
  ref_for: !0
946
- }, e.getBind(d.item), z(e.getOn(d.item)), {
947
- disabled: e.getDisabled(d.item)
948
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type === "switch" ? (f(), g(a(Y), V({
946
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
947
+ disabled: e.getDisabled(u.item)
948
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "switch" ? (f(), g(a(Y), V({
949
949
  key: 1,
950
- modelValue: e.form[d.item.key],
951
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
950
+ modelValue: e.form[u.item.key],
951
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
952
952
  ref_for: !0
953
- }, e.getBind(d.item), z(e.getOn(d.item)), {
954
- disabled: e.getDisabled(d.item)
955
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type === "select" ? (f(), g(a(q), V({
953
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
954
+ disabled: e.getDisabled(u.item)
955
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "select" ? (f(), g(a(q), V({
956
956
  key: 2,
957
- modelValue: e.form[d.item.key],
958
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
957
+ modelValue: e.form[u.item.key],
958
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
959
959
  ref_for: !0
960
- }, e.getBind(d.item), z(e.getOn(d.item)), {
961
- disabled: e.getDisabled(d.item),
960
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
961
+ disabled: e.getDisabled(u.item),
962
962
  style: { width: "100%" }
963
963
  }), {
964
964
  default: y(() => [
965
- (f(!0), b(D, null, B(d.item.options?.select?.data, (k) => (f(), g(a(H), {
965
+ (f(!0), b(D, null, B(u.item.options?.select?.data, (k) => (f(), g(a(H), {
966
966
  key: k.value,
967
967
  label: k.label,
968
968
  value: k.value
969
969
  }, null, 8, ["label", "value"]))), 128))
970
970
  ]),
971
971
  _: 2
972
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type === "radio" ? (f(), g(a(se), V({
972
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (f(), g(a(se), V({
973
973
  key: 3,
974
- modelValue: e.form[d.item.key],
975
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
974
+ modelValue: e.form[u.item.key],
975
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
976
976
  ref_for: !0
977
- }, e.getBind(d.item), z(e.getOn(d.item)), {
978
- disabled: e.getDisabled(d.item),
977
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
978
+ disabled: e.getDisabled(u.item),
979
979
  style: { width: "100%" }
980
980
  }), {
981
981
  default: y(() => [
982
- (f(!0), b(D, null, B(d.item.options?.radio?.data, (k) => (f(), g(a(de), {
982
+ (f(!0), b(D, null, B(u.item.options?.radio?.data, (k) => (f(), g(a(de), {
983
983
  key: k.value,
984
984
  label: k.label,
985
985
  value: k.value
986
986
  }, null, 8, ["label", "value"]))), 128))
987
987
  ]),
988
988
  _: 2
989
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type === "list" ? (f(), g(ie, V({
989
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (f(), g(ie, V({
990
990
  key: 4,
991
991
  row: e.form,
992
- field: d.item.key,
992
+ field: u.item.key,
993
993
  ref_for: !0
994
- }, e.getBind(d.item), z(e.getOn(d.item)), {
995
- disabled: e.getDisabled(d.item),
994
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
995
+ disabled: e.getDisabled(u.item),
996
996
  style: { width: "100%" }
997
- }), null, 16, ["row", "field", "disabled"])) : d.item.type === "treeSelect" ? (f(), g(a(ue), V({
997
+ }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (f(), g(a(ue), V({
998
998
  key: 5,
999
- modelValue: e.form[d.item.key],
1000
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
999
+ modelValue: e.form[u.item.key],
1000
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1001
1001
  ref_for: !0
1002
- }, e.getBind(d.item), z(e.getOn(d.item)), {
1003
- disabled: e.getDisabled(d.item),
1002
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
1003
+ disabled: e.getDisabled(u.item),
1004
1004
  style: { width: "100%" }
1005
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type === "datetime" ? (f(), g(a(le), V({
1005
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (f(), g(a(le), V({
1006
1006
  key: 6,
1007
- modelValue: e.form[d.item.key],
1008
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
1007
+ modelValue: e.form[u.item.key],
1008
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1009
1009
  ref_for: !0
1010
- }, e.getBind(d.item), z(e.getOn(d.item)), {
1011
- disabled: e.getDisabled(d.item)
1012
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : d.item.type && (a(L).customComponent[d.item.type] || a(L).customComponent[d.item.type]?.form) ? (f(), g(_(a(L).customComponent[d.item.type]?.form || a(L).customComponent[d.item.type]), V({
1010
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
1011
+ disabled: e.getDisabled(u.item)
1012
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (a(L).customComponent[u.item.type] || a(L).customComponent[u.item.type]?.form) ? (f(), g(_(a(L).customComponent[u.item.type]?.form || a(L).customComponent[u.item.type]), V({
1013
1013
  key: 7,
1014
- modelValue: e.form[d.item.key],
1015
- "onUpdate:modelValue": (k) => e.form[d.item.key] = k,
1014
+ modelValue: e.form[u.item.key],
1015
+ "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1016
1016
  ref_for: !0
1017
- }, e.getBind(d.item), z(e.getOn(d.item)), {
1018
- disabled: e.getDisabled(d.item)
1017
+ }, e.getBind(u.item), z(e.getOn(u.item)), {
1018
+ disabled: e.getDisabled(u.item)
1019
1019
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0)
1020
1020
  ]),
1021
- C(i.$slots, "form-" + d.item.key + "-right", {
1021
+ C(i.$slots, "form-" + u.item.key + "-right", {
1022
1022
  row: e.form,
1023
- item: d.item
1023
+ item: u.item
1024
1024
  })
1025
1025
  ]),
1026
- C(i.$slots, "form-" + d.item.key + "-tip", {
1026
+ C(i.$slots, "form-" + u.item.key + "-tip", {
1027
1027
  row: e.form,
1028
- item: d.item
1028
+ item: u.item
1029
1029
  }, () => [
1030
- d.item.form?.tipText ? (f(), b("div", {
1030
+ u.item.form?.tipText ? (f(), b("div", {
1031
1031
  key: 0,
1032
1032
  class: "form-tip-text",
1033
- innerHTML: typeof d.item.form?.tipText == "function" ? d.item.form?.tipText(e.form, e.type) : d.item.form?.tipText
1034
- }, null, 8, Ae)) : v("", !0)
1033
+ innerHTML: typeof u.item.form?.tipText == "function" ? u.item.form?.tipText(e.form, e.type) : u.item.form?.tipText
1034
+ }, null, 8, Fe)) : v("", !0)
1035
1035
  ])
1036
1036
  ]),
1037
- C(i.$slots, "form-" + d.item.key + "-end", {
1037
+ C(i.$slots, "form-" + u.item.key + "-end", {
1038
1038
  row: e.form,
1039
- item: d.item
1039
+ item: u.item
1040
1040
  })
1041
1041
  ])
1042
1042
  ]),
@@ -1054,7 +1054,7 @@ const $e = {
1054
1054
  }, 8, ["model", "rules"]));
1055
1055
  }
1056
1056
  });
1057
- class Te {
1057
+ class Be {
1058
1058
  /**
1059
1059
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1060
1060
  *
@@ -1064,16 +1064,16 @@ class Te {
1064
1064
  */
1065
1065
  static exportToExcel = async (o, p, s) => {
1066
1066
  if (!o || o.length === 0) return;
1067
- const l = await M.loadModule("xlsx"), t = o.map((u) => {
1067
+ const l = await M.loadModule("xlsx"), t = o.map((d) => {
1068
1068
  const m = {};
1069
1069
  return p.forEach((c) => {
1070
- m[c.label] = u[c.key];
1070
+ m[c.label] = d[c.key];
1071
1071
  }), m;
1072
1072
  }), e = l.utils.json_to_sheet(t), i = l.utils.book_new();
1073
1073
  l.utils.book_append_sheet(i, e, "Sheet1"), s ? typeof s == "function" && (s = s()) : s = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, l.writeFile(i, `${s}.xlsx`);
1074
1074
  };
1075
1075
  }
1076
- const P = M.EDialog, Be = (n) => {
1076
+ const P = M.EDialog, Le = (n) => {
1077
1077
  const o = N(), p = N(), s = N(), l = ne({
1078
1078
  option: n.option,
1079
1079
  /** 查询区域相关配置对象 */
@@ -1160,8 +1160,8 @@ const P = M.EDialog, Be = (n) => {
1160
1160
  else {
1161
1161
  const t = (e) => {
1162
1162
  let i = [];
1163
- return e.forEach((u) => {
1164
- i.push(u[n.option.table.rowKey]), u.children && u.children.length > 0 && (i = i.concat(t(u.children)));
1163
+ return e.forEach((d) => {
1164
+ i.push(d[n.option.table.rowKey]), d.children && d.children.length > 0 && (i = i.concat(t(d.children)));
1165
1165
  }), i;
1166
1166
  };
1167
1167
  l.table.expand.rowKeys = t(l.table.data);
@@ -1189,9 +1189,13 @@ const P = M.EDialog, Be = (n) => {
1189
1189
  /** 全部展开/收起主分组 */
1190
1190
  toggleExpandAll: () => {
1191
1191
  const t = !l.table.header.group.expand;
1192
- l.table.header.group.expand = t, l.table.column.list.forEach((e) => {
1193
- e.table?.header?.group !== void 0 && (e.table.header.group = !t), e.table?.header?.groupKey !== void 0 && (e.table.header.show = t);
1194
- });
1192
+ l.table.header.group.expand = t;
1193
+ const e = (i) => {
1194
+ i.forEach((d) => {
1195
+ d.table?.header?.group !== void 0 && (d.table.header.group = !t), d.table?.header?.groupKey !== void 0 && (d.table.header.show = t), Array.isArray(d.children) && d.children.length > 0 && e(d.children);
1196
+ });
1197
+ };
1198
+ e(l.table.column.list);
1195
1199
  }
1196
1200
  }
1197
1201
  },
@@ -1212,13 +1216,13 @@ const P = M.EDialog, Be = (n) => {
1212
1216
  const i = await t({
1213
1217
  ...l.page.getQuery(),
1214
1218
  ...e
1215
- }), u = A.config.field.result, m = i.data || { [u.list]: i };
1216
- let c = (Array.isArray(m[u.list]), m[u.list]);
1217
- const d = l.update.formColumn.flat(), r = ObjectUtil.deepMerge({ data: c }, {}).data.map((h) => (Object.keys(h).forEach((j) => {
1218
- const F = d.find((R) => R.item.key === j);
1219
+ }), d = A.config.field.result, m = i.data || { [d.list]: i };
1220
+ let c = (Array.isArray(m[d.list]), m[d.list]);
1221
+ const u = l.update.formColumn.flat(), r = ObjectUtil.deepMerge({ data: c }, {}).data.map((h) => (Object.keys(h).forEach((j) => {
1222
+ const F = u.find((R) => R.item.key === j);
1219
1223
  F && ["select", "radio"].includes(F.item.type) && (F.item.table.format || (F.item.table.format = (R) => F.item.options[F.item.type].data?.find((X) => X.value == R[j])?.label || R[j]));
1220
1224
  }), h));
1221
- l.table.data = n.option.data ? await n.option.data(r, c) : r, l.page.total = m[u.total] || 0;
1225
+ l.table.data = n.option.data ? await n.option.data(r, c) : r, l.page.total = m[d.total] || 0;
1222
1226
  } catch (e) {
1223
1227
  console.error(e);
1224
1228
  } finally {
@@ -1238,12 +1242,12 @@ const P = M.EDialog, Be = (n) => {
1238
1242
  l.table.selection.list = [];
1239
1243
  const i = s.value;
1240
1244
  if (i?.clearSelection(), !i || !t?.length) return;
1241
- const u = n.option.table?.rowKey, m = l.table.data, c = (d) => {
1245
+ const d = n.option.table?.rowKey, m = l.table.data, c = (u) => {
1242
1246
  const k = (r) => {
1243
1247
  for (const h of r) {
1244
- if (u != null && u !== "") {
1245
- if (h[u] === d[u]) return h;
1246
- } else if (h === d)
1248
+ if (d != null && d !== "") {
1249
+ if (h[d] === u[d]) return h;
1250
+ } else if (h === u)
1247
1251
  return h;
1248
1252
  if (Array.isArray(h.children) && h.children.length) {
1249
1253
  const S = k(h.children);
@@ -1254,13 +1258,13 @@ const P = M.EDialog, Be = (n) => {
1254
1258
  return k(m);
1255
1259
  };
1256
1260
  be(() => {
1257
- t.forEach((d) => {
1258
- const k = c(d) ?? d;
1261
+ t.forEach((u) => {
1262
+ const k = c(u) ?? u;
1259
1263
  if (e) {
1260
1264
  const r = () => {
1261
1265
  i.toggleRowSelection(k, !0, !1);
1262
1266
  };
1263
- e(d) !== !1 && r();
1267
+ e(u) !== !1 && r();
1264
1268
  } else
1265
1269
  i.toggleRowSelection(k, !0, !1);
1266
1270
  });
@@ -1292,14 +1296,14 @@ const P = M.EDialog, Be = (n) => {
1292
1296
  /** 执行指定方式的导出(如select、page、all) */
1293
1297
  start: async (t) => {
1294
1298
  let e = await l.export.run[t](), i = n.option.column;
1295
- const u = ObjectUtil.deepMerge(
1299
+ const d = ObjectUtil.deepMerge(
1296
1300
  {
1297
1301
  data: e,
1298
1302
  columns: i
1299
1303
  },
1300
1304
  {}
1301
1305
  ), m = n.option.tools?.export || {};
1302
- m.before && m.before(u), Te.exportToExcel(u.data, u.columns, m.fileName);
1306
+ m.before && m.before(d), Be.exportToExcel(d.data, d.columns, m.fileName);
1303
1307
  },
1304
1308
  /** 获取当前选中项进行导出 */
1305
1309
  select: async () => {
@@ -1384,7 +1388,7 @@ const P = M.EDialog, Be = (n) => {
1384
1388
  /** 弹窗loading */
1385
1389
  loading: !1,
1386
1390
  /** 当前操作类型,插入或修改 */
1387
- type: P.Add,
1391
+ type: P.Update,
1388
1392
  /** 当前操作表单数据 */
1389
1393
  form: {},
1390
1394
  /** 表单默认值 */
@@ -1392,23 +1396,23 @@ const P = M.EDialog, Be = (n) => {
1392
1396
  /** 表单所有列,二维数组结构按行分组 */
1393
1397
  formColumn: [],
1394
1398
  /** 判断是否禁用当前字段 */
1395
- getDisabled: (t) => n.option.table?.editMode ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : l.update.type === P.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[l.update.type === P.Add ? "create" : "update"],
1399
+ getDisabled: (t, e = !1) => n.option.table?.editMode && e ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : l.update.type === P.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[l.update.type === P.Add ? "create" : "update"],
1396
1400
  /** 获取表单组件绑定属性 */
1397
1401
  getBind: (t) => t.options?.[l.update.type === P.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1398
1402
  /** 获取表单组件事件属性 */
1399
1403
  getOn: (t, e) => {
1400
- const u = t.options?.[l.update.type === P.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1401
- return Object.keys(u).forEach((c) => {
1402
- const d = u[c];
1403
- typeof d == "function" ? m[c] = function(...k) {
1404
- return d.apply(this, [...k, e || l.update.form, t]);
1405
- } : m[c] = d;
1404
+ const d = t.options?.[l.update.type === P.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1405
+ return Object.keys(d).forEach((c) => {
1406
+ const u = d[c];
1407
+ typeof u == "function" ? m[c] = function(...k) {
1408
+ return u.apply(this, [...k, e || l.update.form, t]);
1409
+ } : m[c] = u;
1406
1410
  }), m;
1407
1411
  },
1408
1412
  /** 获取表单组件绑定属性和事件 */
1409
1413
  getOptions: (t) => {
1410
1414
  try {
1411
- const i = l.update.formColumn.flat().find((u) => u.item.key === t)?.item;
1415
+ const i = l.update.formColumn.flat().find((d) => d.item.key === t)?.item;
1412
1416
  return i ? {
1413
1417
  options: i.options,
1414
1418
  // @ts-ignore
@@ -1453,8 +1457,8 @@ const P = M.EDialog, Be = (n) => {
1453
1457
  /** 提交增改表单操作 */
1454
1458
  submit: () => {
1455
1459
  FunUtil.throttle(async () => {
1456
- await p.value?.validate(async (u, m) => new Promise((c, d) => {
1457
- u || (M.fail(w.tCurd("checkFormData")), d(!1)), c();
1460
+ await p.value?.validate(async (d, m) => new Promise((c, u) => {
1461
+ d || (M.fail(w.tCurd("checkFormData")), u(!1)), c();
1458
1462
  })), l.update.loading = !0;
1459
1463
  const t = l.update.type === P.Add ? n.option.api.create : n.option.api.update;
1460
1464
  try {
@@ -1465,11 +1469,11 @@ const P = M.EDialog, Be = (n) => {
1465
1469
  }
1466
1470
  let e = ObjectUtil.deepMerge(l.update.form, {});
1467
1471
  delete e.children;
1468
- const i = new Set(n.option.column.filter((u) => u.type === "datetime").map((u) => u.key));
1469
- Object.keys(e).forEach((u) => {
1470
- if (i.has(u) && e[u] != null) {
1471
- const m = new Date(e[u]).getTime();
1472
- isNaN(m) || (e[u] = m);
1472
+ const i = new Set(n.option.column.filter((d) => d.type === "datetime").map((d) => d.key));
1473
+ Object.keys(e).forEach((d) => {
1474
+ if (i.has(d) && e[d] != null) {
1475
+ const m = new Date(e[d]).getTime();
1476
+ isNaN(m) || (e[d] = m);
1473
1477
  }
1474
1478
  });
1475
1479
  try {
@@ -1477,8 +1481,8 @@ const P = M.EDialog, Be = (n) => {
1477
1481
  await t({
1478
1482
  ...e
1479
1483
  }), l.update.close(), await l.table.getList(), n.option.form?.submitAfter?.(e, l.update);
1480
- } catch (u) {
1481
- console.error(u);
1484
+ } catch (d) {
1485
+ console.error(d);
1482
1486
  } finally {
1483
1487
  l.update.loading = !1;
1484
1488
  }
@@ -1540,19 +1544,19 @@ const P = M.EDialog, Be = (n) => {
1540
1544
  apiDataMap: {},
1541
1545
  /** 获取并绑定curd中所有下拉数据等远程依赖 */
1542
1546
  initApiData: async (t) => {
1543
- const e = [], i = (u) => {
1544
- if (u.children && u.children.length) {
1545
- u.children.forEach((m) => i(m));
1547
+ const e = [], i = (d) => {
1548
+ if (d.children && d.children.length) {
1549
+ d.children.forEach((m) => i(m));
1546
1550
  return;
1547
1551
  }
1548
- if (u.options?.[u.type]?.dataApi && u.options?.[u.type]?.dataApiConfig?.[t]) {
1549
- if (l.apiDataMap[u.key] && u.options?.[u.type]?.dataApiConfig?.once) return;
1552
+ if (d.options?.[d.type]?.dataApi && d.options?.[d.type]?.dataApiConfig?.[t]) {
1553
+ if (l.apiDataMap[d.key] && d.options?.[d.type]?.dataApiConfig?.once) return;
1550
1554
  const m = (async () => {
1551
1555
  try {
1552
- let c = await u.options?.[u.type]?.dataApi?.(l.update.form, l.update.type);
1556
+ let c = await d.options?.[d.type]?.dataApi?.(l.update.form, l.update.type);
1553
1557
  if (c) {
1554
- const d = u.options?.[u.type]?.dataPath;
1555
- !Array.isArray(c) && d && (c = ObjectUtil.getPathValue(c, d)), u.options[u.type].data = c, u.options.search[u.type].data = c, u.options.formAdd[u.type].data = c, u.options.formUpdate[u.type].data = c, l.apiDataMap[u.key] = c;
1558
+ const u = d.options?.[d.type]?.dataPath;
1559
+ !Array.isArray(c) && u && (c = ObjectUtil.getPathValue(c, u)), d.options[d.type].data = c, d.options.search[d.type].data = c, d.options.formAdd[d.type].data = c, d.options.formUpdate[d.type].data = c, l.apiDataMap[d.key] = c;
1556
1560
  }
1557
1561
  } catch {
1558
1562
  }
@@ -1560,8 +1564,8 @@ const P = M.EDialog, Be = (n) => {
1560
1564
  e.push(m);
1561
1565
  }
1562
1566
  };
1563
- return n.option.column.forEach((u) => {
1564
- i(u);
1567
+ return n.option.column.forEach((d) => {
1568
+ i(d);
1565
1569
  }), await Promise.all(e), !0;
1566
1570
  },
1567
1571
  /** 初始化curd配置(option默认值合并等) */
@@ -1590,20 +1594,20 @@ const P = M.EDialog, Be = (n) => {
1590
1594
  t.options
1591
1595
  );
1592
1596
  const e = (i) => {
1593
- for (const u in t) {
1594
- if (u === "table") {
1597
+ for (const d in t) {
1598
+ if (d === "table") {
1595
1599
  if (i.table = ObjectUtil.deepMerge(t.table, i.table || {}), i.children) {
1596
1600
  i.children.forEach((c) => {
1597
1601
  e(c);
1598
1602
  });
1599
1603
  return;
1600
1604
  }
1601
- } else u === "type" ? i.type = i.type || t.type : i[u] = ObjectUtil.deepMerge(t[u], i[u] || {});
1605
+ } else d === "type" ? i.type = i.type || t.type : i[d] = ObjectUtil.deepMerge(t[d], i[d] || {});
1602
1606
  i.options = i.options || {}, i.options[i.type] = i.options[i.type] || {}, i.options[i.type].size = n.option.size.form, ["search", "formAdd", "formUpdate"].forEach((c) => {
1603
1607
  i.options[c] = i.options[c] || ObjectUtil.deepMerge(i.options, {}), i.options[c][i.type] = i.options[c][i.type] || {}, i.options[c][i.type].size = c === "search" ? n.option.size.search : n.option.size.form;
1604
1608
  }), i.table = ObjectUtil.deepMerge(i.table, i.options[i.type].table || {});
1605
1609
  }
1606
- i.type === "switch" && (i.options.switch.tableBeforeChange = async (u, m) => {
1610
+ i.type === "switch" && (i.options.switch.tableBeforeChange = async (d, m) => {
1607
1611
  const c = i.options?.switch;
1608
1612
  try {
1609
1613
  c.tableConfig?.confirm && await o.value?.open({
@@ -1612,26 +1616,26 @@ const P = M.EDialog, Be = (n) => {
1612
1616
  });
1613
1617
  try {
1614
1618
  if (!n.option.api.update && !c.tableConfig?.api) return;
1615
- const d = m[n.option.table?.rowKey];
1616
- c.loadingMap || (c.loadingMap = {}), c.loadingMap[d] || (c.loadingMap[d] = { loading: !1 }), c.loadingMap[d].loading = !0;
1617
- const k = m[u] === c.activeValue ? c.inactiveValue : c.activeValue, r = c.tableConfig?.api ? c.tableConfig.api : n.option.api.update;
1619
+ const u = m[n.option.table?.rowKey];
1620
+ c.loadingMap || (c.loadingMap = {}), c.loadingMap[u] || (c.loadingMap[u] = { loading: !1 }), c.loadingMap[u].loading = !0;
1621
+ const k = m[d] === c.activeValue ? c.inactiveValue : c.activeValue, r = c.tableConfig?.api ? c.tableConfig.api : n.option.api.update;
1618
1622
  if (!r) return;
1619
1623
  try {
1620
1624
  await r(
1621
1625
  {
1622
1626
  ...m,
1623
- [u]: k
1627
+ [d]: k
1624
1628
  },
1625
1629
  "switch"
1626
1630
  );
1627
1631
  } catch {
1628
1632
  return !1;
1629
1633
  } finally {
1630
- c.loadingMap[d].loading = !1;
1634
+ c.loadingMap[u].loading = !1;
1631
1635
  }
1632
1636
  return M.success(w.tCurd("operationSuccess")), c.tableConfig?.loadList && (l.table.loading = !0, l.table.getList(), l.table.loading = !1), !0;
1633
- } catch (d) {
1634
- return console.error(d), !1;
1637
+ } catch (u) {
1638
+ return console.error(u), !1;
1635
1639
  } finally {
1636
1640
  l.table.loading = !1;
1637
1641
  }
@@ -1644,7 +1648,7 @@ const P = M.EDialog, Be = (n) => {
1644
1648
  },
1645
1649
  getColumnSpan: (t, e) => {
1646
1650
  if (t.item.form?.spanCol) {
1647
- const i = A.config.form.defaultSpan, m = e.filter((c) => !M.isFun(c.item.show?.form, l.update.form, l.update.type)).reduce((c, d) => c + (d.item.form?.span || i), 0);
1651
+ const i = A.config.form.defaultSpan, m = e.filter((c) => !M.isFun(c.item.show?.form, l.update.form, l.update.type)).reduce((c, u) => c + (u.item.form?.span || i), 0);
1648
1652
  return (t.item?.form.span || i) + m;
1649
1653
  }
1650
1654
  return t.item.form.span;
@@ -1656,7 +1660,7 @@ const P = M.EDialog, Be = (n) => {
1656
1660
  list: [],
1657
1661
  listSource: []
1658
1662
  };
1659
- const e = [], i = n.option.form?.maxSpan || 12, u = n.option.form?.defaultSpan || i / 2;
1663
+ const e = [], i = n.option.form?.maxSpan || 12, d = n.option.form?.defaultSpan || i / 2;
1660
1664
  let m = [];
1661
1665
  const c = (r) => {
1662
1666
  if (r.children) {
@@ -1666,7 +1670,7 @@ const P = M.EDialog, Be = (n) => {
1666
1670
  return;
1667
1671
  }
1668
1672
  if (l.update.formDefault[r.key] = r.value, r.table.table && (r.show.table && l.table.column.show.list.push(r.key), r.table.table && l.table.column.show.listSource.push(r.key)), !(r.isForm && typeof r.show?.form == "boolean") || r.show?.form) {
1669
- r.form = r.form || { span: u }, r.form.span = r.form.span ?? u;
1673
+ r.form = r.form || { span: d }, r.form.span = r.form.span ?? d;
1670
1674
  let h = r.form.span, S = m.reduce((F, R) => F + R.span, h);
1671
1675
  const j = m.length;
1672
1676
  if (m.push({ item: r, span: h }), (j === 1 && m[0].span === 0 || S >= i || h === 0 && j > 1) && (e.push(m), m = []), r.rules) {
@@ -1683,13 +1687,13 @@ const P = M.EDialog, Be = (n) => {
1683
1687
  ] : r.rules;
1684
1688
  }
1685
1689
  }
1686
- }, d = (r, h) => {
1687
- r.isForm = h, Array.isArray(r.children) && r.children.forEach((S) => d(S, h));
1690
+ }, u = (r, h) => {
1691
+ r.isForm = h, Array.isArray(r.children) && r.children.forEach((S) => u(S, h));
1688
1692
  };
1689
1693
  t.column.forEach((r) => {
1690
- r.isForm = !0, d(r, !0), c(r);
1694
+ r.isForm = !0, u(r, !0), c(r);
1691
1695
  }), n.option.table?.column?.forEach((r) => {
1692
- d(r, !1), c(r);
1696
+ u(r, !1), c(r);
1693
1697
  }), l.search.column.list = t.column.concat(t.table?.column || []), l.table.column.list = l.search.column.list.filter((r) => r.table?.table), l.search.column.list.sort((r, h) => r.sort?.search - h.sort?.search), l.table.column.list.sort((r, h) => r.sort?.table - h.sort?.table), m.length > 0 && e.push(m), l.update.formColumn = e;
1694
1698
  const k = n.option.search?.formDefault;
1695
1699
  k && Object.keys(k).forEach((r) => {
@@ -1702,7 +1706,7 @@ const P = M.EDialog, Be = (n) => {
1702
1706
  return l.init(), fe(() => {
1703
1707
  n.option.init !== !1 && l.table.getList();
1704
1708
  }), { conf: l, switchConfirmRef: o, ruleFormRef: p, tableRef: s };
1705
- }, Le = { class: "dialog-footer" }, je = /* @__PURE__ */ Q({
1709
+ }, je = { class: "dialog-footer" }, Re = /* @__PURE__ */ Q({
1706
1710
  __name: "switchConfirm",
1707
1711
  props: {
1708
1712
  size: {}
@@ -1710,20 +1714,20 @@ const P = M.EDialog, Be = (n) => {
1710
1714
  setup(n, { expose: o }) {
1711
1715
  const p = N(!1), s = N("确认修改"), l = N("确认要修改状态吗?");
1712
1716
  let t = null, e = null;
1713
- const i = (c) => (c?.title && (s.value = c.title), c?.content && (l.value = c.content), p.value = !0, new Promise((d, k) => {
1714
- t = d, e = k;
1715
- })), u = () => {
1717
+ const i = (c) => (c?.title && (s.value = c.title), c?.content && (l.value = c.content), p.value = !0, new Promise((u, k) => {
1718
+ t = u, e = k;
1719
+ })), d = () => {
1716
1720
  p.value = !1, t?.(!0), t = null, e = null;
1717
1721
  }, m = () => {
1718
1722
  p.value = !1, e?.(new Error("用户取消操作")), t = null, e = null;
1719
1723
  };
1720
1724
  return o({
1721
1725
  open: i
1722
- }), (c, d) => {
1726
+ }), (c, u) => {
1723
1727
  const k = x("el-form");
1724
1728
  return f(), g(a(oe), {
1725
1729
  modelValue: p.value,
1726
- "onUpdate:modelValue": d[0] || (d[0] = (r) => p.value = r),
1730
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => p.value = r),
1727
1731
  title: s.value,
1728
1732
  "close-on-click-modal": !1,
1729
1733
  width: "400px"
@@ -1731,18 +1735,18 @@ const P = M.EDialog, Be = (n) => {
1731
1735
  footer: y(() => [
1732
1736
  U(k, { size: c.size }, {
1733
1737
  default: y(() => [
1734
- E("span", Le, [
1738
+ E("span", je, [
1735
1739
  U(a(T), { onClick: m }, {
1736
- default: y(() => d[1] || (d[1] = [
1740
+ default: y(() => u[1] || (u[1] = [
1737
1741
  $("取消")
1738
1742
  ])),
1739
1743
  _: 1
1740
1744
  }),
1741
1745
  U(a(T), {
1742
1746
  type: "primary",
1743
- onClick: u
1747
+ onClick: d
1744
1748
  }, {
1745
- default: y(() => d[2] || (d[2] = [
1749
+ default: y(() => u[2] || (u[2] = [
1746
1750
  $("确认")
1747
1751
  ])),
1748
1752
  _: 1
@@ -1764,58 +1768,58 @@ const P = M.EDialog, Be = (n) => {
1764
1768
  for (const [s, l] of o)
1765
1769
  p[s] = l;
1766
1770
  return p;
1767
- }, Re = {}, Ie = {
1771
+ }, Ie = {}, Pe = {
1768
1772
  xmlns: "http://www.w3.org/2000/svg",
1769
1773
  viewBox: "0 0 1024 1024"
1770
1774
  };
1771
- function Pe(n, o) {
1772
- return f(), b("svg", Ie, o[0] || (o[0] = [
1775
+ function Ke(n, o) {
1776
+ return f(), b("svg", Pe, o[0] || (o[0] = [
1773
1777
  E("path", {
1774
1778
  fill: "currentColor",
1775
1779
  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"
1776
1780
  }, null, -1)
1777
1781
  ]));
1778
1782
  }
1779
- const Ke = /* @__PURE__ */ G(Re, [["render", Pe]]), He = {}, Ne = {
1783
+ const He = /* @__PURE__ */ G(Ie, [["render", Ke]]), Ne = {}, We = {
1780
1784
  "data-v-58697b5c": "",
1781
1785
  xmlns: "http://www.w3.org/2000/svg",
1782
1786
  viewBox: "0 0 1024 1024"
1783
1787
  };
1784
- function We(n, o) {
1785
- return f(), b("svg", Ne, o[0] || (o[0] = [
1788
+ function Je(n, o) {
1789
+ return f(), b("svg", We, o[0] || (o[0] = [
1786
1790
  E("path", {
1787
1791
  fill: "currentColor",
1788
1792
  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"
1789
1793
  }, null, -1)
1790
1794
  ]));
1791
1795
  }
1792
- const Je = /* @__PURE__ */ G(He, [["render", We]]), qe = {}, Qe = {
1796
+ const qe = /* @__PURE__ */ G(Ne, [["render", Je]]), Qe = {}, Ge = {
1793
1797
  "data-v-58697b5c": "",
1794
1798
  xmlns: "http://www.w3.org/2000/svg",
1795
1799
  viewBox: "0 0 1024 1024"
1796
1800
  };
1797
- function Ge(n, o) {
1798
- return f(), b("svg", Qe, o[0] || (o[0] = [
1801
+ function Xe(n, o) {
1802
+ return f(), b("svg", Ge, o[0] || (o[0] = [
1799
1803
  E("path", {
1800
1804
  fill: "currentColor",
1801
1805
  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"
1802
1806
  }, null, -1)
1803
1807
  ]));
1804
1808
  }
1805
- const Xe = /* @__PURE__ */ G(qe, [["render", Ge]]), Ye = {}, Ze = {
1809
+ const Ye = /* @__PURE__ */ G(Qe, [["render", Xe]]), Ze = {}, xe = {
1806
1810
  "data-v-58697b5c": "",
1807
1811
  xmlns: "http://www.w3.org/2000/svg",
1808
1812
  viewBox: "0 0 1024 1024"
1809
1813
  };
1810
- function xe(n, o) {
1811
- return f(), b("svg", Ze, o[0] || (o[0] = [
1814
+ function _e(n, o) {
1815
+ return f(), b("svg", xe, o[0] || (o[0] = [
1812
1816
  E("path", {
1813
1817
  fill: "currentColor",
1814
1818
  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"
1815
1819
  }, null, -1)
1816
1820
  ]));
1817
1821
  }
1818
- const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-center table-header-label inline" }, tt = { class: "table-header-tooltip" }, ot = ["onClick"], at = { key: 1 }, lt = ["onClick", "innerHTML"], nt = /* @__PURE__ */ Q({
1822
+ const et = /* @__PURE__ */ G(Ze, [["render", _e]]), tt = { class: "row flex-center table-header-label inline" }, ot = { class: "table-header-tooltip" }, at = ["onClick"], lt = { key: 1 }, nt = ["onClick", "innerHTML"], it = /* @__PURE__ */ Q({
1819
1823
  __name: "tableColumn",
1820
1824
  props: {
1821
1825
  conf: {},
@@ -1838,7 +1842,7 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1838
1842
  }, e.table), {
1839
1843
  header: y(() => [
1840
1844
  C(s.$slots, "table-header-" + e.key, { item: e }, () => [
1841
- E("div", et, [
1845
+ E("div", tt, [
1842
1846
  e.table?.header?.tooltip ? (f(), g(t, {
1843
1847
  key: 0,
1844
1848
  effect: "dark",
@@ -1846,8 +1850,8 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1846
1850
  placement: "top"
1847
1851
  }, {
1848
1852
  default: y(() => [
1849
- E("span", tt, [
1850
- U(Je)
1853
+ E("span", ot, [
1854
+ U(qe)
1851
1855
  ])
1852
1856
  ]),
1853
1857
  _: 2
@@ -1856,14 +1860,17 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1856
1860
  e.table?.header?.group !== void 0 ? (f(), b("span", {
1857
1861
  key: 1,
1858
1862
  class: "table-header-plus",
1859
- onClick: () => {
1860
- e.table.header.group = !e.table.header.group, s.columnList.forEach((i) => {
1861
- i.table?.header?.groupKey === e.key && (i.table.header.show = !e.table.header.group);
1862
- });
1863
- }
1863
+ onClick: ke(
1864
+ () => {
1865
+ e.table.header.group = !e.table.header.group, s.columnList.forEach((i) => {
1866
+ i.table?.header?.groupKey === e.key && (i.table.header.show = !e.table.header.group);
1867
+ });
1868
+ },
1869
+ ["stop"]
1870
+ )
1864
1871
  }, [
1865
- e.table.header.group ? (f(), g(Xe, { key: 0 })) : (f(), g(_e, { key: 1 }))
1866
- ], 8, ot)) : v("", !0)
1872
+ e.table.header.group ? (f(), g(Ye, { key: 0 })) : (f(), g(et, { key: 1 }))
1873
+ ], 8, at)) : v("", !0)
1867
1874
  ])
1868
1875
  ])
1869
1876
  ]),
@@ -1875,7 +1882,7 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1875
1882
  columnList: e.children,
1876
1883
  option: s.option
1877
1884
  }, J({ _: 2 }, [
1878
- B(s.$slots, (u, m) => ({
1885
+ B(s.$slots, (d, m) => ({
1879
1886
  name: m,
1880
1887
  fn: y((c) => [
1881
1888
  C(s.$slots, m, V({ ref_for: !0 }, c || {}))
@@ -1895,8 +1902,8 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1895
1902
  e.type === "input" ? (f(), g(a(Z), V({
1896
1903
  key: 0,
1897
1904
  modelValue: i[e.key],
1898
- "onUpdate:modelValue": (u) => i[e.key] = u,
1899
- disabled: s.conf.update.getDisabled(e),
1905
+ "onUpdate:modelValue": (d) => i[e.key] = d,
1906
+ disabled: s.conf.update.getDisabled(e, !0),
1900
1907
  class: "col",
1901
1908
  ref_for: !0
1902
1909
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i))), J({ _: 2 }, [
@@ -1910,24 +1917,24 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1910
1917
  ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (f(), g(a(q), V({
1911
1918
  key: 1,
1912
1919
  modelValue: i[e.key],
1913
- "onUpdate:modelValue": (u) => i[e.key] = u,
1914
- disabled: s.conf.update.getDisabled(e),
1920
+ "onUpdate:modelValue": (d) => i[e.key] = d,
1921
+ disabled: s.conf.update.getDisabled(e, !0),
1915
1922
  class: "col",
1916
1923
  ref_for: !0
1917
1924
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i))), {
1918
1925
  default: y(() => [
1919
- (f(!0), b(D, null, B(e.options?.search?.select?.data || e.options?.select?.data, (u) => (f(), g(a(H), {
1920
- key: u.value,
1921
- label: u.label,
1922
- value: u.value
1926
+ (f(!0), b(D, null, B(e.options?.search?.select?.data || e.options?.select?.data, (d) => (f(), g(a(H), {
1927
+ key: d.value,
1928
+ label: d.label,
1929
+ value: d.value
1923
1930
  }, null, 8, ["label", "value"]))), 128))
1924
1931
  ]),
1925
1932
  _: 2
1926
1933
  }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), g(a(Y), V({
1927
1934
  key: 2,
1928
1935
  modelValue: i[e.key],
1929
- "onUpdate:modelValue": (u) => i[e.key] = u,
1930
- disabled: s.conf.update.getDisabled(e),
1936
+ "onUpdate:modelValue": (d) => i[e.key] = d,
1937
+ disabled: s.conf.update.getDisabled(e, !0),
1931
1938
  class: "col",
1932
1939
  ref_for: !0
1933
1940
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i))), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0),
@@ -1940,8 +1947,8 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1940
1947
  e.type === "input" ? (f(), g(a(Z), V({
1941
1948
  key: 0,
1942
1949
  modelValue: s.conf.update.form[e.key],
1943
- "onUpdate:modelValue": (u) => s.conf.update.form[e.key] = u,
1944
- disabled: s.conf.update.getDisabled(e),
1950
+ "onUpdate:modelValue": (d) => s.conf.update.form[e.key] = d,
1951
+ disabled: s.conf.update.getDisabled(e, !0),
1945
1952
  ref_for: !0
1946
1953
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i)), { style: { width: "100%" } }), J({ _: 2 }, [
1947
1954
  e.options?.input?.prepend ? {
@@ -1954,25 +1961,25 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1954
1961
  ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (f(), g(a(q), V({
1955
1962
  key: 1,
1956
1963
  modelValue: s.conf.update.form[e.key],
1957
- "onUpdate:modelValue": (u) => s.conf.update.form[e.key] = u,
1958
- disabled: s.conf.update.getDisabled(e),
1964
+ "onUpdate:modelValue": (d) => s.conf.update.form[e.key] = d,
1965
+ disabled: s.conf.update.getDisabled(e, !0),
1959
1966
  ref_for: !0
1960
1967
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i)), { style: { width: "100%" } }), {
1961
1968
  default: y(() => [
1962
- (f(!0), b(D, null, B(e.options?.search?.select?.data || e.options?.select?.data, (u) => (f(), g(a(H), {
1963
- key: u.value,
1964
- label: u.label,
1965
- value: u.value
1969
+ (f(!0), b(D, null, B(e.options?.search?.select?.data || e.options?.select?.data, (d) => (f(), g(a(H), {
1970
+ key: d.value,
1971
+ label: d.label,
1972
+ value: d.value
1966
1973
  }, null, 8, ["label", "value"]))), 128))
1967
1974
  ]),
1968
1975
  _: 2
1969
1976
  }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), g(a(Y), V({
1970
1977
  key: 2,
1971
1978
  modelValue: s.conf.update.form[e.key],
1972
- "onUpdate:modelValue": (u) => s.conf.update.form[e.key] = u,
1979
+ "onUpdate:modelValue": (d) => s.conf.update.form[e.key] = d,
1973
1980
  ref_for: !0
1974
1981
  }, s.conf.update.getBind(e), z(s.conf.update.getOn(e, i)), {
1975
- disabled: s.conf.update.getDisabled(e)
1982
+ disabled: s.conf.update.getDisabled(e, !0)
1976
1983
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0)
1977
1984
  ], 64)) : C(s.$slots, "table-" + e.key, {
1978
1985
  key: 1,
@@ -1982,26 +1989,26 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
1982
1989
  a(L).customComponent[e.type ?? ""]?.table ? (f(), g(_(a(L).customComponent[e.type ?? ""]?.table), V({
1983
1990
  key: 0,
1984
1991
  modelValue: i[e.key],
1985
- "onUpdate:modelValue": (u) => i[e.key] = u,
1992
+ "onUpdate:modelValue": (d) => i[e.key] = d,
1986
1993
  ref_for: !0
1987
1994
  }, e.options?.[e.type ?? ""], z(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), b(D, { key: 1 }, [
1988
1995
  e.options?.switch?.tableConfig?.change ? (f(), g(a(Y), V({
1989
1996
  key: 0,
1990
1997
  modelValue: i[e.key],
1991
- "onUpdate:modelValue": (u) => i[e.key] = u,
1998
+ "onUpdate:modelValue": (d) => i[e.key] = d,
1992
1999
  loading: e.options?.switch?.loadingMap?.[i[s.option.table?.rowKey]]?.loading,
1993
2000
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, i),
1994
2001
  ref_for: !0
1995
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (f(), b("span", at, O(i[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2002
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (f(), b("span", lt, O(i[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
1996
2003
  ], 64)) : (f(), b("span", {
1997
2004
  key: 2,
1998
2005
  style: pe({
1999
2006
  "--table-text-click-color": e.table?.click?.color
2000
2007
  }),
2001
2008
  class: I({ "table-text-click": e.table?.click?.callback }),
2002
- onClick: (u) => e.table?.click?.callback?.(i),
2009
+ onClick: (d) => e.table?.click?.callback?.(i),
2003
2010
  innerHTML: e.table?.format ? e.table?.format(i) : i[e.key]
2004
- }, null, 14, lt))
2011
+ }, null, 14, nt))
2005
2012
  ])
2006
2013
  ], 64))
2007
2014
  ], 64))
@@ -2012,10 +2019,10 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
2012
2019
  ], 64))), 128);
2013
2020
  };
2014
2021
  }
2015
- }), it = {
2022
+ }), rt = {
2016
2023
  class: "row form-item-content",
2017
2024
  style: { width: "100%" }
2018
- }, rt = { class: "col column form-item-content-item" }, st = { class: "col" }, dt = ["innerHTML"], ut = /* @__PURE__ */ Q({
2025
+ }, st = { class: "col column form-item-content-item" }, dt = { class: "col" }, ut = ["innerHTML"], ft = /* @__PURE__ */ Q({
2019
2026
  __name: "formColumn",
2020
2027
  props: {
2021
2028
  conf: {},
@@ -2028,13 +2035,13 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
2028
2035
  "label-width": o.item.item.text?.form?.label == "" ? 0 : o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
2029
2036
  }, {
2030
2037
  default: y(() => [
2031
- E("div", it, [
2038
+ E("div", rt, [
2032
2039
  C(o.$slots, "form-" + o.item.item.key + "-start", {
2033
2040
  row: o.conf.update.form,
2034
2041
  item: o.item.item
2035
2042
  }),
2036
- E("div", rt, [
2037
- E("div", st, [
2043
+ E("div", st, [
2044
+ E("div", dt, [
2038
2045
  C(o.$slots, "form-" + o.item.item.key, {
2039
2046
  row: o.conf.update.form,
2040
2047
  item: o.item.item
@@ -2132,7 +2139,7 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
2132
2139
  key: 0,
2133
2140
  class: "form-tip-text",
2134
2141
  innerHTML: typeof o.item.item.form?.tipText == "function" ? o.item.item.form?.tipText(o.conf.update.form, o.conf.update.type) : o.item.item.form?.tipText
2135
- }, null, 8, dt)) : v("", !0)
2142
+ }, null, 8, ut)) : v("", !0)
2136
2143
  ])
2137
2144
  ]),
2138
2145
  C(o.$slots, "form-" + o.item.item.key + "-end", {
@@ -2144,43 +2151,43 @@ const _e = /* @__PURE__ */ G(Ye, [["render", xe]]), et = { class: "row flex-cent
2144
2151
  _: 3
2145
2152
  }, 8, ["label", "prop", "label-width"]));
2146
2153
  }
2147
- }), ft = {}, pt = {
2154
+ }), pt = {}, ct = {
2148
2155
  xmlns: "http://www.w3.org/2000/svg",
2149
2156
  viewBox: "64 64 896 896"
2150
2157
  };
2151
- function ct(n, o) {
2152
- return f(), b("svg", pt, o[0] || (o[0] = [
2158
+ function mt(n, o) {
2159
+ return f(), b("svg", ct, o[0] || (o[0] = [
2153
2160
  E("path", {
2154
2161
  fill: "currentColor",
2155
2162
  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"
2156
2163
  }, null, -1)
2157
2164
  ]));
2158
2165
  }
2159
- const mt = /* @__PURE__ */ G(ft, [["render", ct]]), ht = {}, gt = {
2166
+ const ht = /* @__PURE__ */ G(pt, [["render", mt]]), gt = {}, yt = {
2160
2167
  xmlns: "http://www.w3.org/2000/svg",
2161
2168
  viewBox: "64 64 896 896"
2162
2169
  };
2163
- function yt(n, o) {
2164
- return f(), b("svg", gt, o[0] || (o[0] = [
2170
+ function bt(n, o) {
2171
+ return f(), b("svg", yt, o[0] || (o[0] = [
2165
2172
  E("path", {
2166
2173
  fill: "currentColor",
2167
2174
  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"
2168
2175
  }, null, -1)
2169
2176
  ]));
2170
2177
  }
2171
- const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2178
+ const wt = /* @__PURE__ */ G(gt, [["render", bt]]), kt = {
2172
2179
  key: 0,
2173
2180
  class: "relative curd-search fit-width"
2174
- }, kt = { class: "mb-10 flex justify-between items-center fit-width" }, vt = {
2181
+ }, vt = { class: "mb-10 flex justify-between items-center fit-width" }, Ct = {
2175
2182
  class: "flex items-center",
2176
2183
  style: { gap: "10px" }
2177
- }, Ct = { key: 0 }, Vt = { key: 1 }, zt = { key: 2 }, $t = { class: "export-btn" }, Dt = {
2184
+ }, Vt = { key: 0 }, zt = { key: 1 }, $t = { key: 2 }, Dt = { class: "export-btn" }, Ut = {
2178
2185
  key: 1,
2179
2186
  class: "export-btn"
2180
- }, Ut = {
2187
+ }, Et = {
2181
2188
  class: "flex items-center table-tools-right",
2182
2189
  style: { gap: "10px" }
2183
- }, Et = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, Ot = { class: "dialog-footer" }, St = { class: "dialog-footer" }, Mt = /* @__PURE__ */ Q({
2190
+ }, Ot = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, St = { class: "dialog-footer" }, Mt = { class: "dialog-footer" }, At = /* @__PURE__ */ Q({
2184
2191
  __name: "index",
2185
2192
  props: {
2186
2193
  /**
@@ -2191,11 +2198,11 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2191
2198
  }
2192
2199
  },
2193
2200
  setup(n, { expose: o }) {
2194
- const p = M.EDialog, s = n, l = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: i, tableRef: u } = Be(s);
2201
+ const p = M.EDialog, s = n, l = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: i, tableRef: d } = Le(s);
2195
2202
  return o({
2196
2203
  conf: t
2197
2204
  }), (m, c) => {
2198
- const d = x("el-tooltip"), k = ke("loading");
2205
+ const u = x("el-tooltip"), k = ve("loading");
2199
2206
  return f(), b("div", {
2200
2207
  class: I(["relative cc1-form-box", [n.option.table?.fitHeight ? "col" : "no-min-height"]])
2201
2208
  }, [
@@ -2207,7 +2214,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2207
2214
  E("div", {
2208
2215
  class: I(["column fit-width no-wrap", [n.option.table?.fitHeight ? "col" : ""]])
2209
2216
  }, [
2210
- n.option.search?.show !== !1 ? (f(), b("div", wt, [
2217
+ n.option.search?.show !== !1 ? (f(), b("div", kt, [
2211
2218
  U(a(W), {
2212
2219
  model: a(t).search.form,
2213
2220
  inline: "",
@@ -2331,9 +2338,9 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2331
2338
  _: 3
2332
2339
  }, 8, ["model", "size"])
2333
2340
  ])) : v("", !0),
2334
- E("div", kt, [
2335
- E("div", vt, [
2336
- a(l)(n.option.tools?.add) ? (f(), b("div", Ct, [
2341
+ E("div", vt, [
2342
+ E("div", Ct, [
2343
+ a(l)(n.option.tools?.add) ? (f(), b("div", Vt, [
2337
2344
  U(a(T), {
2338
2345
  type: "primary",
2339
2346
  onClick: c[0] || (c[0] = (r) => a(t).update.open(a(p).Add)),
@@ -2345,7 +2352,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2345
2352
  _: 1
2346
2353
  }, 8, ["size"])
2347
2354
  ])) : v("", !0),
2348
- n.option.table?.selectable && a(l)(n.option.tools?.delete) ? (f(), b("div", Vt, [
2355
+ n.option.table?.selectable && a(l)(n.option.tools?.delete) ? (f(), b("div", zt, [
2349
2356
  U(a(T), {
2350
2357
  type: "danger",
2351
2358
  onClick: c[1] || (c[1] = (r) => a(t).remove.open(a(t).table.selection.list)),
@@ -2357,7 +2364,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2357
2364
  _: 1
2358
2365
  }, 8, ["size"])
2359
2366
  ])) : v("", !0),
2360
- n.option.tools?.expand ? (f(), b("div", zt, [
2367
+ n.option.tools?.expand ? (f(), b("div", $t, [
2361
2368
  U(a(T), {
2362
2369
  type: "warning",
2363
2370
  onClick: c[2] || (c[2] = (r) => a(t).table.expand.all()),
@@ -2411,7 +2418,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2411
2418
  }, 8, ["size"])
2412
2419
  ]),
2413
2420
  default: y(() => [
2414
- E("div", $t, [
2421
+ E("div", Dt, [
2415
2422
  U(a(T), {
2416
2423
  type: "warning",
2417
2424
  loading: a(t).export.loading,
@@ -2425,7 +2432,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2425
2432
  ])
2426
2433
  ]),
2427
2434
  _: 1
2428
- }, 8, ["onCommand"])) : (f(), b("div", Dt, [
2435
+ }, 8, ["onCommand"])) : (f(), b("div", Ut, [
2429
2436
  U(a(T), {
2430
2437
  type: "warning",
2431
2438
  loading: a(t).export.loading,
@@ -2441,7 +2448,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2441
2448
  ], 64)) : v("", !0),
2442
2449
  C(m.$slots, "tools-left")
2443
2450
  ]),
2444
- E("div", Ut, [
2451
+ E("div", Et, [
2445
2452
  C(m.$slots, "tools-right"),
2446
2453
  a(t).page.showTools ? (f(), g(a(re), V({
2447
2454
  key: 0,
@@ -2458,7 +2465,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2458
2465
  onSizeChange: a(t).table.getList,
2459
2466
  onCurrentChange: a(t).table.getList
2460
2467
  }, n.option.page?.pagination || {}, z(n.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0),
2461
- n.option.tools?.expandColumn === void 0 || n.option.tools?.expandColumn ? (f(), g(d, {
2468
+ n.option.tools?.expandColumn === void 0 || n.option.tools?.expandColumn ? (f(), g(u, {
2462
2469
  key: 1,
2463
2470
  effect: "dark",
2464
2471
  content: a(t).table.header.group.expand ? a(w).tCurd("mergeColumn") : a(w).tCurd("expandColumn"),
@@ -2470,7 +2477,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2470
2477
  onClick: c[6] || (c[6] = //@ts-ignore
2471
2478
  (...r) => a(t).table.header.group.toggleExpandAll && a(t).table.header.group.toggleExpandAll(...r))
2472
2479
  }, [
2473
- a(t).table.header.group.expand ? (f(), g(mt, { key: 0 })) : (f(), g(bt, { key: 1 }))
2480
+ a(t).table.header.group.expand ? (f(), g(ht, { key: 0 })) : (f(), g(wt, { key: 1 }))
2474
2481
  ], 2)
2475
2482
  ]),
2476
2483
  _: 1
@@ -2481,7 +2488,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2481
2488
  onClick: c[7] || (c[7] = //@ts-ignore
2482
2489
  (...r) => a(t).table.getList && a(t).table.getList(...r))
2483
2490
  }, [
2484
- U(Ke)
2491
+ U(He)
2485
2492
  ], 2)) : v("", !0)
2486
2493
  ])
2487
2494
  ]),
@@ -2491,9 +2498,9 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2491
2498
  E("div", {
2492
2499
  class: I(["column form-box-content", [n.option.table?.fitHeight ? "absolute fit" : ""]])
2493
2500
  }, [
2494
- ve((f(), g(a(ye), V({
2501
+ Ce((f(), g(a(ye), V({
2495
2502
  ref_key: "tableRef",
2496
- ref: u,
2503
+ ref: d,
2497
2504
  data: a(t).table.data,
2498
2505
  border: n.option.table?.border === void 0 ? !0 : n.option.table?.border,
2499
2506
  onSelectionChange: a(t).table.selection.change,
@@ -2511,7 +2518,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2511
2518
  "show-overflow-tooltip": !1,
2512
2519
  className: "cc1-form-selectable-column"
2513
2520
  }, typeof n.option.table?.selectable == "object" ? n.option.table?.selectable : {}, z(typeof n.option.table?.selectable == "object" ? n.option.table?.selectable?.on || {} : {})), null, 16)) : v("", !0),
2514
- U(nt, {
2521
+ U(it, {
2515
2522
  conf: a(t),
2516
2523
  columnList: a(t).table.column.list,
2517
2524
  option: n.option
@@ -2519,7 +2526,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2519
2526
  B(m.$slots, (r, h) => ({
2520
2527
  name: h,
2521
2528
  fn: y((S) => [
2522
- C(m.$slots, h, Ce(Ve(S || {})))
2529
+ C(m.$slots, h, Ve(ze(S || {})))
2523
2530
  ])
2524
2531
  }))
2525
2532
  ]), 1032, ["conf", "columnList", "option"]),
@@ -2624,7 +2631,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2624
2631
  ])
2625
2632
  ], 2)
2626
2633
  ], 2),
2627
- E("div", Et, [
2634
+ E("div", Ot, [
2628
2635
  (n.option.page?.show === void 0 || n.option.page?.show) && !a(t).page.showTools ? (f(), g(a(re), V({
2629
2636
  key: 0,
2630
2637
  "current-page": a(t).page.num,
@@ -2651,7 +2658,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2651
2658
  "before-close": a(t).update.close
2652
2659
  }, n.option.dialog), {
2653
2660
  footer: y(() => [
2654
- E("span", Ot, [
2661
+ E("span", St, [
2655
2662
  U(a(W), {
2656
2663
  size: n.option.size?.form
2657
2664
  }, {
@@ -2714,7 +2721,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2714
2721
  key: 0,
2715
2722
  class: I([h.item.form.span > 0 ? `col-${a(t).getColumnSpan(h, r)}` : "col", `form-item-col-${h.item.key}`])
2716
2723
  }, [
2717
- (f(!0), b(D, null, B(h.item.children ? h.children : [h], (S) => (f(), g(ut, {
2724
+ (f(!0), b(D, null, B(h.item.children ? h.children : [h], (S) => (f(), g(ft, {
2718
2725
  key: S.item.key,
2719
2726
  conf: a(t),
2720
2727
  item: S
@@ -2746,7 +2753,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2746
2753
  "close-on-click-modal": !1
2747
2754
  }, {
2748
2755
  footer: y(() => [
2749
- E("span", St, [
2756
+ E("span", Mt, [
2750
2757
  U(a(W), {
2751
2758
  size: n.option.size?.form
2752
2759
  }, {
@@ -2779,7 +2786,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2779
2786
  ]),
2780
2787
  _: 1
2781
2788
  }, 8, ["modelValue", "title"]),
2782
- U(je, {
2789
+ U(Re, {
2783
2790
  ref_key: "switchConfirmRef",
2784
2791
  ref: e,
2785
2792
  size: n.option.size?.form
@@ -2788,7 +2795,7 @@ const bt = /* @__PURE__ */ G(ht, [["render", yt]]), wt = {
2788
2795
  };
2789
2796
  }
2790
2797
  });
2791
- class Lt {
2798
+ class jt {
2792
2799
  /**
2793
2800
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2794
2801
  *
@@ -2823,36 +2830,36 @@ class Lt {
2823
2830
  M.fail("未选择文件"), s("未选择文件");
2824
2831
  return;
2825
2832
  }
2826
- const u = new FileReader();
2827
- u.onload = async (m) => {
2833
+ const d = new FileReader();
2834
+ d.onload = async (m) => {
2828
2835
  const c = t == ".json" ? JSON.parse(m.target.result) : m.target.result;
2829
2836
  p(c);
2830
- }, u.onerror = () => {
2837
+ }, d.onerror = () => {
2831
2838
  M.fail("文件读取失败"), s("文件读取失败");
2832
- }, u.readAsText(i), document.body.removeChild(l);
2839
+ }, d.readAsText(i), document.body.removeChild(l);
2833
2840
  }, document.body.appendChild(l), l.click();
2834
2841
  });
2835
2842
  }
2836
- const At = (n, o) => {
2837
- if (n.component("TCurd", Mt), n.component("TFormList", ie), n.component("TColumn", Fe), o?.customComponent) {
2843
+ const Ft = (n, o) => {
2844
+ if (n.component("TCurd", At), n.component("TFormList", ie), n.component("TColumn", Te), o?.customComponent) {
2838
2845
  L.customComponent = o.customComponent;
2839
2846
  for (const p in o.customComponent)
2840
2847
  n.component(p, o.customComponent[p]);
2841
2848
  }
2842
- }, jt = {
2843
- install: At
2849
+ }, Rt = {
2850
+ install: Ft
2844
2851
  };
2845
2852
  export {
2846
2853
  K as ArrUtil,
2847
- Te as ExcelUtil,
2848
- Fe as TColumn,
2849
- Mt as TCurd,
2850
- Lt as TFile,
2854
+ Be as ExcelUtil,
2855
+ Te as TColumn,
2856
+ At as TCurd,
2857
+ jt as TFile,
2851
2858
  L as TForm,
2852
2859
  A as TFormConfig,
2853
2860
  w as TFormI18n,
2854
2861
  ie as TFormList,
2855
2862
  M as TSys,
2856
- jt as default,
2857
- At as install
2863
+ Rt as default,
2864
+ Ft as install
2858
2865
  };