cc1-form 1.2.19 → 1.2.21

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,7 +1,7 @@
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";
4
- class M {
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 U, 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 l, createElementVNode as S, mergeProps as C, toHandlers as z, resolveDynamicComponent as q, watch as ce, toDisplayString as M, 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
+ class O {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
7
7
  */
@@ -43,9 +43,9 @@ class M {
43
43
  * @param module
44
44
  */
45
45
  static loadModule = async (o) => {
46
- if (!M.moduleObj[o])
46
+ if (!O.moduleObj[o])
47
47
  throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const f = await M.moduleObj[o]();
48
+ const f = await O.moduleObj[o]();
49
49
  return f.default ?? f;
50
50
  };
51
51
  /**
@@ -133,7 +133,7 @@ class M {
133
133
  */
134
134
  static getImgPic = (o) => new Promise(async (f, n) => {
135
135
  let a = document.getElementById(o.id);
136
- const t = await M.loadModule("html2canvas");
136
+ const t = await O.loadModule("html2canvas");
137
137
  try {
138
138
  t(a, {
139
139
  logging: !1,
@@ -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
  *
@@ -559,7 +559,7 @@ class j {
559
559
  )
560
560
  */
561
561
  static setOptionsData = (o, f, n) => {
562
- const a = j.findOptions(o, f);
562
+ const a = L.findOptions(o, f);
563
563
  a && (a.data = n);
564
564
  };
565
565
  static form = {
@@ -573,12 +573,12 @@ class j {
573
573
  */
574
574
  parentId: (o, f, n, a) => {
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 === O.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(a, "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: "编辑",
@@ -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
  /**
@@ -698,14 +698,14 @@ class P {
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,7 +744,7 @@ 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, () => {
@@ -757,16 +757,16 @@ const Le = {
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
763
  const a = 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, [
769
- O(r, {
768
+ i.addBottom ? v("", !0) : (d(), b("div", Le, [
769
+ U(r, {
770
770
  link: "",
771
771
  type: "primary",
772
772
  onClick: e[0] || (e[0] = (m) => n.add(i.field, i.row, i.itemFields))
@@ -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,7 +785,7 @@ 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
791
  onChange: e[1] || (e[1] = (u) => a("change"))
@@ -794,7 +794,7 @@ const Le = {
794
794
  item: m,
795
795
  row: i.row
796
796
  }),
797
- O(r, {
797
+ U(r, {
798
798
  link: "",
799
799
  type: "danger",
800
800
  onClick: (p) => n.remove(i.field, i.row, m)
@@ -805,8 +805,8 @@ const Le = {
805
805
  _: 2
806
806
  }, 1032, ["onClick"])
807
807
  ]))), 256)),
808
- i.addBottom ? (d(), b("div", Ie, [
809
- O(r, {
808
+ i.addBottom ? (d(), b("div", Re, [
809
+ U(r, {
810
810
  link: "",
811
811
  type: "primary",
812
812
  onClick: e[2] || (e[2] = (m) => n.add(i.field, i.row, i.itemFields))
@@ -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,19 +841,24 @@ 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 = O.isFun, n = O.EDialog, a = J(), t = i, e = ue({
845
845
  rules: {},
846
846
  show: !0,
847
847
  form: {},
848
848
  formDefault: {},
849
849
  type: t.type || n.Add,
850
850
  formColumn: [],
851
- getDisabled: (r) => e.type === n.View ? r.disabled?.view === void 0 ? !0 : r.disabled?.view : r.disabled?.[e.type === n.Add ? "create" : "update"],
851
+ getDisabled: (r) => {
852
+ if (e.type === n.View)
853
+ return r.disabled?.view === void 0 ? !0 : O.isFun(r.disabled?.view, e.form);
854
+ const s = r.disabled?.[e.type === n.Add ? "create" : "update"];
855
+ return O.isFun(s, e.form);
856
+ },
852
857
  getBind: (r) => r.options?.[e.type === n.Add ? "formAdd" : "formUpdate"]?.[r.type] || r.options?.[r.type] || {},
853
858
  getOn: (r) => r.options?.[e.type === n.Add ? "formAdd" : "formUpdate"]?.[r.type]?.on || r.options?.[r.type]?.on || {},
854
859
  getColumnSpan: (r, s) => {
855
860
  if (r.item.form?.spanCol) {
856
- const m = t.option.form?.maxSpan || 12, p = t.option.form?.defaultSpan || m / 2, k = s.filter((h) => !M.isFun(h.item.show?.form, e.form, e.type)).reduce((h, c) => h + (c.item.form?.span || p), 0);
861
+ const m = t.option.form?.maxSpan || 12, p = t.option.form?.defaultSpan || m / 2, k = s.filter((h) => !O.isFun(h.item.show?.form, e.form, e.type)).reduce((h, c) => h + (c.item.form?.span || p), 0);
857
862
  return (r.item.form?.span || p) + k;
858
863
  }
859
864
  return r.item.form?.span;
@@ -872,12 +877,12 @@ const Le = {
872
877
  }
873
878
  if (e.formDefault[c.key] = c.value, c.isForm && (typeof c.show?.form != "boolean" || c.show?.form)) {
874
879
  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 = {
880
+ const $ = c.form.span, B = u.reduce((j, H) => j + H.span, $), R = u.length;
881
+ if (u.push({ item: c, span: $ }), (R === 1 && u[0].span === 0 || B >= m || $ === 0 && R > 1) && (s.push(u), u = []), c.rules) {
882
+ const j = {
878
883
  input: w.tCurd("placeholderInput"),
879
884
  select: w.tCurd("placeholderSelect")
880
- }, H = (R[c.type] || R.input) + c.label;
885
+ }, H = (j[c.type] || j.input) + c.label;
881
886
  e.rules[c.key] = typeof c.rules == "boolean" ? [
882
887
  {
883
888
  required: !0,
@@ -926,19 +931,19 @@ const Le = {
926
931
  key: 0,
927
932
  class: I([u.item.form.span > 0 ? `col-${e.getColumnSpan(u, m)}` : "col", `form-item-col-${u.item.key}`])
928
933
  }, [
929
- O(l(ae), {
934
+ U(l(ae), {
930
935
  label: u.item.text?.form?.label ?? u.item.label,
931
936
  prop: u.item.key,
932
937
  "label-width": u.item.text?.form?.label == "" ? 0 : u.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
933
938
  }, {
934
939
  default: g(() => [
935
- U("div", He, [
940
+ S("div", Ie, [
936
941
  V(r.$slots, "form-" + u.item.key + "-start", {
937
942
  row: e.form,
938
943
  item: u.item
939
944
  }),
940
- U("div", Ke, [
941
- U("div", Pe, [
945
+ S("div", He, [
946
+ S("div", Ke, [
942
947
  V(r.$slots, "form-" + u.item.key, {
943
948
  row: e.form,
944
949
  item: u.item
@@ -974,7 +979,7 @@ const Le = {
974
979
  }, null, 8, ["label", "value"]))), 128))
975
980
  ]),
976
981
  _: 2
977
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), y(l(ie), C({
982
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), y(l(re), C({
978
983
  key: 3,
979
984
  modelValue: e.form[u.item.key],
980
985
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -984,14 +989,14 @@ const Le = {
984
989
  style: { width: "100%" }
985
990
  }), {
986
991
  default: g(() => [
987
- (d(!0), b(D, null, A(u.item.options?.radio?.data, (k) => (d(), y(l(re), {
992
+ (d(!0), b(D, null, A(u.item.options?.radio?.data, (k) => (d(), y(l(se), {
988
993
  key: k.value,
989
994
  label: k.label,
990
995
  value: k.value
991
996
  }, null, 8, ["label", "value"]))), 128))
992
997
  ]),
993
998
  _: 2
994
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), y(ue, C({
999
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), y(fe, C({
995
1000
  key: 4,
996
1001
  row: e.form,
997
1002
  field: u.item.key,
@@ -999,7 +1004,7 @@ const Le = {
999
1004
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1000
1005
  disabled: e.getDisabled(u.item),
1001
1006
  style: { width: "100%" }
1002
- }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), y(l(me), C({
1007
+ }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), y(l(he), C({
1003
1008
  key: 5,
1004
1009
  modelValue: e.form[u.item.key],
1005
1010
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -1007,14 +1012,14 @@ const Le = {
1007
1012
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1008
1013
  disabled: e.getDisabled(u.item),
1009
1014
  style: { width: "100%" }
1010
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), y(l(se), C({
1015
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), y(l(de), C({
1011
1016
  key: 6,
1012
1017
  modelValue: e.form[u.item.key],
1013
1018
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1014
1019
  ref_for: !0
1015
1020
  }, e.getBind(u.item), z(e.getOn(u.item)), {
1016
1021
  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({
1022
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (l(L).customComponent[u.item.type] || l(L).customComponent[u.item.type]?.form) ? (d(), y(q(l(L).customComponent[u.item.type]?.form || l(L).customComponent[u.item.type]), C({
1018
1023
  key: 7,
1019
1024
  modelValue: e.form[u.item.key],
1020
1025
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
@@ -1036,7 +1041,7 @@ const Le = {
1036
1041
  key: 0,
1037
1042
  class: "form-tip-text",
1038
1043
  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)
1044
+ }, null, 8, Pe)) : v("", !0)
1040
1045
  ])
1041
1046
  ]),
1042
1047
  V(r.$slots, "form-" + u.item.key + "-end", {
@@ -1059,7 +1064,7 @@ const Le = {
1059
1064
  }, 8, ["model", "rules"]));
1060
1065
  }
1061
1066
  });
1062
- class Je {
1067
+ class We {
1063
1068
  /**
1064
1069
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1065
1070
  *
@@ -1069,7 +1074,7 @@ class Je {
1069
1074
  */
1070
1075
  static exportToExcel = async (o, f, n) => {
1071
1076
  if (!o || o.length === 0) return;
1072
- const a = await M.loadModule("xlsx"), t = o.map((s) => {
1077
+ const a = await O.loadModule("xlsx"), t = o.map((s) => {
1073
1078
  const m = {};
1074
1079
  return f.forEach((p) => {
1075
1080
  m[p.label] = s[p.key];
@@ -1102,8 +1107,8 @@ class x {
1102
1107
  });
1103
1108
  };
1104
1109
  }
1105
- const K = M.EDialog, qe = (i) => {
1106
- const o = J(), f = J(), n = J(), a = de({
1110
+ const K = O.EDialog, Je = (i) => {
1111
+ const o = J(), f = J(), n = J(), a = ue({
1107
1112
  option: i.option,
1108
1113
  /** 查询区域相关配置对象 */
1109
1114
  search: {
@@ -1233,31 +1238,31 @@ const K = M.EDialog, qe = (i) => {
1233
1238
  /** 获取数据列表接口实现 */
1234
1239
  getList: async () => {
1235
1240
  a.table.loading = !0;
1236
- const t = i.option.api.list;
1241
+ const t = i.option.api.list, e = JSONUtil.cp(a.table.selection.list);
1237
1242
  try {
1238
1243
  await a.initApiData("init");
1239
- let e = {};
1244
+ let r = {};
1240
1245
  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
1246
+ const { props: $, order: B } = F.config.table.sort;
1247
+ r = {
1248
+ [$.field]: a.table.sort.prop,
1249
+ [B.field]: a.table.sort.order
1245
1250
  };
1246
1251
  }
1247
- const r = await t({
1252
+ const s = await t({
1248
1253
  ...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();
1254
+ ...r
1255
+ }), m = F.config.field.result, p = s.data || { [m.list]: s };
1256
+ let u = (Array.isArray(p[m.list]), p[m.list]);
1257
+ const k = a.update.formColumn.flat(), c = ObjectUtil.deepMerge({ data: u }, {}).data.map(($) => (Object.keys($).forEach((R) => {
1258
+ const j = k.find((H) => H.item.key === R);
1259
+ 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]));
1260
+ }), $));
1261
+ a.table.data = i.option.data ? await i.option.data(c, u) : c, a.page.total = p[m.total] || 0, setTimeout(() => {
1262
+ a.table.selection.setList(e);
1258
1263
  }, 20);
1259
- } catch (e) {
1260
- console.error(e);
1264
+ } catch (r) {
1265
+ console.error(r);
1261
1266
  } finally {
1262
1267
  a.table.loading = !1;
1263
1268
  }
@@ -1270,9 +1275,6 @@ const K = M.EDialog, qe = (i) => {
1270
1275
  change: (t) => {
1271
1276
  a.table.selection.list = t;
1272
1277
  },
1273
- /** 最后一次选中执行 */
1274
- runFun: () => {
1275
- },
1276
1278
  /** 设置表格多选数据 */
1277
1279
  setList: (t, e) => {
1278
1280
  a.table.selection.list = [];
@@ -1293,9 +1295,9 @@ const K = M.EDialog, qe = (i) => {
1293
1295
  };
1294
1296
  return u(a.table.data);
1295
1297
  };
1296
- a.table.selection.runFun = () => {
1297
- t.forEach((p) => {
1298
- const u = m(p) ?? p;
1298
+ t.forEach((p) => {
1299
+ const u = m(p);
1300
+ if (u)
1299
1301
  if (e) {
1300
1302
  const k = () => {
1301
1303
  r.toggleRowSelection(u, !0, !1);
@@ -1303,9 +1305,6 @@ const K = M.EDialog, qe = (i) => {
1303
1305
  e(p) !== !1 && k();
1304
1306
  } else
1305
1307
  r.toggleRowSelection(u, !0, !1);
1306
- });
1307
- }, Oe(() => {
1308
- a.table.selection.runFun();
1309
1308
  });
1310
1309
  }
1311
1310
  },
@@ -1341,7 +1340,7 @@ const K = M.EDialog, qe = (i) => {
1341
1340
  },
1342
1341
  {}
1343
1342
  ), m = i.option.tools?.export || {};
1344
- m.before && m.before(s), Je.exportToExcel(s.data, s.columns, m.fileName);
1343
+ m.before && m.before(s), We.exportToExcel(s.data, s.columns, m.fileName);
1345
1344
  },
1346
1345
  /** 获取当前选中项进行导出 */
1347
1346
  select: async () => {
@@ -1355,7 +1354,7 @@ const K = M.EDialog, qe = (i) => {
1355
1354
  return;
1356
1355
  }
1357
1356
  if (a.table.selection.list.length === 0)
1358
- throw M.fail(w.tCurd("selectDataToExport")), new Error(w.tCurd("selectDataToExport"));
1357
+ throw O.fail(w.tCurd("selectDataToExport")), new Error(w.tCurd("selectDataToExport"));
1359
1358
  return a.table.selection.list;
1360
1359
  } catch (t) {
1361
1360
  console.error(t);
@@ -1374,7 +1373,7 @@ const K = M.EDialog, qe = (i) => {
1374
1373
  return;
1375
1374
  }
1376
1375
  if (a.table.data.length === 0)
1377
- throw M.fail(w.tCurd("noData")), new Error(w.tCurd("noData"));
1376
+ throw O.fail(w.tCurd("noData")), new Error(w.tCurd("noData"));
1378
1377
  return a.table.data;
1379
1378
  } catch (t) {
1380
1379
  console.error(t);
@@ -1434,7 +1433,14 @@ const K = M.EDialog, qe = (i) => {
1434
1433
  /** 表单所有列,二维数组结构按行分组 */
1435
1434
  formColumn: [],
1436
1435
  /** 判断是否禁用当前字段 */
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"],
1436
+ getDisabled: (t, e = !1) => {
1437
+ if (i.option.table?.editMode && e)
1438
+ return t.disabled?.table === void 0 ? !1 : O.isFun(t.disabled?.table, a.update.form);
1439
+ if (a.update.type === K.View)
1440
+ return t.disabled?.view === void 0 ? !0 : O.isFun(t.disabled?.view, a.update.form);
1441
+ const r = t.disabled?.[a.update.type === K.Add ? "create" : "update"];
1442
+ return O.isFun(r, a.update.form);
1443
+ },
1438
1444
  /** 获取表单组件绑定属性 */
1439
1445
  getBind: (t) => t.options?.[a.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1440
1446
  /** 获取表单组件事件属性 */
@@ -1480,7 +1486,7 @@ const K = M.EDialog, qe = (i) => {
1480
1486
  /** 打开增改弹窗 */
1481
1487
  open: (t, e) => {
1482
1488
  a.update.showContent || FunUtil.throttle(async () => {
1483
- M.loading(!0);
1489
+ O.loading(!0);
1484
1490
  try {
1485
1491
  a.update.type = t;
1486
1492
  const r = t === K.Add;
@@ -1490,7 +1496,7 @@ const K = M.EDialog, qe = (i) => {
1490
1496
  } catch (r) {
1491
1497
  console.error(r);
1492
1498
  } finally {
1493
- M.loading(!1);
1499
+ O.loading(!1);
1494
1500
  }
1495
1501
  });
1496
1502
  },
@@ -1498,7 +1504,7 @@ const K = M.EDialog, qe = (i) => {
1498
1504
  submit: () => {
1499
1505
  FunUtil.throttle(async () => {
1500
1506
  await f.value?.validate(async (s, m) => new Promise((p, u) => {
1501
- s || (M.fail(w.tCurd("checkFormData")), u(!1)), p();
1507
+ s || (O.fail(w.tCurd("checkFormData")), u(!1)), p();
1502
1508
  })), a.update.loading = !0;
1503
1509
  const t = a.update.type === K.Add ? i.option.api.create : i.option.api.update;
1504
1510
  try {
@@ -1552,7 +1558,7 @@ const K = M.EDialog, qe = (i) => {
1552
1558
  /** 打开删除弹窗并设置待删除项 */
1553
1559
  open: (t) => {
1554
1560
  if (t.length === 0) {
1555
- M.fail(w.tCurd("selectDataToDelete"));
1561
+ O.fail(w.tCurd("selectDataToDelete"));
1556
1562
  return;
1557
1563
  }
1558
1564
  a.remove.items = t, a.remove.show = !0;
@@ -1567,7 +1573,7 @@ const K = M.EDialog, qe = (i) => {
1567
1573
  await t({
1568
1574
  [i.option.table?.rowKey]: a.remove.items.map((e) => e[i.option.table?.rowKey]),
1569
1575
  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();
1576
+ }), O.success(w.tCurd("operationSuccess")), a.table.data.length <= 1 && a.page.num > 1 && (a.page.num -= 1), a.remove.close(), await a.table.getList();
1571
1577
  } catch (e) {
1572
1578
  console.error(e);
1573
1579
  } finally {
@@ -1673,7 +1679,7 @@ const K = M.EDialog, qe = (i) => {
1673
1679
  } finally {
1674
1680
  p.loadingMap[u].loading = !1;
1675
1681
  }
1676
- return M.success(w.tCurd("operationSuccess")), p.tableConfig?.loadList && (a.table.loading = !0, a.table.getList(), a.table.loading = !1), !0;
1682
+ return O.success(w.tCurd("operationSuccess")), p.tableConfig?.loadList && (a.table.loading = !0, a.table.getList(), a.table.loading = !1), !0;
1677
1683
  } catch (u) {
1678
1684
  return console.error(u), !1;
1679
1685
  } finally {
@@ -1688,7 +1694,7 @@ const K = M.EDialog, qe = (i) => {
1688
1694
  },
1689
1695
  getColumnSpan: (t, e) => {
1690
1696
  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);
1697
+ const r = F.config.form.defaultSpan, m = e.filter((p) => !O.isFun(p.item.show?.form, a.update.form, a.update.type)).reduce((p, u) => p + (u.item.form?.span || r), 0);
1692
1698
  return (t.item?.form.span || r) + m;
1693
1699
  }
1694
1700
  return t.item.form.span;
@@ -1711,20 +1717,20 @@ const K = M.EDialog, qe = (i) => {
1711
1717
  }
1712
1718
  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) {
1713
1719
  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 = {
1720
+ let $ = c.form.span, B = m.reduce((j, H) => j + H.span, $);
1721
+ const R = m.length;
1722
+ if (m.push({ item: c, span: $ }), (R === 1 && m[0].span === 0 || B >= r || $ === 0 && R > 1) && (e.push(m), m = []), c.rules) {
1723
+ const j = {
1718
1724
  input: w.tCurd("placeholderInput"),
1719
1725
  select: w.tCurd("placeholderSelect")
1720
- }, H = (R[c.type] || R.input) + c.label, be = typeof c.rules == "boolean" ? [
1726
+ }, H = (j[c.type] || j.input) + c.label, le = typeof c.rules == "boolean" ? [
1721
1727
  {
1722
1728
  required: !0,
1723
1729
  message: H,
1724
1730
  trigger: "blur"
1725
1731
  }
1726
1732
  ] : c.rules;
1727
- a.update.rules[c.key] = be.map((te) => {
1733
+ a.update.rules[c.key] = le.map((te) => {
1728
1734
  if (te.validator) {
1729
1735
  const we = te.validator;
1730
1736
  return {
@@ -1754,9 +1760,9 @@ const K = M.EDialog, qe = (i) => {
1754
1760
  x.setValue(a.search.form, h, !0);
1755
1761
  }
1756
1762
  });
1757
- return a.init(), he(() => {
1763
+ return a.init(), ye(() => {
1758
1764
  i.option.init !== !1 && a.table.getList();
1759
- }), i.form && pe(
1765
+ }), i.form && ce(
1760
1766
  () => a.update.form,
1761
1767
  (t) => {
1762
1768
  Object.keys(a.update.form).forEach((e) => {
@@ -1767,7 +1773,7 @@ const K = M.EDialog, qe = (i) => {
1767
1773
  deep: !0,
1768
1774
  immediate: !0
1769
1775
  }
1770
- ), i.searchForm && pe(
1776
+ ), i.searchForm && ce(
1771
1777
  () => a.search.form,
1772
1778
  (t) => {
1773
1779
  Object.keys(a.search.form).forEach((e) => {
@@ -1779,7 +1785,7 @@ const K = M.EDialog, qe = (i) => {
1779
1785
  immediate: !0
1780
1786
  }
1781
1787
  ), { conf: a, switchConfirmRef: o, ruleFormRef: f, tableRef: n };
1782
- }, Qe = { class: "dialog-footer" }, Ge = /* @__PURE__ */ N({
1788
+ }, qe = { class: "dialog-footer" }, Qe = /* @__PURE__ */ N({
1783
1789
  __name: "switchConfirm",
1784
1790
  props: {
1785
1791
  size: {}
@@ -1798,7 +1804,7 @@ const K = M.EDialog, qe = (i) => {
1798
1804
  open: r
1799
1805
  }), (p, u) => {
1800
1806
  const k = ee("el-form");
1801
- return d(), y(l(ne), {
1807
+ return d(), y(l(ie), {
1802
1808
  modelValue: f.value,
1803
1809
  "onUpdate:modelValue": u[0] || (u[0] = (h) => f.value = h),
1804
1810
  title: n.value,
@@ -1806,16 +1812,16 @@ const K = M.EDialog, qe = (i) => {
1806
1812
  width: "400px"
1807
1813
  }, {
1808
1814
  footer: g(() => [
1809
- O(k, { size: p.size }, {
1815
+ U(k, { size: p.size }, {
1810
1816
  default: g(() => [
1811
- U("span", Qe, [
1812
- O(l(T), { onClick: m }, {
1817
+ S("span", qe, [
1818
+ U(l(T), { onClick: m }, {
1813
1819
  default: g(() => u[1] || (u[1] = [
1814
1820
  E("取消")
1815
1821
  ])),
1816
1822
  _: 1
1817
1823
  }),
1818
- O(l(T), {
1824
+ U(l(T), {
1819
1825
  type: "primary",
1820
1826
  onClick: s
1821
1827
  }, {
@@ -1830,7 +1836,7 @@ const K = M.EDialog, qe = (i) => {
1830
1836
  }, 8, ["size"])
1831
1837
  ]),
1832
1838
  default: g(() => [
1833
- U("div", null, S(a.value), 1)
1839
+ S("div", null, M(a.value), 1)
1834
1840
  ]),
1835
1841
  _: 1
1836
1842
  }, 8, ["modelValue", "title"]);
@@ -1841,71 +1847,71 @@ const K = M.EDialog, qe = (i) => {
1841
1847
  for (const [n, a] of o)
1842
1848
  f[n] = a;
1843
1849
  return f;
1844
- }, Xe = {}, Ye = {
1850
+ }, Ge = {}, Xe = {
1845
1851
  xmlns: "http://www.w3.org/2000/svg",
1846
1852
  viewBox: "0 0 1024 1024"
1847
1853
  };
1848
- function Ze(i, o) {
1849
- return d(), b("svg", Ye, o[0] || (o[0] = [
1850
- U("path", {
1854
+ function Ye(i, o) {
1855
+ return d(), b("svg", Xe, o[0] || (o[0] = [
1856
+ S("path", {
1851
1857
  fill: "currentColor",
1852
1858
  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
1859
  }, null, -1)
1854
1860
  ]));
1855
1861
  }
1856
- const xe = /* @__PURE__ */ Y(Xe, [["render", Ze]]), _e = ["innerHTML"], et = /* @__PURE__ */ N({
1862
+ const Ze = /* @__PURE__ */ Y(Ge, [["render", Ye]]), xe = ["innerHTML"], _e = /* @__PURE__ */ N({
1857
1863
  __name: "text",
1858
1864
  props: {
1859
1865
  content: {},
1860
1866
  value: {}
1861
1867
  },
1862
1868
  setup(i) {
1863
- const o = i, f = ge(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1869
+ const o = i, f = be(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1864
1870
  return (n, a) => typeof f.value == "object" ? (d(), y(q(f.value), { key: 0 })) : (d(), b("div", {
1865
1871
  key: 1,
1866
1872
  innerHTML: f.value
1867
- }, null, 8, _e));
1873
+ }, null, 8, xe));
1868
1874
  }
1869
- }), tt = {}, ot = {
1875
+ }), et = {}, tt = {
1870
1876
  "data-v-58697b5c": "",
1871
1877
  xmlns: "http://www.w3.org/2000/svg",
1872
1878
  viewBox: "0 0 1024 1024"
1873
1879
  };
1874
- function at(i, o) {
1875
- return d(), b("svg", ot, o[0] || (o[0] = [
1876
- U("path", {
1880
+ function ot(i, o) {
1881
+ return d(), b("svg", tt, o[0] || (o[0] = [
1882
+ S("path", {
1877
1883
  fill: "currentColor",
1878
1884
  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
1885
  }, null, -1)
1880
1886
  ]));
1881
1887
  }
1882
- const lt = /* @__PURE__ */ Y(tt, [["render", at]]), nt = {}, it = {
1888
+ const at = /* @__PURE__ */ Y(et, [["render", ot]]), lt = {}, nt = {
1883
1889
  "data-v-58697b5c": "",
1884
1890
  xmlns: "http://www.w3.org/2000/svg",
1885
1891
  viewBox: "0 0 1024 1024"
1886
1892
  };
1887
- function rt(i, o) {
1888
- return d(), b("svg", it, o[0] || (o[0] = [
1889
- U("path", {
1893
+ function it(i, o) {
1894
+ return d(), b("svg", nt, o[0] || (o[0] = [
1895
+ S("path", {
1890
1896
  fill: "currentColor",
1891
1897
  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
1898
  }, null, -1)
1893
1899
  ]));
1894
1900
  }
1895
- const st = /* @__PURE__ */ Y(nt, [["render", rt]]), dt = {}, ut = {
1901
+ const rt = /* @__PURE__ */ Y(lt, [["render", it]]), st = {}, dt = {
1896
1902
  "data-v-58697b5c": "",
1897
1903
  xmlns: "http://www.w3.org/2000/svg",
1898
1904
  viewBox: "0 0 1024 1024"
1899
1905
  };
1900
- function ft(i, o) {
1901
- return d(), b("svg", ut, o[0] || (o[0] = [
1902
- U("path", {
1906
+ function ut(i, o) {
1907
+ return d(), b("svg", dt, o[0] || (o[0] = [
1908
+ S("path", {
1903
1909
  fill: "currentColor",
1904
1910
  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
1911
  }, null, -1)
1906
1912
  ]));
1907
1913
  }
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({
1914
+ 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
1915
  __name: "tableColumn",
1910
1916
  props: {
1911
1917
  conf: {},
@@ -1913,13 +1919,13 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1913
1919
  option: {}
1914
1920
  },
1915
1921
  setup(i) {
1916
- const o = M.isFun, f = Ue().type;
1922
+ const o = O.isFun, f = Oe().type;
1917
1923
  return (n, a) => {
1918
1924
  const t = ee("el-tooltip");
1919
1925
  return d(!0), b(D, null, A(n.columnList, (e) => (d(), b(D, {
1920
1926
  key: e.key
1921
1927
  }, [
1922
- n.conf.table.column.show.list.includes(e.key) && l(o)(e.show?.table, n.conf.table.data) ? (d(), b(D, { key: 0 }, [
1928
+ n.conf.table.column.show.list.includes(e.key) && (e.show?.table === void 0 || l(o)(e.show?.table, n.conf.table.data)) ? (d(), b(D, { key: 0 }, [
1923
1929
  e.table?.header?.groupKey === void 0 || e.table.header.show ? (d(), y(l(oe), C({
1924
1930
  key: 0,
1925
1931
  prop: e.key,
@@ -1928,29 +1934,29 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1928
1934
  }, e.table), {
1929
1935
  header: g(() => [
1930
1936
  V(n.$slots, "table-header-" + e.key, { item: e }, () => [
1931
- U("div", ct, [
1937
+ S("div", pt, [
1932
1938
  e.table?.header?.tooltip ? (d(), y(t, {
1933
1939
  key: 0,
1934
1940
  effect: "dark",
1935
1941
  placement: "top"
1936
1942
  }, {
1937
1943
  content: g(() => [
1938
- U("div", {
1944
+ S("div", {
1939
1945
  innerHTML: e.table?.header?.tooltip
1940
- }, null, 8, ht)
1946
+ }, null, 8, mt)
1941
1947
  ]),
1942
1948
  default: g(() => [
1943
- U("span", mt, [
1944
- O(lt)
1949
+ S("span", ct, [
1950
+ U(at)
1945
1951
  ])
1946
1952
  ]),
1947
1953
  _: 2
1948
1954
  }, 1024)) : v("", !0),
1949
- E(" " + S(e.label) + " ", 1),
1955
+ E(" " + M(e.label) + " ", 1),
1950
1956
  e.table?.header?.group !== void 0 ? (d(), b("span", {
1951
1957
  key: 1,
1952
1958
  class: "table-header-plus",
1953
- onClick: Se(
1959
+ onClick: Ue(
1954
1960
  () => {
1955
1961
  e.table.header.group = !e.table.header.group, n.columnList.forEach((r) => {
1956
1962
  r.table?.header?.groupKey === e.key && (r.table.header.show = !e.table.header.group);
@@ -1959,8 +1965,8 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
1959
1965
  ["stop"]
1960
1966
  )
1961
1967
  }, [
1962
- e.table.header.group ? (d(), y(st, { key: 0 })) : (d(), y(pt, { key: 1 }))
1963
- ], 8, yt)) : v("", !0)
1968
+ e.table.header.group ? (d(), y(rt, { key: 0 })) : (d(), y(ft, { key: 1 }))
1969
+ ], 8, ht)) : v("", !0)
1964
1970
  ])
1965
1971
  ])
1966
1972
  ]),
@@ -2000,7 +2006,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2000
2006
  e.options?.input?.prepend ? {
2001
2007
  name: "prepend",
2002
2008
  fn: g(() => [
2003
- E(S(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
2009
+ E(M(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
2004
2010
  ]),
2005
2011
  key: "0"
2006
2012
  } : void 0
@@ -2033,7 +2039,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2033
2039
  item: e
2034
2040
  })
2035
2041
  ], 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 }, [
2042
+ n.conf.update.type === l(O).EDialog.Update && l(o)(e.show?.form, n.conf.update.form, l(O).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
2043
  e.type === "input" ? (d(), y(l(_), C({
2038
2044
  key: 0,
2039
2045
  modelValue: n.conf.update.form[e.key],
@@ -2044,7 +2050,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2044
2050
  e.options?.input?.prepend ? {
2045
2051
  name: "prepend",
2046
2052
  fn: g(() => [
2047
- E(S(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
2053
+ E(M(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
2048
2054
  ]),
2049
2055
  key: "0"
2050
2056
  } : void 0
@@ -2076,7 +2082,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2076
2082
  row: r,
2077
2083
  item: e
2078
2084
  }, () => [
2079
- l(j).customComponent[e.type ?? ""]?.table ? (d(), y(q(l(j).customComponent[e.type ?? ""]?.table), C({
2085
+ l(L).customComponent[e.type ?? ""]?.table ? (d(), y(q(l(L).customComponent[e.type ?? ""]?.table), C({
2080
2086
  key: 0,
2081
2087
  modelValue: r[e.key],
2082
2088
  "onUpdate:modelValue": (s) => r[e.key] = s,
@@ -2089,16 +2095,16 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2089
2095
  loading: e.options?.switch?.loadingMap?.[r[n.option.table?.rowKey]]?.loading,
2090
2096
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, r),
2091
2097
  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))
2098
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (d(), b("span", yt, M(r[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2093
2099
  ], 64)) : (d(), b("span", {
2094
2100
  key: 2,
2095
- style: ye({
2101
+ style: ge({
2096
2102
  "--table-text-click-color": e.table?.click?.color
2097
2103
  }),
2098
2104
  class: I({ "table-text-click": e.table?.click?.callback }),
2099
2105
  onClick: (s) => e.table?.click?.callback?.(r),
2100
2106
  innerHTML: e.table?.format ? e.table?.format(r) : r[e.key]
2101
- }, null, 14, bt))
2107
+ }, null, 14, gt))
2102
2108
  ])
2103
2109
  ], 64))
2104
2110
  ], 64))
@@ -2109,10 +2115,10 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2109
2115
  ], 64))), 128);
2110
2116
  };
2111
2117
  }
2112
- }), kt = {
2118
+ }), wt = {
2113
2119
  class: "row form-item-content",
2114
2120
  style: { width: "100%" }
2115
- }, vt = { class: "col column form-item-content-item" }, Ct = { class: "col" }, Vt = ["innerHTML"], zt = /* @__PURE__ */ N({
2121
+ }, kt = { class: "col column form-item-content-item" }, vt = { class: "col" }, Ct = ["innerHTML"], Vt = /* @__PURE__ */ N({
2116
2122
  __name: "formColumn",
2117
2123
  props: {
2118
2124
  conf: {},
@@ -2125,13 +2131,13 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2125
2131
  "label-width": o.item.item.text?.form?.label == "" ? 0 : o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
2126
2132
  }, {
2127
2133
  default: g(() => [
2128
- U("div", kt, [
2134
+ S("div", wt, [
2129
2135
  V(o.$slots, "form-" + o.item.item.key + "-start", {
2130
2136
  row: o.conf.update.form,
2131
2137
  item: o.item.item
2132
2138
  }),
2133
- U("div", vt, [
2134
- U("div", Ct, [
2139
+ S("div", kt, [
2140
+ S("div", vt, [
2135
2141
  V(o.$slots, "form-" + o.item.item.key, {
2136
2142
  row: o.conf.update.form,
2137
2143
  item: o.item.item
@@ -2146,7 +2152,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2146
2152
  o.item.item.options?.input?.prepend ? {
2147
2153
  name: "prepend",
2148
2154
  fn: g(() => [
2149
- E(S(typeof o.item.item.options?.input?.prepend == "function" ? o.item.item.options?.input?.prepend(o.conf.update.form) : o.item.item.options?.input?.prepend), 1)
2155
+ E(M(typeof o.item.item.options?.input?.prepend == "function" ? o.item.item.options?.input?.prepend(o.conf.update.form) : o.item.item.options?.input?.prepend), 1)
2150
2156
  ]),
2151
2157
  key: "0"
2152
2158
  } : void 0
@@ -2171,7 +2177,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2171
2177
  }, n, z(n.on || {})), null, 16))), 128))
2172
2178
  ]),
2173
2179
  _: 1
2174
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), y(l(ie), C({
2180
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), y(l(re), C({
2175
2181
  key: 3,
2176
2182
  modelValue: o.conf.update.form[o.item.item.key],
2177
2183
  "onUpdate:modelValue": f[3] || (f[3] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2180,33 +2186,33 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2180
2186
  style: { width: "100%" }
2181
2187
  }), {
2182
2188
  default: g(() => [
2183
- (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(l(re), C({
2189
+ (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), y(l(se), C({
2184
2190
  key: n.value,
2185
2191
  ref_for: !0
2186
2192
  }, n, z(n.on || {})), null, 16))), 128))
2187
2193
  ]),
2188
2194
  _: 1
2189
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), y(ue, C({
2195
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), y(fe, C({
2190
2196
  key: 4,
2191
2197
  row: o.conf.update.form,
2192
2198
  field: o.item.item.key
2193
2199
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2194
2200
  disabled: o.conf.update.getDisabled(o.item.item),
2195
2201
  style: { width: "100%" }
2196
- }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), y(l(me), C({
2202
+ }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), y(l(he), C({
2197
2203
  key: 5,
2198
2204
  modelValue: o.conf.update.form[o.item.item.key],
2199
2205
  "onUpdate:modelValue": f[4] || (f[4] = (n) => o.conf.update.form[o.item.item.key] = n)
2200
2206
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2201
2207
  disabled: o.conf.update.getDisabled(o.item.item),
2202
2208
  style: { width: "100%" }
2203
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), y(l(se), C({
2209
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), y(l(de), C({
2204
2210
  key: 6,
2205
2211
  modelValue: o.conf.update.form[o.item.item.key],
2206
2212
  "onUpdate:modelValue": f[5] || (f[5] = (n) => o.conf.update.form[o.item.item.key] = n)
2207
2213
  }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2208
2214
  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({
2215
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (l(L).customComponent[o.item.item.type] || l(L).customComponent[o.item.item.type]?.form) ? (d(), y(q(l(L).customComponent[o.item.item.type]?.form || l(L).customComponent[o.item.item.type]), C({
2210
2216
  key: 7,
2211
2217
  modelValue: o.conf.update.form[o.item.item.key],
2212
2218
  "onUpdate:modelValue": f[6] || (f[6] = (n) => o.conf.update.form[o.item.item.key] = n)
@@ -2227,7 +2233,7 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2227
2233
  key: 0,
2228
2234
  class: "form-tip-text",
2229
2235
  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)
2236
+ }, null, 8, Ct)) : v("", !0)
2231
2237
  ])
2232
2238
  ]),
2233
2239
  V(o.$slots, "form-" + o.item.item.key + "-end", {
@@ -2239,31 +2245,31 @@ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-cent
2239
2245
  _: 3
2240
2246
  }, 8, ["label", "prop", "label-width"]));
2241
2247
  }
2242
- }), $t = {}, Dt = {
2248
+ }), zt = {}, $t = {
2243
2249
  xmlns: "http://www.w3.org/2000/svg",
2244
2250
  viewBox: "64 64 896 896"
2245
2251
  };
2246
- function Et(i, o) {
2247
- return d(), b("svg", Dt, o[0] || (o[0] = [
2248
- U("path", {
2252
+ function Dt(i, o) {
2253
+ return d(), b("svg", $t, o[0] || (o[0] = [
2254
+ S("path", {
2249
2255
  fill: "currentColor",
2250
2256
  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
2257
  }, null, -1)
2252
2258
  ]));
2253
2259
  }
2254
- const Ot = /* @__PURE__ */ Y($t, [["render", Et]]), Ut = {}, St = {
2260
+ const Et = /* @__PURE__ */ Y(zt, [["render", Dt]]), Ot = {}, Ut = {
2255
2261
  xmlns: "http://www.w3.org/2000/svg",
2256
2262
  viewBox: "64 64 896 896"
2257
2263
  };
2258
- function Mt(i, o) {
2259
- return d(), b("svg", St, o[0] || (o[0] = [
2260
- U("path", {
2264
+ function St(i, o) {
2265
+ return d(), b("svg", Ut, o[0] || (o[0] = [
2266
+ S("path", {
2261
2267
  fill: "currentColor",
2262
2268
  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
2269
  }, null, -1)
2264
2270
  ]));
2265
2271
  }
2266
- const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2272
+ const Mt = /* @__PURE__ */ Y(Ot, [["render", St]]), me = /* @__PURE__ */ N({
2267
2273
  __name: "searchField",
2268
2274
  props: {
2269
2275
  item: {},
@@ -2271,13 +2277,13 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2271
2277
  type: {}
2272
2278
  },
2273
2279
  setup(i) {
2274
- const o = i, f = ge({
2280
+ const o = i, f = be({
2275
2281
  get: () => o.conf.search.form?.[o.item?.key],
2276
2282
  set: (n) => {
2277
2283
  o.item?.key !== void 0 && (o.conf.search.form[o.item.key] = n);
2278
2284
  }
2279
2285
  });
2280
- return (n, a) => l(j).customComponent[n.type ?? ""]?.search ? (d(), y(q(l(j).customComponent[n.type ?? ""]?.search), C({
2286
+ return (n, a) => l(L).customComponent[n.type ?? ""]?.search ? (d(), y(q(l(L).customComponent[n.type ?? ""]?.search), C({
2281
2287
  key: 0,
2282
2288
  modelValue: f.value,
2283
2289
  "onUpdate:modelValue": a[0] || (a[0] = (t) => f.value = t)
@@ -2325,26 +2331,26 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2325
2331
  }, null, 8, ["label", "value"]))), 128))
2326
2332
  ]),
2327
2333
  _: 1
2328
- }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), y(l(ie), C({
2334
+ }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), y(l(re), C({
2329
2335
  key: 4,
2330
2336
  modelValue: f.value,
2331
2337
  "onUpdate:modelValue": a[4] || (a[4] = (t) => f.value = t),
2332
2338
  disabled: n.item.disabled?.search
2333
2339
  }, n.item.options?.search?.radio || n.item.options?.radio, z(n.item.options?.search?.radio?.on || n.item.options?.radio?.on || {})), {
2334
2340
  default: g(() => [
2335
- (d(!0), b(D, null, A(n.item.options?.radio?.data, (t) => (d(), y(l(re), {
2341
+ (d(!0), b(D, null, A(n.item.options?.radio?.data, (t) => (d(), y(l(se), {
2336
2342
  key: t.value,
2337
2343
  label: t.label,
2338
2344
  value: t.value
2339
2345
  }, null, 8, ["label", "value"]))), 128))
2340
2346
  ]),
2341
2347
  _: 1
2342
- }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), y(l(se), C({
2348
+ }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), y(l(de), C({
2343
2349
  key: 5,
2344
2350
  modelValue: f.value,
2345
2351
  "onUpdate:modelValue": a[5] || (a[5] = (t) => f.value = t),
2346
2352
  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({
2353
+ }, 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(L).customComponent[n.type] ? (d(), y(q(l(L).customComponent[n.type]), C({
2348
2354
  key: 6,
2349
2355
  modelValue: f.value,
2350
2356
  "onUpdate:modelValue": a[6] || (a[6] = (t) => f.value = t)
@@ -2352,19 +2358,19 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2352
2358
  disabled: n.item.disabled?.search
2353
2359
  }), null, 16, ["modelValue", "disabled"])) : v("", !0);
2354
2360
  }
2355
- }), At = {
2361
+ }), Ft = {
2356
2362
  key: 0,
2357
2363
  class: "relative curd-search fit-width"
2358
- }, Tt = { class: "mb-10 flex justify-between items-center fit-width" }, jt = {
2364
+ }, At = { class: "mb-10 flex justify-between items-center fit-width" }, Tt = {
2359
2365
  class: "flex items-center",
2360
2366
  style: { gap: "10px" }
2361
- }, Lt = { key: 0 }, Bt = { key: 1 }, Rt = { key: 2 }, It = { class: "export-btn" }, Ht = {
2367
+ }, jt = { key: 0 }, Lt = { key: 1 }, Bt = { key: 2 }, Rt = { class: "export-btn" }, It = {
2362
2368
  key: 1,
2363
2369
  class: "export-btn"
2364
- }, Kt = {
2370
+ }, Ht = {
2365
2371
  class: "flex items-center table-tools-right",
2366
2372
  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({
2373
+ }, 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
2374
  __name: "index",
2369
2375
  props: {
2370
2376
  /**
@@ -2387,24 +2393,24 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2387
2393
  }
2388
2394
  },
2389
2395
  setup(i, { expose: o }) {
2390
- const f = M.EDialog, n = i, a = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = qe(n);
2396
+ const f = O.EDialog, n = i, a = O.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = Je(n);
2391
2397
  return o({
2392
2398
  conf: t
2393
2399
  }), (m, p) => {
2394
- const u = ee("el-tooltip"), k = Me("loading");
2400
+ const u = ee("el-tooltip"), k = Se("loading");
2395
2401
  return d(), b("div", {
2396
2402
  class: I(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
2397
2403
  }, [
2398
- U("div", {
2404
+ S("div", {
2399
2405
  class: I(["row", [i.option.table?.fitHeight ? "absolute fit" : ""]]),
2400
2406
  style: { overflow: "hidden" }
2401
2407
  }, [
2402
2408
  V(m.$slots, "box-left"),
2403
- U("div", {
2409
+ S("div", {
2404
2410
  class: I(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
2405
2411
  }, [
2406
- i.option.search?.show !== !1 ? (d(), b("div", At, [
2407
- O(l(Q), {
2412
+ i.option.search?.show !== !1 ? (d(), b("div", Ft, [
2413
+ U(l(Q), {
2408
2414
  model: l(t).search.form,
2409
2415
  inline: "",
2410
2416
  size: i.option.size?.search
@@ -2430,12 +2436,12 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2430
2436
  V(m.$slots, "search-" + h.key, {
2431
2437
  row: l(t).search.form
2432
2438
  }, () => [
2433
- h.options?.search?.type ? (d(), y(ce, {
2439
+ h.options?.search?.type ? (d(), y(me, {
2434
2440
  key: 0,
2435
2441
  item: h,
2436
2442
  conf: l(t),
2437
2443
  type: h.options.search.type
2438
- }, null, 8, ["item", "conf", "type"])) : (d(), y(ce, {
2444
+ }, null, 8, ["item", "conf", "type"])) : (d(), y(me, {
2439
2445
  key: 1,
2440
2446
  item: h,
2441
2447
  conf: l(t),
@@ -2463,7 +2469,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2463
2469
  onClick: l(t).search.submit
2464
2470
  }, {
2465
2471
  default: g(() => [
2466
- E(S(l(w).tCurd("search")), 1)
2472
+ E(M(l(w).tCurd("search")), 1)
2467
2473
  ]),
2468
2474
  _: 1
2469
2475
  }, 8, ["onClick"])) : v("", !0),
@@ -2472,7 +2478,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2472
2478
  onClick: l(t).search.reset
2473
2479
  }, {
2474
2480
  default: g(() => [
2475
- E(S(l(w).tCurd("reset")), 1)
2481
+ E(M(l(w).tCurd("reset")), 1)
2476
2482
  ]),
2477
2483
  _: 1
2478
2484
  }, 8, ["onClick"])) : v("", !0)
@@ -2486,40 +2492,40 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2486
2492
  _: 3
2487
2493
  }, 8, ["model", "size"])
2488
2494
  ])) : 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), {
2495
+ S("div", At, [
2496
+ S("div", Tt, [
2497
+ l(a)(i.option.tools?.add) ? (d(), b("div", jt, [
2498
+ U(l(T), {
2493
2499
  type: "primary",
2494
2500
  onClick: p[0] || (p[0] = (h) => l(t).update.open(l(f).Add)),
2495
2501
  size: i.option.size?.search
2496
2502
  }, {
2497
2503
  default: g(() => [
2498
- E(S(l(w).tCurd("add")), 1)
2504
+ E(M(l(w).tCurd("add")), 1)
2499
2505
  ]),
2500
2506
  _: 1
2501
2507
  }, 8, ["size"])
2502
2508
  ])) : v("", !0),
2503
- i.option.table?.selectable && l(a)(i.option.tools?.delete) ? (d(), b("div", Bt, [
2504
- O(l(T), {
2509
+ i.option.table?.selectable && l(a)(i.option.tools?.delete) ? (d(), b("div", Lt, [
2510
+ U(l(T), {
2505
2511
  type: "danger",
2506
2512
  onClick: p[1] || (p[1] = (h) => l(t).remove.open(l(t).table.selection.list)),
2507
2513
  size: i.option.size?.search
2508
2514
  }, {
2509
2515
  default: g(() => [
2510
- E(S(l(w).tCurd("delete")), 1)
2516
+ E(M(l(w).tCurd("delete")), 1)
2511
2517
  ]),
2512
2518
  _: 1
2513
2519
  }, 8, ["size"])
2514
2520
  ])) : v("", !0),
2515
- i.option.tools?.expand ? (d(), b("div", Rt, [
2516
- O(l(T), {
2521
+ i.option.tools?.expand ? (d(), b("div", Bt, [
2522
+ U(l(T), {
2517
2523
  type: "warning",
2518
2524
  onClick: p[2] || (p[2] = (h) => l(t).table.expand.all()),
2519
2525
  size: i.option.size?.search
2520
2526
  }, {
2521
2527
  default: g(() => [
2522
- E(S(l(w).tCurd("expandCollapse")), 1)
2528
+ E(M(l(w).tCurd("expandCollapse")), 1)
2523
2529
  ]),
2524
2530
  _: 1
2525
2531
  }, 8, ["size"])
@@ -2530,34 +2536,34 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2530
2536
  onCommand: l(t).export.click
2531
2537
  }, {
2532
2538
  dropdown: g(() => [
2533
- O(l(De), {
2539
+ U(l(De), {
2534
2540
  size: i.option.size?.search
2535
2541
  }, {
2536
2542
  default: g(() => [
2537
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || l(a)(i.option.tools?.delete)) ? (d(), y(l(le), {
2543
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || l(a)(i.option.tools?.delete)) ? (d(), y(l(ne), {
2538
2544
  key: 0,
2539
2545
  command: "select"
2540
2546
  }, {
2541
2547
  default: g(() => [
2542
- E(S(l(w).tCurd("exportSelect")), 1)
2548
+ E(M(l(w).tCurd("exportSelect")), 1)
2543
2549
  ]),
2544
2550
  _: 1
2545
2551
  })) : v("", !0),
2546
- i.option.tools?.export?.dropdown?.page ? (d(), y(l(le), {
2552
+ i.option.tools?.export?.dropdown?.page ? (d(), y(l(ne), {
2547
2553
  key: 1,
2548
2554
  command: "page"
2549
2555
  }, {
2550
2556
  default: g(() => [
2551
- E(S(l(w).tCurd("exportPage")), 1)
2557
+ E(M(l(w).tCurd("exportPage")), 1)
2552
2558
  ]),
2553
2559
  _: 1
2554
2560
  })) : v("", !0),
2555
- i.option.tools?.export?.dropdown?.all ? (d(), y(l(le), {
2561
+ i.option.tools?.export?.dropdown?.all ? (d(), y(l(ne), {
2556
2562
  key: 2,
2557
2563
  command: "all"
2558
2564
  }, {
2559
2565
  default: g(() => [
2560
- E(S(l(w).tCurd("exportAll")), 1)
2566
+ E(M(l(w).tCurd("exportAll")), 1)
2561
2567
  ]),
2562
2568
  _: 1
2563
2569
  })) : v("", !0)
@@ -2566,29 +2572,29 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2566
2572
  }, 8, ["size"])
2567
2573
  ]),
2568
2574
  default: g(() => [
2569
- U("div", It, [
2570
- O(l(T), {
2575
+ S("div", Rt, [
2576
+ U(l(T), {
2571
2577
  type: "warning",
2572
2578
  loading: l(t).export.loading,
2573
2579
  size: i.option.size?.search
2574
2580
  }, {
2575
2581
  default: g(() => [
2576
- E(S(l(w).tCurd("export")), 1)
2582
+ E(M(l(w).tCurd("export")), 1)
2577
2583
  ]),
2578
2584
  _: 1
2579
2585
  }, 8, ["loading", "size"])
2580
2586
  ])
2581
2587
  ]),
2582
2588
  _: 1
2583
- }, 8, ["onCommand"])) : (d(), b("div", Ht, [
2584
- O(l(T), {
2589
+ }, 8, ["onCommand"])) : (d(), b("div", It, [
2590
+ U(l(T), {
2585
2591
  type: "warning",
2586
2592
  loading: l(t).export.loading,
2587
2593
  size: i.option.size?.search,
2588
2594
  onClick: p[3] || (p[3] = (h) => l(t).export.run.start("all"))
2589
2595
  }, {
2590
2596
  default: g(() => [
2591
- E(S(l(w).tCurd("export")), 1)
2597
+ E(M(l(w).tCurd("export")), 1)
2592
2598
  ]),
2593
2599
  _: 1
2594
2600
  }, 8, ["loading", "size"])
@@ -2596,9 +2602,9 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2596
2602
  ], 64)) : v("", !0),
2597
2603
  V(m.$slots, "tools-left")
2598
2604
  ]),
2599
- U("div", Kt, [
2605
+ S("div", Ht, [
2600
2606
  V(m.$slots, "tools-right"),
2601
- l(t).page.showTools ? (d(), y(l(fe), C({
2607
+ l(t).page.showTools ? (d(), y(l(pe), C({
2602
2608
  key: 0,
2603
2609
  "current-page": l(t).page.num,
2604
2610
  "onUpdate:currentPage": p[4] || (p[4] = (h) => l(t).page.num = h),
@@ -2620,12 +2626,12 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2620
2626
  placement: "top"
2621
2627
  }, {
2622
2628
  default: g(() => [
2623
- U("div", {
2629
+ S("div", {
2624
2630
  class: I(["refresh-btn", [i.option.size?.search]]),
2625
2631
  onClick: p[6] || (p[6] = //@ts-ignore
2626
2632
  (...h) => l(t).table.header.group.toggleExpandAll && l(t).table.header.group.toggleExpandAll(...h))
2627
2633
  }, [
2628
- l(t).table.header.group.expand ? (d(), y(Ot, { key: 0 })) : (d(), y(Ft, { key: 1 }))
2634
+ l(t).table.header.group.expand ? (d(), y(Et, { key: 0 })) : (d(), y(Mt, { key: 1 }))
2629
2635
  ], 2)
2630
2636
  ]),
2631
2637
  _: 1
@@ -2636,17 +2642,17 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2636
2642
  onClick: p[7] || (p[7] = //@ts-ignore
2637
2643
  (...h) => l(t).table.getList && l(t).table.getList(...h))
2638
2644
  }, [
2639
- O(xe)
2645
+ U(Ze)
2640
2646
  ], 2)) : v("", !0)
2641
2647
  ])
2642
2648
  ]),
2643
- U("div", {
2649
+ S("div", {
2644
2650
  class: I(["fit-width relative form-box", [i.option.table?.fitHeight ? "col " : "", i.option.table?.editMode ? "edit-mode" : ""]])
2645
2651
  }, [
2646
- U("div", {
2652
+ S("div", {
2647
2653
  class: I(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2648
2654
  }, [
2649
- Fe((d(), y(l(Ee), C({
2655
+ Me((d(), y(l(Ee), C({
2650
2656
  ref_key: "tableRef",
2651
2657
  ref: s,
2652
2658
  data: l(t).table.data,
@@ -2676,7 +2682,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2676
2682
  "show-overflow-tooltip": !1,
2677
2683
  className: "cc1-form-index-column"
2678
2684
  }, 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, {
2685
+ U(bt, {
2680
2686
  conf: l(t),
2681
2687
  columnList: l(t).table.column.list,
2682
2688
  option: i.option
@@ -2684,7 +2690,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2684
2690
  A(m.$slots, (h, c) => ({
2685
2691
  name: c,
2686
2692
  fn: g(($) => [
2687
- V(m.$slots, c, Ae(Te($ || {})))
2693
+ V(m.$slots, c, Fe(Ae($ || {})))
2688
2694
  ])
2689
2695
  }))
2690
2696
  ]), 1032, ["conf", "columnList", "option"]),
@@ -2697,34 +2703,34 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2697
2703
  }, i.option.table?.operate, { "show-overflow-tooltip": !1 }), {
2698
2704
  header: g(() => [
2699
2705
  V(m.$slots, "table-header-op", {}, () => [
2700
- E(S(l(w).tCurd("operation")), 1)
2706
+ E(M(l(w).tCurd("operation")), 1)
2701
2707
  ])
2702
2708
  ]),
2703
2709
  default: g(({ row: h }) => [
2704
- O(l(Q), {
2710
+ U(l(Q), {
2705
2711
  size: i.option.size?.table
2706
2712
  }, {
2707
2713
  default: g(() => [
2708
2714
  V(m.$slots, "table-op-left", { row: h }),
2709
2715
  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), {
2716
+ U(l(T), {
2711
2717
  link: "",
2712
2718
  type: "info",
2713
2719
  onClick: l(t).update.close
2714
2720
  }, {
2715
2721
  default: g(() => [
2716
- E(S(l(w).tCurd("cancel")), 1)
2722
+ E(M(l(w).tCurd("cancel")), 1)
2717
2723
  ]),
2718
2724
  _: 1
2719
2725
  }, 8, ["onClick"]),
2720
- O(l(T), {
2726
+ U(l(T), {
2721
2727
  link: "",
2722
2728
  type: "primary",
2723
2729
  onClick: l(t).update.submit,
2724
2730
  loading: l(t).update.loading
2725
2731
  }, {
2726
2732
  default: g(() => [
2727
- E(S(l(w).tCurd("confirm")), 1)
2733
+ E(M(l(w).tCurd("confirm")), 1)
2728
2734
  ]),
2729
2735
  _: 1
2730
2736
  }, 8, ["onClick", "loading"]),
@@ -2737,7 +2743,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2737
2743
  onClick: (c) => l(t).update.open(l(f).Add, h)
2738
2744
  }, {
2739
2745
  default: g(() => [
2740
- E(S(l(w).tCurd("add")), 1)
2746
+ E(M(l(w).tCurd("add")), 1)
2741
2747
  ]),
2742
2748
  _: 2
2743
2749
  }, 1032, ["onClick"])) : v("", !0),
@@ -2748,7 +2754,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2748
2754
  onClick: (c) => l(t).update.open(l(f).View, h)
2749
2755
  }, {
2750
2756
  default: g(() => [
2751
- E(S(l(w).tCurd("view")), 1)
2757
+ E(M(l(w).tCurd("view")), 1)
2752
2758
  ]),
2753
2759
  _: 2
2754
2760
  }, 1032, ["onClick"])) : v("", !0),
@@ -2759,7 +2765,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2759
2765
  onClick: (c) => l(t).update.open(l(f).Update, h)
2760
2766
  }, {
2761
2767
  default: g(() => [
2762
- E(S(l(w).tCurd("edit")), 1)
2768
+ E(M(l(w).tCurd("edit")), 1)
2763
2769
  ]),
2764
2770
  _: 2
2765
2771
  }, 1032, ["onClick"])) : v("", !0),
@@ -2770,7 +2776,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2770
2776
  onClick: (c) => l(t).remove.open([h])
2771
2777
  }, {
2772
2778
  default: g(() => [
2773
- E(S(l(w).tCurd("delete")), 1)
2779
+ E(M(l(w).tCurd("delete")), 1)
2774
2780
  ]),
2775
2781
  _: 2
2776
2782
  }, 1032, ["onClick"])) : v("", !0),
@@ -2789,8 +2795,8 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2789
2795
  ])
2790
2796
  ], 2)
2791
2797
  ], 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({
2798
+ S("div", Kt, [
2799
+ (i.option.page?.show === void 0 || i.option.page?.show) && !l(t).page.showTools ? (d(), y(l(pe), C({
2794
2800
  key: 0,
2795
2801
  "current-page": l(t).page.num,
2796
2802
  "onUpdate:currentPage": p[8] || (p[8] = (h) => l(t).page.num = h),
@@ -2809,23 +2815,23 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2809
2815
  ], 2),
2810
2816
  V(m.$slots, "box-right")
2811
2817
  ], 2),
2812
- O(l(ne), C({
2818
+ U(l(ie), C({
2813
2819
  modelValue: l(t).update.show,
2814
2820
  "onUpdate:modelValue": p[10] || (p[10] = (h) => l(t).update.show = h),
2815
2821
  title: l(t).update.title,
2816
2822
  "before-close": l(t).update.close
2817
2823
  }, i.option.dialog), {
2818
2824
  footer: g(() => [
2819
- U("span", Nt, [
2820
- O(l(Q), {
2825
+ S("span", Pt, [
2826
+ U(l(Q), {
2821
2827
  size: i.option.size?.form
2822
2828
  }, {
2823
2829
  default: g(() => [
2824
- O(l(T), {
2830
+ U(l(T), {
2825
2831
  onClick: l(t).update.close
2826
2832
  }, {
2827
2833
  default: g(() => [
2828
- E(S(l(w).tCurd("close")), 1)
2834
+ E(M(l(w).tCurd("close")), 1)
2829
2835
  ]),
2830
2836
  _: 1
2831
2837
  }, 8, ["onClick"]),
@@ -2836,7 +2842,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2836
2842
  loading: l(t).update.loading
2837
2843
  }, {
2838
2844
  default: g(() => [
2839
- E(S(l(w).tCurd("submit")), 1)
2845
+ E(M(l(w).tCurd("submit")), 1)
2840
2846
  ]),
2841
2847
  _: 1
2842
2848
  }, 8, ["onClick", "loading"])) : v("", !0)
@@ -2846,7 +2852,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2846
2852
  ])
2847
2853
  ]),
2848
2854
  default: g(() => [
2849
- O(l(Q), {
2855
+ U(l(Q), {
2850
2856
  ref_key: "ruleFormRef",
2851
2857
  ref: r,
2852
2858
  model: l(t).update.form,
@@ -2859,7 +2865,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2859
2865
  l(a)(
2860
2866
  (() => {
2861
2867
  const c = [], $ = (B) => {
2862
- B?.item?.children ? $(B.item.children) : c.push(...B.map((L) => L.item?.show?.form));
2868
+ B?.item?.children ? $(B.item.children) : c.push(...B.map((R) => R.item?.show?.form));
2863
2869
  };
2864
2870
  return $(h), c;
2865
2871
  })(),
@@ -2879,15 +2885,15 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2879
2885
  key: 0,
2880
2886
  class: I([c.item.form.span > 0 ? `col-${l(t).getColumnSpan(c, h)}` : "col", `form-item-col-${c.item.key}`])
2881
2887
  }, [
2882
- (d(!0), b(D, null, A(c.item.children ? c.children : [c], ($) => (d(), y(zt, {
2888
+ (d(!0), b(D, null, A(c.item.children ? c.children : [c], ($) => (d(), y(Vt, {
2883
2889
  key: $.item.key,
2884
2890
  conf: l(t),
2885
2891
  item: $
2886
2892
  }, 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 || {}))
2893
+ A(m.$slots, (B, R) => ({
2894
+ name: R,
2895
+ fn: g((j) => [
2896
+ V(m.$slots, R, C({ ref_for: !0 }, j || {}))
2891
2897
  ])
2892
2898
  }))
2893
2899
  ]), 1032, ["conf", "item"]))), 128))
@@ -2904,33 +2910,33 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2904
2910
  ]),
2905
2911
  _: 3
2906
2912
  }, 16, ["modelValue", "title", "before-close"]),
2907
- O(l(ne), {
2913
+ U(l(ie), {
2908
2914
  modelValue: l(t).remove.show,
2909
2915
  "onUpdate:modelValue": p[11] || (p[11] = (h) => l(t).remove.show = h),
2910
2916
  title: l(t).remove.title,
2911
2917
  "close-on-click-modal": !1
2912
2918
  }, {
2913
2919
  footer: g(() => [
2914
- U("span", qt, [
2915
- O(l(Q), {
2920
+ S("span", Jt, [
2921
+ U(l(Q), {
2916
2922
  size: i.option.size?.form
2917
2923
  }, {
2918
2924
  default: g(() => [
2919
- O(l(T), {
2925
+ U(l(T), {
2920
2926
  onClick: l(t).remove.close
2921
2927
  }, {
2922
2928
  default: g(() => [
2923
- E(S(l(w).tCurd("close")), 1)
2929
+ E(M(l(w).tCurd("close")), 1)
2924
2930
  ]),
2925
2931
  _: 1
2926
2932
  }, 8, ["onClick"]),
2927
- O(l(T), {
2933
+ U(l(T), {
2928
2934
  type: "danger",
2929
2935
  onClick: l(t).remove.submit,
2930
2936
  loading: l(t).remove.loading
2931
2937
  }, {
2932
2938
  default: g(() => [
2933
- E(S(l(w).tCurd("confirmDelete")), 1)
2939
+ E(M(l(w).tCurd("confirmDelete")), 1)
2934
2940
  ]),
2935
2941
  _: 1
2936
2942
  }, 8, ["onClick", "loading"])
@@ -2940,16 +2946,16 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2940
2946
  ])
2941
2947
  ]),
2942
2948
  default: g(() => [
2943
- i.option.dialog?.delete?.content ? (d(), b("div", Wt, [
2944
- O(et, {
2949
+ i.option.dialog?.delete?.content ? (d(), b("div", Nt, [
2950
+ U(_e, {
2945
2951
  content: i.option.dialog?.delete?.content,
2946
2952
  value: l(t).remove.items
2947
2953
  }, null, 8, ["content", "value"])
2948
- ])) : (d(), b("div", Jt, S(l(w).tCurd("confirmDeleteMessage", l(t).remove.items.length)), 1))
2954
+ ])) : (d(), b("div", Wt, M(l(w).tCurd("confirmDeleteMessage", l(t).remove.items.length)), 1))
2949
2955
  ]),
2950
2956
  _: 1
2951
2957
  }, 8, ["modelValue", "title"]),
2952
- O(Ge, {
2958
+ U(Qe, {
2953
2959
  ref_key: "switchConfirmRef",
2954
2960
  ref: e,
2955
2961
  size: i.option.size?.form
@@ -2958,7 +2964,7 @@ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2958
2964
  };
2959
2965
  }
2960
2966
  });
2961
- class xt {
2967
+ class Zt {
2962
2968
  /**
2963
2969
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2964
2970
  *
@@ -2990,7 +2996,7 @@ class xt {
2990
2996
  a.accept = t, a.style.display = "none", a.onchange = (e) => {
2991
2997
  const r = e.target.files[0];
2992
2998
  if (!r) {
2993
- M.fail("未选择文件"), n("未选择文件");
2999
+ O.fail("未选择文件"), n("未选择文件");
2994
3000
  return;
2995
3001
  }
2996
3002
  const s = new FileReader();
@@ -2998,31 +3004,31 @@ class xt {
2998
3004
  const p = t == ".json" ? JSON.parse(m.target.result) : m.target.result;
2999
3005
  f(p);
3000
3006
  }, s.onerror = () => {
3001
- M.fail("文件读取失败"), n("文件读取失败");
3007
+ O.fail("文件读取失败"), n("文件读取失败");
3002
3008
  }, s.readAsText(r), document.body.removeChild(a);
3003
3009
  }, document.body.appendChild(a), a.click();
3004
3010
  });
3005
3011
  }
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;
3012
+ const Qt = (i, o) => {
3013
+ if (i.component("TCurd", qt), i.component("TFormList", fe), i.component("TColumn", Ne), o?.customComponent) {
3014
+ L.customComponent = o.customComponent;
3009
3015
  for (const f in o.customComponent)
3010
3016
  i.component(f, o.customComponent[f]);
3011
3017
  }
3012
- }, _t = {
3013
- install: Gt
3018
+ }, xt = {
3019
+ install: Qt
3014
3020
  };
3015
3021
  export {
3016
3022
  P as ArrUtil,
3017
- Je as ExcelUtil,
3018
- We as TColumn,
3019
- Qt as TCurd,
3020
- xt as TFile,
3021
- j as TForm,
3023
+ We as ExcelUtil,
3024
+ Ne as TColumn,
3025
+ qt as TCurd,
3026
+ Zt as TFile,
3027
+ L as TForm,
3022
3028
  F as TFormConfig,
3023
3029
  w as TFormI18n,
3024
- ue as TFormList,
3025
- M as TSys,
3026
- _t as default,
3027
- Gt as install
3030
+ fe as TFormList,
3031
+ O as TSys,
3032
+ xt as default,
3033
+ Qt as install
3028
3034
  };