cc1-form 1.2.19 → 1.2.20

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 Ve, ElLoading as ze, ElForm as Q, ElFormItem as ae, ElInput as _, ElSwitch as Z, ElSelect as X, ElOption as W, ElRadioGroup as ie, ElRadio as re, ElTreeSelect as me, ElDatePicker as se, ElDialog as ne, ElButton as T, ElTableColumn as oe, ElDropdown as $e, ElDropdownMenu as De, ElDropdownItem as le, ElPagination as fe, ElTable as Ee } from "element-plus";
1
+ import { ElMessage as Ve, ElLoading as ze, ElForm as Q, ElFormItem as ae, ElInput as _, ElSwitch as Z, ElSelect as X, ElOption as W, ElRadioGroup as re, ElRadio as se, ElTreeSelect as he, ElDatePicker as de, ElDialog as ie, ElButton as T, ElTableColumn as oe, ElDropdown as $e, ElDropdownMenu as De, ElDropdownItem as ne, ElPagination as pe, ElTable as Ee } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as N, reactive as de, onMounted as he, resolveComponent as ee, createElementBlock as b, createCommentVNode as v, openBlock as d, renderSlot as V, createVNode as O, withCtx as g, createTextVNode as E, Fragment as D, renderList as A, createBlock as y, normalizeClass as I, normalizeStyle as ye, ref as J, unref as l, createElementVNode as U, mergeProps as C, toHandlers as z, resolveDynamicComponent as q, nextTick as Oe, watch as pe, toDisplayString as S, computed as ge, getCurrentInstance as Ue, createSlots as G, withModifiers as Se, resolveDirective as Me, withDirectives as Fe, normalizeProps as Ae, guardReactiveProps as Te } from "vue";
3
+ import { defineComponent as N, reactive as ue, onMounted as ye, resolveComponent as ee, createElementBlock as b, createCommentVNode as v, openBlock as d, renderSlot as V, createVNode as O, withCtx as g, createTextVNode as E, Fragment as D, renderList as A, createBlock as y, normalizeClass as I, normalizeStyle as ge, ref as J, unref as a, createElementVNode as U, mergeProps as C, toHandlers as z, resolveDynamicComponent as q, watch as ce, toDisplayString as S, computed as be, getCurrentInstance as Oe, createSlots as G, withModifiers as Ue, resolveDirective as Se, withDirectives as Me, normalizeProps as Fe, guardReactiveProps as Ae } from "vue";
4
4
  class M {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
@@ -63,9 +63,9 @@ class M {
63
63
  * @param options 其他选项
64
64
  */
65
65
  static showMessage(o, f, n = {}) {
66
- const a = Date.now();
67
- if (!this.tipMessages[o] || a - this.tipMessages[o] > this.tipMessagesGap) {
68
- this.tipMessages[o] = a;
66
+ const l = Date.now();
67
+ if (!this.tipMessages[o] || l - this.tipMessages[o] > this.tipMessagesGap) {
68
+ this.tipMessages[o] = l;
69
69
  const t = Object.assign(
70
70
  {
71
71
  message: o,
@@ -117,11 +117,11 @@ class M {
117
117
  */
118
118
  static openUrl = (o, f = !0) => {
119
119
  if (f) {
120
- let n = screen.width / 2 - 500, a = screen.height / 2 - 800 / 2 - 30;
120
+ let n = screen.width / 2 - 500, l = screen.height / 2 - 800 / 2 - 30;
121
121
  window.open(
122
122
  o,
123
123
  "_blank",
124
- "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + a + ", left=" + n
124
+ "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + l + ", left=" + n
125
125
  );
126
126
  } else
127
127
  window.open(o, "DescriptiveWindowName" + StrUtil.getId(), "resizable,scrollbars=yes,status=1,width=1024, height=600, top=0, left=0");
@@ -132,10 +132,10 @@ class M {
132
132
  * @returns
133
133
  */
134
134
  static getImgPic = (o) => new Promise(async (f, n) => {
135
- let a = document.getElementById(o.id);
135
+ let l = document.getElementById(o.id);
136
136
  const t = await M.loadModule("html2canvas");
137
137
  try {
138
- t(a, {
138
+ t(l, {
139
139
  logging: !1,
140
140
  allowTaint: !0,
141
141
  scale: window.devicePixelRatio,
@@ -519,7 +519,7 @@ class F {
519
519
  F.config = ObjectUtil.deepMerge(F.config, o);
520
520
  };
521
521
  }
522
- class j {
522
+ class L {
523
523
  /**
524
524
  * 自定义组件映射表,key 为组件名(同时作为 column.type 值),value 为 Vue 组件定义
525
525
  *
@@ -538,9 +538,9 @@ class j {
538
538
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
539
539
  */
540
540
  static findOptions = (o, f) => {
541
- const n = o.column.find((t) => t.key === f), a = (t) => t.replace(/-([a-z])/g, (e, r) => r.toUpperCase());
541
+ const n = o.column.find((t) => t.key === f), l = (t) => t.replace(/-([a-z])/g, (e, r) => r.toUpperCase());
542
542
  if (n)
543
- return n.options[a(n.type)];
543
+ return n.options[l(n.type)];
544
544
  };
545
545
  /**
546
546
  * 更新组件数据
@@ -559,8 +559,8 @@ class j {
559
559
  )
560
560
  */
561
561
  static setOptionsData = (o, f, n) => {
562
- const a = j.findOptions(o, f);
563
- a && (a.data = n);
562
+ const l = L.findOptions(o, f);
563
+ l && (l.data = n);
564
564
  };
565
565
  static form = {
566
566
  openBefore: {
@@ -571,14 +571,14 @@ class j {
571
571
  * @param treeData 树形数据
572
572
  * @param option 组件配置
573
573
  */
574
- parentId: (o, f, n, a) => {
574
+ parentId: (o, f, n, l) => {
575
575
  const t = F.config.table.rowKey;
576
- o ? f.type === M.EDialog.Add ? (f.form.parentId = o[t], f.form.sort = o.children.length + 1) : f.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (f.form.parentId = "0", f.form.sort = n.length + 1), j.setOptionsData(a, "parentId", [{ [t]: "0", title: "根", children: n }]);
576
+ o ? f.type === M.EDialog.Add ? (f.form.parentId = o[t], f.form.sort = o.children.length + 1) : f.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (f.form.parentId = "0", f.form.sort = n.length + 1), L.setOptionsData(l, "parentId", [{ [t]: "0", title: "根", children: n }]);
577
577
  }
578
578
  }
579
579
  };
580
580
  }
581
- const je = {
581
+ const Te = {
582
582
  search: "搜索",
583
583
  add: "新增",
584
584
  edit: "编辑",
@@ -621,7 +621,7 @@ class w {
621
621
  return o(...f);
622
622
  o = String(o);
623
623
  let n = 0;
624
- return o.replace(/{([^}]+)}/g, (a, t) => n < f.length ? String(f[n++]) : `{${t}}`);
624
+ return o.replace(/{([^}]+)}/g, (l, t) => n < f.length ? String(f[n++]) : `{${t}}`);
625
625
  }
626
626
  static setI18n = (o) => {
627
627
  w.curd = ObjectUtil.deepMerge(w.curd, o);
@@ -631,7 +631,7 @@ class w {
631
631
  return this.t(this.curd[o], ...f);
632
632
  }
633
633
  /** curd表单 */
634
- static curd = je;
634
+ static curd = Te;
635
635
  }
636
636
  class P {
637
637
  /**
@@ -645,12 +645,12 @@ class P {
645
645
  */
646
646
  static setId = (o, f, n) => {
647
647
  f[o] || (f[o] = []);
648
- const a = F.config.table.rowKey;
648
+ const l = F.config.table.rowKey;
649
649
  f[o].forEach((t) => {
650
650
  n.forEach((e) => {
651
651
  let r = e.default ?? "";
652
652
  e.type === "number" && (r = e.default ?? 0), e.type === "boolean" && (r = e.default ?? !1), e.type === "time" && (r = e.default ?? /* @__PURE__ */ new Date()), t[e.value] === void 0 && (t[e.value] = r);
653
- }), t[a] || (t[a] = P.getIdFun());
653
+ }), t[l] || (t[l] = P.getIdFun());
654
654
  });
655
655
  };
656
656
  /**
@@ -660,7 +660,7 @@ class P {
660
660
  * @param itemFields 元素字段-如:[{label:'',value:''}]
661
661
  * @param callback 回调函数
662
662
  */
663
- static add = (o, f, n, a) => {
663
+ static add = (o, f, n, l) => {
664
664
  const t = JSONUtil.cp(n);
665
665
  P.setId(o, f, n);
666
666
  const e = F.config.table.rowKey;
@@ -672,7 +672,7 @@ class P {
672
672
  },
673
673
  { [e]: P.getIdFun() }
674
674
  )
675
- ), a?.(f);
675
+ ), l?.(f);
676
676
  };
677
677
  /**
678
678
  * 删除数组元素
@@ -681,9 +681,9 @@ class P {
681
681
  * @param item 元素-如:{_id:''}
682
682
  * @param callback 回调函数
683
683
  */
684
- static remove = (o, f, n, a) => {
684
+ static remove = (o, f, n, l) => {
685
685
  const t = F.config.table.rowKey;
686
- f[o] = f[o].filter((e) => e[t] !== n[t]), a?.(f);
686
+ f[o] = f[o].filter((e) => e[t] !== n[t]), l?.(f);
687
687
  };
688
688
  /**
689
689
  * 获取没有id的数据
@@ -692,20 +692,20 @@ class P {
692
692
  * @returns 没有id的数据
693
693
  */
694
694
  static getNoIdData = (o, f) => {
695
- const n = JSONUtil.cp(o), a = F.config.table.rowKey;
695
+ const n = JSONUtil.cp(o), l = F.config.table.rowKey;
696
696
  return n.forEach((t) => {
697
- t[a] && delete t[a], f && t[f] && P.getNoIdData(t[f], f);
697
+ t[l] && delete t[l], f && t[f] && P.getNoIdData(t[f], f);
698
698
  }), n;
699
699
  };
700
700
  }
701
- const Le = {
701
+ const je = {
702
702
  key: 0,
703
703
  class: "column curd-form-com-list",
704
704
  style: { width: "100%", gap: "10px" }
705
- }, Be = { key: 0 }, Re = {
705
+ }, Le = { key: 0 }, Be = {
706
706
  class: "row items-center",
707
707
  style: { gap: "10px", width: "100%" }
708
- }, Ie = { key: 1 }, ue = /* @__PURE__ */ N({
708
+ }, Re = { key: 1 }, fe = /* @__PURE__ */ N({
709
709
  __name: "list",
710
710
  props: {
711
711
  row: {
@@ -744,28 +744,28 @@ const Le = {
744
744
  },
745
745
  emits: ["change"],
746
746
  setup(i, { emit: o }) {
747
- const f = i, n = de({
747
+ const f = i, n = ue({
748
748
  show: !1,
749
749
  add: (t, e, r) => {
750
750
  P.add(t, e, r, () => {
751
- a("change");
751
+ l("change");
752
752
  });
753
753
  },
754
754
  remove: (t, e, r) => {
755
755
  P.remove(t, e, r, () => {
756
- a("change");
756
+ l("change");
757
757
  });
758
758
  }
759
759
  });
760
- he(() => {
760
+ ye(() => {
761
761
  P.setId(f.field, f.row, f.itemFields), n.show = !0;
762
762
  });
763
- const a = o;
763
+ const l = o;
764
764
  return (t, e) => {
765
765
  const r = ee("el-button"), s = ee("el-input");
766
- return n.show ? (d(), b("div", Le, [
766
+ return n.show ? (d(), b("div", je, [
767
767
  V(t.$slots, "list-start", { row: i.row }),
768
- i.addBottom ? v("", !0) : (d(), b("div", Be, [
768
+ i.addBottom ? v("", !0) : (d(), b("div", Le, [
769
769
  O(r, {
770
770
  link: "",
771
771
  type: "primary",
@@ -777,7 +777,7 @@ const Le = {
777
777
  _: 1
778
778
  })
779
779
  ])),
780
- (d(!0), b(D, null, A(i.row[i.field], (m) => (d(), b("div", Re, [
780
+ (d(!0), b(D, null, A(i.row[i.field], (m) => (d(), b("div", Be, [
781
781
  V(t.$slots, "item-start", {
782
782
  item: m,
783
783
  row: i.row
@@ -785,10 +785,10 @@ const Le = {
785
785
  (d(!0), b(D, null, A(i.itemFields, (p) => (d(), y(s, {
786
786
  modelValue: m[p.value],
787
787
  "onUpdate:modelValue": (u) => m[p.value] = u,
788
- style: ye({ width: i.inputWidth }),
788
+ style: ge({ width: i.inputWidth }),
789
789
  class: I(i.inputClass),
790
790
  placeholder: p[i.label] || p[i.value],
791
- onChange: e[1] || (e[1] = (u) => a("change"))
791
+ onChange: e[1] || (e[1] = (u) => l("change"))
792
792
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
793
793
  V(t.$slots, "item-end", {
794
794
  item: m,
@@ -805,7 +805,7 @@ const Le = {
805
805
  _: 2
806
806
  }, 1032, ["onClick"])
807
807
  ]))), 256)),
808
- i.addBottom ? (d(), b("div", Ie, [
808
+ i.addBottom ? (d(), b("div", Re, [
809
809
  O(r, {
810
810
  link: "",
811
811
  type: "primary",
@@ -821,10 +821,10 @@ const Le = {
821
821
  ])) : v("", !0);
822
822
  };
823
823
  }
824
- }), He = {
824
+ }), Ie = {
825
825
  class: "row form-item-content",
826
826
  style: { width: "100%" }
827
- }, Ke = { class: "col" }, Pe = { class: "col" }, Ne = ["innerHTML"], We = /* @__PURE__ */ N({
827
+ }, He = { class: "col" }, Ke = { class: "col" }, Pe = ["innerHTML"], Ne = /* @__PURE__ */ N({
828
828
  __name: "column",
829
829
  props: {
830
830
  /**
@@ -841,7 +841,7 @@ const Le = {
841
841
  }
842
842
  },
843
843
  setup(i, { expose: o }) {
844
- const f = M.isFun, n = M.EDialog, a = J(), t = i, e = de({
844
+ const f = M.isFun, n = M.EDialog, l = J(), t = i, e = ue({
845
845
  rules: {},
846
846
  show: !0,
847
847
  form: {},
@@ -872,12 +872,12 @@ const Le = {
872
872
  }
873
873
  if (e.formDefault[c.key] = c.value, c.isForm && (typeof c.show?.form != "boolean" || c.show?.form)) {
874
874
  c.form = c.form || { span: p }, c.form.span = c.form.span ?? p;
875
- const $ = c.form.span, B = u.reduce((R, H) => R + H.span, $), L = u.length;
876
- if (u.push({ item: c, span: $ }), (L === 1 && u[0].span === 0 || B >= m || $ === 0 && L > 1) && (s.push(u), u = []), c.rules) {
877
- const R = {
875
+ const $ = c.form.span, B = u.reduce((j, H) => j + H.span, $), R = u.length;
876
+ if (u.push({ item: c, span: $ }), (R === 1 && u[0].span === 0 || B >= m || $ === 0 && R > 1) && (s.push(u), u = []), c.rules) {
877
+ const j = {
878
878
  input: w.tCurd("placeholderInput"),
879
879
  select: w.tCurd("placeholderSelect")
880
- }, H = (R[c.type] || R.input) + c.label;
880
+ }, H = (j[c.type] || j.input) + c.label;
881
881
  e.rules[c.key] = typeof c.rules == "boolean" ? [
882
882
  {
883
883
  required: !0,
@@ -896,17 +896,17 @@ const Le = {
896
896
  }
897
897
  });
898
898
  return e.initColumnForm(), o({
899
- ref: a,
899
+ ref: l,
900
900
  conf: e
901
- }), (r, s) => (d(), y(l(Q), {
901
+ }), (r, s) => (d(), y(a(Q), {
902
902
  ref_key: "ruleFormRef",
903
- ref: a,
903
+ ref: l,
904
904
  model: e.form,
905
905
  rules: e.rules
906
906
  }, {
907
907
  default: g(() => [
908
908
  e.show ? (d(!0), b(D, { key: 0 }, A(e.formColumn, (m, p) => (d(), b(D, { key: p }, [
909
- l(f)(
909
+ a(f)(
910
910
  m.map((u) => u.item?.show?.form),
911
911
  e.form,
912
912
  e.type
@@ -922,42 +922,42 @@ const Le = {
922
922
  (d(!0), b(D, null, A(m, (u) => (d(), b(D, {
923
923
  key: u.item.key
924
924
  }, [
925
- l(f)(u.item.show?.form, e.form, e.type) ? (d(), b("div", {
925
+ a(f)(u.item.show?.form, e.form, e.type) ? (d(), b("div", {
926
926
  key: 0,
927
927
  class: I([u.item.form.span > 0 ? `col-${e.getColumnSpan(u, m)}` : "col", `form-item-col-${u.item.key}`])
928
928
  }, [
929
- O(l(ae), {
929
+ O(a(ae), {
930
930
  label: u.item.text?.form?.label ?? u.item.label,
931
931
  prop: u.item.key,
932
932
  "label-width": u.item.text?.form?.label == "" ? 0 : u.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
933
933
  }, {
934
934
  default: g(() => [
935
- U("div", He, [
935
+ U("div", Ie, [
936
936
  V(r.$slots, "form-" + u.item.key + "-start", {
937
937
  row: e.form,
938
938
  item: u.item
939
939
  }),
940
- U("div", Ke, [
941
- U("div", Pe, [
940
+ U("div", He, [
941
+ U("div", Ke, [
942
942
  V(r.$slots, "form-" + u.item.key, {
943
943
  row: e.form,
944
944
  item: u.item
945
945
  }, () => [
946
- u.item.type === "input" ? (d(), y(l(_), C({
946
+ u.item.type === "input" ? (d(), y(a(_), C({
947
947
  key: 0,
948
948
  modelValue: e.form[u.item.key],
949
949
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
950
950
  ref_for: !0
951
951
  }, e.getBind(u.item), z(e.getOn(u.item)), {
952
952
  disabled: e.getDisabled(u.item)
953
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "switch" ? (d(), y(l(Z), C({
953
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "switch" ? (d(), y(a(Z), C({
954
954
  key: 1,
955
955
  modelValue: e.form[u.item.key],
956
956
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
957
957
  ref_for: !0
958
958
  }, e.getBind(u.item), z(e.getOn(u.item)), {
959
959
  disabled: e.getDisabled(u.item)
960
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "select" ? (d(), y(l(X), C({
960
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "select" ? (d(), y(a(X), C({
961
961
  key: 2,
962
962
  modelValue: e.form[u.item.key],
963
963
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -967,14 +967,14 @@ const Le = {
967
967
  style: { width: "100%" }
968
968
  }), {
969
969
  default: g(() => [
970
- (d(!0), b(D, null, A(u.item.options?.select?.data, (k) => (d(), y(l(W), {
970
+ (d(!0), b(D, null, A(u.item.options?.select?.data, (k) => (d(), y(a(W), {
971
971
  key: k.value,
972
972
  label: k.label,
973
973
  value: k.value
974
974
  }, null, 8, ["label", "value"]))), 128))
975
975
  ]),
976
976
  _: 2
977
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), y(l(ie), C({
977
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), y(a(re), C({
978
978
  key: 3,
979
979
  modelValue: e.form[u.item.key],
980
980
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -984,14 +984,14 @@ const Le = {
984
984
  style: { width: "100%" }
985
985
  }), {
986
986
  default: g(() => [
987
- (d(!0), b(D, null, A(u.item.options?.radio?.data, (k) => (d(), y(l(re), {
987
+ (d(!0), b(D, null, A(u.item.options?.radio?.data, (k) => (d(), y(a(se), {
988
988
  key: k.value,
989
989
  label: k.label,
990
990
  value: k.value
991
991
  }, null, 8, ["label", "value"]))), 128))
992
992
  ]),
993
993
  _: 2
994
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), y(ue, C({
994
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), y(fe, C({
995
995
  key: 4,
996
996
  row: e.form,
997
997
  field: u.item.key,
@@ -999,7 +999,7 @@ const Le = {
999
999
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1000
1000
  disabled: e.getDisabled(u.item),
1001
1001
  style: { width: "100%" }
1002
- }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), y(l(me), C({
1002
+ }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), y(a(he), C({
1003
1003
  key: 5,
1004
1004
  modelValue: e.form[u.item.key],
1005
1005
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -1007,14 +1007,14 @@ const Le = {
1007
1007
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1008
1008
  disabled: e.getDisabled(u.item),
1009
1009
  style: { width: "100%" }
1010
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), y(l(se), C({
1010
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), y(a(de), C({
1011
1011
  key: 6,
1012
1012
  modelValue: e.form[u.item.key],
1013
1013
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1014
1014
  ref_for: !0
1015
1015
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1016
1016
  disabled: e.getDisabled(u.item)
1017
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (l(j).customComponent[u.item.type] || l(j).customComponent[u.item.type]?.form) ? (d(), y(q(l(j).customComponent[u.item.type]?.form || l(j).customComponent[u.item.type]), C({
1017
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (a(L).customComponent[u.item.type] || a(L).customComponent[u.item.type]?.form) ? (d(), y(q(a(L).customComponent[u.item.type]?.form || a(L).customComponent[u.item.type]), C({
1018
1018
  key: 7,
1019
1019
  modelValue: e.form[u.item.key],
1020
1020
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -1036,7 +1036,7 @@ const Le = {
1036
1036
  key: 0,
1037
1037
  class: "form-tip-text",
1038
1038
  innerHTML: typeof u.item.form?.tipText == "function" ? u.item.form?.tipText(e.form, e.type) : u.item.form?.tipText
1039
- }, null, 8, Ne)) : v("", !0)
1039
+ }, null, 8, Pe)) : v("", !0)
1040
1040
  ])
1041
1041
  ]),
1042
1042
  V(r.$slots, "form-" + u.item.key + "-end", {
@@ -1059,7 +1059,7 @@ const Le = {
1059
1059
  }, 8, ["model", "rules"]));
1060
1060
  }
1061
1061
  });
1062
- class Je {
1062
+ class We {
1063
1063
  /**
1064
1064
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1065
1065
  *
@@ -1069,13 +1069,13 @@ class Je {
1069
1069
  */
1070
1070
  static exportToExcel = async (o, f, n) => {
1071
1071
  if (!o || o.length === 0) return;
1072
- const a = await M.loadModule("xlsx"), t = o.map((s) => {
1072
+ const l = await M.loadModule("xlsx"), t = o.map((s) => {
1073
1073
  const m = {};
1074
1074
  return f.forEach((p) => {
1075
1075
  m[p.label] = s[p.key];
1076
1076
  }), m;
1077
- }), e = a.utils.json_to_sheet(t), r = a.utils.book_new();
1078
- a.utils.book_append_sheet(r, e, "Sheet1"), n ? typeof n == "function" && (n = n()) : n = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, a.writeFile(r, `${n}.xlsx`);
1077
+ }), e = l.utils.json_to_sheet(t), r = l.utils.book_new();
1078
+ l.utils.book_append_sheet(r, e, "Sheet1"), n ? typeof n == "function" && (n = n()) : n = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, l.writeFile(r, `${n}.xlsx`);
1079
1079
  };
1080
1080
  }
1081
1081
  class x {
@@ -1097,13 +1097,13 @@ class x {
1097
1097
  * @returns
1098
1098
  */
1099
1099
  static setValue = (o, f, n = !1) => {
1100
- n && x.delAllKey(o), Object.keys(f).forEach((a) => {
1101
- o[a] !== f[a] && (o[a] = f[a]);
1100
+ n && x.delAllKey(o), Object.keys(f).forEach((l) => {
1101
+ o[l] !== f[l] && (o[l] = f[l]);
1102
1102
  });
1103
1103
  };
1104
1104
  }
1105
- const K = M.EDialog, qe = (i) => {
1106
- const o = J(), f = J(), n = J(), a = de({
1105
+ const K = M.EDialog, Je = (i) => {
1106
+ const o = J(), f = J(), n = J(), l = ue({
1107
1107
  option: i.option,
1108
1108
  /** 查询区域相关配置对象 */
1109
1109
  search: {
@@ -1122,23 +1122,23 @@ const K = M.EDialog, qe = (i) => {
1122
1122
  getFormData: () => {
1123
1123
  let t = {};
1124
1124
  i.option.column.forEach((r) => {
1125
- (typeof r.show?.search == "function" ? r.show?.search(a.search.form) : r.show?.search) && (t[r.key] = a.search.form[r.key]);
1125
+ (typeof r.show?.search == "function" ? r.show?.search(l.search.form) : r.show?.search) && (t[r.key] = l.search.form[r.key]);
1126
1126
  });
1127
1127
  const e = i.option.search?.before?.(t);
1128
1128
  return e && (t = e), t;
1129
1129
  },
1130
1130
  /** 重置搜索表单 */
1131
1131
  reset: () => {
1132
- const t = a.search.formDefault;
1132
+ const t = l.search.formDefault;
1133
1133
  Object.keys(t).forEach((r) => {
1134
- i.option.search?.resetMode === "none" ? t[r] = void 0 : t[r] = a.search.formDefault[r];
1134
+ i.option.search?.resetMode === "none" ? t[r] = void 0 : t[r] = l.search.formDefault[r];
1135
1135
  });
1136
1136
  const e = ObjectUtil.deepMerge(t, {});
1137
- x.setValue(a.search.form, e, !0), a.page.num = 1, i.option.init !== !1 && a.table.getList();
1137
+ x.setValue(l.search.form, e, !0), l.page.num = 1, i.option.init !== !1 && l.table.getList();
1138
1138
  },
1139
1139
  /** 提交搜索表单 */
1140
1140
  submit: () => {
1141
- a.page.num = 1, a.table.getList();
1141
+ l.page.num = 1, l.table.getList();
1142
1142
  }
1143
1143
  },
1144
1144
  /** 分页区域相关配置对象 */
@@ -1159,9 +1159,9 @@ const K = M.EDialog, qe = (i) => {
1159
1159
  pagerCount: i.option.page?.pagerCount || F.config.pagination.pagerCount,
1160
1160
  /** 获取分页查询参数 */
1161
1161
  getQuery: (t = {}) => ({
1162
- [F.config.field.page.size]: t.size || a.page.size,
1163
- [F.config.field.page.num]: t.num || a.page.num,
1164
- ...a.search.getFormData()
1162
+ [F.config.field.page.size]: t.size || l.page.size,
1163
+ [F.config.field.page.num]: t.num || l.page.num,
1164
+ ...l.search.getFormData()
1165
1165
  })
1166
1166
  },
1167
1167
  /** 表格区域相关配置对象 */
@@ -1186,8 +1186,8 @@ const K = M.EDialog, qe = (i) => {
1186
1186
  },
1187
1187
  /** 全部展开/收起 */
1188
1188
  all: () => {
1189
- if (a.table.expand.isExpand)
1190
- a.table.expand.rowKeys = [];
1189
+ if (l.table.expand.isExpand)
1190
+ l.table.expand.rowKeys = [];
1191
1191
  else {
1192
1192
  const t = (e) => {
1193
1193
  let r = [];
@@ -1195,9 +1195,9 @@ const K = M.EDialog, qe = (i) => {
1195
1195
  r.push(s[i.option.table.rowKey]), s.children && s.children.length > 0 && (r = r.concat(t(s.children)));
1196
1196
  }), r;
1197
1197
  };
1198
- a.table.expand.rowKeys = t(a.table.data);
1198
+ l.table.expand.rowKeys = t(l.table.data);
1199
1199
  }
1200
- a.table.expand.isExpand = !a.table.expand.isExpand;
1200
+ l.table.expand.isExpand = !l.table.expand.isExpand;
1201
1201
  }
1202
1202
  },
1203
1203
  /** 表格列相关配置 */
@@ -1219,47 +1219,47 @@ const K = M.EDialog, qe = (i) => {
1219
1219
  expand: !1,
1220
1220
  /** 全部展开/收起主分组 */
1221
1221
  toggleExpandAll: () => {
1222
- const t = !a.table.header.group.expand;
1223
- a.table.header.group.expand = t;
1222
+ const t = !l.table.header.group.expand;
1223
+ l.table.header.group.expand = t;
1224
1224
  const e = (r) => {
1225
1225
  r.forEach((s) => {
1226
1226
  s.table?.header?.group !== void 0 && (s.table.header.group = !t), s.table?.header?.groupKey !== void 0 && (s.table.header.show = t), Array.isArray(s.children) && s.children.length > 0 && e(s.children);
1227
1227
  });
1228
1228
  };
1229
- e(a.table.column.list);
1229
+ e(l.table.column.list);
1230
1230
  }
1231
1231
  }
1232
1232
  },
1233
1233
  /** 获取数据列表接口实现 */
1234
1234
  getList: async () => {
1235
- a.table.loading = !0;
1236
- const t = i.option.api.list;
1235
+ l.table.loading = !0;
1236
+ const t = i.option.api.list, e = JSONUtil.cp(l.table.selection.list);
1237
1237
  try {
1238
- await a.initApiData("init");
1239
- let e = {};
1240
- if (a.table.sort.prop) {
1241
- const { props: c, order: $ } = F.config.table.sort;
1242
- e = {
1243
- [c.field]: a.table.sort.prop,
1244
- [$.field]: a.table.sort.order
1238
+ await l.initApiData("init");
1239
+ let r = {};
1240
+ if (l.table.sort.prop) {
1241
+ const { props: $, order: B } = F.config.table.sort;
1242
+ r = {
1243
+ [$.field]: l.table.sort.prop,
1244
+ [B.field]: l.table.sort.order
1245
1245
  };
1246
1246
  }
1247
- const r = await t({
1248
- ...a.page.getQuery(),
1249
- ...e
1250
- }), s = F.config.field.result, m = r.data || { [s.list]: r };
1251
- let p = (Array.isArray(m[s.list]), m[s.list]);
1252
- const u = a.update.formColumn.flat(), h = ObjectUtil.deepMerge({ data: p }, {}).data.map((c) => (Object.keys(c).forEach((B) => {
1253
- const L = u.find((R) => R.item.key === B);
1254
- L && ["select", "radio"].includes(L.item.type) && (L.item.table.format || (L.item.table.format = (R) => L.item.options[L.item.type].data?.find((H) => H.value == R[B])?.label || R[B]));
1255
- }), c));
1256
- a.table.data = i.option.data ? await i.option.data(h, p) : h, a.page.total = m[s.total] || 0, setTimeout(() => {
1257
- a.table.selection.runFun();
1247
+ const s = await t({
1248
+ ...l.page.getQuery(),
1249
+ ...r
1250
+ }), m = F.config.field.result, p = s.data || { [m.list]: s };
1251
+ let u = (Array.isArray(p[m.list]), p[m.list]);
1252
+ const k = l.update.formColumn.flat(), c = ObjectUtil.deepMerge({ data: u }, {}).data.map(($) => (Object.keys($).forEach((R) => {
1253
+ const j = k.find((H) => H.item.key === R);
1254
+ j && ["select", "radio"].includes(j.item.type) && (j.item.table.format || (j.item.table.format = (H) => j.item.options[j.item.type].data?.find((le) => le.value == H[R])?.label || H[R]));
1255
+ }), $));
1256
+ l.table.data = i.option.data ? await i.option.data(c, u) : c, l.page.total = p[m.total] || 0, setTimeout(() => {
1257
+ l.table.selection.setList(e);
1258
1258
  }, 20);
1259
- } catch (e) {
1260
- console.error(e);
1259
+ } catch (r) {
1260
+ console.error(r);
1261
1261
  } finally {
1262
- a.table.loading = !1;
1262
+ l.table.loading = !1;
1263
1263
  }
1264
1264
  },
1265
1265
  /** 表格多选相关配置 */
@@ -1268,14 +1268,11 @@ const K = M.EDialog, qe = (i) => {
1268
1268
  list: [],
1269
1269
  /** 选中状态回调 */
1270
1270
  change: (t) => {
1271
- a.table.selection.list = t;
1272
- },
1273
- /** 最后一次选中执行 */
1274
- runFun: () => {
1271
+ l.table.selection.list = t;
1275
1272
  },
1276
1273
  /** 设置表格多选数据 */
1277
1274
  setList: (t, e) => {
1278
- a.table.selection.list = [];
1275
+ l.table.selection.list = [];
1279
1276
  const r = n.value;
1280
1277
  if (r?.clearSelection(), !r || !t?.length) return;
1281
1278
  const s = i.option.table?.rowKey, m = (p) => {
@@ -1291,11 +1288,11 @@ const K = M.EDialog, qe = (i) => {
1291
1288
  }
1292
1289
  }
1293
1290
  };
1294
- return u(a.table.data);
1291
+ return u(l.table.data);
1295
1292
  };
1296
- a.table.selection.runFun = () => {
1297
- t.forEach((p) => {
1298
- const u = m(p) ?? p;
1293
+ t.forEach((p) => {
1294
+ const u = m(p);
1295
+ if (u)
1299
1296
  if (e) {
1300
1297
  const k = () => {
1301
1298
  r.toggleRowSelection(u, !0, !1);
@@ -1303,9 +1300,6 @@ const K = M.EDialog, qe = (i) => {
1303
1300
  e(p) !== !1 && k();
1304
1301
  } else
1305
1302
  r.toggleRowSelection(u, !0, !1);
1306
- });
1307
- }, Oe(() => {
1308
- a.table.selection.runFun();
1309
1303
  });
1310
1304
  }
1311
1305
  },
@@ -1317,13 +1311,13 @@ const K = M.EDialog, qe = (i) => {
1317
1311
  order: "",
1318
1312
  /** 排序变更回调 */
1319
1313
  change: (t) => {
1320
- F.config.table.sort.resetPage && (a.page.num = 1);
1314
+ F.config.table.sort.resetPage && (l.page.num = 1);
1321
1315
  const e = F.config.table.sort;
1322
1316
  if (e.change) {
1323
- e.change(t, a);
1317
+ e.change(t, l);
1324
1318
  return;
1325
1319
  }
1326
- a.table.sort.prop = t.prop, t.order === null ? (a.table.sort.order = "", a.table.sort.prop = "") : a.table.sort.order = t.order === "ascending" ? e.order.asc : e.order.desc, a.table.getList();
1320
+ l.table.sort.prop = t.prop, t.order === null ? (l.table.sort.order = "", l.table.sort.prop = "") : l.table.sort.order = t.order === "ascending" ? e.order.asc : e.order.desc, l.table.getList();
1327
1321
  }
1328
1322
  }
1329
1323
  },
@@ -1333,7 +1327,7 @@ const K = M.EDialog, qe = (i) => {
1333
1327
  run: {
1334
1328
  /** 执行指定方式的导出(如select、page、all) */
1335
1329
  start: async (t) => {
1336
- let e = await a.export.run[t](), r = i.option.column;
1330
+ let e = await l.export.run[t](), r = i.option.column;
1337
1331
  const s = ObjectUtil.deepMerge(
1338
1332
  {
1339
1333
  data: e,
@@ -1341,59 +1335,59 @@ const K = M.EDialog, qe = (i) => {
1341
1335
  },
1342
1336
  {}
1343
1337
  ), m = i.option.tools?.export || {};
1344
- m.before && m.before(s), Je.exportToExcel(s.data, s.columns, m.fileName);
1338
+ m.before && m.before(s), We.exportToExcel(s.data, s.columns, m.fileName);
1345
1339
  },
1346
1340
  /** 获取当前选中项进行导出 */
1347
1341
  select: async () => {
1348
- a.export.loading = !0;
1342
+ l.export.loading = !0;
1349
1343
  try {
1350
1344
  if (i.option.tools?.export?.select) {
1351
1345
  await i.option.tools?.export?.select({
1352
- ...a.page.getQuery(),
1353
- items: a.table.selection.list
1346
+ ...l.page.getQuery(),
1347
+ items: l.table.selection.list
1354
1348
  });
1355
1349
  return;
1356
1350
  }
1357
- if (a.table.selection.list.length === 0)
1351
+ if (l.table.selection.list.length === 0)
1358
1352
  throw M.fail(w.tCurd("selectDataToExport")), new Error(w.tCurd("selectDataToExport"));
1359
- return a.table.selection.list;
1353
+ return l.table.selection.list;
1360
1354
  } catch (t) {
1361
1355
  console.error(t);
1362
1356
  } finally {
1363
- a.export.loading = !1;
1357
+ l.export.loading = !1;
1364
1358
  }
1365
1359
  },
1366
1360
  /** 导出当前页的数据 */
1367
1361
  page: async () => {
1368
- a.export.loading = !0;
1362
+ l.export.loading = !0;
1369
1363
  try {
1370
1364
  if (i.option.tools?.export?.page) {
1371
1365
  await i.option.tools?.export?.page({
1372
- ...a.page.getQuery()
1366
+ ...l.page.getQuery()
1373
1367
  });
1374
1368
  return;
1375
1369
  }
1376
- if (a.table.data.length === 0)
1370
+ if (l.table.data.length === 0)
1377
1371
  throw M.fail(w.tCurd("noData")), new Error(w.tCurd("noData"));
1378
- return a.table.data;
1372
+ return l.table.data;
1379
1373
  } catch (t) {
1380
1374
  console.error(t);
1381
1375
  } finally {
1382
- a.export.loading = !1;
1376
+ l.export.loading = !1;
1383
1377
  }
1384
1378
  },
1385
1379
  /** 导出所有数据 */
1386
1380
  all: async () => {
1387
- a.export.loading = !0;
1381
+ l.export.loading = !0;
1388
1382
  try {
1389
1383
  if (i.option.tools?.export?.all) {
1390
1384
  await i.option.tools?.export?.all({
1391
- ...a.page.getQuery()
1385
+ ...l.page.getQuery()
1392
1386
  });
1393
1387
  return;
1394
1388
  }
1395
1389
  const t = i.option.api.list, e = await t({
1396
- ...a.page.getQuery({
1390
+ ...l.page.getQuery({
1397
1391
  size: 999999,
1398
1392
  num: 1
1399
1393
  })
@@ -1402,7 +1396,7 @@ const K = M.EDialog, qe = (i) => {
1402
1396
  } catch (t) {
1403
1397
  console.error(t);
1404
1398
  } finally {
1405
- a.export.loading = !1;
1399
+ l.export.loading = !1;
1406
1400
  }
1407
1401
  }
1408
1402
  },
@@ -1410,7 +1404,7 @@ const K = M.EDialog, qe = (i) => {
1410
1404
  loading: !1,
1411
1405
  /** 执行导出操作的触发函数 */
1412
1406
  click: (t) => {
1413
- a.export.loading || a.export.run.start(t);
1407
+ l.export.loading || l.export.run.start(t);
1414
1408
  }
1415
1409
  },
1416
1410
  /** 表单增删改弹窗相关对象 */
@@ -1434,27 +1428,27 @@ const K = M.EDialog, qe = (i) => {
1434
1428
  /** 表单所有列,二维数组结构按行分组 */
1435
1429
  formColumn: [],
1436
1430
  /** 判断是否禁用当前字段 */
1437
- getDisabled: (t, e = !1) => i.option.table?.editMode && e ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : a.update.type === K.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[a.update.type === K.Add ? "create" : "update"],
1431
+ getDisabled: (t, e = !1) => i.option.table?.editMode && e ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : l.update.type === K.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[l.update.type === K.Add ? "create" : "update"],
1438
1432
  /** 获取表单组件绑定属性 */
1439
- getBind: (t) => t.options?.[a.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1433
+ getBind: (t) => t.options?.[l.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1440
1434
  /** 获取表单组件事件属性 */
1441
1435
  getOn: (t, e) => {
1442
- const s = t.options?.[a.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1436
+ const s = t.options?.[l.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1443
1437
  return Object.keys(s).forEach((p) => {
1444
1438
  const u = s[p];
1445
1439
  typeof u == "function" ? m[p] = function(...k) {
1446
- return u.apply(this, [...k, e || a.update.form, t]);
1440
+ return u.apply(this, [...k, e || l.update.form, t]);
1447
1441
  } : m[p] = u;
1448
1442
  }), m;
1449
1443
  },
1450
1444
  /** 获取表单组件绑定属性和事件 */
1451
1445
  getOptions: (t) => {
1452
1446
  try {
1453
- const r = a.update.formColumn.flat().find((s) => s.item.key === t)?.item;
1447
+ const r = l.update.formColumn.flat().find((s) => s.item.key === t)?.item;
1454
1448
  return r ? {
1455
1449
  options: r.options,
1456
1450
  // @ts-ignore
1457
- bind: a.update.getBind(r)
1451
+ bind: l.update.getBind(r)
1458
1452
  } : { options: {}, bind: {} };
1459
1453
  } catch {
1460
1454
  return { options: {}, bind: {} };
@@ -1469,24 +1463,24 @@ const K = M.EDialog, qe = (i) => {
1469
1463
  if (i.option.form?.editAll)
1470
1464
  return t;
1471
1465
  let e = {
1472
- [i.option.table?.rowKey]: a.update.edit.data[i.option.table?.rowKey]
1466
+ [i.option.table?.rowKey]: l.update.edit.data[i.option.table?.rowKey]
1473
1467
  };
1474
- return Object.keys(a.update.edit.data).forEach((r) => {
1475
- t[r] !== a.update.edit.data[r] && (e[r] = t[r]);
1468
+ return Object.keys(l.update.edit.data).forEach((r) => {
1469
+ t[r] !== l.update.edit.data[r] && (e[r] = t[r]);
1476
1470
  }), e;
1477
1471
  }
1478
1472
  },
1479
1473
  view: {},
1480
1474
  /** 打开增改弹窗 */
1481
1475
  open: (t, e) => {
1482
- a.update.showContent || FunUtil.throttle(async () => {
1476
+ l.update.showContent || FunUtil.throttle(async () => {
1483
1477
  M.loading(!0);
1484
1478
  try {
1485
- a.update.type = t;
1479
+ l.update.type = t;
1486
1480
  const r = t === K.Add;
1487
- a.update.edit.data = e, a.update.title = w.tCurd(r ? "add" : t === K.View ? "view" : "edit");
1488
- const s = ObjectUtil.deepMerge(r ? a.update.formDefault : e, {});
1489
- x.setValue(a.update.form, s, !0), await a.initApiData("update"), await i.option.form?.openBefore?.(a.update.form, a.update), (!i.option.table?.inlineEdit || r) && (a.update.show = !0, a.update.showContent = !0), i.option.form?.openAfter?.(a.update.form, a.update);
1481
+ l.update.edit.data = e, l.update.title = w.tCurd(r ? "add" : t === K.View ? "view" : "edit");
1482
+ const s = ObjectUtil.deepMerge(r ? l.update.formDefault : e, {});
1483
+ x.setValue(l.update.form, s, !0), await l.initApiData("update"), await i.option.form?.openBefore?.(l.update.form, l.update), (!i.option.table?.inlineEdit || r) && (l.update.show = !0, l.update.showContent = !0), i.option.form?.openAfter?.(l.update.form, l.update);
1490
1484
  } catch (r) {
1491
1485
  console.error(r);
1492
1486
  } finally {
@@ -1499,15 +1493,15 @@ const K = M.EDialog, qe = (i) => {
1499
1493
  FunUtil.throttle(async () => {
1500
1494
  await f.value?.validate(async (s, m) => new Promise((p, u) => {
1501
1495
  s || (M.fail(w.tCurd("checkFormData")), u(!1)), p();
1502
- })), a.update.loading = !0;
1503
- const t = a.update.type === K.Add ? i.option.api.create : i.option.api.update;
1496
+ })), l.update.loading = !0;
1497
+ const t = l.update.type === K.Add ? i.option.api.create : i.option.api.update;
1504
1498
  try {
1505
- await i.option.form?.submitBefore?.(a.update.form, a.update);
1499
+ await i.option.form?.submitBefore?.(l.update.form, l.update);
1506
1500
  } catch {
1507
- a.update.loading = !1;
1501
+ l.update.loading = !1;
1508
1502
  return;
1509
1503
  }
1510
- let e = ObjectUtil.deepMerge(a.update.form, {});
1504
+ let e = ObjectUtil.deepMerge(l.update.form, {});
1511
1505
  delete e.children;
1512
1506
  const r = new Set(i.option.column.filter((s) => s.type === "datetime").map((s) => s.key));
1513
1507
  Object.keys(e).forEach((s) => {
@@ -1520,18 +1514,18 @@ const K = M.EDialog, qe = (i) => {
1520
1514
  if (!t) return;
1521
1515
  await t({
1522
1516
  ...e
1523
- }), a.update.close(), await a.table.getList(), i.option.form?.submitAfter?.(e, a.update);
1517
+ }), l.update.close(), await l.table.getList(), i.option.form?.submitAfter?.(e, l.update);
1524
1518
  } catch (s) {
1525
1519
  console.error(s);
1526
1520
  } finally {
1527
- a.update.loading = !1;
1521
+ l.update.loading = !1;
1528
1522
  }
1529
1523
  });
1530
1524
  },
1531
1525
  /** 关闭弹窗和内容 */
1532
1526
  close: () => {
1533
- a.update.show = !1, i.option.table?.inlineEdit && (a.update.form = {}), setTimeout(() => {
1534
- a.update.showContent = !1;
1527
+ l.update.show = !1, i.option.table?.inlineEdit && (l.update.form = {}), setTimeout(() => {
1528
+ l.update.showContent = !1;
1535
1529
  }, 350);
1536
1530
  }
1537
1531
  },
@@ -1547,7 +1541,7 @@ const K = M.EDialog, qe = (i) => {
1547
1541
  loading: !1,
1548
1542
  /** 关闭删除弹窗 */
1549
1543
  close: () => {
1550
- a.remove.show = !1;
1544
+ l.remove.show = !1;
1551
1545
  },
1552
1546
  /** 打开删除弹窗并设置待删除项 */
1553
1547
  open: (t) => {
@@ -1555,30 +1549,30 @@ const K = M.EDialog, qe = (i) => {
1555
1549
  M.fail(w.tCurd("selectDataToDelete"));
1556
1550
  return;
1557
1551
  }
1558
- a.remove.items = t, a.remove.show = !0;
1552
+ l.remove.items = t, l.remove.show = !0;
1559
1553
  },
1560
1554
  /** 执行删除实际操作 */
1561
1555
  submit: () => {
1562
1556
  FunUtil.throttle(async () => {
1563
- a.remove.loading = !0;
1557
+ l.remove.loading = !0;
1564
1558
  const t = i.option.api.delete;
1565
1559
  try {
1566
1560
  if (!t) return;
1567
1561
  await t({
1568
- [i.option.table?.rowKey]: a.remove.items.map((e) => e[i.option.table?.rowKey]),
1569
- items: a.remove.items
1570
- }), M.success(w.tCurd("operationSuccess")), a.table.data.length <= 1 && a.page.num > 1 && (a.page.num -= 1), a.remove.close(), await a.table.getList();
1562
+ [i.option.table?.rowKey]: l.remove.items.map((e) => e[i.option.table?.rowKey]),
1563
+ items: l.remove.items
1564
+ }), M.success(w.tCurd("operationSuccess")), l.table.data.length <= 1 && l.page.num > 1 && (l.page.num -= 1), l.remove.close(), await l.table.getList();
1571
1565
  } catch (e) {
1572
1566
  console.error(e);
1573
1567
  } finally {
1574
- a.remove.loading = !1;
1568
+ l.remove.loading = !1;
1575
1569
  }
1576
1570
  });
1577
1571
  }
1578
1572
  },
1579
1573
  /** 初始化curd关联所有默认与依赖配置及表单列 */
1580
1574
  init: () => {
1581
- a.initCurdConfig(), a.initColumnOptions(), a.initColumnForm();
1575
+ l.initCurdConfig(), l.initColumnOptions(), l.initColumnForm();
1582
1576
  },
1583
1577
  /** 下拉请求等数据缓存 */
1584
1578
  apiDataMap: {},
@@ -1590,13 +1584,13 @@ const K = M.EDialog, qe = (i) => {
1590
1584
  return;
1591
1585
  }
1592
1586
  if (s.options?.[s.type]?.dataApi && s.options?.[s.type]?.dataApiConfig?.[t]) {
1593
- if (a.apiDataMap[s.key] && s.options?.[s.type]?.dataApiConfig?.once) return;
1587
+ if (l.apiDataMap[s.key] && s.options?.[s.type]?.dataApiConfig?.once) return;
1594
1588
  const m = (async () => {
1595
1589
  try {
1596
- let p = await s.options?.[s.type]?.dataApi?.(a.update.form, a.update.type);
1590
+ let p = await s.options?.[s.type]?.dataApi?.(l.update.form, l.update.type);
1597
1591
  if (p) {
1598
1592
  const u = s.options?.[s.type]?.dataPath;
1599
- !Array.isArray(p) && u && (p = ObjectUtil.getPathValue(p, u)), s.options[s.type].data = p, s.options.search[s.type].data = p, s.options.search[s.options.search.type ?? s.type] || (s.options.search[s.options.search.type ?? s.type] = {}), s.options.search[s.options.search.type ?? s.type].data = p, s.options.formAdd[s.type].data = p, s.options.formUpdate[s.type].data = p, a.apiDataMap[s.key] = p;
1593
+ !Array.isArray(p) && u && (p = ObjectUtil.getPathValue(p, u)), s.options[s.type].data = p, s.options.search[s.type].data = p, s.options.search[s.options.search.type ?? s.type] || (s.options.search[s.options.search.type ?? s.type] = {}), s.options.search[s.options.search.type ?? s.type].data = p, s.options.formAdd[s.type].data = p, s.options.formUpdate[s.type].data = p, l.apiDataMap[s.key] = p;
1600
1594
  }
1601
1595
  } catch {
1602
1596
  }
@@ -1637,7 +1631,7 @@ const K = M.EDialog, qe = (i) => {
1637
1631
  for (const s in t) {
1638
1632
  if (s === "table") {
1639
1633
  if (r.table = ObjectUtil.deepMerge(t.table, r.table || {}), r.children) {
1640
- r.children.forEach((p) => {
1634
+ console.log("column.children", r.children), r.children.forEach((p) => {
1641
1635
  e(p);
1642
1636
  });
1643
1637
  return;
@@ -1673,11 +1667,11 @@ const K = M.EDialog, qe = (i) => {
1673
1667
  } finally {
1674
1668
  p.loadingMap[u].loading = !1;
1675
1669
  }
1676
- return M.success(w.tCurd("operationSuccess")), p.tableConfig?.loadList && (a.table.loading = !0, a.table.getList(), a.table.loading = !1), !0;
1670
+ return M.success(w.tCurd("operationSuccess")), p.tableConfig?.loadList && (l.table.loading = !0, l.table.getList(), l.table.loading = !1), !0;
1677
1671
  } catch (u) {
1678
1672
  return console.error(u), !1;
1679
1673
  } finally {
1680
- a.table.loading = !1;
1674
+ l.table.loading = !1;
1681
1675
  }
1682
1676
  } catch {
1683
1677
  return !1;
@@ -1688,7 +1682,7 @@ const K = M.EDialog, qe = (i) => {
1688
1682
  },
1689
1683
  getColumnSpan: (t, e) => {
1690
1684
  if (t.item.form?.spanCol) {
1691
- const r = F.config.form.defaultSpan, m = e.filter((p) => !M.isFun(p.item.show?.form, a.update.form, a.update.type)).reduce((p, u) => p + (u.item.form?.span || r), 0);
1685
+ const r = F.config.form.defaultSpan, m = e.filter((p) => !M.isFun(p.item.show?.form, l.update.form, l.update.type)).reduce((p, u) => p + (u.item.form?.span || r), 0);
1692
1686
  return (t.item?.form.span || r) + m;
1693
1687
  }
1694
1688
  return t.item.form.span;
@@ -1696,7 +1690,7 @@ const K = M.EDialog, qe = (i) => {
1696
1690
  /** 初始化配置并生成表单列及默认值及规则 */
1697
1691
  initColumnForm: () => {
1698
1692
  const t = i.option;
1699
- a.update.formColumn = [], a.table.column.show = {
1693
+ l.update.formColumn = [], l.table.column.show = {
1700
1694
  list: [],
1701
1695
  listSource: []
1702
1696
  };
@@ -1704,32 +1698,32 @@ const K = M.EDialog, qe = (i) => {
1704
1698
  let m = [];
1705
1699
  const p = (c) => {
1706
1700
  if (c.children) {
1707
- a.table.column.show.list.push(c.key), c.children.forEach(($) => {
1701
+ l.table.column.show.list.push(c.key), c.children.forEach(($) => {
1708
1702
  p($);
1709
1703
  });
1710
1704
  return;
1711
1705
  }
1712
- if (a.update.formDefault[c.key] = c.value, c.table.table && (c.show.table && a.table.column.show.list.push(c.key), c.table.table && a.table.column.show.listSource.push(c.key)), !(c.isForm && typeof c.show?.form == "boolean") || c.show?.form) {
1706
+ if (l.update.formDefault[c.key] = c.value, c.table.table && (c.show.table && l.table.column.show.list.push(c.key), c.table.table && l.table.column.show.listSource.push(c.key)), !(c.isForm && typeof c.show?.form == "boolean") || c.show?.form) {
1713
1707
  c.form = c.form || { span: s }, c.form.span = c.form.span ?? s;
1714
- let $ = c.form.span, B = m.reduce((R, H) => R + H.span, $);
1715
- const L = m.length;
1716
- if (m.push({ item: c, span: $ }), (L === 1 && m[0].span === 0 || B >= r || $ === 0 && L > 1) && (e.push(m), m = []), c.rules) {
1717
- const R = {
1708
+ let $ = c.form.span, B = m.reduce((j, H) => j + H.span, $);
1709
+ const R = m.length;
1710
+ if (m.push({ item: c, span: $ }), (R === 1 && m[0].span === 0 || B >= r || $ === 0 && R > 1) && (e.push(m), m = []), c.rules) {
1711
+ const j = {
1718
1712
  input: w.tCurd("placeholderInput"),
1719
1713
  select: w.tCurd("placeholderSelect")
1720
- }, H = (R[c.type] || R.input) + c.label, be = typeof c.rules == "boolean" ? [
1714
+ }, H = (j[c.type] || j.input) + c.label, le = typeof c.rules == "boolean" ? [
1721
1715
  {
1722
1716
  required: !0,
1723
1717
  message: H,
1724
1718
  trigger: "blur"
1725
1719
  }
1726
1720
  ] : c.rules;
1727
- a.update.rules[c.key] = be.map((te) => {
1721
+ l.update.rules[c.key] = le.map((te) => {
1728
1722
  if (te.validator) {
1729
1723
  const we = te.validator;
1730
1724
  return {
1731
1725
  ...te,
1732
- validator: (ke, ve, Ce) => we(ke, ve, Ce, a.update.form)
1726
+ validator: (ke, ve, Ce) => we(ke, ve, Ce, l.update.form)
1733
1727
  };
1734
1728
  }
1735
1729
  return te;
@@ -1743,51 +1737,51 @@ const K = M.EDialog, qe = (i) => {
1743
1737
  c.isForm = !0, u(c, !0), p(c);
1744
1738
  }), i.option.table?.column?.forEach((c) => {
1745
1739
  u(c, !1), p(c);
1746
- }), a.search.column.list = t.column.concat(t.table?.column || []), a.table.column.list = a.search.column.list.filter((c) => c.table?.table), a.search.column.list.sort((c, $) => c.sort?.search - $.sort?.search), a.table.column.list.sort((c, $) => c.sort?.table - $.sort?.table), m.length > 0 && e.push(m), a.update.formColumn = e;
1740
+ }), l.search.column.list = t.column.concat(t.table?.column || []), l.table.column.list = l.search.column.list.filter((c) => c.table?.table), l.search.column.list.sort((c, $) => c.sort?.search - $.sort?.search), l.table.column.list.sort((c, $) => c.sort?.table - $.sort?.table), m.length > 0 && e.push(m), l.update.formColumn = e;
1747
1741
  const k = i.option.search?.formDefault;
1748
1742
  k && Object.keys(k).forEach((c) => {
1749
- a.search.formDefault[c] = k[c];
1743
+ l.search.formDefault[c] = k[c];
1750
1744
  }), t.column.forEach((c) => {
1751
- c.show?.search || (a.search.formDefault[c.key] = void 0);
1745
+ c.show?.search || (l.search.formDefault[c.key] = void 0);
1752
1746
  });
1753
- const h = ObjectUtil.deepMerge(a.search.formDefault, {});
1754
- x.setValue(a.search.form, h, !0);
1747
+ const h = ObjectUtil.deepMerge(l.search.formDefault, {});
1748
+ x.setValue(l.search.form, h, !0);
1755
1749
  }
1756
1750
  });
1757
- return a.init(), he(() => {
1758
- i.option.init !== !1 && a.table.getList();
1759
- }), i.form && pe(
1760
- () => a.update.form,
1751
+ return l.init(), ye(() => {
1752
+ i.option.init !== !1 && l.table.getList();
1753
+ }), i.form && ce(
1754
+ () => l.update.form,
1761
1755
  (t) => {
1762
- Object.keys(a.update.form).forEach((e) => {
1763
- i.form[e] = a.update.form[e];
1756
+ Object.keys(l.update.form).forEach((e) => {
1757
+ i.form[e] = l.update.form[e];
1764
1758
  });
1765
1759
  },
1766
1760
  {
1767
1761
  deep: !0,
1768
1762
  immediate: !0
1769
1763
  }
1770
- ), i.searchForm && pe(
1771
- () => a.search.form,
1764
+ ), i.searchForm && ce(
1765
+ () => l.search.form,
1772
1766
  (t) => {
1773
- Object.keys(a.search.form).forEach((e) => {
1774
- i.searchForm[e] = a.search.form[e];
1767
+ Object.keys(l.search.form).forEach((e) => {
1768
+ i.searchForm[e] = l.search.form[e];
1775
1769
  });
1776
1770
  },
1777
1771
  {
1778
1772
  deep: !0,
1779
1773
  immediate: !0
1780
1774
  }
1781
- ), { conf: a, switchConfirmRef: o, ruleFormRef: f, tableRef: n };
1782
- }, Qe = { class: "dialog-footer" }, Ge = /* @__PURE__ */ N({
1775
+ ), { conf: l, switchConfirmRef: o, ruleFormRef: f, tableRef: n };
1776
+ }, qe = { class: "dialog-footer" }, Qe = /* @__PURE__ */ N({
1783
1777
  __name: "switchConfirm",
1784
1778
  props: {
1785
1779
  size: {}
1786
1780
  },
1787
1781
  setup(i, { expose: o }) {
1788
- const f = J(!1), n = J("确认修改"), a = J("确认要修改状态吗?");
1782
+ const f = J(!1), n = J("确认修改"), l = J("确认要修改状态吗?");
1789
1783
  let t = null, e = null;
1790
- const r = (p) => (p?.title && (n.value = p.title), p?.content && (a.value = p.content), f.value = !0, new Promise((u, k) => {
1784
+ const r = (p) => (p?.title && (n.value = p.title), p?.content && (l.value = p.content), f.value = !0, new Promise((u, k) => {
1791
1785
  t = u, e = k;
1792
1786
  })), s = () => {
1793
1787
  f.value = !1, t?.(!0), t = null, e = null;
@@ -1798,7 +1792,7 @@ const K = M.EDialog, qe = (i) => {
1798
1792
  open: r
1799
1793
  }), (p, u) => {
1800
1794
  const k = ee("el-form");
1801
- return d(), y(l(ne), {
1795
+ return d(), y(a(ie), {
1802
1796
  modelValue: f.value,
1803
1797
  "onUpdate:modelValue": u[0] || (u[0] = (h) => f.value = h),
1804
1798
  title: n.value,
@@ -1808,14 +1802,14 @@ const K = M.EDialog, qe = (i) => {
1808
1802
  footer: g(() => [
1809
1803
  O(k, { size: p.size }, {
1810
1804
  default: g(() => [
1811
- U("span", Qe, [
1812
- O(l(T), { onClick: m }, {
1805
+ U("span", qe, [
1806
+ O(a(T), { onClick: m }, {
1813
1807
  default: g(() => u[1] || (u[1] = [
1814
1808
  E("取消")
1815
1809
  ])),
1816
1810
  _: 1
1817
1811
  }),
1818
- O(l(T), {
1812
+ O(a(T), {
1819
1813
  type: "primary",
1820
1814
  onClick: s
1821
1815
  }, {
@@ -1830,7 +1824,7 @@ const K = M.EDialog, qe = (i) => {
1830
1824
  }, 8, ["size"])
1831
1825
  ]),
1832
1826
  default: g(() => [
1833
- U("div", null, S(a.value), 1)
1827
+ U("div", null, S(l.value), 1)
1834
1828
  ]),
1835
1829
  _: 1
1836
1830
  }, 8, ["modelValue", "title"]);
@@ -1838,74 +1832,74 @@ const K = M.EDialog, qe = (i) => {
1838
1832
  }
1839
1833
  }), Y = (i, o) => {
1840
1834
  const f = i.__vccOpts || i;
1841
- for (const [n, a] of o)
1842
- f[n] = a;
1835
+ for (const [n, l] of o)
1836
+ f[n] = l;
1843
1837
  return f;
1844
- }, Xe = {}, Ye = {
1838
+ }, Ge = {}, Xe = {
1845
1839
  xmlns: "http://www.w3.org/2000/svg",
1846
1840
  viewBox: "0 0 1024 1024"
1847
1841
  };
1848
- function Ze(i, o) {
1849
- return d(), b("svg", Ye, o[0] || (o[0] = [
1842
+ function Ye(i, o) {
1843
+ return d(), b("svg", Xe, o[0] || (o[0] = [
1850
1844
  U("path", {
1851
1845
  fill: "currentColor",
1852
1846
  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"
1853
1847
  }, null, -1)
1854
1848
  ]));
1855
1849
  }
1856
- const xe = /* @__PURE__ */ Y(Xe, [["render", Ze]]), _e = ["innerHTML"], et = /* @__PURE__ */ N({
1850
+ const Ze = /* @__PURE__ */ Y(Ge, [["render", Ye]]), xe = ["innerHTML"], _e = /* @__PURE__ */ N({
1857
1851
  __name: "text",
1858
1852
  props: {
1859
1853
  content: {},
1860
1854
  value: {}
1861
1855
  },
1862
1856
  setup(i) {
1863
- const o = i, f = ge(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1864
- return (n, a) => typeof f.value == "object" ? (d(), y(q(f.value), { key: 0 })) : (d(), b("div", {
1857
+ const o = i, f = be(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1858
+ return (n, l) => typeof f.value == "object" ? (d(), y(q(f.value), { key: 0 })) : (d(), b("div", {
1865
1859
  key: 1,
1866
1860
  innerHTML: f.value
1867
- }, null, 8, _e));
1861
+ }, null, 8, xe));
1868
1862
  }
1869
- }), tt = {}, ot = {
1863
+ }), et = {}, tt = {
1870
1864
  "data-v-58697b5c": "",
1871
1865
  xmlns: "http://www.w3.org/2000/svg",
1872
1866
  viewBox: "0 0 1024 1024"
1873
1867
  };
1874
- function at(i, o) {
1875
- return d(), b("svg", ot, o[0] || (o[0] = [
1868
+ function ot(i, o) {
1869
+ return d(), b("svg", tt, o[0] || (o[0] = [
1876
1870
  U("path", {
1877
1871
  fill: "currentColor",
1878
1872
  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"
1879
1873
  }, null, -1)
1880
1874
  ]));
1881
1875
  }
1882
- const lt = /* @__PURE__ */ Y(tt, [["render", at]]), nt = {}, it = {
1876
+ const at = /* @__PURE__ */ Y(et, [["render", ot]]), lt = {}, nt = {
1883
1877
  "data-v-58697b5c": "",
1884
1878
  xmlns: "http://www.w3.org/2000/svg",
1885
1879
  viewBox: "0 0 1024 1024"
1886
1880
  };
1887
- function rt(i, o) {
1888
- return d(), b("svg", it, o[0] || (o[0] = [
1881
+ function it(i, o) {
1882
+ return d(), b("svg", nt, o[0] || (o[0] = [
1889
1883
  U("path", {
1890
1884
  fill: "currentColor",
1891
1885
  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"
1892
1886
  }, null, -1)
1893
1887
  ]));
1894
1888
  }
1895
- const st = /* @__PURE__ */ Y(nt, [["render", rt]]), dt = {}, ut = {
1889
+ const rt = /* @__PURE__ */ Y(lt, [["render", it]]), st = {}, dt = {
1896
1890
  "data-v-58697b5c": "",
1897
1891
  xmlns: "http://www.w3.org/2000/svg",
1898
1892
  viewBox: "0 0 1024 1024"
1899
1893
  };
1900
- function ft(i, o) {
1901
- return d(), b("svg", ut, o[0] || (o[0] = [
1894
+ function ut(i, o) {
1895
+ return d(), b("svg", dt, o[0] || (o[0] = [
1902
1896
  U("path", {
1903
1897
  fill: "currentColor",
1904
1898
  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"
1905
1899
  }, null, -1)
1906
1900
  ]));
1907
1901
  }
1908
- const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-center table-header-label inline" }, mt = { class: "table-header-tooltip" }, ht = ["innerHTML"], yt = ["onClick"], gt = { key: 1 }, bt = ["onClick", "innerHTML"], wt = /* @__PURE__ */ N({
1902
+ const ft = /* @__PURE__ */ Y(st, [["render", ut]]), pt = { class: "row flex-center table-header-label inline" }, ct = { class: "table-header-tooltip" }, mt = ["innerHTML"], ht = ["onClick"], yt = { key: 1 }, gt = ["onClick", "innerHTML"], bt = /* @__PURE__ */ N({
1909
1903
  __name: "tableColumn",
1910
1904
  props: {
1911
1905
  conf: {},
@@ -1913,14 +1907,14 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1913
1907
  option: {}
1914
1908
  },
1915
1909
  setup(i) {
1916
- const o = M.isFun, f = Ue().type;
1917
- return (n, a) => {
1910
+ const o = M.isFun, f = Oe().type;
1911
+ return (n, l) => {
1918
1912
  const t = ee("el-tooltip");
1919
1913
  return d(!0), b(D, null, A(n.columnList, (e) => (d(), b(D, {
1920
1914
  key: e.key
1921
1915
  }, [
1922
- n.conf.table.column.show.list.includes(e.key) && l(o)(e.show?.table, n.conf.table.data) ? (d(), b(D, { key: 0 }, [
1923
- e.table?.header?.groupKey === void 0 || e.table.header.show ? (d(), y(l(oe), C({
1916
+ n.conf.table.column.show.list.includes(e.key) && (e.show?.table === void 0 || a(o)(e.show?.table, n.conf.table.data)) ? (d(), b(D, { key: 0 }, [
1917
+ e.table?.header?.groupKey === void 0 || e.table.header.show ? (d(), y(a(oe), C({
1924
1918
  key: 0,
1925
1919
  prop: e.key,
1926
1920
  label: e.label,
@@ -1928,7 +1922,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1928
1922
  }, e.table), {
1929
1923
  header: g(() => [
1930
1924
  V(n.$slots, "table-header-" + e.key, { item: e }, () => [
1931
- U("div", ct, [
1925
+ U("div", pt, [
1932
1926
  e.table?.header?.tooltip ? (d(), y(t, {
1933
1927
  key: 0,
1934
1928
  effect: "dark",
@@ -1937,11 +1931,11 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1937
1931
  content: g(() => [
1938
1932
  U("div", {
1939
1933
  innerHTML: e.table?.header?.tooltip
1940
- }, null, 8, ht)
1934
+ }, null, 8, mt)
1941
1935
  ]),
1942
1936
  default: g(() => [
1943
- U("span", mt, [
1944
- O(lt)
1937
+ U("span", ct, [
1938
+ O(at)
1945
1939
  ])
1946
1940
  ]),
1947
1941
  _: 2
@@ -1950,7 +1944,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1950
1944
  e.table?.header?.group !== void 0 ? (d(), b("span", {
1951
1945
  key: 1,
1952
1946
  class: "table-header-plus",
1953
- onClick: Se(
1947
+ onClick: Ue(
1954
1948
  () => {
1955
1949
  e.table.header.group = !e.table.header.group, n.columnList.forEach((r) => {
1956
1950
  r.table?.header?.groupKey === e.key && (r.table.header.show = !e.table.header.group);
@@ -1959,15 +1953,15 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1959
1953
  ["stop"]
1960
1954
  )
1961
1955
  }, [
1962
- e.table.header.group ? (d(), y(st, { key: 0 })) : (d(), y(pt, { key: 1 }))
1963
- ], 8, yt)) : v("", !0)
1956
+ e.table.header.group ? (d(), y(rt, { key: 0 })) : (d(), y(ft, { key: 1 }))
1957
+ ], 8, ht)) : v("", !0)
1964
1958
  ])
1965
1959
  ])
1966
1960
  ]),
1967
1961
  default: g(({ row: r }) => [
1968
1962
  e.children ? (d(), b(D, { key: 0 }, [
1969
- a[0] || (a[0] = E("   ")),
1970
- (d(), y(q(l(f)), {
1963
+ l[0] || (l[0] = E("   ")),
1964
+ (d(), y(q(a(f)), {
1971
1965
  conf: n.conf,
1972
1966
  columnList: e.children,
1973
1967
  option: n.option
@@ -1989,7 +1983,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1989
1983
  row: r,
1990
1984
  item: e
1991
1985
  }),
1992
- e.type === "input" ? (d(), y(l(_), C({
1986
+ e.type === "input" ? (d(), y(a(_), C({
1993
1987
  key: 0,
1994
1988
  modelValue: r[e.key],
1995
1989
  "onUpdate:modelValue": (s) => r[e.key] = s,
@@ -2004,7 +1998,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2004
1998
  ]),
2005
1999
  key: "0"
2006
2000
  } : void 0
2007
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), y(l(X), C({
2001
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), y(a(X), C({
2008
2002
  key: 1,
2009
2003
  modelValue: r[e.key],
2010
2004
  "onUpdate:modelValue": (s) => r[e.key] = s,
@@ -2013,14 +2007,14 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2013
2007
  ref_for: !0
2014
2008
  }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r))), {
2015
2009
  default: g(() => [
2016
- (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), y(l(W), {
2010
+ (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), y(a(W), {
2017
2011
  key: s.value,
2018
2012
  label: s.label,
2019
2013
  value: s.value
2020
2014
  }, null, 8, ["label", "value"]))), 128))
2021
2015
  ]),
2022
2016
  _: 2
2023
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (d(), y(l(Z), C({
2017
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (d(), y(a(Z), C({
2024
2018
  key: 2,
2025
2019
  modelValue: r[e.key],
2026
2020
  "onUpdate:modelValue": (s) => r[e.key] = s,
@@ -2033,8 +2027,8 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2033
2027
  item: e
2034
2028
  })
2035
2029
  ], 2)) : (d(), b(D, { key: 1 }, [
2036
- n.conf.update.type === l(M).EDialog.Update && l(o)(e.show?.form, n.conf.update.form, l(M).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === r[n.option.table?.rowKey] && (e.type === "input" || e.type === "select") ? (d(), b(D, { key: 0 }, [
2037
- e.type === "input" ? (d(), y(l(_), C({
2030
+ n.conf.update.type === a(M).EDialog.Update && a(o)(e.show?.form, n.conf.update.form, a(M).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === r[n.option.table?.rowKey] && (e.type === "input" || e.type === "select") ? (d(), b(D, { key: 0 }, [
2031
+ e.type === "input" ? (d(), y(a(_), C({
2038
2032
  key: 0,
2039
2033
  modelValue: n.conf.update.form[e.key],
2040
2034
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
@@ -2048,7 +2042,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2048
2042
  ]),
2049
2043
  key: "0"
2050
2044
  } : void 0
2051
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), y(l(X), C({
2045
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), y(a(X), C({
2052
2046
  key: 1,
2053
2047
  modelValue: n.conf.update.form[e.key],
2054
2048
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
@@ -2056,14 +2050,14 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2056
2050
  ref_for: !0
2057
2051
  }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r)), { style: { width: "100%" } }), {
2058
2052
  default: g(() => [
2059
- (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), y(l(W), {
2053
+ (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), y(a(W), {
2060
2054
  key: s.value,
2061
2055
  label: s.label,
2062
2056
  value: s.value
2063
2057
  }, null, 8, ["label", "value"]))), 128))
2064
2058
  ]),
2065
2059
  _: 2
2066
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (d(), y(l(Z), C({
2060
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (d(), y(a(Z), C({
2067
2061
  key: 2,
2068
2062
  modelValue: n.conf.update.form[e.key],
2069
2063
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
@@ -2076,29 +2070,29 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2076
2070
  row: r,
2077
2071
  item: e
2078
2072
  }, () => [
2079
- l(j).customComponent[e.type ?? ""]?.table ? (d(), y(q(l(j).customComponent[e.type ?? ""]?.table), C({
2073
+ a(L).customComponent[e.type ?? ""]?.table ? (d(), y(q(a(L).customComponent[e.type ?? ""]?.table), C({
2080
2074
  key: 0,
2081
2075
  modelValue: r[e.key],
2082
2076
  "onUpdate:modelValue": (s) => r[e.key] = s,
2083
2077
  ref_for: !0
2084
2078
  }, e.options?.[e.type ?? ""], z(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (d(), b(D, { key: 1 }, [
2085
- e.options?.switch?.tableConfig?.change ? (d(), y(l(Z), C({
2079
+ e.options?.switch?.tableConfig?.change ? (d(), y(a(Z), C({
2086
2080
  key: 0,
2087
2081
  modelValue: r[e.key],
2088
2082
  "onUpdate:modelValue": (s) => r[e.key] = s,
2089
2083
  loading: e.options?.switch?.loadingMap?.[r[n.option.table?.rowKey]]?.loading,
2090
2084
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, r),
2091
2085
  ref_for: !0
2092
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (d(), b("span", gt, S(r[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2086
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (d(), b("span", yt, S(r[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2093
2087
  ], 64)) : (d(), b("span", {
2094
2088
  key: 2,
2095
- style: ye({
2089
+ style: ge({
2096
2090
  "--table-text-click-color": e.table?.click?.color
2097
2091
  }),
2098
2092
  class: I({ "table-text-click": e.table?.click?.callback }),
2099
2093
  onClick: (s) => e.table?.click?.callback?.(r),
2100
2094
  innerHTML: e.table?.format ? e.table?.format(r) : r[e.key]
2101
- }, null, 14, bt))
2095
+ }, null, 14, gt))
2102
2096
  ])
2103
2097
  ], 64))
2104
2098
  ], 64))
@@ -2109,34 +2103,34 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2109
2103
  ], 64))), 128);
2110
2104
  };
2111
2105
  }
2112
- }), kt = {
2106
+ }), wt = {
2113
2107
  class: "row form-item-content",
2114
2108
  style: { width: "100%" }
2115
- }, vt = { class: "col column form-item-content-item" }, Ct = { class: "col" }, Vt = ["innerHTML"], zt = /* @__PURE__ */ N({
2109
+ }, kt = { class: "col column form-item-content-item" }, vt = { class: "col" }, Ct = ["innerHTML"], Vt = /* @__PURE__ */ N({
2116
2110
  __name: "formColumn",
2117
2111
  props: {
2118
2112
  conf: {},
2119
2113
  item: {}
2120
2114
  },
2121
2115
  setup(i) {
2122
- return (o, f) => (d(), y(l(ae), {
2116
+ return (o, f) => (d(), y(a(ae), {
2123
2117
  label: o.item.item.text?.form?.label ?? o.item.item.label,
2124
2118
  prop: o.item.item.key,
2125
2119
  "label-width": o.item.item.text?.form?.label == "" ? 0 : o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
2126
2120
  }, {
2127
2121
  default: g(() => [
2128
- U("div", kt, [
2122
+ U("div", wt, [
2129
2123
  V(o.$slots, "form-" + o.item.item.key + "-start", {
2130
2124
  row: o.conf.update.form,
2131
2125
  item: o.item.item
2132
2126
  }),
2133
- U("div", vt, [
2134
- U("div", Ct, [
2127
+ U("div", kt, [
2128
+ U("div", vt, [
2135
2129
  V(o.$slots, "form-" + o.item.item.key, {
2136
2130
  row: o.conf.update.form,
2137
2131
  item: o.item.item
2138
2132
  }, () => [
2139
- o.item.item.type === "input" ? (d(), y(l(_), C({
2133
+ o.item.item.type === "input" ? (d(), y(a(_), C({
2140
2134
  key: 0,
2141
2135
  modelValue: o.conf.update.form[o.item.item.key],
2142
2136
  "onUpdate:modelValue": f[0] || (f[0] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2150,13 +2144,13 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2150
2144
  ]),
2151
2145
  key: "0"
2152
2146
  } : void 0
2153
- ]), 1040, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (d(), y(l(Z), C({
2147
+ ]), 1040, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (d(), y(a(Z), C({
2154
2148
  key: 1,
2155
2149
  modelValue: o.conf.update.form[o.item.item.key],
2156
2150
  "onUpdate:modelValue": f[1] || (f[1] = (n) => o.conf.update.form[o.item.item.key] = n)
2157
2151
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2158
2152
  disabled: o.conf.update.getDisabled(o.item.item)
2159
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (d(), y(l(X), C({
2153
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (d(), y(a(X), C({
2160
2154
  key: 2,
2161
2155
  modelValue: o.conf.update.form[o.item.item.key],
2162
2156
  "onUpdate:modelValue": f[2] || (f[2] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2165,13 +2159,13 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2165
2159
  style: { width: "100%" }
2166
2160
  }), {
2167
2161
  default: g(() => [
2168
- (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(l(W), C({
2162
+ (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(a(W), C({
2169
2163
  key: n.value,
2170
2164
  ref_for: !0
2171
2165
  }, n, z(n.on || {})), null, 16))), 128))
2172
2166
  ]),
2173
2167
  _: 1
2174
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), y(l(ie), C({
2168
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), y(a(re), C({
2175
2169
  key: 3,
2176
2170
  modelValue: o.conf.update.form[o.item.item.key],
2177
2171
  "onUpdate:modelValue": f[3] || (f[3] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2180,33 +2174,33 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2180
2174
  style: { width: "100%" }
2181
2175
  }), {
2182
2176
  default: g(() => [
2183
- (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(l(re), C({
2177
+ (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(a(se), C({
2184
2178
  key: n.value,
2185
2179
  ref_for: !0
2186
2180
  }, n, z(n.on || {})), null, 16))), 128))
2187
2181
  ]),
2188
2182
  _: 1
2189
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), y(ue, C({
2183
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), y(fe, C({
2190
2184
  key: 4,
2191
2185
  row: o.conf.update.form,
2192
2186
  field: o.item.item.key
2193
2187
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2194
2188
  disabled: o.conf.update.getDisabled(o.item.item),
2195
2189
  style: { width: "100%" }
2196
- }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), y(l(me), C({
2190
+ }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), y(a(he), C({
2197
2191
  key: 5,
2198
2192
  modelValue: o.conf.update.form[o.item.item.key],
2199
2193
  "onUpdate:modelValue": f[4] || (f[4] = (n) => o.conf.update.form[o.item.item.key] = n)
2200
2194
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2201
2195
  disabled: o.conf.update.getDisabled(o.item.item),
2202
2196
  style: { width: "100%" }
2203
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), y(l(se), C({
2197
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), y(a(de), C({
2204
2198
  key: 6,
2205
2199
  modelValue: o.conf.update.form[o.item.item.key],
2206
2200
  "onUpdate:modelValue": f[5] || (f[5] = (n) => o.conf.update.form[o.item.item.key] = n)
2207
2201
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2208
2202
  disabled: o.conf.update.getDisabled(o.item.item)
2209
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (l(j).customComponent[o.item.item.type] || l(j).customComponent[o.item.item.type]?.form) ? (d(), y(q(l(j).customComponent[o.item.item.type]?.form || l(j).customComponent[o.item.item.type]), C({
2203
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (a(L).customComponent[o.item.item.type] || a(L).customComponent[o.item.item.type]?.form) ? (d(), y(q(a(L).customComponent[o.item.item.type]?.form || a(L).customComponent[o.item.item.type]), C({
2210
2204
  key: 7,
2211
2205
  modelValue: o.conf.update.form[o.item.item.key],
2212
2206
  "onUpdate:modelValue": f[6] || (f[6] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2227,7 +2221,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2227
2221
  key: 0,
2228
2222
  class: "form-tip-text",
2229
2223
  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
2230
- }, null, 8, Vt)) : v("", !0)
2224
+ }, null, 8, Ct)) : v("", !0)
2231
2225
  ])
2232
2226
  ]),
2233
2227
  V(o.$slots, "form-" + o.item.item.key + "-end", {
@@ -2239,31 +2233,31 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2239
2233
  _: 3
2240
2234
  }, 8, ["label", "prop", "label-width"]));
2241
2235
  }
2242
- }), $t = {}, Dt = {
2236
+ }), zt = {}, $t = {
2243
2237
  xmlns: "http://www.w3.org/2000/svg",
2244
2238
  viewBox: "64 64 896 896"
2245
2239
  };
2246
- function Et(i, o) {
2247
- return d(), b("svg", Dt, o[0] || (o[0] = [
2240
+ function Dt(i, o) {
2241
+ return d(), b("svg", $t, o[0] || (o[0] = [
2248
2242
  U("path", {
2249
2243
  fill: "currentColor",
2250
2244
  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"
2251
2245
  }, null, -1)
2252
2246
  ]));
2253
2247
  }
2254
- const Ot = /* @__PURE__ */ Y($t, [["render", Et]]), Ut = {}, St = {
2248
+ const Et = /* @__PURE__ */ Y(zt, [["render", Dt]]), Ot = {}, Ut = {
2255
2249
  xmlns: "http://www.w3.org/2000/svg",
2256
2250
  viewBox: "64 64 896 896"
2257
2251
  };
2258
- function Mt(i, o) {
2259
- return d(), b("svg", St, o[0] || (o[0] = [
2252
+ function St(i, o) {
2253
+ return d(), b("svg", Ut, o[0] || (o[0] = [
2260
2254
  U("path", {
2261
2255
  fill: "currentColor",
2262
2256
  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"
2263
2257
  }, null, -1)
2264
2258
  ]));
2265
2259
  }
2266
- const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2260
+ const Mt = /* @__PURE__ */ Y(Ot, [["render", St]]), me = /* @__PURE__ */ N({
2267
2261
  __name: "searchField",
2268
2262
  props: {
2269
2263
  item: {},
@@ -2271,100 +2265,100 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2271
2265
  type: {}
2272
2266
  },
2273
2267
  setup(i) {
2274
- const o = i, f = ge({
2268
+ const o = i, f = be({
2275
2269
  get: () => o.conf.search.form?.[o.item?.key],
2276
2270
  set: (n) => {
2277
2271
  o.item?.key !== void 0 && (o.conf.search.form[o.item.key] = n);
2278
2272
  }
2279
2273
  });
2280
- return (n, a) => l(j).customComponent[n.type ?? ""]?.search ? (d(), y(q(l(j).customComponent[n.type ?? ""]?.search), C({
2274
+ return (n, l) => a(L).customComponent[n.type ?? ""]?.search ? (d(), y(q(a(L).customComponent[n.type ?? ""]?.search), C({
2281
2275
  key: 0,
2282
2276
  modelValue: f.value,
2283
- "onUpdate:modelValue": a[0] || (a[0] = (t) => f.value = t)
2284
- }, n.item.options?.search?.[n.type ?? ""], z(n.item.options?.search?.[n.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : n.type === "input" ? (d(), y(l(_), C({
2277
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => f.value = t)
2278
+ }, n.item.options?.search?.[n.type ?? ""], z(n.item.options?.search?.[n.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : n.type === "input" ? (d(), y(a(_), C({
2285
2279
  key: 1,
2286
2280
  modelValue: f.value,
2287
- "onUpdate:modelValue": a[1] || (a[1] = (t) => f.value = t),
2281
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => f.value = t),
2288
2282
  placeholder: n.conf.search.getPlaceholder(n.item),
2289
2283
  clearable: "",
2290
2284
  disabled: n.item.disabled?.search
2291
- }, n.item.options?.search?.input || n.item.options?.input, z(n.item.options?.search?.input?.on || n.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (d(), y(l(X), C({
2285
+ }, n.item.options?.search?.input || n.item.options?.input, z(n.item.options?.search?.input?.on || n.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (d(), y(a(X), C({
2292
2286
  key: 2,
2293
2287
  modelValue: f.value,
2294
- "onUpdate:modelValue": a[2] || (a[2] = (t) => f.value = t),
2295
- placeholder: n.conf.search.getPlaceholder(n.item, l(w).tCurd("placeholderSelect")),
2288
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => f.value = t),
2289
+ placeholder: n.conf.search.getPlaceholder(n.item, a(w).tCurd("placeholderSelect")),
2296
2290
  clearable: "",
2297
2291
  disabled: n.item.disabled?.search
2298
2292
  }, n.item.options?.search?.switch || n.item.options?.switch, z(n.item.options?.search?.switch?.on || n.item.options?.switch?.on || {})), {
2299
2293
  default: g(() => [
2300
- (d(), y(l(W), {
2294
+ (d(), y(a(W), {
2301
2295
  key: n.item.options?.switch?.activeValue,
2302
2296
  label: n.item.options?.switch?.activeText,
2303
2297
  value: n.item.options?.switch?.activeValue
2304
2298
  }, null, 8, ["label", "value"])),
2305
- (d(), y(l(W), {
2299
+ (d(), y(a(W), {
2306
2300
  key: n.item.options?.switch?.inactiveValue,
2307
2301
  label: n.item.options?.switch?.inactiveText,
2308
2302
  value: n.item.options?.switch?.inactiveValue
2309
2303
  }, null, 8, ["label", "value"]))
2310
2304
  ]),
2311
2305
  _: 1
2312
- }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "select" ? (d(), y(l(X), C({
2306
+ }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "select" ? (d(), y(a(X), C({
2313
2307
  key: 3,
2314
2308
  modelValue: f.value,
2315
- "onUpdate:modelValue": a[3] || (a[3] = (t) => f.value = t),
2316
- placeholder: n.conf.search.getPlaceholder(n.item, l(w).tCurd("placeholderSelect")),
2309
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => f.value = t),
2310
+ placeholder: n.conf.search.getPlaceholder(n.item, a(w).tCurd("placeholderSelect")),
2317
2311
  clearable: "",
2318
2312
  disabled: n.item.disabled?.search
2319
2313
  }, n.item.options?.search?.select || n.item.options?.select, z(n.item.options?.search?.select?.on || n.item.options?.select?.on || {})), {
2320
2314
  default: g(() => [
2321
- (d(!0), b(D, null, A(n.item.options?.search?.select?.data || n.item.options?.select?.data || [], (t) => (d(), y(l(W), {
2315
+ (d(!0), b(D, null, A(n.item.options?.search?.select?.data || n.item.options?.select?.data || [], (t) => (d(), y(a(W), {
2322
2316
  key: t.value,
2323
2317
  label: t.label,
2324
2318
  value: t.value
2325
2319
  }, null, 8, ["label", "value"]))), 128))
2326
2320
  ]),
2327
2321
  _: 1
2328
- }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), y(l(ie), C({
2322
+ }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), y(a(re), C({
2329
2323
  key: 4,
2330
2324
  modelValue: f.value,
2331
- "onUpdate:modelValue": a[4] || (a[4] = (t) => f.value = t),
2325
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => f.value = t),
2332
2326
  disabled: n.item.disabled?.search
2333
2327
  }, n.item.options?.search?.radio || n.item.options?.radio, z(n.item.options?.search?.radio?.on || n.item.options?.radio?.on || {})), {
2334
2328
  default: g(() => [
2335
- (d(!0), b(D, null, A(n.item.options?.radio?.data, (t) => (d(), y(l(re), {
2329
+ (d(!0), b(D, null, A(n.item.options?.radio?.data, (t) => (d(), y(a(se), {
2336
2330
  key: t.value,
2337
2331
  label: t.label,
2338
2332
  value: t.value
2339
2333
  }, null, 8, ["label", "value"]))), 128))
2340
2334
  ]),
2341
2335
  _: 1
2342
- }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), y(l(se), C({
2336
+ }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), y(a(de), C({
2343
2337
  key: 5,
2344
2338
  modelValue: f.value,
2345
- "onUpdate:modelValue": a[5] || (a[5] = (t) => f.value = t),
2339
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => f.value = t),
2346
2340
  disabled: n.item.disabled?.search
2347
- }, n.item.options?.search?.datetime || n.item.options?.datetime, z(n.item.options?.search?.datetime?.on || n.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : n.type && l(j).customComponent[n.type] ? (d(), y(q(l(j).customComponent[n.type]), C({
2341
+ }, n.item.options?.search?.datetime || n.item.options?.datetime, z(n.item.options?.search?.datetime?.on || n.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : n.type && a(L).customComponent[n.type] ? (d(), y(q(a(L).customComponent[n.type]), C({
2348
2342
  key: 6,
2349
2343
  modelValue: f.value,
2350
- "onUpdate:modelValue": a[6] || (a[6] = (t) => f.value = t)
2344
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => f.value = t)
2351
2345
  }, n.item.options?.search?.[n.type] || n.item.options?.[n.type], z(n.item.options?.search?.[n.type]?.on || n.item.options?.[n.type]?.on || {}), {
2352
2346
  disabled: n.item.disabled?.search
2353
2347
  }), null, 16, ["modelValue", "disabled"])) : v("", !0);
2354
2348
  }
2355
- }), At = {
2349
+ }), Ft = {
2356
2350
  key: 0,
2357
2351
  class: "relative curd-search fit-width"
2358
- }, Tt = { class: "mb-10 flex justify-between items-center fit-width" }, jt = {
2352
+ }, At = { class: "mb-10 flex justify-between items-center fit-width" }, Tt = {
2359
2353
  class: "flex items-center",
2360
2354
  style: { gap: "10px" }
2361
- }, Lt = { key: 0 }, Bt = { key: 1 }, Rt = { key: 2 }, It = { class: "export-btn" }, Ht = {
2355
+ }, jt = { key: 0 }, Lt = { key: 1 }, Bt = { key: 2 }, Rt = { class: "export-btn" }, It = {
2362
2356
  key: 1,
2363
2357
  class: "export-btn"
2364
- }, Kt = {
2358
+ }, Ht = {
2365
2359
  class: "flex items-center table-tools-right",
2366
2360
  style: { gap: "10px" }
2367
- }, Pt = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, Nt = { class: "dialog-footer" }, Wt = { key: 0 }, Jt = { key: 1 }, qt = { class: "dialog-footer" }, Qt = /* @__PURE__ */ N({
2361
+ }, Kt = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, Pt = { class: "dialog-footer" }, Nt = { key: 0 }, Wt = { key: 1 }, Jt = { class: "dialog-footer" }, qt = /* @__PURE__ */ N({
2368
2362
  __name: "index",
2369
2363
  props: {
2370
2364
  /**
@@ -2387,11 +2381,11 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2387
2381
  }
2388
2382
  },
2389
2383
  setup(i, { expose: o }) {
2390
- const f = M.EDialog, n = i, a = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = qe(n);
2384
+ const f = M.EDialog, n = i, l = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = Je(n);
2391
2385
  return o({
2392
2386
  conf: t
2393
2387
  }), (m, p) => {
2394
- const u = ee("el-tooltip"), k = Me("loading");
2388
+ const u = ee("el-tooltip"), k = Se("loading");
2395
2389
  return d(), b("div", {
2396
2390
  class: I(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
2397
2391
  }, [
@@ -2403,76 +2397,76 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2403
2397
  U("div", {
2404
2398
  class: I(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
2405
2399
  }, [
2406
- i.option.search?.show !== !1 ? (d(), b("div", At, [
2407
- O(l(Q), {
2408
- model: l(t).search.form,
2400
+ i.option.search?.show !== !1 ? (d(), b("div", Ft, [
2401
+ O(a(Q), {
2402
+ model: a(t).search.form,
2409
2403
  inline: "",
2410
2404
  size: i.option.size?.search
2411
2405
  }, {
2412
2406
  default: g(() => [
2413
2407
  V(m.$slots, "search-start", {
2414
- row: l(t).search.form
2408
+ row: a(t).search.form
2415
2409
  }),
2416
- (d(!0), b(D, null, A(l(t).search.column.list, (h) => (d(), b(D, {
2410
+ (d(!0), b(D, null, A(a(t).search.column.list, (h) => (d(), b(D, {
2417
2411
  key: h.key
2418
2412
  }, [
2419
2413
  V(m.$slots, "search-" + h.key + "-start", {
2420
- row: l(t).search.form
2414
+ row: a(t).search.form
2421
2415
  }),
2422
- (typeof h.show?.search == "function" ? h.show?.search(l(t).search.form) : h.show?.search) ? (d(), y(l(ae), {
2416
+ (typeof h.show?.search == "function" ? h.show?.search(a(t).search.form) : h.show?.search) ? (d(), y(a(ae), {
2423
2417
  key: 0,
2424
2418
  label: h.text?.search?.label ?? h.label
2425
2419
  }, {
2426
2420
  default: g(() => [
2427
2421
  V(m.$slots, "search-" + h.key + "-left", {
2428
- row: l(t).search.form
2422
+ row: a(t).search.form
2429
2423
  }),
2430
2424
  V(m.$slots, "search-" + h.key, {
2431
- row: l(t).search.form
2425
+ row: a(t).search.form
2432
2426
  }, () => [
2433
- h.options?.search?.type ? (d(), y(ce, {
2427
+ h.options?.search?.type ? (d(), y(me, {
2434
2428
  key: 0,
2435
2429
  item: h,
2436
- conf: l(t),
2430
+ conf: a(t),
2437
2431
  type: h.options.search.type
2438
- }, null, 8, ["item", "conf", "type"])) : (d(), y(ce, {
2432
+ }, null, 8, ["item", "conf", "type"])) : (d(), y(me, {
2439
2433
  key: 1,
2440
2434
  item: h,
2441
- conf: l(t),
2435
+ conf: a(t),
2442
2436
  type: h.type
2443
2437
  }, null, 8, ["item", "conf", "type"]))
2444
2438
  ]),
2445
2439
  V(m.$slots, "search-" + h.key + "-right", {
2446
- row: l(t).search.form
2440
+ row: a(t).search.form
2447
2441
  })
2448
2442
  ]),
2449
2443
  _: 2
2450
2444
  }, 1032, ["label"])) : v("", !0),
2451
2445
  V(m.$slots, "search-" + h.key + "-end", {
2452
- row: l(t).search.form
2446
+ row: a(t).search.form
2453
2447
  })
2454
2448
  ], 64))), 128)),
2455
2449
  V(m.$slots, "search-center", {
2456
- row: l(t).search.form
2450
+ row: a(t).search.form
2457
2451
  }),
2458
- i.option.tools?.search || i.option.tools?.reset ? (d(), y(l(ae), { key: 0 }, {
2452
+ i.option.tools?.search || i.option.tools?.reset ? (d(), y(a(ae), { key: 0 }, {
2459
2453
  default: g(() => [
2460
- i.option.tools?.search ? (d(), y(l(T), {
2454
+ i.option.tools?.search ? (d(), y(a(T), {
2461
2455
  key: 0,
2462
2456
  type: "primary",
2463
- onClick: l(t).search.submit
2457
+ onClick: a(t).search.submit
2464
2458
  }, {
2465
2459
  default: g(() => [
2466
- E(S(l(w).tCurd("search")), 1)
2460
+ E(S(a(w).tCurd("search")), 1)
2467
2461
  ]),
2468
2462
  _: 1
2469
2463
  }, 8, ["onClick"])) : v("", !0),
2470
- i.option.tools?.reset ? (d(), y(l(T), {
2464
+ i.option.tools?.reset ? (d(), y(a(T), {
2471
2465
  key: 1,
2472
- onClick: l(t).search.reset
2466
+ onClick: a(t).search.reset
2473
2467
  }, {
2474
2468
  default: g(() => [
2475
- E(S(l(w).tCurd("reset")), 1)
2469
+ E(S(a(w).tCurd("reset")), 1)
2476
2470
  ]),
2477
2471
  _: 1
2478
2472
  }, 8, ["onClick"])) : v("", !0)
@@ -2480,84 +2474,84 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2480
2474
  _: 1
2481
2475
  })) : v("", !0),
2482
2476
  V(m.$slots, "search-end", {
2483
- row: l(t).search.form
2477
+ row: a(t).search.form
2484
2478
  })
2485
2479
  ]),
2486
2480
  _: 3
2487
2481
  }, 8, ["model", "size"])
2488
2482
  ])) : v("", !0),
2489
- U("div", Tt, [
2490
- U("div", jt, [
2491
- l(a)(i.option.tools?.add) ? (d(), b("div", Lt, [
2492
- O(l(T), {
2483
+ U("div", At, [
2484
+ U("div", Tt, [
2485
+ a(l)(i.option.tools?.add) ? (d(), b("div", jt, [
2486
+ O(a(T), {
2493
2487
  type: "primary",
2494
- onClick: p[0] || (p[0] = (h) => l(t).update.open(l(f).Add)),
2488
+ onClick: p[0] || (p[0] = (h) => a(t).update.open(a(f).Add)),
2495
2489
  size: i.option.size?.search
2496
2490
  }, {
2497
2491
  default: g(() => [
2498
- E(S(l(w).tCurd("add")), 1)
2492
+ E(S(a(w).tCurd("add")), 1)
2499
2493
  ]),
2500
2494
  _: 1
2501
2495
  }, 8, ["size"])
2502
2496
  ])) : v("", !0),
2503
- i.option.table?.selectable && l(a)(i.option.tools?.delete) ? (d(), b("div", Bt, [
2504
- O(l(T), {
2497
+ i.option.table?.selectable && a(l)(i.option.tools?.delete) ? (d(), b("div", Lt, [
2498
+ O(a(T), {
2505
2499
  type: "danger",
2506
- onClick: p[1] || (p[1] = (h) => l(t).remove.open(l(t).table.selection.list)),
2500
+ onClick: p[1] || (p[1] = (h) => a(t).remove.open(a(t).table.selection.list)),
2507
2501
  size: i.option.size?.search
2508
2502
  }, {
2509
2503
  default: g(() => [
2510
- E(S(l(w).tCurd("delete")), 1)
2504
+ E(S(a(w).tCurd("delete")), 1)
2511
2505
  ]),
2512
2506
  _: 1
2513
2507
  }, 8, ["size"])
2514
2508
  ])) : v("", !0),
2515
- i.option.tools?.expand ? (d(), b("div", Rt, [
2516
- O(l(T), {
2509
+ i.option.tools?.expand ? (d(), b("div", Bt, [
2510
+ O(a(T), {
2517
2511
  type: "warning",
2518
- onClick: p[2] || (p[2] = (h) => l(t).table.expand.all()),
2512
+ onClick: p[2] || (p[2] = (h) => a(t).table.expand.all()),
2519
2513
  size: i.option.size?.search
2520
2514
  }, {
2521
2515
  default: g(() => [
2522
- E(S(l(w).tCurd("expandCollapse")), 1)
2516
+ E(S(a(w).tCurd("expandCollapse")), 1)
2523
2517
  ]),
2524
2518
  _: 1
2525
2519
  }, 8, ["size"])
2526
2520
  ])) : v("", !0),
2527
2521
  i.option.tools?.export?.show ? (d(), b(D, { key: 3 }, [
2528
- i.option.tools?.export?.dropdown?.show ? (d(), y(l($e), {
2522
+ i.option.tools?.export?.dropdown?.show ? (d(), y(a($e), {
2529
2523
  key: 0,
2530
- onCommand: l(t).export.click
2524
+ onCommand: a(t).export.click
2531
2525
  }, {
2532
2526
  dropdown: g(() => [
2533
- O(l(De), {
2527
+ O(a(De), {
2534
2528
  size: i.option.size?.search
2535
2529
  }, {
2536
2530
  default: g(() => [
2537
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || l(a)(i.option.tools?.delete)) ? (d(), y(l(le), {
2531
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(l)(i.option.tools?.delete)) ? (d(), y(a(ne), {
2538
2532
  key: 0,
2539
2533
  command: "select"
2540
2534
  }, {
2541
2535
  default: g(() => [
2542
- E(S(l(w).tCurd("exportSelect")), 1)
2536
+ E(S(a(w).tCurd("exportSelect")), 1)
2543
2537
  ]),
2544
2538
  _: 1
2545
2539
  })) : v("", !0),
2546
- i.option.tools?.export?.dropdown?.page ? (d(), y(l(le), {
2540
+ i.option.tools?.export?.dropdown?.page ? (d(), y(a(ne), {
2547
2541
  key: 1,
2548
2542
  command: "page"
2549
2543
  }, {
2550
2544
  default: g(() => [
2551
- E(S(l(w).tCurd("exportPage")), 1)
2545
+ E(S(a(w).tCurd("exportPage")), 1)
2552
2546
  ]),
2553
2547
  _: 1
2554
2548
  })) : v("", !0),
2555
- i.option.tools?.export?.dropdown?.all ? (d(), y(l(le), {
2549
+ i.option.tools?.export?.dropdown?.all ? (d(), y(a(ne), {
2556
2550
  key: 2,
2557
2551
  command: "all"
2558
2552
  }, {
2559
2553
  default: g(() => [
2560
- E(S(l(w).tCurd("exportAll")), 1)
2554
+ E(S(a(w).tCurd("exportAll")), 1)
2561
2555
  ]),
2562
2556
  _: 1
2563
2557
  })) : v("", !0)
@@ -2566,29 +2560,29 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2566
2560
  }, 8, ["size"])
2567
2561
  ]),
2568
2562
  default: g(() => [
2569
- U("div", It, [
2570
- O(l(T), {
2563
+ U("div", Rt, [
2564
+ O(a(T), {
2571
2565
  type: "warning",
2572
- loading: l(t).export.loading,
2566
+ loading: a(t).export.loading,
2573
2567
  size: i.option.size?.search
2574
2568
  }, {
2575
2569
  default: g(() => [
2576
- E(S(l(w).tCurd("export")), 1)
2570
+ E(S(a(w).tCurd("export")), 1)
2577
2571
  ]),
2578
2572
  _: 1
2579
2573
  }, 8, ["loading", "size"])
2580
2574
  ])
2581
2575
  ]),
2582
2576
  _: 1
2583
- }, 8, ["onCommand"])) : (d(), b("div", Ht, [
2584
- O(l(T), {
2577
+ }, 8, ["onCommand"])) : (d(), b("div", It, [
2578
+ O(a(T), {
2585
2579
  type: "warning",
2586
- loading: l(t).export.loading,
2580
+ loading: a(t).export.loading,
2587
2581
  size: i.option.size?.search,
2588
- onClick: p[3] || (p[3] = (h) => l(t).export.run.start("all"))
2582
+ onClick: p[3] || (p[3] = (h) => a(t).export.run.start("all"))
2589
2583
  }, {
2590
2584
  default: g(() => [
2591
- E(S(l(w).tCurd("export")), 1)
2585
+ E(S(a(w).tCurd("export")), 1)
2592
2586
  ]),
2593
2587
  _: 1
2594
2588
  }, 8, ["loading", "size"])
@@ -2596,36 +2590,36 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2596
2590
  ], 64)) : v("", !0),
2597
2591
  V(m.$slots, "tools-left")
2598
2592
  ]),
2599
- U("div", Kt, [
2593
+ U("div", Ht, [
2600
2594
  V(m.$slots, "tools-right"),
2601
- l(t).page.showTools ? (d(), y(l(fe), C({
2595
+ a(t).page.showTools ? (d(), y(a(pe), C({
2602
2596
  key: 0,
2603
- "current-page": l(t).page.num,
2604
- "onUpdate:currentPage": p[4] || (p[4] = (h) => l(t).page.num = h),
2605
- "page-size": l(t).page.size,
2606
- "onUpdate:pageSize": p[5] || (p[5] = (h) => l(t).page.size = h),
2597
+ "current-page": a(t).page.num,
2598
+ "onUpdate:currentPage": p[4] || (p[4] = (h) => a(t).page.num = h),
2599
+ "page-size": a(t).page.size,
2600
+ "onUpdate:pageSize": p[5] || (p[5] = (h) => a(t).page.size = h),
2607
2601
  background: "",
2608
- "page-sizes": l(t).page.sizeList,
2609
- "pager-count": l(t).page.pagerCount,
2610
- layout: l(t).page.layout,
2611
- total: l(t).page.total,
2602
+ "page-sizes": a(t).page.sizeList,
2603
+ "pager-count": a(t).page.pagerCount,
2604
+ layout: a(t).page.layout,
2605
+ total: a(t).page.total,
2612
2606
  size: i.option.size?.table,
2613
- onSizeChange: l(t).table.getList,
2614
- onCurrentChange: l(t).table.getList
2607
+ onSizeChange: a(t).table.getList,
2608
+ onCurrentChange: a(t).table.getList
2615
2609
  }, i.option.page?.pagination || {}, z(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0),
2616
2610
  i.option.tools?.expandColumn === void 0 || i.option.tools?.expandColumn ? (d(), y(u, {
2617
2611
  key: 1,
2618
2612
  effect: "dark",
2619
- content: l(t).table.header.group.expand ? l(w).tCurd("mergeColumn") : l(w).tCurd("expandColumn"),
2613
+ content: a(t).table.header.group.expand ? a(w).tCurd("mergeColumn") : a(w).tCurd("expandColumn"),
2620
2614
  placement: "top"
2621
2615
  }, {
2622
2616
  default: g(() => [
2623
2617
  U("div", {
2624
2618
  class: I(["refresh-btn", [i.option.size?.search]]),
2625
2619
  onClick: p[6] || (p[6] = //@ts-ignore
2626
- (...h) => l(t).table.header.group.toggleExpandAll && l(t).table.header.group.toggleExpandAll(...h))
2620
+ (...h) => a(t).table.header.group.toggleExpandAll && a(t).table.header.group.toggleExpandAll(...h))
2627
2621
  }, [
2628
- l(t).table.header.group.expand ? (d(), y(Ot, { key: 0 })) : (d(), y(Ft, { key: 1 }))
2622
+ a(t).table.header.group.expand ? (d(), y(Et, { key: 0 })) : (d(), y(Mt, { key: 1 }))
2629
2623
  ], 2)
2630
2624
  ]),
2631
2625
  _: 1
@@ -2634,9 +2628,9 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2634
2628
  key: 2,
2635
2629
  class: I(["refresh-btn", [i.option.size?.search]]),
2636
2630
  onClick: p[7] || (p[7] = //@ts-ignore
2637
- (...h) => l(t).table.getList && l(t).table.getList(...h))
2631
+ (...h) => a(t).table.getList && a(t).table.getList(...h))
2638
2632
  }, [
2639
- O(xe)
2633
+ O(Ze)
2640
2634
  ], 2)) : v("", !0)
2641
2635
  ])
2642
2636
  ]),
@@ -2646,18 +2640,18 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2646
2640
  U("div", {
2647
2641
  class: I(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2648
2642
  }, [
2649
- Fe((d(), y(l(Ee), C({
2643
+ Me((d(), y(a(Ee), C({
2650
2644
  ref_key: "tableRef",
2651
2645
  ref: s,
2652
- data: l(t).table.data,
2646
+ data: a(t).table.data,
2653
2647
  border: i.option.table?.border === void 0 ? !0 : i.option.table?.border,
2654
- onSelectionChange: l(t).table.selection.change,
2655
- onSortChange: l(t).table.sort.change,
2656
- "expand-row-keys": l(t).table.expand.rowKeys,
2657
- onExpandChange: l(t).table.expand.change
2648
+ onSelectionChange: a(t).table.selection.change,
2649
+ onSortChange: a(t).table.sort.change,
2650
+ "expand-row-keys": a(t).table.expand.rowKeys,
2651
+ onExpandChange: a(t).table.expand.change
2658
2652
  }, i.option.table, z(i.option.table?.on || {})), {
2659
2653
  default: g(() => [
2660
- (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || l(a)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (d(), y(l(oe), C({
2654
+ (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(l)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (d(), y(a(oe), C({
2661
2655
  key: 0,
2662
2656
  type: "selection",
2663
2657
  width: "40",
@@ -2666,7 +2660,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2666
2660
  "show-overflow-tooltip": !1,
2667
2661
  className: "cc1-form-selectable-column"
2668
2662
  }, typeof i.option.table?.selectable == "object" ? i.option.table?.selectable : {}, z(typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.on || {} : {})), null, 16)) : v("", !0),
2669
- (typeof i.option.table?.index == "object" ? i.option.table?.index?.show : i.option.table?.index) ? (d(), y(l(oe), C({
2663
+ (typeof i.option.table?.index == "object" ? i.option.table?.index?.show : i.option.table?.index) ? (d(), y(a(oe), C({
2670
2664
  key: 1,
2671
2665
  type: "index",
2672
2666
  fixed: "left",
@@ -2676,19 +2670,19 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2676
2670
  "show-overflow-tooltip": !1,
2677
2671
  className: "cc1-form-index-column"
2678
2672
  }, typeof i.option.table?.index == "object" ? i.option.table?.index : {}, z(typeof i.option.table?.index == "object" ? i.option.table?.index?.on || {} : {})), null, 16)) : v("", !0),
2679
- O(wt, {
2680
- conf: l(t),
2681
- columnList: l(t).table.column.list,
2673
+ O(bt, {
2674
+ conf: a(t),
2675
+ columnList: a(t).table.column.list,
2682
2676
  option: i.option
2683
2677
  }, G({ _: 2 }, [
2684
2678
  A(m.$slots, (h, c) => ({
2685
2679
  name: c,
2686
2680
  fn: g(($) => [
2687
- V(m.$slots, c, Ae(Te($ || {})))
2681
+ V(m.$slots, c, Fe(Ae($ || {})))
2688
2682
  ])
2689
2683
  }))
2690
2684
  ]), 1032, ["conf", "columnList", "option"]),
2691
- l(a)(i.option.table?.add) || l(a)(i.option.table?.update) || l(a)(i.option.table?.delete) || l(a)(i.option.table?.view) || m.$slots["table-op-left"] || m.$slots["table-op-right"] ? (d(), y(l(oe), C({
2685
+ a(l)(i.option.table?.add) || a(l)(i.option.table?.update) || a(l)(i.option.table?.delete) || a(l)(i.option.table?.view) || m.$slots["table-op-left"] || m.$slots["table-op-right"] ? (d(), y(a(oe), C({
2692
2686
  key: 2,
2693
2687
  width: "auto",
2694
2688
  "max-width": "200",
@@ -2697,80 +2691,80 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2697
2691
  }, i.option.table?.operate, { "show-overflow-tooltip": !1 }), {
2698
2692
  header: g(() => [
2699
2693
  V(m.$slots, "table-header-op", {}, () => [
2700
- E(S(l(w).tCurd("operation")), 1)
2694
+ E(S(a(w).tCurd("operation")), 1)
2701
2695
  ])
2702
2696
  ]),
2703
2697
  default: g(({ row: h }) => [
2704
- O(l(Q), {
2698
+ O(a(Q), {
2705
2699
  size: i.option.size?.table
2706
2700
  }, {
2707
2701
  default: g(() => [
2708
2702
  V(m.$slots, "table-op-left", { row: h }),
2709
- l(t).update.type === l(f).Update && i.option.table?.inlineEdit && l(t).update.form[n.option.table?.rowKey] === h[n.option.table?.rowKey] ? (d(), b(D, { key: 0 }, [
2710
- O(l(T), {
2703
+ a(t).update.type === a(f).Update && i.option.table?.inlineEdit && a(t).update.form[n.option.table?.rowKey] === h[n.option.table?.rowKey] ? (d(), b(D, { key: 0 }, [
2704
+ O(a(T), {
2711
2705
  link: "",
2712
2706
  type: "info",
2713
- onClick: l(t).update.close
2707
+ onClick: a(t).update.close
2714
2708
  }, {
2715
2709
  default: g(() => [
2716
- E(S(l(w).tCurd("cancel")), 1)
2710
+ E(S(a(w).tCurd("cancel")), 1)
2717
2711
  ]),
2718
2712
  _: 1
2719
2713
  }, 8, ["onClick"]),
2720
- O(l(T), {
2714
+ O(a(T), {
2721
2715
  link: "",
2722
2716
  type: "primary",
2723
- onClick: l(t).update.submit,
2724
- loading: l(t).update.loading
2717
+ onClick: a(t).update.submit,
2718
+ loading: a(t).update.loading
2725
2719
  }, {
2726
2720
  default: g(() => [
2727
- E(S(l(w).tCurd("confirm")), 1)
2721
+ E(S(a(w).tCurd("confirm")), 1)
2728
2722
  ]),
2729
2723
  _: 1
2730
2724
  }, 8, ["onClick", "loading"]),
2731
2725
  V(m.$slots, "table-op-edit-right", { row: h })
2732
2726
  ], 64)) : (d(), b(D, { key: 1 }, [
2733
- l(a)(i.option.table?.add, h) ? (d(), y(l(T), {
2727
+ a(l)(i.option.table?.add, h) ? (d(), y(a(T), {
2734
2728
  key: 0,
2735
2729
  link: "",
2736
2730
  type: "primary",
2737
- onClick: (c) => l(t).update.open(l(f).Add, h)
2731
+ onClick: (c) => a(t).update.open(a(f).Add, h)
2738
2732
  }, {
2739
2733
  default: g(() => [
2740
- E(S(l(w).tCurd("add")), 1)
2734
+ E(S(a(w).tCurd("add")), 1)
2741
2735
  ]),
2742
2736
  _: 2
2743
2737
  }, 1032, ["onClick"])) : v("", !0),
2744
- l(a)(i.option.table?.view, h) ? (d(), y(l(T), {
2738
+ a(l)(i.option.table?.view, h) ? (d(), y(a(T), {
2745
2739
  key: 1,
2746
2740
  link: "",
2747
2741
  type: "primary",
2748
- onClick: (c) => l(t).update.open(l(f).View, h)
2742
+ onClick: (c) => a(t).update.open(a(f).View, h)
2749
2743
  }, {
2750
2744
  default: g(() => [
2751
- E(S(l(w).tCurd("view")), 1)
2745
+ E(S(a(w).tCurd("view")), 1)
2752
2746
  ]),
2753
2747
  _: 2
2754
2748
  }, 1032, ["onClick"])) : v("", !0),
2755
- l(a)(i.option.table?.update, h) ? (d(), y(l(T), {
2749
+ a(l)(i.option.table?.update, h) ? (d(), y(a(T), {
2756
2750
  key: 2,
2757
2751
  link: "",
2758
2752
  type: "warning",
2759
- onClick: (c) => l(t).update.open(l(f).Update, h)
2753
+ onClick: (c) => a(t).update.open(a(f).Update, h)
2760
2754
  }, {
2761
2755
  default: g(() => [
2762
- E(S(l(w).tCurd("edit")), 1)
2756
+ E(S(a(w).tCurd("edit")), 1)
2763
2757
  ]),
2764
2758
  _: 2
2765
2759
  }, 1032, ["onClick"])) : v("", !0),
2766
- l(a)(i.option.table?.delete, h) ? (d(), y(l(T), {
2760
+ a(l)(i.option.table?.delete, h) ? (d(), y(a(T), {
2767
2761
  key: 3,
2768
2762
  link: "",
2769
2763
  type: "danger",
2770
- onClick: (c) => l(t).remove.open([h])
2764
+ onClick: (c) => a(t).remove.open([h])
2771
2765
  }, {
2772
2766
  default: g(() => [
2773
- E(S(l(w).tCurd("delete")), 1)
2767
+ E(S(a(w).tCurd("delete")), 1)
2774
2768
  ]),
2775
2769
  _: 2
2776
2770
  }, 1032, ["onClick"])) : v("", !0),
@@ -2785,58 +2779,58 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2785
2779
  ]),
2786
2780
  _: 3
2787
2781
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2788
- [k, l(t).table.loading]
2782
+ [k, a(t).table.loading]
2789
2783
  ])
2790
2784
  ], 2)
2791
2785
  ], 2),
2792
- U("div", Pt, [
2793
- (i.option.page?.show === void 0 || i.option.page?.show) && !l(t).page.showTools ? (d(), y(l(fe), C({
2786
+ U("div", Kt, [
2787
+ (i.option.page?.show === void 0 || i.option.page?.show) && !a(t).page.showTools ? (d(), y(a(pe), C({
2794
2788
  key: 0,
2795
- "current-page": l(t).page.num,
2796
- "onUpdate:currentPage": p[8] || (p[8] = (h) => l(t).page.num = h),
2797
- "page-size": l(t).page.size,
2798
- "onUpdate:pageSize": p[9] || (p[9] = (h) => l(t).page.size = h),
2789
+ "current-page": a(t).page.num,
2790
+ "onUpdate:currentPage": p[8] || (p[8] = (h) => a(t).page.num = h),
2791
+ "page-size": a(t).page.size,
2792
+ "onUpdate:pageSize": p[9] || (p[9] = (h) => a(t).page.size = h),
2799
2793
  background: "",
2800
- "page-sizes": l(t).page.sizeList,
2801
- "pager-count": l(t).page.pagerCount,
2802
- layout: l(t).page.layout,
2803
- total: l(t).page.total,
2794
+ "page-sizes": a(t).page.sizeList,
2795
+ "pager-count": a(t).page.pagerCount,
2796
+ layout: a(t).page.layout,
2797
+ total: a(t).page.total,
2804
2798
  size: i.option.size?.table,
2805
- onSizeChange: l(t).table.getList,
2806
- onCurrentChange: l(t).table.getList
2799
+ onSizeChange: a(t).table.getList,
2800
+ onCurrentChange: a(t).table.getList
2807
2801
  }, i.option.page?.pagination || {}, z(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0)
2808
2802
  ])
2809
2803
  ], 2),
2810
2804
  V(m.$slots, "box-right")
2811
2805
  ], 2),
2812
- O(l(ne), C({
2813
- modelValue: l(t).update.show,
2814
- "onUpdate:modelValue": p[10] || (p[10] = (h) => l(t).update.show = h),
2815
- title: l(t).update.title,
2816
- "before-close": l(t).update.close
2806
+ O(a(ie), C({
2807
+ modelValue: a(t).update.show,
2808
+ "onUpdate:modelValue": p[10] || (p[10] = (h) => a(t).update.show = h),
2809
+ title: a(t).update.title,
2810
+ "before-close": a(t).update.close
2817
2811
  }, i.option.dialog), {
2818
2812
  footer: g(() => [
2819
- U("span", Nt, [
2820
- O(l(Q), {
2813
+ U("span", Pt, [
2814
+ O(a(Q), {
2821
2815
  size: i.option.size?.form
2822
2816
  }, {
2823
2817
  default: g(() => [
2824
- O(l(T), {
2825
- onClick: l(t).update.close
2818
+ O(a(T), {
2819
+ onClick: a(t).update.close
2826
2820
  }, {
2827
2821
  default: g(() => [
2828
- E(S(l(w).tCurd("close")), 1)
2822
+ E(S(a(w).tCurd("close")), 1)
2829
2823
  ]),
2830
2824
  _: 1
2831
2825
  }, 8, ["onClick"]),
2832
- l(t).update.type !== l(f).View ? (d(), y(l(T), {
2826
+ a(t).update.type !== a(f).View ? (d(), y(a(T), {
2833
2827
  key: 0,
2834
2828
  type: "primary",
2835
- onClick: l(t).update.submit,
2836
- loading: l(t).update.loading
2829
+ onClick: a(t).update.submit,
2830
+ loading: a(t).update.loading
2837
2831
  }, {
2838
2832
  default: g(() => [
2839
- E(S(l(w).tCurd("submit")), 1)
2833
+ E(S(a(w).tCurd("submit")), 1)
2840
2834
  ]),
2841
2835
  _: 1
2842
2836
  }, 8, ["onClick", "loading"])) : v("", !0)
@@ -2846,25 +2840,25 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2846
2840
  ])
2847
2841
  ]),
2848
2842
  default: g(() => [
2849
- O(l(Q), {
2843
+ O(a(Q), {
2850
2844
  ref_key: "ruleFormRef",
2851
2845
  ref: r,
2852
- model: l(t).update.form,
2853
- rules: l(t).update.rules,
2846
+ model: a(t).update.form,
2847
+ rules: a(t).update.rules,
2854
2848
  size: i.option.size?.form,
2855
2849
  class: "update-dialog-form"
2856
2850
  }, {
2857
2851
  default: g(() => [
2858
- l(t).update.showContent ? (d(!0), b(D, { key: 0 }, A(l(t).update.formColumn, (h) => (d(), b(D, null, [
2859
- l(a)(
2852
+ a(t).update.showContent ? (d(!0), b(D, { key: 0 }, A(a(t).update.formColumn, (h) => (d(), b(D, null, [
2853
+ a(l)(
2860
2854
  (() => {
2861
2855
  const c = [], $ = (B) => {
2862
- B?.item?.children ? $(B.item.children) : c.push(...B.map((L) => L.item?.show?.form));
2856
+ B?.item?.children ? $(B.item.children) : c.push(...B.map((R) => R.item?.show?.form));
2863
2857
  };
2864
2858
  return $(h), c;
2865
2859
  })(),
2866
- l(t).update.form,
2867
- l(t).update.type
2860
+ a(t).update.form,
2861
+ a(t).update.type
2868
2862
  ) ? (d(), b("div", {
2869
2863
  key: 0,
2870
2864
  class: I(["row curd-row", {
@@ -2872,29 +2866,29 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2872
2866
  }])
2873
2867
  }, [
2874
2868
  V(m.$slots, "form-start", {
2875
- row: l(t).update.form
2869
+ row: a(t).update.form
2876
2870
  }),
2877
2871
  (d(!0), b(D, null, A(h, (c) => (d(), b(D, null, [
2878
- l(a)(c.item.show?.form, l(t).update.form, l(t).update.type) ? (d(), b("div", {
2872
+ a(l)(c.item.show?.form, a(t).update.form, a(t).update.type) ? (d(), b("div", {
2879
2873
  key: 0,
2880
- class: I([c.item.form.span > 0 ? `col-${l(t).getColumnSpan(c, h)}` : "col", `form-item-col-${c.item.key}`])
2874
+ class: I([c.item.form.span > 0 ? `col-${a(t).getColumnSpan(c, h)}` : "col", `form-item-col-${c.item.key}`])
2881
2875
  }, [
2882
- (d(!0), b(D, null, A(c.item.children ? c.children : [c], ($) => (d(), y(zt, {
2876
+ (d(!0), b(D, null, A(c.item.children ? c.children : [c], ($) => (d(), y(Vt, {
2883
2877
  key: $.item.key,
2884
- conf: l(t),
2878
+ conf: a(t),
2885
2879
  item: $
2886
2880
  }, G({ _: 2 }, [
2887
- A(m.$slots, (B, L) => ({
2888
- name: L,
2889
- fn: g((R) => [
2890
- V(m.$slots, L, C({ ref_for: !0 }, R || {}))
2881
+ A(m.$slots, (B, R) => ({
2882
+ name: R,
2883
+ fn: g((j) => [
2884
+ V(m.$slots, R, C({ ref_for: !0 }, j || {}))
2891
2885
  ])
2892
2886
  }))
2893
2887
  ]), 1032, ["conf", "item"]))), 128))
2894
2888
  ], 2)) : v("", !0)
2895
2889
  ], 64))), 256)),
2896
2890
  V(m.$slots, "form-end", {
2897
- row: l(t).update.form
2891
+ row: a(t).update.form
2898
2892
  })
2899
2893
  ], 2)) : v("", !0)
2900
2894
  ], 64))), 256)) : v("", !0)
@@ -2904,33 +2898,33 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2904
2898
  ]),
2905
2899
  _: 3
2906
2900
  }, 16, ["modelValue", "title", "before-close"]),
2907
- O(l(ne), {
2908
- modelValue: l(t).remove.show,
2909
- "onUpdate:modelValue": p[11] || (p[11] = (h) => l(t).remove.show = h),
2910
- title: l(t).remove.title,
2901
+ O(a(ie), {
2902
+ modelValue: a(t).remove.show,
2903
+ "onUpdate:modelValue": p[11] || (p[11] = (h) => a(t).remove.show = h),
2904
+ title: a(t).remove.title,
2911
2905
  "close-on-click-modal": !1
2912
2906
  }, {
2913
2907
  footer: g(() => [
2914
- U("span", qt, [
2915
- O(l(Q), {
2908
+ U("span", Jt, [
2909
+ O(a(Q), {
2916
2910
  size: i.option.size?.form
2917
2911
  }, {
2918
2912
  default: g(() => [
2919
- O(l(T), {
2920
- onClick: l(t).remove.close
2913
+ O(a(T), {
2914
+ onClick: a(t).remove.close
2921
2915
  }, {
2922
2916
  default: g(() => [
2923
- E(S(l(w).tCurd("close")), 1)
2917
+ E(S(a(w).tCurd("close")), 1)
2924
2918
  ]),
2925
2919
  _: 1
2926
2920
  }, 8, ["onClick"]),
2927
- O(l(T), {
2921
+ O(a(T), {
2928
2922
  type: "danger",
2929
- onClick: l(t).remove.submit,
2930
- loading: l(t).remove.loading
2923
+ onClick: a(t).remove.submit,
2924
+ loading: a(t).remove.loading
2931
2925
  }, {
2932
2926
  default: g(() => [
2933
- E(S(l(w).tCurd("confirmDelete")), 1)
2927
+ E(S(a(w).tCurd("confirmDelete")), 1)
2934
2928
  ]),
2935
2929
  _: 1
2936
2930
  }, 8, ["onClick", "loading"])
@@ -2940,16 +2934,16 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2940
2934
  ])
2941
2935
  ]),
2942
2936
  default: g(() => [
2943
- i.option.dialog?.delete?.content ? (d(), b("div", Wt, [
2944
- O(et, {
2937
+ i.option.dialog?.delete?.content ? (d(), b("div", Nt, [
2938
+ O(_e, {
2945
2939
  content: i.option.dialog?.delete?.content,
2946
- value: l(t).remove.items
2940
+ value: a(t).remove.items
2947
2941
  }, null, 8, ["content", "value"])
2948
- ])) : (d(), b("div", Jt, S(l(w).tCurd("confirmDeleteMessage", l(t).remove.items.length)), 1))
2942
+ ])) : (d(), b("div", Wt, S(a(w).tCurd("confirmDeleteMessage", a(t).remove.items.length)), 1))
2949
2943
  ]),
2950
2944
  _: 1
2951
2945
  }, 8, ["modelValue", "title"]),
2952
- O(Ge, {
2946
+ O(Qe, {
2953
2947
  ref_key: "switchConfirmRef",
2954
2948
  ref: e,
2955
2949
  size: i.option.size?.form
@@ -2958,7 +2952,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2958
2952
  };
2959
2953
  }
2960
2954
  });
2961
- class xt {
2955
+ class Zt {
2962
2956
  /**
2963
2957
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2964
2958
  *
@@ -2975,8 +2969,8 @@ class xt {
2975
2969
  * @param name
2976
2970
  */
2977
2971
  static exportJSONFile = (o, f) => {
2978
- const n = new Blob([JSON.stringify(o)], { type: "application/json" }), a = URL.createObjectURL(n), t = document.createElement("a");
2979
- t.href = a, t.download = `${f || "config"}.json`, t.click();
2972
+ const n = new Blob([JSON.stringify(o)], { type: "application/json" }), l = URL.createObjectURL(n), t = document.createElement("a");
2973
+ t.href = l, t.download = `${f || "config"}.json`, t.click();
2980
2974
  };
2981
2975
  /**
2982
2976
  * 导入文件内容,默认为json
@@ -2984,10 +2978,10 @@ class xt {
2984
2978
  * @returns
2985
2979
  */
2986
2980
  static importFile = async (o) => new Promise((f, n) => {
2987
- const a = document.createElement("input");
2988
- a.type = "file";
2981
+ const l = document.createElement("input");
2982
+ l.type = "file";
2989
2983
  const t = o?.accept || ".json";
2990
- a.accept = t, a.style.display = "none", a.onchange = (e) => {
2984
+ l.accept = t, l.style.display = "none", l.onchange = (e) => {
2991
2985
  const r = e.target.files[0];
2992
2986
  if (!r) {
2993
2987
  M.fail("未选择文件"), n("未选择文件");
@@ -2999,30 +2993,30 @@ class xt {
2999
2993
  f(p);
3000
2994
  }, s.onerror = () => {
3001
2995
  M.fail("文件读取失败"), n("文件读取失败");
3002
- }, s.readAsText(r), document.body.removeChild(a);
3003
- }, document.body.appendChild(a), a.click();
2996
+ }, s.readAsText(r), document.body.removeChild(l);
2997
+ }, document.body.appendChild(l), l.click();
3004
2998
  });
3005
2999
  }
3006
- const Gt = (i, o) => {
3007
- if (i.component("TCurd", Qt), i.component("TFormList", ue), i.component("TColumn", We), o?.customComponent) {
3008
- j.customComponent = o.customComponent;
3000
+ const Qt = (i, o) => {
3001
+ if (i.component("TCurd", qt), i.component("TFormList", fe), i.component("TColumn", Ne), o?.customComponent) {
3002
+ L.customComponent = o.customComponent;
3009
3003
  for (const f in o.customComponent)
3010
3004
  i.component(f, o.customComponent[f]);
3011
3005
  }
3012
- }, _t = {
3013
- install: Gt
3006
+ }, xt = {
3007
+ install: Qt
3014
3008
  };
3015
3009
  export {
3016
3010
  P as ArrUtil,
3017
- Je as ExcelUtil,
3018
- We as TColumn,
3019
- Qt as TCurd,
3020
- xt as TFile,
3021
- j as TForm,
3011
+ We as ExcelUtil,
3012
+ Ne as TColumn,
3013
+ qt as TCurd,
3014
+ Zt as TFile,
3015
+ L as TForm,
3022
3016
  F as TFormConfig,
3023
3017
  w as TFormI18n,
3024
- ue as TFormList,
3018
+ fe as TFormList,
3025
3019
  M as TSys,
3026
- _t as default,
3027
- Gt as install
3020
+ xt as default,
3021
+ Qt as install
3028
3022
  };