cc1-form 1.2.0 → 1.2.1

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 ce, ElLoading as me, ElForm as N, ElFormItem as G, ElInput as Y, ElSwitch as oe, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as _, ElButton as T, ElTableColumn as ee, ElDropdown as he, ElDropdownMenu as ye, ElDropdownItem as x, ElPagination as ie, ElTable as ge } from "element-plus";
1
+ import { ElMessage as ce, ElLoading as me, ElForm as N, ElFormItem as G, ElInput as Z, ElSwitch as X, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as ee, ElButton as T, ElTableColumn as te, ElDropdown as he, ElDropdownMenu as ye, ElDropdownItem as _, ElPagination as ie, ElTable as be } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as X, createElementBlock as g, createCommentVNode as k, openBlock as f, renderSlot as C, createVNode as z, withCtx as m, createTextVNode as $, Fragment as S, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, createElementVNode as F, mergeProps as v, toHandlers as D, resolveDynamicComponent as q, toDisplayString as U, getCurrentInstance as be, createSlots as te, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
4
- class E {
3
+ import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as Y, createElementBlock as b, createCommentVNode as k, openBlock as f, renderSlot as C, createVNode as z, withCtx as m, createTextVNode as $, Fragment as S, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, createElementVNode as F, mergeProps as v, toHandlers as D, resolveDynamicComponent as q, toDisplayString as E, getCurrentInstance as ge, createSlots as oe, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
4
+ class U {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
7
7
  */
@@ -43,9 +43,9 @@ class E {
43
43
  * @param module
44
44
  */
45
45
  static loadModule = async (o) => {
46
- if (!E.moduleObj[o])
46
+ if (!U.moduleObj[o])
47
47
  throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const u = await E.moduleObj[o]();
48
+ const u = await U.moduleObj[o]();
49
49
  return u.default ?? u;
50
50
  };
51
51
  /**
@@ -133,7 +133,7 @@ class E {
133
133
  */
134
134
  static getImgPic = (o) => new Promise(async (u, t) => {
135
135
  let r = document.getElementById(o.id);
136
- const l = await E.loadModule("html2canvas");
136
+ const l = await U.loadModule("html2canvas");
137
137
  try {
138
138
  l(r, {
139
139
  logging: !1,
@@ -560,7 +560,7 @@ class M {
560
560
  */
561
561
  parentId: (o, u, t, r) => {
562
562
  const l = O.config.table.rowKey;
563
- o ? u.type === E.EDialog.Add ? (u.form.parentId = o[l], u.form.sort = o.children.length + 1) : u.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), M.setOptionsData(r, "parentId", [{ [l]: "0", title: "根", children: t }]);
563
+ o ? u.type === U.EDialog.Add ? (u.form.parentId = o[l], u.form.sort = o.children.length + 1) : u.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), M.setOptionsData(r, "parentId", [{ [l]: "0", title: "根", children: t }]);
564
564
  }
565
565
  }
566
566
  };
@@ -686,7 +686,7 @@ const ze = {
686
686
  key: 0,
687
687
  class: "column curd-form-com-list",
688
688
  style: { width: "100%", gap: "10px" }
689
- }, $e = { key: 0 }, De = {
689
+ }, De = { key: 0 }, $e = {
690
690
  class: "row items-center",
691
691
  style: { gap: "10px", width: "100%" }
692
692
  }, Se = { key: 1 }, ne = /* @__PURE__ */ J({
@@ -746,10 +746,10 @@ const ze = {
746
746
  });
747
747
  const r = o;
748
748
  return (l, e) => {
749
- const s = X("el-button"), p = X("el-input");
750
- return t.show ? (f(), g("div", ze, [
749
+ const s = Y("el-button"), p = Y("el-input");
750
+ return t.show ? (f(), b("div", ze, [
751
751
  C(l.$slots, "list-start", { row: i.row }),
752
- i.addBottom ? k("", !0) : (f(), g("div", $e, [
752
+ i.addBottom ? k("", !0) : (f(), b("div", De, [
753
753
  z(s, {
754
754
  link: "",
755
755
  type: "primary",
@@ -761,17 +761,17 @@ const ze = {
761
761
  _: 1
762
762
  })
763
763
  ])),
764
- (f(!0), g(S, null, L(i.row[i.field], (c) => (f(), g("div", De, [
764
+ (f(!0), b(S, null, L(i.row[i.field], (c) => (f(), b("div", $e, [
765
765
  C(l.$slots, "item-start", {
766
766
  item: c,
767
767
  row: i.row
768
768
  }),
769
- (f(!0), g(S, null, L(i.itemFields, (b) => (f(), h(p, {
770
- modelValue: c[b.value],
771
- "onUpdate:modelValue": (n) => c[b.value] = n,
769
+ (f(!0), b(S, null, L(i.itemFields, (g) => (f(), h(p, {
770
+ modelValue: c[g.value],
771
+ "onUpdate:modelValue": (n) => c[g.value] = n,
772
772
  style: fe({ width: i.inputWidth }),
773
773
  class: j(i.inputClass),
774
- placeholder: b[i.label] || b[i.value],
774
+ placeholder: g[i.label] || g[i.value],
775
775
  onChange: e[1] || (e[1] = (n) => r("change"))
776
776
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
777
777
  C(l.$slots, "item-end", {
@@ -781,7 +781,7 @@ const ze = {
781
781
  z(s, {
782
782
  link: "",
783
783
  type: "danger",
784
- onClick: (b) => t.remove(i.field, i.row, c)
784
+ onClick: (g) => t.remove(i.field, i.row, c)
785
785
  }, {
786
786
  default: m(() => e[4] || (e[4] = [
787
787
  $("删除")
@@ -789,7 +789,7 @@ const ze = {
789
789
  _: 2
790
790
  }, 1032, ["onClick"])
791
791
  ]))), 256)),
792
- i.addBottom ? (f(), g("div", Se, [
792
+ i.addBottom ? (f(), b("div", Se, [
793
793
  z(s, {
794
794
  link: "",
795
795
  type: "primary",
@@ -805,10 +805,10 @@ const ze = {
805
805
  ])) : k("", !0);
806
806
  };
807
807
  }
808
- }), Ee = {
808
+ }), Ue = {
809
809
  class: "row form-item-content",
810
810
  style: { width: "100%" }
811
- }, Ue = { class: "col" }, Oe = { class: "col" }, Fe = ["innerHTML"], Ae = /* @__PURE__ */ J({
811
+ }, Ee = { class: "col" }, Oe = { class: "col" }, Fe = ["innerHTML"], Ae = /* @__PURE__ */ J({
812
812
  __name: "column",
813
813
  props: {
814
814
  /**
@@ -825,7 +825,7 @@ const ze = {
825
825
  }
826
826
  },
827
827
  setup(i, { expose: o }) {
828
- const u = E.isFun, t = E.EDialog, r = H(), l = i, e = le({
828
+ const u = U.isFun, t = U.EDialog, r = H(), l = i, e = le({
829
829
  rules: {},
830
830
  show: !0,
831
831
  form: {},
@@ -837,15 +837,15 @@ const ze = {
837
837
  getOn: (s) => s.options?.[e.type === t.Add ? "formAdd" : "formUpdate"]?.[s.type]?.on || s.options?.[s.type]?.on || {},
838
838
  getColumnSpan: (s, p) => {
839
839
  if (s.item.form?.spanCol) {
840
- const c = l.option.form?.maxSpan || 12, b = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !E.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || b), 0);
841
- return (s.item.form?.span || b) + d;
840
+ const c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !U.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || g), 0);
841
+ return (s.item.form?.span || g) + d;
842
842
  }
843
843
  return s.item.form?.span;
844
844
  },
845
845
  initColumnForm: () => {
846
846
  const s = l.option;
847
847
  e.formColumn = [], e.rules = {}, e.formDefault = {};
848
- const p = [], c = l.option.form?.maxSpan || 12, b = l.option.form?.defaultSpan || c / 2;
848
+ const p = [], c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2;
849
849
  let n = [];
850
850
  const d = (w) => {
851
851
  if (w.children) {
@@ -855,17 +855,17 @@ const ze = {
855
855
  return;
856
856
  }
857
857
  if (e.formDefault[w.key] = w.value, w.isForm && (typeof w.show?.form != "boolean" || w.show?.form)) {
858
- w.form = w.form || { span: b }, w.form.span = w.form.span ?? b;
859
- const A = w.form.span, B = n.reduce((Q, Z) => Q + Z.span, A), R = n.length;
858
+ w.form = w.form || { span: g }, w.form.span = w.form.span ?? g;
859
+ const A = w.form.span, B = n.reduce((Q, x) => Q + x.span, A), R = n.length;
860
860
  if (n.push({ item: w, span: A }), (R === 1 && n[0].span === 0 || B >= c || A === 0 && R > 1) && (p.push(n), n = []), w.rules) {
861
861
  const Q = {
862
862
  input: y.tCurd("placeholderInput"),
863
863
  select: y.tCurd("placeholderSelect")
864
- }, Z = (Q[w.type] || Q.input) + w.label;
864
+ }, x = (Q[w.type] || Q.input) + w.label;
865
865
  e.rules[w.key] = typeof w.rules == "boolean" ? [
866
866
  {
867
867
  required: !0,
868
- message: Z,
868
+ message: x,
869
869
  trigger: "blur"
870
870
  }
871
871
  ] : w.rules;
@@ -889,12 +889,12 @@ const ze = {
889
889
  rules: e.rules
890
890
  }, {
891
891
  default: m(() => [
892
- e.show ? (f(!0), g(S, { key: 0 }, L(e.formColumn, (c, b) => (f(), g(S, { key: b }, [
892
+ e.show ? (f(!0), b(S, { key: 0 }, L(e.formColumn, (c, g) => (f(), b(S, { key: g }, [
893
893
  a(u)(
894
894
  c.map((n) => n.item?.show?.form),
895
895
  e.form,
896
896
  e.type
897
- ) ? (f(), g("div", {
897
+ ) ? (f(), b("div", {
898
898
  key: 0,
899
899
  class: j(["row curd-row", {
900
900
  stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
@@ -903,10 +903,10 @@ const ze = {
903
903
  C(s.$slots, "form-start", {
904
904
  row: e.form
905
905
  }),
906
- (f(!0), g(S, null, L(c, (n) => (f(), g(S, {
906
+ (f(!0), b(S, null, L(c, (n) => (f(), b(S, {
907
907
  key: n.item.key
908
908
  }, [
909
- a(u)(n.item.show?.form, e.form, e.type) ? (f(), g("div", {
909
+ a(u)(n.item.show?.form, e.form, e.type) ? (f(), b("div", {
910
910
  key: 0,
911
911
  class: j([n.item.form.span > 0 ? `col-${e.getColumnSpan(n, c)}` : "col", `form-item-col-${n.item.key}`])
912
912
  }, [
@@ -919,25 +919,25 @@ const ze = {
919
919
  "label-width": n.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
920
920
  }, {
921
921
  default: m(() => [
922
- F("div", Ee, [
922
+ F("div", Ue, [
923
923
  C(s.$slots, "form-" + n.item.key + "-start", {
924
924
  row: e.form,
925
925
  item: n.item
926
926
  }),
927
- F("div", Ue, [
927
+ F("div", Ee, [
928
928
  F("div", Oe, [
929
929
  C(s.$slots, "form-" + n.item.key, {
930
930
  row: e.form,
931
931
  item: n.item
932
932
  }, () => [
933
- n.item.type === "input" ? (f(), h(a(Y), v({
933
+ n.item.type === "input" ? (f(), h(a(Z), v({
934
934
  key: 0,
935
935
  modelValue: e.form[n.item.key],
936
936
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
937
937
  ref_for: !0
938
938
  }, e.getBind(n.item), D(e.getOn(n.item)), {
939
939
  disabled: e.getDisabled(n.item)
940
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "switch" ? (f(), h(a(oe), v({
940
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "switch" ? (f(), h(a(X), v({
941
941
  key: 1,
942
942
  modelValue: e.form[n.item.key],
943
943
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
@@ -954,7 +954,7 @@ const ze = {
954
954
  style: { width: "100%" }
955
955
  }), {
956
956
  default: m(() => [
957
- (f(!0), g(S, null, L(n.item.options?.select?.data, (d) => (f(), h(a(K), {
957
+ (f(!0), b(S, null, L(n.item.options?.select?.data, (d) => (f(), h(a(K), {
958
958
  key: d.value,
959
959
  label: d.label,
960
960
  value: d.value
@@ -971,7 +971,7 @@ const ze = {
971
971
  style: { width: "100%" }
972
972
  }), {
973
973
  default: m(() => [
974
- (f(!0), g(S, null, L(n.item.options?.radio?.data, (d) => (f(), h(a(se), {
974
+ (f(!0), b(S, null, L(n.item.options?.radio?.data, (d) => (f(), h(a(se), {
975
975
  key: d.value,
976
976
  label: d.label,
977
977
  value: d.value
@@ -1019,7 +1019,7 @@ const ze = {
1019
1019
  row: e.form,
1020
1020
  item: n.item
1021
1021
  }, () => [
1022
- n.item.form?.tipText ? (f(), g("div", {
1022
+ n.item.form?.tipText ? (f(), b("div", {
1023
1023
  key: 0,
1024
1024
  class: "form-tip-text",
1025
1025
  innerHTML: typeof n.item.form?.tipText == "function" ? n.item.form?.tipText(e.form, e.type) : n.item.form?.tipText
@@ -1056,16 +1056,16 @@ class Te {
1056
1056
  */
1057
1057
  static exportToExcel = async (o, u, t) => {
1058
1058
  if (!o || o.length === 0) return;
1059
- const r = await E.loadModule("xlsx"), l = o.map((p) => {
1059
+ const r = await U.loadModule("xlsx"), l = o.map((p) => {
1060
1060
  const c = {};
1061
- return u.forEach((b) => {
1062
- c[b.label] = p[b.key];
1061
+ return u.forEach((g) => {
1062
+ c[g.label] = p[g.key];
1063
1063
  }), c;
1064
1064
  }), e = r.utils.json_to_sheet(l), s = r.utils.book_new();
1065
1065
  r.utils.book_append_sheet(s, e, "Sheet1"), t ? typeof t == "function" && (t = t()) : t = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, r.writeFile(s, `${t}.xlsx`);
1066
1066
  };
1067
1067
  }
1068
- const I = E.EDialog, Le = (i) => {
1068
+ const I = U.EDialog, Le = (i) => {
1069
1069
  const o = H(), u = H(), t = le({
1070
1070
  option: i.option,
1071
1071
  /** 查询区域相关配置对象 */
@@ -1192,8 +1192,8 @@ const I = E.EDialog, Le = (i) => {
1192
1192
  ...l
1193
1193
  }), s = O.config.field.result, p = e.data || { [s.list]: e };
1194
1194
  let c = (Array.isArray(p[s.list]), p[s.list]);
1195
- const b = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1196
- const A = b.find((B) => B.item.key === w);
1195
+ const g = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1196
+ const A = g.find((B) => B.item.key === w);
1197
1197
  A && ["select", "radio"].includes(A.item.type) && (A.item.table.format || (A.item.table.format = (B) => A.item.options[A.item.type].data?.find((R) => R.value == B[w])?.label || B[w]));
1198
1198
  }), d));
1199
1199
  t.table.data = i.option.data ? await i.option.data(n, c) : n, t.page.total = p[s.total] || 0;
@@ -1255,7 +1255,7 @@ const I = E.EDialog, Le = (i) => {
1255
1255
  return;
1256
1256
  }
1257
1257
  if (t.table.selection.list.length === 0)
1258
- throw E.fail(y.tCurd("selectDataToExport")), new Error(y.tCurd("selectDataToExport"));
1258
+ throw U.fail(y.tCurd("selectDataToExport")), new Error(y.tCurd("selectDataToExport"));
1259
1259
  return t.table.selection.list;
1260
1260
  } catch (r) {
1261
1261
  console.error(r);
@@ -1274,7 +1274,7 @@ const I = E.EDialog, Le = (i) => {
1274
1274
  return;
1275
1275
  }
1276
1276
  if (t.table.data.length === 0)
1277
- throw E.fail(y.tCurd("noData")), new Error(y.tCurd("noData"));
1277
+ throw U.fail(y.tCurd("noData")), new Error(y.tCurd("noData"));
1278
1278
  return t.table.data;
1279
1279
  } catch (r) {
1280
1280
  console.error(r);
@@ -1372,7 +1372,7 @@ const I = E.EDialog, Le = (i) => {
1372
1372
  /** 打开增改弹窗 */
1373
1373
  open: (r, l) => {
1374
1374
  t.update.showContent || FunUtil.throttle(async () => {
1375
- E.loading(!0);
1375
+ U.loading(!0);
1376
1376
  try {
1377
1377
  t.update.type = r, await t.initApiData("update");
1378
1378
  const e = r === I.Add;
@@ -1380,15 +1380,15 @@ const I = E.EDialog, Le = (i) => {
1380
1380
  } catch (e) {
1381
1381
  console.error(e);
1382
1382
  } finally {
1383
- E.loading(!1);
1383
+ U.loading(!1);
1384
1384
  }
1385
1385
  });
1386
1386
  },
1387
1387
  /** 提交增改表单操作 */
1388
1388
  submit: () => {
1389
1389
  FunUtil.throttle(async () => {
1390
- await u.value?.validate(async (s, p) => new Promise((c, b) => {
1391
- s || (E.fail(y.tCurd("checkFormData")), b(!1)), c();
1390
+ await u.value?.validate(async (s, p) => new Promise((c, g) => {
1391
+ s || (U.fail(y.tCurd("checkFormData")), g(!1)), c();
1392
1392
  })), t.update.loading = !0;
1393
1393
  const r = t.update.type === I.Add ? i.option.api.create : i.option.api.update;
1394
1394
  try {
@@ -1455,7 +1455,7 @@ const I = E.EDialog, Le = (i) => {
1455
1455
  /** 打开删除弹窗并设置待删除项 */
1456
1456
  open: (r) => {
1457
1457
  if (r.length === 0) {
1458
- E.fail(y.tCurd("selectDataToDelete"));
1458
+ U.fail(y.tCurd("selectDataToDelete"));
1459
1459
  return;
1460
1460
  }
1461
1461
  t.remove.items = r, t.remove.show = !0;
@@ -1470,7 +1470,7 @@ const I = E.EDialog, Le = (i) => {
1470
1470
  await r({
1471
1471
  [i.option.table?.rowKey]: t.remove.items.map((l) => l[i.option.table?.rowKey]),
1472
1472
  items: t.remove.items
1473
- }), E.success(y.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
1473
+ }), U.success(y.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
1474
1474
  } catch (l) {
1475
1475
  console.error(l);
1476
1476
  } finally {
@@ -1498,8 +1498,8 @@ const I = E.EDialog, Le = (i) => {
1498
1498
  try {
1499
1499
  let c = await s.options?.[s.type]?.dataApi?.(t.update.form, r);
1500
1500
  if (c) {
1501
- const b = s.options?.[s.type]?.dataPath;
1502
- b && (c = ObjectUtil.getPathValue(c, b)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
1501
+ const g = s.options?.[s.type]?.dataPath;
1502
+ g && (c = ObjectUtil.getPathValue(c, g)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
1503
1503
  }
1504
1504
  } catch {
1505
1505
  }
@@ -1558,12 +1558,12 @@ const I = E.EDialog, Le = (i) => {
1558
1558
  return i.option.api.update ? (await i.option.api.update({
1559
1559
  [i.option.table?.rowKey]: p[i.option.table?.rowKey],
1560
1560
  [s]: p[s] === c.activeValue ? c.inactiveValue : c.activeValue,
1561
- final(b, n, d) {
1561
+ final(g, n, d) {
1562
1562
  t.table.loading = !1;
1563
1563
  }
1564
- }), t.table.loading = !1, E.success(y.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
1565
- } catch (b) {
1566
- return console.error(b), !1;
1564
+ }), t.table.loading = !1, U.success(y.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
1565
+ } catch (g) {
1566
+ return console.error(g), !1;
1567
1567
  } finally {
1568
1568
  t.table.loading = !1;
1569
1569
  }
@@ -1576,7 +1576,7 @@ const I = E.EDialog, Le = (i) => {
1576
1576
  },
1577
1577
  getColumnSpan: (r, l) => {
1578
1578
  if (r.item.form?.spanCol) {
1579
- const e = O.config.form.defaultSpan, p = l.filter((c) => !E.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, b) => c + (b.item.form?.span || e), 0);
1579
+ const e = O.config.form.defaultSpan, p = l.filter((c) => !U.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, g) => c + (g.item.form?.span || e), 0);
1580
1580
  return (r.item?.form.span || e) + p;
1581
1581
  }
1582
1582
  return r.item.form.span;
@@ -1615,13 +1615,13 @@ const I = E.EDialog, Le = (i) => {
1615
1615
  ] : d.rules;
1616
1616
  }
1617
1617
  }
1618
- }, b = (d, V) => {
1619
- d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => b(w, V));
1618
+ }, g = (d, V) => {
1619
+ d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => g(w, V));
1620
1620
  };
1621
1621
  r.column.forEach((d) => {
1622
- d.isForm = !0, b(d, !0), c(d);
1622
+ d.isForm = !0, g(d, !0), c(d);
1623
1623
  }), i.option.table?.column?.forEach((d) => {
1624
- b(d, !1), c(d);
1624
+ g(d, !1), c(d);
1625
1625
  }), t.search.column.list = r.column.concat(r.table?.column || []), t.table.column.list = t.search.column.list.filter((d) => d.table?.table), t.search.column.list.sort((d, V) => d.sort?.search - V.sort?.search), t.table.column.list.sort((d, V) => d.sort?.table - V.sort?.table), p.length > 0 && l.push(p), t.update.formColumn = l;
1626
1626
  const n = i.option.search?.formDefault;
1627
1627
  n && Object.keys(n).forEach((d) => {
@@ -1642,7 +1642,7 @@ const I = E.EDialog, Le = (i) => {
1642
1642
  setup(i, { expose: o }) {
1643
1643
  const u = H(!1), t = H("确认修改"), r = H("确认要修改状态吗?");
1644
1644
  let l = null, e = null;
1645
- const s = (b) => (b?.title && (t.value = b.title), b?.content && (r.value = b.content), u.value = !0, new Promise((n, d) => {
1645
+ const s = (g) => (g?.title && (t.value = g.title), g?.content && (r.value = g.content), u.value = !0, new Promise((n, d) => {
1646
1646
  l = n, e = d;
1647
1647
  })), p = () => {
1648
1648
  u.value = !1, l?.(!0), l = null, e = null;
@@ -1651,9 +1651,9 @@ const I = E.EDialog, Le = (i) => {
1651
1651
  };
1652
1652
  return o({
1653
1653
  open: s
1654
- }), (b, n) => {
1655
- const d = X("el-form");
1656
- return f(), h(a(_), {
1654
+ }), (g, n) => {
1655
+ const d = Y("el-form");
1656
+ return f(), h(a(ee), {
1657
1657
  modelValue: u.value,
1658
1658
  "onUpdate:modelValue": n[0] || (n[0] = (V) => u.value = V),
1659
1659
  title: t.value,
@@ -1661,7 +1661,7 @@ const I = E.EDialog, Le = (i) => {
1661
1661
  width: "400px"
1662
1662
  }, {
1663
1663
  footer: m(() => [
1664
- z(d, { size: b.size }, {
1664
+ z(d, { size: g.size }, {
1665
1665
  default: m(() => [
1666
1666
  F("span", Me, [
1667
1667
  z(a(T), { onClick: c }, {
@@ -1685,7 +1685,7 @@ const I = E.EDialog, Le = (i) => {
1685
1685
  }, 8, ["size"])
1686
1686
  ]),
1687
1687
  default: m(() => [
1688
- F("div", null, U(r.value), 1)
1688
+ F("div", null, E(r.value), 1)
1689
1689
  ]),
1690
1690
  _: 1
1691
1691
  }, 8, ["modelValue", "title"]);
@@ -1701,7 +1701,7 @@ const I = E.EDialog, Le = (i) => {
1701
1701
  viewBox: "0 0 1024 1024"
1702
1702
  };
1703
1703
  function Re(i, o) {
1704
- return f(), g("svg", Ie, o[0] || (o[0] = [
1704
+ return f(), b("svg", Ie, o[0] || (o[0] = [
1705
1705
  F("path", {
1706
1706
  fill: "currentColor",
1707
1707
  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"
@@ -1714,7 +1714,7 @@ const Pe = /* @__PURE__ */ pe(je, [["render", Re]]), Ne = {}, Ke = {
1714
1714
  viewBox: "0 0 1024 1024"
1715
1715
  };
1716
1716
  function He(i, o) {
1717
- return f(), g("svg", Ke, o[0] || (o[0] = [
1717
+ return f(), b("svg", Ke, o[0] || (o[0] = [
1718
1718
  F("path", {
1719
1719
  fill: "currentColor",
1720
1720
  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"
@@ -1729,13 +1729,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1729
1729
  option: {}
1730
1730
  },
1731
1731
  setup(i) {
1732
- const o = E.isFun, u = be().type;
1732
+ const o = U.isFun, u = ge().type;
1733
1733
  return (t, r) => {
1734
- const l = X("el-tooltip");
1735
- return f(!0), g(S, null, L(t.columnList, (e) => (f(), g(S, {
1734
+ const l = Y("el-tooltip");
1735
+ return f(!0), b(S, null, L(t.columnList, (e) => (f(), b(S, {
1736
1736
  key: e.key
1737
1737
  }, [
1738
- t.conf.table.column.show.list.includes(e.key) ? (f(), h(a(ee), v({
1738
+ t.conf.table.column.show.list.includes(e.key) ? (f(), h(a(te), v({
1739
1739
  key: 0,
1740
1740
  prop: e.key,
1741
1741
  label: e.label,
@@ -1757,47 +1757,56 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1757
1757
  ]),
1758
1758
  _: 2
1759
1759
  }, 1032, ["content"])) : k("", !0),
1760
- $(" " + U(e.label), 1)
1760
+ $(" " + E(e.label), 1)
1761
1761
  ])
1762
1762
  ])
1763
1763
  ]),
1764
1764
  default: m(({ row: s }) => [
1765
- e.children ? (f(), g(S, { key: 0 }, [
1765
+ e.children ? (f(), b(S, { key: 0 }, [
1766
1766
  r[0] || (r[0] = $("   ")),
1767
1767
  (f(), h(q(a(u)), {
1768
1768
  conf: t.conf,
1769
1769
  columnList: e.children,
1770
1770
  option: t.option
1771
- }, te({ _: 2 }, [
1771
+ }, oe({ _: 2 }, [
1772
1772
  L(t.$slots, (p, c) => ({
1773
1773
  name: c,
1774
- fn: m((b) => [
1775
- C(t.$slots, c, v({ ref_for: !0 }, b || {}))
1774
+ fn: m((g) => [
1775
+ C(t.$slots, c, v({ ref_for: !0 }, g || {}))
1776
1776
  ])
1777
1777
  }))
1778
1778
  ]), 1032, ["conf", "columnList", "option"]))
1779
- ], 64)) : (f(), g(S, { key: 1 }, [
1780
- a(o)(e.show?.form, t.conf.update.form, a(E).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), g(S, { key: 0 }, [
1781
- e.type === "input" ? (f(), h(a(Y), v({
1779
+ ], 64)) : (f(), b(S, { key: 1 }, [
1780
+ a(o)(e.show?.form, t.conf.update.form, a(U).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), b(S, { key: 0 }, [
1781
+ e.type === "input" ? (f(), h(a(Z), v({
1782
1782
  key: 0,
1783
1783
  modelValue: t.conf.update.form[e.key],
1784
1784
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1785
+ disabled: t.conf.update.getDisabled(e),
1785
1786
  ref_for: !0
1786
- }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "select" ? (f(), h(a(W), v({
1787
+ }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (f(), h(a(W), v({
1787
1788
  key: 1,
1788
1789
  modelValue: t.conf.update.form[e.key],
1789
1790
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1791
+ disabled: t.conf.update.getDisabled(e),
1790
1792
  ref_for: !0
1791
1793
  }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
1792
1794
  default: m(() => [
1793
- (f(!0), g(S, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
1795
+ (f(!0), b(S, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
1794
1796
  key: p.value,
1795
1797
  label: p.label,
1796
1798
  value: p.value
1797
1799
  }, null, 8, ["label", "value"]))), 128))
1798
1800
  ]),
1799
1801
  _: 2
1800
- }, 1040, ["modelValue", "onUpdate:modelValue"])) : k("", !0)
1802
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), h(a(X), v({
1803
+ key: 2,
1804
+ modelValue: t.conf.update.form[e.key],
1805
+ "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1806
+ ref_for: !0
1807
+ }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), {
1808
+ disabled: t.conf.update.getDisabled(e)
1809
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
1801
1810
  ], 64)) : C(t.$slots, "table-" + e.key, {
1802
1811
  key: 1,
1803
1812
  row: s,
@@ -1808,13 +1817,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1808
1817
  modelValue: s[e.key],
1809
1818
  "onUpdate:modelValue": (p) => s[e.key] = p,
1810
1819
  ref_for: !0
1811
- }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(oe), v({
1820
+ }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(X), v({
1812
1821
  key: 1,
1813
1822
  modelValue: s[e.key],
1814
1823
  "onUpdate:modelValue": (p) => s[e.key] = p,
1815
1824
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, s),
1816
1825
  ref_for: !0
1817
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), g("span", {
1826
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), b("span", {
1818
1827
  key: 2,
1819
1828
  style: fe({
1820
1829
  "--table-text-click-color": e.table?.click?.color
@@ -1861,13 +1870,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1861
1870
  row: o.conf.update.form,
1862
1871
  item: o.item.item
1863
1872
  }, () => [
1864
- o.item.item.type === "input" ? (f(), h(a(Y), v({
1873
+ o.item.item.type === "input" ? (f(), h(a(Z), v({
1865
1874
  key: 0,
1866
1875
  modelValue: o.conf.update.form[o.item.item.key],
1867
1876
  "onUpdate:modelValue": u[0] || (u[0] = (t) => o.conf.update.form[o.item.item.key] = t)
1868
1877
  }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1869
1878
  disabled: o.conf.update.getDisabled(o.item.item)
1870
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (f(), h(a(oe), v({
1879
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (f(), h(a(X), v({
1871
1880
  key: 1,
1872
1881
  modelValue: o.conf.update.form[o.item.item.key],
1873
1882
  "onUpdate:modelValue": u[1] || (u[1] = (t) => o.conf.update.form[o.item.item.key] = t)
@@ -1882,7 +1891,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1882
1891
  style: { width: "100%" }
1883
1892
  }), {
1884
1893
  default: m(() => [
1885
- (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
1894
+ (f(!0), b(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
1886
1895
  key: t.value,
1887
1896
  label: t.label,
1888
1897
  value: t.value
@@ -1898,7 +1907,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1898
1907
  style: { width: "100%" }
1899
1908
  }), {
1900
1909
  default: m(() => [
1901
- (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
1910
+ (f(!0), b(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
1902
1911
  key: t.value,
1903
1912
  label: t.label,
1904
1913
  value: t.value
@@ -1942,7 +1951,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1942
1951
  row: o.conf.update.form,
1943
1952
  item: o.item.item
1944
1953
  }, () => [
1945
- o.item.item.form?.tipText ? (f(), g("div", {
1954
+ o.item.item.form?.tipText ? (f(), b("div", {
1946
1955
  key: 0,
1947
1956
  class: "form-tip-text",
1948
1957
  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
@@ -1981,12 +1990,12 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1981
1990
  }
1982
1991
  },
1983
1992
  setup(i, { expose: o }) {
1984
- const u = E.EDialog, t = i, r = E.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Le(t);
1993
+ const u = U.EDialog, t = i, r = U.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Le(t);
1985
1994
  return o({
1986
1995
  conf: l
1987
1996
  }), (p, c) => {
1988
- const b = we("loading");
1989
- return f(), g("div", {
1997
+ const g = we("loading");
1998
+ return f(), b("div", {
1990
1999
  class: j(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
1991
2000
  }, [
1992
2001
  F("div", {
@@ -1997,7 +2006,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1997
2006
  F("div", {
1998
2007
  class: j(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
1999
2008
  }, [
2000
- i.option.search?.show !== !1 ? (f(), g("div", et, [
2009
+ i.option.search?.show !== !1 ? (f(), b("div", et, [
2001
2010
  z(a(N), {
2002
2011
  model: a(l).search.form,
2003
2012
  inline: "",
@@ -2007,7 +2016,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2007
2016
  C(p.$slots, "search-start", {
2008
2017
  row: a(l).search.form
2009
2018
  }),
2010
- (f(!0), g(S, null, L(a(l).search.column.list, (n) => (f(), g(S, {
2019
+ (f(!0), b(S, null, L(a(l).search.column.list, (n) => (f(), b(S, {
2011
2020
  key: n.key
2012
2021
  }, [
2013
2022
  (typeof n.show?.search == "function" ? n.show?.search(a(l).search.form) : n.show?.search) ? (f(), h(a(G), {
@@ -2021,7 +2030,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2021
2030
  C(p.$slots, "search-" + n.key, {
2022
2031
  row: a(l).search.form
2023
2032
  }, () => [
2024
- n.type === "input" ? (f(), h(a(Y), v({
2033
+ n.type === "input" ? (f(), h(a(Z), v({
2025
2034
  key: 0,
2026
2035
  modelValue: a(l).search.form[n.key],
2027
2036
  "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
@@ -2061,7 +2070,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2061
2070
  ref_for: !0
2062
2071
  }, n.options?.search?.select || n.options?.select, D(n.options?.search?.select?.on || n.options?.select?.on || {})), {
2063
2072
  default: m(() => [
2064
- (f(!0), g(S, null, L(n.options?.select?.data, (d) => (f(), h(a(K), {
2073
+ (f(!0), b(S, null, L(n.options?.select?.data, (d) => (f(), h(a(K), {
2065
2074
  key: d.value,
2066
2075
  label: d.label,
2067
2076
  value: d.value
@@ -2101,7 +2110,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2101
2110
  onClick: a(l).search.submit
2102
2111
  }, {
2103
2112
  default: m(() => [
2104
- $(U(a(y).tCurd("search")), 1)
2113
+ $(E(a(y).tCurd("search")), 1)
2105
2114
  ]),
2106
2115
  _: 1
2107
2116
  }, 8, ["onClick"])) : k("", !0),
@@ -2110,7 +2119,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2110
2119
  onClick: a(l).search.reset
2111
2120
  }, {
2112
2121
  default: m(() => [
2113
- $(U(a(y).tCurd("reset")), 1)
2122
+ $(E(a(y).tCurd("reset")), 1)
2114
2123
  ]),
2115
2124
  _: 1
2116
2125
  }, 8, ["onClick"])) : k("", !0)
@@ -2126,43 +2135,43 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2126
2135
  ])) : k("", !0),
2127
2136
  F("div", tt, [
2128
2137
  F("div", ot, [
2129
- a(r)(i.option.tools?.add) ? (f(), g("div", at, [
2138
+ a(r)(i.option.tools?.add) ? (f(), b("div", at, [
2130
2139
  z(a(T), {
2131
2140
  type: "primary",
2132
2141
  onClick: c[0] || (c[0] = (n) => a(l).update.open(a(u).Add)),
2133
2142
  size: i.option.size?.search
2134
2143
  }, {
2135
2144
  default: m(() => [
2136
- $(U(a(y).tCurd("add")), 1)
2145
+ $(E(a(y).tCurd("add")), 1)
2137
2146
  ]),
2138
2147
  _: 1
2139
2148
  }, 8, ["size"])
2140
2149
  ])) : k("", !0),
2141
- i.option.table?.selectable && a(r)(i.option.tools?.delete) ? (f(), g("div", lt, [
2150
+ i.option.table?.selectable && a(r)(i.option.tools?.delete) ? (f(), b("div", lt, [
2142
2151
  z(a(T), {
2143
2152
  type: "danger",
2144
2153
  onClick: c[1] || (c[1] = (n) => a(l).remove.open(a(l).table.selection.list)),
2145
2154
  size: i.option.size?.search
2146
2155
  }, {
2147
2156
  default: m(() => [
2148
- $(U(a(y).tCurd("delete")), 1)
2157
+ $(E(a(y).tCurd("delete")), 1)
2149
2158
  ]),
2150
2159
  _: 1
2151
2160
  }, 8, ["size"])
2152
2161
  ])) : k("", !0),
2153
- i.option.tools?.expand ? (f(), g("div", nt, [
2162
+ i.option.tools?.expand ? (f(), b("div", nt, [
2154
2163
  z(a(T), {
2155
2164
  type: "warning",
2156
2165
  onClick: c[2] || (c[2] = (n) => a(l).table.expand.all()),
2157
2166
  size: i.option.size?.search
2158
2167
  }, {
2159
2168
  default: m(() => [
2160
- $(U(a(y).tCurd("expandCollapse")), 1)
2169
+ $(E(a(y).tCurd("expandCollapse")), 1)
2161
2170
  ]),
2162
2171
  _: 1
2163
2172
  }, 8, ["size"])
2164
2173
  ])) : k("", !0),
2165
- i.option.tools?.export?.show ? (f(), g(S, { key: 3 }, [
2174
+ i.option.tools?.export?.show ? (f(), b(S, { key: 3 }, [
2166
2175
  i.option.tools?.export?.dropdown?.show ? (f(), h(a(he), {
2167
2176
  key: 0,
2168
2177
  onCommand: a(l).export.click
@@ -2172,30 +2181,30 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2172
2181
  size: i.option.size?.search
2173
2182
  }, {
2174
2183
  default: m(() => [
2175
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(r)(i.option.tools?.delete)) ? (f(), h(a(x), {
2184
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(r)(i.option.tools?.delete)) ? (f(), h(a(_), {
2176
2185
  key: 0,
2177
2186
  command: "select"
2178
2187
  }, {
2179
2188
  default: m(() => [
2180
- $(U(a(y).tCurd("exportSelect")), 1)
2189
+ $(E(a(y).tCurd("exportSelect")), 1)
2181
2190
  ]),
2182
2191
  _: 1
2183
2192
  })) : k("", !0),
2184
- i.option.tools?.export?.dropdown?.page ? (f(), h(a(x), {
2193
+ i.option.tools?.export?.dropdown?.page ? (f(), h(a(_), {
2185
2194
  key: 1,
2186
2195
  command: "page"
2187
2196
  }, {
2188
2197
  default: m(() => [
2189
- $(U(a(y).tCurd("exportPage")), 1)
2198
+ $(E(a(y).tCurd("exportPage")), 1)
2190
2199
  ]),
2191
2200
  _: 1
2192
2201
  })) : k("", !0),
2193
- i.option.tools?.export?.dropdown?.all ? (f(), h(a(x), {
2202
+ i.option.tools?.export?.dropdown?.all ? (f(), h(a(_), {
2194
2203
  key: 2,
2195
2204
  command: "all"
2196
2205
  }, {
2197
2206
  default: m(() => [
2198
- $(U(a(y).tCurd("exportAll")), 1)
2207
+ $(E(a(y).tCurd("exportAll")), 1)
2199
2208
  ]),
2200
2209
  _: 1
2201
2210
  })) : k("", !0)
@@ -2211,14 +2220,14 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2211
2220
  size: i.option.size?.search
2212
2221
  }, {
2213
2222
  default: m(() => [
2214
- $(U(a(y).tCurd("export")), 1)
2223
+ $(E(a(y).tCurd("export")), 1)
2215
2224
  ]),
2216
2225
  _: 1
2217
2226
  }, 8, ["loading", "size"])
2218
2227
  ])
2219
2228
  ]),
2220
2229
  _: 1
2221
- }, 8, ["onCommand"])) : (f(), g("div", rt, [
2230
+ }, 8, ["onCommand"])) : (f(), b("div", rt, [
2222
2231
  z(a(T), {
2223
2232
  type: "warning",
2224
2233
  loading: a(l).export.loading,
@@ -2226,7 +2235,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2226
2235
  onClick: c[3] || (c[3] = (n) => a(l).export.run.start("all"))
2227
2236
  }, {
2228
2237
  default: m(() => [
2229
- $(U(a(y).tCurd("export")), 1)
2238
+ $(E(a(y).tCurd("export")), 1)
2230
2239
  ]),
2231
2240
  _: 1
2232
2241
  }, 8, ["loading", "size"])
@@ -2251,7 +2260,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2251
2260
  onSizeChange: a(l).table.getList,
2252
2261
  onCurrentChange: a(l).table.getList
2253
2262
  }, i.option.page?.pagination || {}, D(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : k("", !0),
2254
- i.option.tools?.refresh === void 0 || i.option.tools?.refresh ? (f(), g("div", {
2263
+ i.option.tools?.refresh === void 0 || i.option.tools?.refresh ? (f(), b("div", {
2255
2264
  key: 1,
2256
2265
  class: j(["refresh-btn", [i.option.size?.search]]),
2257
2266
  onClick: c[6] || (c[6] = //@ts-ignore
@@ -2267,7 +2276,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2267
2276
  F("div", {
2268
2277
  class: j(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2269
2278
  }, [
2270
- ke((f(), h(a(ge), v({
2279
+ ke((f(), h(a(be), v({
2271
2280
  data: a(l).table.data,
2272
2281
  border: i.option.table?.border === void 0 ? !0 : i.option.table?.border,
2273
2282
  onSelectionChange: a(l).table.selection.change,
@@ -2276,7 +2285,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2276
2285
  onExpandChange: a(l).table.expand.change
2277
2286
  }, i.option.table, D(i.option.table?.on || {})), {
2278
2287
  default: m(() => [
2279
- (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(r)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (f(), h(a(ee), v({
2288
+ (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(r)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (f(), h(a(te), v({
2280
2289
  key: 0,
2281
2290
  type: "selection",
2282
2291
  width: "40",
@@ -2289,7 +2298,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2289
2298
  conf: a(l),
2290
2299
  columnList: a(l).table.column.list,
2291
2300
  option: i.option
2292
- }, te({ _: 2 }, [
2301
+ }, oe({ _: 2 }, [
2293
2302
  L(p.$slots, (n, d) => ({
2294
2303
  name: d,
2295
2304
  fn: m((V) => [
@@ -2297,7 +2306,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2297
2306
  ])
2298
2307
  }))
2299
2308
  ]), 1032, ["conf", "columnList", "option"]),
2300
- a(r)(i.option.table?.add) || a(r)(i.option.table?.update) || a(r)(i.option.table?.delete) || a(r)(i.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(a(ee), v({
2309
+ a(r)(i.option.table?.add) || a(r)(i.option.table?.update) || a(r)(i.option.table?.delete) || a(r)(i.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(a(te), v({
2301
2310
  key: 1,
2302
2311
  width: a(l).table.op.width(a(r)(i.option.table?.add), a(r)(i.option.table?.update), a(r)(i.option.table?.delete), a(r)(i.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2303
2312
  align: "center",
@@ -2305,7 +2314,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2305
2314
  }, i.option.table?.operate), {
2306
2315
  header: m(() => [
2307
2316
  C(p.$slots, "table-header-op", {}, () => [
2308
- $(U(a(y).tCurd("operation")), 1)
2317
+ $(E(a(y).tCurd("operation")), 1)
2309
2318
  ])
2310
2319
  ]),
2311
2320
  default: m(({ row: n }) => [
@@ -2314,14 +2323,14 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2314
2323
  }, {
2315
2324
  default: m(() => [
2316
2325
  C(p.$slots, "table-op-left", { row: n }),
2317
- i.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), g(S, { key: 0 }, [
2326
+ i.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), b(S, { key: 0 }, [
2318
2327
  z(a(T), {
2319
2328
  link: "",
2320
2329
  type: "info",
2321
2330
  onClick: a(l).inlineEdit.close
2322
2331
  }, {
2323
2332
  default: m(() => [
2324
- $(U(a(y).tCurd("cancel")), 1)
2333
+ $(E(a(y).tCurd("cancel")), 1)
2325
2334
  ]),
2326
2335
  _: 1
2327
2336
  }, 8, ["onClick"]),
@@ -2332,12 +2341,12 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2332
2341
  loading: a(l).update.loading
2333
2342
  }, {
2334
2343
  default: m(() => [
2335
- $(U(a(y).tCurd("confirm")), 1)
2344
+ $(E(a(y).tCurd("confirm")), 1)
2336
2345
  ]),
2337
2346
  _: 1
2338
2347
  }, 8, ["onClick", "loading"]),
2339
2348
  C(p.$slots, "table-op-edit-right", { row: n })
2340
- ], 64)) : (f(), g(S, { key: 1 }, [
2349
+ ], 64)) : (f(), b(S, { key: 1 }, [
2341
2350
  a(r)(i.option.table?.add, n) ? (f(), h(a(T), {
2342
2351
  key: 0,
2343
2352
  link: "",
@@ -2345,7 +2354,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2345
2354
  onClick: (d) => a(l).update.open(a(u).Add, n)
2346
2355
  }, {
2347
2356
  default: m(() => [
2348
- $(U(a(y).tCurd("add")), 1)
2357
+ $(E(a(y).tCurd("add")), 1)
2349
2358
  ]),
2350
2359
  _: 2
2351
2360
  }, 1032, ["onClick"])) : k("", !0),
@@ -2356,7 +2365,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2356
2365
  onClick: (d) => a(l).update.open(a(u).View, n)
2357
2366
  }, {
2358
2367
  default: m(() => [
2359
- $(U(a(y).tCurd("view")), 1)
2368
+ $(E(a(y).tCurd("view")), 1)
2360
2369
  ]),
2361
2370
  _: 2
2362
2371
  }, 1032, ["onClick"])) : k("", !0),
@@ -2367,7 +2376,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2367
2376
  onClick: (d) => a(l).update.open(a(u).Update, n)
2368
2377
  }, {
2369
2378
  default: m(() => [
2370
- $(U(a(y).tCurd("edit")), 1)
2379
+ $(E(a(y).tCurd("edit")), 1)
2371
2380
  ]),
2372
2381
  _: 2
2373
2382
  }, 1032, ["onClick"])) : k("", !0),
@@ -2378,7 +2387,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2378
2387
  onClick: (d) => a(l).remove.open([n])
2379
2388
  }, {
2380
2389
  default: m(() => [
2381
- $(U(a(y).tCurd("delete")), 1)
2390
+ $(E(a(y).tCurd("delete")), 1)
2382
2391
  ]),
2383
2392
  _: 2
2384
2393
  }, 1032, ["onClick"])) : k("", !0),
@@ -2393,7 +2402,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2393
2402
  ]),
2394
2403
  _: 3
2395
2404
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2396
- [b, a(l).table.loading]
2405
+ [g, a(l).table.loading]
2397
2406
  ])
2398
2407
  ], 2)
2399
2408
  ], 2),
@@ -2417,7 +2426,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2417
2426
  ], 2),
2418
2427
  C(p.$slots, "box-right")
2419
2428
  ], 2),
2420
- z(a(_), v({
2429
+ z(a(ee), v({
2421
2430
  modelValue: a(l).update.show,
2422
2431
  "onUpdate:modelValue": c[9] || (c[9] = (n) => a(l).update.show = n),
2423
2432
  title: a(l).update.title,
@@ -2433,7 +2442,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2433
2442
  onClick: a(l).update.close
2434
2443
  }, {
2435
2444
  default: m(() => [
2436
- $(U(a(y).tCurd("close")), 1)
2445
+ $(E(a(y).tCurd("close")), 1)
2437
2446
  ]),
2438
2447
  _: 1
2439
2448
  }, 8, ["onClick"]),
@@ -2444,7 +2453,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2444
2453
  loading: a(l).update.loading
2445
2454
  }, {
2446
2455
  default: m(() => [
2447
- $(U(a(y).tCurd("submit")), 1)
2456
+ $(E(a(y).tCurd("submit")), 1)
2448
2457
  ]),
2449
2458
  _: 1
2450
2459
  }, 8, ["onClick", "loading"])) : k("", !0)
@@ -2462,7 +2471,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2462
2471
  size: i.option.size?.form
2463
2472
  }, {
2464
2473
  default: m(() => [
2465
- a(l).update.showContent ? (f(!0), g(S, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), g(S, null, [
2474
+ a(l).update.showContent ? (f(!0), b(S, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), b(S, null, [
2466
2475
  a(r)(
2467
2476
  (() => {
2468
2477
  const d = [], V = (w) => {
@@ -2472,7 +2481,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2472
2481
  })(),
2473
2482
  a(l).update.form,
2474
2483
  a(l).update.type
2475
- ) ? (f(), g("div", {
2484
+ ) ? (f(), b("div", {
2476
2485
  key: 0,
2477
2486
  class: j(["row curd-row", {
2478
2487
  stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
@@ -2481,16 +2490,16 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2481
2490
  C(p.$slots, "form-start", {
2482
2491
  row: a(l).update.form
2483
2492
  }),
2484
- (f(!0), g(S, null, L(n, (d) => (f(), g(S, null, [
2485
- a(r)(d.item.show?.form, a(l).update.form, a(l).update.type) ? (f(), g("div", {
2493
+ (f(!0), b(S, null, L(n, (d) => (f(), b(S, null, [
2494
+ a(r)(d.item.show?.form, a(l).update.form, a(l).update.type) ? (f(), b("div", {
2486
2495
  key: 0,
2487
2496
  class: j([d.item.form.span > 0 ? `col-${a(l).getColumnSpan(d, n)}` : "col", `form-item-col-${d.item.key}`])
2488
2497
  }, [
2489
- (f(!0), g(S, null, L(d.item.children ? d.children : [d], (V) => (f(), h(_e, {
2498
+ (f(!0), b(S, null, L(d.item.children ? d.children : [d], (V) => (f(), h(_e, {
2490
2499
  key: V.item.key,
2491
2500
  conf: a(l),
2492
2501
  item: V
2493
- }, te({ _: 2 }, [
2502
+ }, oe({ _: 2 }, [
2494
2503
  L(p.$slots, (w, A) => ({
2495
2504
  name: A,
2496
2505
  fn: m((B) => [
@@ -2511,7 +2520,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2511
2520
  ]),
2512
2521
  _: 3
2513
2522
  }, 16, ["modelValue", "title", "before-close"]),
2514
- z(a(_), {
2523
+ z(a(ee), {
2515
2524
  modelValue: a(l).remove.show,
2516
2525
  "onUpdate:modelValue": c[10] || (c[10] = (n) => a(l).remove.show = n),
2517
2526
  title: a(l).remove.title,
@@ -2527,7 +2536,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2527
2536
  onClick: a(l).remove.close
2528
2537
  }, {
2529
2538
  default: m(() => [
2530
- $(U(a(y).tCurd("close")), 1)
2539
+ $(E(a(y).tCurd("close")), 1)
2531
2540
  ]),
2532
2541
  _: 1
2533
2542
  }, 8, ["onClick"]),
@@ -2537,7 +2546,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2537
2546
  loading: a(l).remove.loading
2538
2547
  }, {
2539
2548
  default: m(() => [
2540
- $(U(a(y).tCurd("confirmDelete")), 1)
2549
+ $(E(a(y).tCurd("confirmDelete")), 1)
2541
2550
  ]),
2542
2551
  _: 1
2543
2552
  }, 8, ["onClick", "loading"])
@@ -2547,7 +2556,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2547
2556
  ])
2548
2557
  ]),
2549
2558
  default: m(() => [
2550
- F("div", null, U(a(y).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
2559
+ F("div", null, E(a(y).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
2551
2560
  ]),
2552
2561
  _: 1
2553
2562
  }, 8, ["modelValue", "title"]),
@@ -2560,7 +2569,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2560
2569
  };
2561
2570
  }
2562
2571
  });
2563
- class gt {
2572
+ class bt {
2564
2573
  /**
2565
2574
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2566
2575
  *
@@ -2592,15 +2601,15 @@ class gt {
2592
2601
  r.accept = l, r.style.display = "none", r.onchange = (e) => {
2593
2602
  const s = e.target.files[0];
2594
2603
  if (!s) {
2595
- E.fail("未选择文件"), t("未选择文件");
2604
+ U.fail("未选择文件"), t("未选择文件");
2596
2605
  return;
2597
2606
  }
2598
2607
  const p = new FileReader();
2599
2608
  p.onload = async (c) => {
2600
- const b = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2601
- u(b);
2609
+ const g = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2610
+ u(g);
2602
2611
  }, p.onerror = () => {
2603
- E.fail("文件读取失败"), t("文件读取失败");
2612
+ U.fail("文件读取失败"), t("文件读取失败");
2604
2613
  }, p.readAsText(s), document.body.removeChild(r);
2605
2614
  }, document.body.appendChild(r), r.click();
2606
2615
  });
@@ -2611,7 +2620,7 @@ const ct = (i, o) => {
2611
2620
  for (const u in o.customComponent)
2612
2621
  i.component(u, o.customComponent[u]);
2613
2622
  }
2614
- }, bt = {
2623
+ }, gt = {
2615
2624
  install: ct
2616
2625
  };
2617
2626
  export {
@@ -2619,12 +2628,12 @@ export {
2619
2628
  Te as ExcelUtil,
2620
2629
  Ae as TColumn,
2621
2630
  pt as TCurd,
2622
- gt as TFile,
2631
+ bt as TFile,
2623
2632
  M as TForm,
2624
2633
  O as TFormConfig,
2625
2634
  y as TFormI18n,
2626
2635
  ne as TFormList,
2627
- E as TSys,
2628
- bt as default,
2636
+ U as TSys,
2637
+ gt as default,
2629
2638
  ct as install
2630
2639
  };