cc1-form 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cc1-form.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ElMessage as it, ElLoading as st, ElFormItem as he, ElInput as fe, ElInputNumber as dt, ElSwitch as ge, ElSelect as ce, ElOption as ne, ElRadioGroup as je, ElRadioButton as ut, ElRadio as Pe, ElCheckboxGroup as ft, ElCheckboxButton as ct, ElCheckbox as pt, ElColorPicker as mt, ElSlider as bt, ElTreeSelect as gt, ElDatePicker as Ke, ElForm as oe, ElDialog as $e, ElButton as K, ElTableColumn as ue, ElDropdown as Ue, ElDropdownMenu as Ae, ElDropdownItem as de, ElPagination as Be, ElTable as ht } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as Q, reactive as ie, onMounted as He, resolveComponent as pe, openBlock as m, createElementBlock as C, renderSlot as E, createVNode as O, withCtx as h, createTextVNode as M, createCommentVNode as V, Fragment as A, renderList as G, createBlock as y, normalizeClass as J, normalizeStyle as ye, ref as Y, watch as Ne, nextTick as Ce, unref as i, createElementVNode as D, mergeProps as S, toHandlers as $, createSlots as Z, toDisplayString as R, resolveDynamicComponent as ee, computed as ae, onUnmounted as Ie, normalizeProps as Oe, guardReactiveProps as Me, getCurrentInstance as Ge, onBeforeUnmount as yt, withModifiers as wt, resolveDirective as vt, withDirectives as kt } from "vue";
3
+ import { defineComponent as Q, reactive as ie, onMounted as He, resolveComponent as pe, openBlock as m, createElementBlock as C, renderSlot as z, createVNode as M, withCtx as h, createTextVNode as O, createCommentVNode as V, Fragment as A, renderList as G, createBlock as y, normalizeClass as J, normalizeStyle as ye, ref as Y, watch as Ne, nextTick as Ce, unref as i, createElementVNode as D, mergeProps as S, toHandlers as $, createSlots as Z, toDisplayString as R, resolveDynamicComponent as ee, computed as ae, onUnmounted as Ie, normalizeProps as Me, guardReactiveProps as Oe, getCurrentInstance as Ge, onBeforeUnmount as yt, withModifiers as wt, resolveDirective as vt, withDirectives as kt } from "vue";
4
4
  import { Scope as Fe } from "cc1-vue3";
5
- class z {
5
+ class E {
6
6
  /**
7
7
  * Vue Router 实例,需在应用初始化时赋值
8
8
  */
@@ -39,14 +39,23 @@ class z {
39
39
  * 模块赋值
40
40
  */
41
41
  static moduleObj = {};
42
+ /**
43
+ * 设置模块
44
+ * @param configObj
45
+ */
46
+ static setModule = (o) => {
47
+ Object.keys(o).forEach((s) => {
48
+ E.moduleObj[s] = o[s];
49
+ });
50
+ };
42
51
  /**
43
52
  * 加载模块
44
53
  * @param module
45
54
  */
46
55
  static loadModule = async (o) => {
47
- if (!z.moduleObj[o])
56
+ if (!E.moduleObj[o])
48
57
  throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
49
- const s = await z.moduleObj[o]();
58
+ const s = await E.moduleObj[o]();
50
59
  return s.default ?? s;
51
60
  };
52
61
  /**
@@ -134,7 +143,7 @@ class z {
134
143
  */
135
144
  static getImgPic = (o) => new Promise(async (s, t) => {
136
145
  let n = document.getElementById(o.id);
137
- const e = await z.loadModule("html2canvas");
146
+ const e = await E.loadModule("html2canvas");
138
147
  try {
139
148
  e(n, {
140
149
  logging: !1,
@@ -591,7 +600,7 @@ class q {
591
600
  */
592
601
  parentId: (o, s, t, n) => {
593
602
  const e = T.config.table.rowKey;
594
- o ? s.type === z.EDialog.Add ? (s.form.parentId = o[e], s.form.sort = o.children.length + 1) : s.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = t.length + 1), q.setOptionsData(n, "parentId", [{ [e]: "0", title: "根", children: t }]);
603
+ o ? s.type === E.EDialog.Add ? (s.form.parentId = o[e], s.form.sort = o.children.length + 1) : s.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = t.length + 1), q.setOptionsData(n, "parentId", [{ [e]: "0", title: "根", children: t }]);
595
604
  }
596
605
  }
597
606
  };
@@ -727,21 +736,21 @@ const Ct = {
727
736
  return (e, r) => {
728
737
  const l = pe("el-button"), u = pe("el-input");
729
738
  return t.show ? (m(), C("div", Ct, [
730
- E(e.$slots, "list-start", { row: a.row }),
739
+ z(e.$slots, "list-start", { row: a.row }),
731
740
  a.addBottom ? V("", !0) : (m(), C("div", Vt, [
732
- O(l, {
741
+ M(l, {
733
742
  link: "",
734
743
  type: "primary",
735
744
  onClick: r[0] || (r[0] = (f) => t.add(a.field, a.row, a.itemFields))
736
745
  }, {
737
746
  default: h(() => r[3] || (r[3] = [
738
- M("添加")
747
+ O("添加")
739
748
  ])),
740
749
  _: 1
741
750
  })
742
751
  ])),
743
752
  (m(!0), C(A, null, G(a.row[a.field], (f) => (m(), C("div", St, [
744
- E(e.$slots, "item-start", {
753
+ z(e.$slots, "item-start", {
745
754
  item: f,
746
755
  row: a.row
747
756
  }),
@@ -753,41 +762,41 @@ const Ct = {
753
762
  placeholder: d[a.label] || d[a.value],
754
763
  onChange: r[1] || (r[1] = (b) => n("change"))
755
764
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
756
- E(e.$slots, "item-end", {
765
+ z(e.$slots, "item-end", {
757
766
  item: f,
758
767
  row: a.row
759
768
  }),
760
- O(l, {
769
+ M(l, {
761
770
  link: "",
762
771
  type: "danger",
763
772
  onClick: (d) => t.remove(a.field, a.row, f)
764
773
  }, {
765
774
  default: h(() => r[4] || (r[4] = [
766
- M("删除")
775
+ O("删除")
767
776
  ])),
768
777
  _: 2
769
778
  }, 1032, ["onClick"])
770
779
  ]))), 256)),
771
780
  a.addBottom ? (m(), C("div", Et, [
772
- O(l, {
781
+ M(l, {
773
782
  link: "",
774
783
  type: "primary",
775
784
  onClick: r[2] || (r[2] = (f) => t.add(a.field, a.row, a.itemFields))
776
785
  }, {
777
786
  default: h(() => r[5] || (r[5] = [
778
- M("添加")
787
+ O("添加")
779
788
  ])),
780
789
  _: 1
781
790
  })
782
791
  ])) : V("", !0),
783
- E(e.$slots, "list-end", { row: a.row })
792
+ z(e.$slots, "list-end", { row: a.row })
784
793
  ])) : V("", !0);
785
794
  };
786
795
  }
787
796
  }), zt = {
788
797
  class: "row form-item-content",
789
798
  style: { width: "100%" }
790
- }, $t = { class: "col column form-item-content-item" }, Ot = { class: "col" }, Mt = ["innerHTML"], Ft = /* @__PURE__ */ Q({
799
+ }, $t = { class: "col column form-item-content-item" }, Mt = { class: "col" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */ Q({
791
800
  __name: "field",
792
801
  props: {
793
802
  item: {},
@@ -820,13 +829,13 @@ const Ct = {
820
829
  }, {
821
830
  default: h(() => [
822
831
  D("div", zt, [
823
- E(e.$slots, "form-" + e.item.key + "-start", {
832
+ z(e.$slots, "form-" + e.item.key + "-start", {
824
833
  row: e.form,
825
834
  item: e.item
826
835
  }),
827
836
  D("div", $t, [
828
- D("div", Ot, [
829
- E(e.$slots, "form-" + e.item.key, {
837
+ D("div", Mt, [
838
+ z(e.$slots, "form-" + e.item.key, {
830
839
  row: e.form,
831
840
  item: e.item
832
841
  }, () => [
@@ -840,7 +849,7 @@ const Ct = {
840
849
  e.getBind(e.item).prepend ? {
841
850
  name: "prepend",
842
851
  fn: h(() => [
843
- M(R(typeof e.getBind(e.item).prepend == "function" ? e.getBind(e.item).prepend(e.form) : e.getBind(e.item).prepend), 1)
852
+ O(R(typeof e.getBind(e.item).prepend == "function" ? e.getBind(e.item).prepend(e.form) : e.getBind(e.item).prepend), 1)
844
853
  ]),
845
854
  key: "0"
846
855
  } : void 0
@@ -960,12 +969,12 @@ const Ct = {
960
969
  disabled: e.getDisabled(e.item)
961
970
  }), null, 16, ["modelValue", "disabled"])) : V("", !0)
962
971
  ]),
963
- E(e.$slots, "form-" + e.item.key + "-right", {
972
+ z(e.$slots, "form-" + e.item.key + "-right", {
964
973
  row: e.form,
965
974
  item: e.item
966
975
  })
967
976
  ]),
968
- E(e.$slots, "form-" + e.item.key + "-tip", {
977
+ z(e.$slots, "form-" + e.item.key + "-tip", {
969
978
  row: e.form,
970
979
  item: e.item
971
980
  }, () => [
@@ -973,10 +982,10 @@ const Ct = {
973
982
  key: 0,
974
983
  class: "form-tip-text",
975
984
  innerHTML: typeof e.item.form?.tipText == "function" ? e.item.form?.tipText(e.form, e.type) : e.item.form?.tipText
976
- }, null, 8, Mt)) : V("", !0)
985
+ }, null, 8, Ot)) : V("", !0)
977
986
  ])
978
987
  ]),
979
- E(e.$slots, "form-" + e.item.key + "-end", {
988
+ z(e.$slots, "form-" + e.item.key + "-end", {
980
989
  row: e.form,
981
990
  item: e.item
982
991
  })
@@ -1102,7 +1111,7 @@ const we = (a) => {
1102
1111
  }, Dt = (a) => a ? typeof a == "string" ? a : a instanceof Error ? a.message : a.message || String(a) : "", ve = (a) => !a || typeof a != "object" ? [] : Object.keys(a).flatMap((o) => (Array.isArray(a[o]) ? a[o] : [a[o]]).map((t) => ({
1103
1112
  field: t?.field || o,
1104
1113
  error: Dt(t)
1105
- }))), be = z.EDialog, le = (a) => typeof a.type == "object" ? "component" : a.type || "input", Ut = (a, o, s) => {
1114
+ }))), be = E.EDialog, le = (a) => typeof a.type == "object" ? "component" : a.type || "input", Ut = (a, o, s) => {
1106
1115
  const t = we(() => o.form), n = (r) => De(r.update.formGrid || [], r.update.form, r.update.type, r.update.formMaxSpan).map((u) => u.item.key).filter(Boolean), e = async (r) => {
1107
1116
  const l = s.ruleFormRef.value;
1108
1117
  if (!l) return !0;
@@ -1134,7 +1143,7 @@ const we = (a) => {
1134
1143
  formMaxSpan: 12,
1135
1144
  getDisabled: (r, l = !1) => {
1136
1145
  const u = a();
1137
- return o.option.table?.editMode && l ? r.disabled?.table === void 0 ? !1 : z.isFun(r.disabled?.table, u.update.form) : Qe(r, u.update.type, u.update.form);
1146
+ return o.option.table?.editMode && l ? r.disabled?.table === void 0 ? !1 : E.isFun(r.disabled?.table, u.update.form) : Qe(r, u.update.type, u.update.form);
1138
1147
  },
1139
1148
  getBind: (r) => {
1140
1149
  const l = a();
@@ -1175,7 +1184,7 @@ const we = (a) => {
1175
1184
  open: async (r, l) => {
1176
1185
  const u = a();
1177
1186
  if (!(u.update.showContent || u.update.openLoading)) {
1178
- z.loading(!0), u.update.openLoading = !0;
1187
+ E.loading(!0), u.update.openLoading = !0;
1179
1188
  try {
1180
1189
  u.update.type = r;
1181
1190
  const f = r === be.Add;
@@ -1185,7 +1194,7 @@ const we = (a) => {
1185
1194
  } catch (f) {
1186
1195
  console.error(f);
1187
1196
  } finally {
1188
- z.loading(!1), u.update.openLoading = !1;
1197
+ E.loading(!1), u.update.openLoading = !1;
1189
1198
  }
1190
1199
  }
1191
1200
  },
@@ -1198,7 +1207,7 @@ const we = (a) => {
1198
1207
  l.formRef.validate()
1199
1208
  ]), !0;
1200
1209
  } catch {
1201
- return r && z.fail(k.tCurd("checkFormData")), !1;
1210
+ return r && E.fail(k.tCurd("checkFormData")), !1;
1202
1211
  }
1203
1212
  },
1204
1213
  submit: async () => {
@@ -1244,15 +1253,15 @@ const we = (a) => {
1244
1253
  const o = a.form;
1245
1254
  return o?.row != null && o.row > 0 ? qe(o.row) : W;
1246
1255
  }, re = (a) => Math.floor((a.gridRow - 1) / W), Qe = (a, o, s) => {
1247
- if (o === z.EDialog.View)
1248
- return a.disabled?.view === void 0 ? !0 : z.isFun(a.disabled?.view, s);
1249
- const t = a.disabled?.[o === z.EDialog.Add ? "create" : "update"];
1250
- return z.isFun(t, s);
1256
+ if (o === E.EDialog.View)
1257
+ return a.disabled?.view === void 0 ? !0 : E.isFun(a.disabled?.view, s);
1258
+ const t = a.disabled?.[o === E.EDialog.Add ? "create" : "update"];
1259
+ return E.isFun(t, s);
1251
1260
  }, Xe = (a, o) => {
1252
1261
  const s = le(a);
1253
- return a.options?.[o === z.EDialog.Add ? "formAdd" : "formUpdate"]?.[s] || a.options?.[s] || {};
1262
+ return a.options?.[o === E.EDialog.Add ? "formAdd" : "formUpdate"]?.[s] || a.options?.[s] || {};
1254
1263
  }, Ye = (a, o, s = []) => {
1255
- const t = le(a), e = a.options?.[o === z.EDialog.Add ? "formAdd" : "formUpdate"]?.[t]?.on || a.options?.[t]?.on || {}, r = {};
1264
+ const t = le(a), e = a.options?.[o === E.EDialog.Add ? "formAdd" : "formUpdate"]?.[t]?.on || a.options?.[t]?.on || {}, r = {};
1256
1265
  return Object.keys(e).forEach((l) => {
1257
1266
  const u = e[l];
1258
1267
  typeof u == "function" ? r[l] = function(...f) {
@@ -1263,7 +1272,7 @@ const we = (a) => {
1263
1272
  const e = a, r = e.colSpan ?? a.span;
1264
1273
  if (!a.item.form?.spanCol)
1265
1274
  return r;
1266
- const l = n?.maxSpan || 12, u = n?.defaultSpan || l / 2, f = e.gridBand, b = o.filter((c) => f != null ? c.gridBand === f && !z.isFun(c.item.show?.form, s, t) : c.gridRow === e.gridRow && !z.isFun(c.item.show?.form, s, t)).reduce((c, p) => c + (p.colSpan ?? p.span ?? u), 0);
1275
+ const l = n?.maxSpan || 12, u = n?.defaultSpan || l / 2, f = e.gridBand, b = o.filter((c) => f != null ? c.gridBand === f && !E.isFun(c.item.show?.form, s, t) : c.gridRow === e.gridRow && !E.isFun(c.item.show?.form, s, t)).reduce((c, p) => c + (p.colSpan ?? p.span ?? u), 0);
1267
1276
  return r + b;
1268
1277
  }, Lt = (a, o) => {
1269
1278
  const s = (t, n) => {
@@ -1329,7 +1338,7 @@ const we = (a) => {
1329
1338
  }), c(B, L, w, F);
1330
1339
  }), s.fillSingleRows ? Lt(n, o) : n;
1331
1340
  }, De = (a, o, s, t = W) => {
1332
- const n = a.filter((l) => z.isFun(l.item.show?.form, o, s)), e = /* @__PURE__ */ new Map();
1341
+ const n = a.filter((l) => E.isFun(l.item.show?.form, o, s)), e = /* @__PURE__ */ new Map();
1333
1342
  a.forEach((l) => {
1334
1343
  const f = `${l.gridBand ?? re(l)}:${l.gridColumn}:${l.colSpan}`;
1335
1344
  e.has(f) || e.set(f, []), e.get(f).push(l);
@@ -1338,7 +1347,7 @@ const we = (a) => {
1338
1347
  return e.forEach((l) => {
1339
1348
  const u = l.reduce((c, p) => c + p.rowSpan, 0);
1340
1349
  if (!(l.length > 1 && u === W && l.every((c) => c.rowSpan < W))) return;
1341
- const d = l.filter((c) => z.isFun(c.item.show?.form, o, s));
1350
+ const d = l.filter((c) => E.isFun(c.item.show?.form, o, s));
1342
1351
  if (d.length !== 1) return;
1343
1352
  const b = d[0];
1344
1353
  r.set(b.item.key, {
@@ -1463,7 +1472,7 @@ const we = (a) => {
1463
1472
  getDisabled: { type: Function }
1464
1473
  },
1465
1474
  setup(a) {
1466
- const o = z.isFun, s = a, t = ae(() => De(s.formGrid, s.form, s.type, s.maxSpan)), n = ae(() => {
1475
+ const o = E.isFun, s = a, t = ae(() => De(s.formGrid, s.form, s.type, s.maxSpan)), n = ae(() => {
1467
1476
  const c = Array.from(
1468
1477
  new Set(
1469
1478
  t.value.map((p) => p.gridBand ?? re(p))
@@ -1492,7 +1501,7 @@ const we = (a) => {
1492
1501
  };
1493
1502
  };
1494
1503
  return (c, p) => i(o)(i(Pt)(c.formGrid), c.form, c.type) ? (m(), C(A, { key: 0 }, [
1495
- E(c.$slots, "form-start", { row: c.form }),
1504
+ z(c.$slots, "form-start", { row: c.form }),
1496
1505
  D("div", {
1497
1506
  class: J(["curd-form-grid", { stripe: c.stripe !== !1 }]),
1498
1507
  style: ye(e.value)
@@ -1523,14 +1532,14 @@ const we = (a) => {
1523
1532
  G(c.$slots, (F, B) => ({
1524
1533
  name: B,
1525
1534
  fn: h((L) => [
1526
- E(c.$slots, B, S({ ref_for: !0 }, L || {}))
1535
+ z(c.$slots, B, S({ ref_for: !0 }, L || {}))
1527
1536
  ])
1528
1537
  }))
1529
1538
  ]), 1032, ["class", "item", "form", "type", "label-width", "get-bind", "get-on", "get-disabled"])) : V("", !0)
1530
1539
  ])
1531
1540
  ], 6))), 128))
1532
1541
  ], 6),
1533
- E(c.$slots, "form-end", { row: c.form })
1542
+ z(c.$slots, "form-end", { row: c.form })
1534
1543
  ], 64)) : V("", !0);
1535
1544
  }
1536
1545
  }), It = /* @__PURE__ */ Q({
@@ -1550,7 +1559,7 @@ const we = (a) => {
1550
1559
  }
1551
1560
  },
1552
1561
  setup(a, { expose: o }) {
1553
- const s = z.EDialog, t = Y(), n = a;
1562
+ const s = E.EDialog, t = Y(), n = a;
1554
1563
  let e = we(n.form);
1555
1564
  const r = Fe.getConf("curdConf"), l = "formRef-" + StrUtil.getId();
1556
1565
  Ie(() => {
@@ -1621,7 +1630,7 @@ const we = (a) => {
1621
1630
  G(f.$slots, (b, c) => ({
1622
1631
  name: c,
1623
1632
  fn: h((p) => [
1624
- E(f.$slots, c, Oe(Me(p || {})))
1633
+ z(f.$slots, c, Me(Oe(p || {})))
1625
1634
  ])
1626
1635
  }))
1627
1636
  ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : V("", !0)
@@ -1830,7 +1839,7 @@ const we = (a) => {
1830
1839
  getBody: () => s.tableRef.value?.$el?.querySelector(".el-table__body-wrapper tbody"),
1831
1840
  loadModule: async () => {
1832
1841
  const n = t();
1833
- n.table.sortable.modulePromise ??= import("./sortable.esm-BNoi9mdn.js");
1842
+ n.table.sortable.modulePromise ??= E.loadModule("sortablejs");
1834
1843
  const e = await n.table.sortable.modulePromise;
1835
1844
  return e.default || e;
1836
1845
  },
@@ -1883,12 +1892,12 @@ const we = (a) => {
1883
1892
  save: async () => {
1884
1893
  const n = t(), r = n.table.sortable.getOption().api?.update || o.option.api.update;
1885
1894
  if (!r) {
1886
- z.fail(k.tCurd("sortableUpdateApiRequired"));
1895
+ E.fail(k.tCurd("sortableUpdateApiRequired"));
1887
1896
  return;
1888
1897
  }
1889
1898
  n.table.sortable.actionLoading = !0, n.table.loading = !0;
1890
1899
  try {
1891
- await r(n.table.data, "sortable"), z.success(k.tCurd("operationSuccess")), await n.table.sortable.exit();
1900
+ await r(n.table.data, "sortable"), E.success(k.tCurd("operationSuccess")), await n.table.sortable.exit();
1892
1901
  } catch (l) {
1893
1902
  console.error(l);
1894
1903
  } finally {
@@ -2087,8 +2096,8 @@ const we = (a) => {
2087
2096
  return g.len !== void 0 && P !== void 0 && P !== g.len || g.min !== void 0 && P !== void 0 && P < g.min || g.max !== void 0 && P !== void 0 && P > g.max ? p(g, U) : L(g, H, U);
2088
2097
  }, Ve = (g) => {
2089
2098
  const v = a();
2090
- return !g.key || !v.table.column.show.list.includes(g.key) || g.table?.header?.groupKey !== void 0 && !g.table.header.show ? !1 : g.show?.table !== void 0 ? z.isFun(g.show?.table, v.table.data) : !0;
2091
- }, Se = (g, v) => g.show?.form !== void 0 ? z.isFun(g.show.form, v, z.EDialog.Update) : !0, _ = () => {
2099
+ return !g.key || !v.table.column.show.list.includes(g.key) || g.table?.header?.groupKey !== void 0 && !g.table.header.show ? !1 : g.show?.table !== void 0 ? E.isFun(g.show?.table, v.table.data) : !0;
2100
+ }, Se = (g, v) => g.show?.form !== void 0 ? E.isFun(g.show.form, v, E.EDialog.Update) : !0, _ = () => {
2092
2101
  const g = a(), v = [], U = (H) => {
2093
2102
  H.forEach((N) => {
2094
2103
  if (Ve(N)) {
@@ -2151,7 +2160,7 @@ class Zt {
2151
2160
  */
2152
2161
  static exportToExcel = async (o, s, t) => {
2153
2162
  if (!o || o.length === 0) return;
2154
- const n = await z.loadModule("xlsx"), e = o.map((u) => {
2163
+ const n = await E.loadModule("xlsx"), e = o.map((u) => {
2155
2164
  const f = {};
2156
2165
  return s.forEach((d) => {
2157
2166
  f[d.label] = u[d.key];
@@ -2180,7 +2189,7 @@ const xt = (a, o) => ({
2180
2189
  return;
2181
2190
  }
2182
2191
  if (s.table.selection.list.length === 0)
2183
- throw z.fail(k.tCurd("selectDataToExport")), new Error(k.tCurd("selectDataToExport"));
2192
+ throw E.fail(k.tCurd("selectDataToExport")), new Error(k.tCurd("selectDataToExport"));
2184
2193
  return s.table.selection.list;
2185
2194
  } catch (t) {
2186
2195
  console.error(t);
@@ -2199,7 +2208,7 @@ const xt = (a, o) => ({
2199
2208
  return;
2200
2209
  }
2201
2210
  if (s.table.data.length === 0)
2202
- throw z.fail(k.tCurd("noData")), new Error(k.tCurd("noData"));
2211
+ throw E.fail(k.tCurd("noData")), new Error(k.tCurd("noData"));
2203
2212
  return s.table.data;
2204
2213
  } catch (t) {
2205
2214
  console.error(t);
@@ -2245,7 +2254,7 @@ const xt = (a, o) => ({
2245
2254
  },
2246
2255
  open: (s) => {
2247
2256
  if (s.length === 0) {
2248
- z.fail(k.tCurd("selectDataToDelete"));
2257
+ E.fail(k.tCurd("selectDataToDelete"));
2249
2258
  return;
2250
2259
  }
2251
2260
  const t = a();
@@ -2261,7 +2270,7 @@ const xt = (a, o) => ({
2261
2270
  await t({
2262
2271
  [o.option.table?.rowKey]: s.remove.items.map((n) => n[o.option.table?.rowKey]),
2263
2272
  items: s.remove.items
2264
- }), z.success(k.tCurd("operationSuccess")), s.table.data.length <= 1 && s.page.num > 1 && (s.page.num -= 1), s.remove.close(), await s.table.getList();
2273
+ }), E.success(k.tCurd("operationSuccess")), s.table.data.length <= 1 && s.page.num > 1 && (s.page.num -= 1), s.remove.close(), await s.table.getList();
2265
2274
  } catch (n) {
2266
2275
  console.error(n);
2267
2276
  } finally {
@@ -2360,7 +2369,7 @@ const xt = (a, o) => ({
2360
2369
  } finally {
2361
2370
  b.loadingMap[c].loading = !1;
2362
2371
  }
2363
- return z.success(k.tCurd("operationSuccess")), b.tableConfig?.loadList && (t.table.loading = !0, t.table.getList(), t.table.loading = !1), !0;
2372
+ return E.success(k.tCurd("operationSuccess")), b.tableConfig?.loadList && (t.table.loading = !0, t.table.getList(), t.table.loading = !1), !0;
2364
2373
  } catch (c) {
2365
2374
  return console.error(c), !1;
2366
2375
  } finally {
@@ -2474,21 +2483,21 @@ const xt = (a, o) => ({
2474
2483
  width: "400px"
2475
2484
  }, {
2476
2485
  footer: h(() => [
2477
- O(c, { size: d.size }, {
2486
+ M(c, { size: d.size }, {
2478
2487
  default: h(() => [
2479
2488
  D("span", oo, [
2480
- O(i(K), { onClick: f }, {
2489
+ M(i(K), { onClick: f }, {
2481
2490
  default: h(() => b[1] || (b[1] = [
2482
- M("取消")
2491
+ O("取消")
2483
2492
  ])),
2484
2493
  _: 1
2485
2494
  }),
2486
- O(i(K), {
2495
+ M(i(K), {
2487
2496
  type: "primary",
2488
2497
  onClick: u
2489
2498
  }, {
2490
2499
  default: h(() => b[2] || (b[2] = [
2491
- M("确认")
2500
+ O("确认")
2492
2501
  ])),
2493
2502
  _: 1
2494
2503
  })
@@ -2678,7 +2687,7 @@ const Eo = /* @__PURE__ */ se(Co, [["render", So]]), zo = {}, $o = {
2678
2687
  xmlns: "http://www.w3.org/2000/svg",
2679
2688
  viewBox: "0 0 1024 1024"
2680
2689
  };
2681
- function Oo(a, o) {
2690
+ function Mo(a, o) {
2682
2691
  return m(), C("svg", $o, o[0] || (o[0] = [
2683
2692
  D("path", {
2684
2693
  fill: "currentColor",
@@ -2686,7 +2695,7 @@ function Oo(a, o) {
2686
2695
  }, null, -1)
2687
2696
  ]));
2688
2697
  }
2689
- const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-center table-header-label inline" }, Ro = { class: "table-header-tooltip" }, Do = ["innerHTML"], Uo = {
2698
+ const Oo = /* @__PURE__ */ se(zo, [["render", Mo]]), Fo = { class: "row flex-center table-header-label inline" }, Ro = { class: "table-header-tooltip" }, Do = ["innerHTML"], Uo = {
2690
2699
  key: 1,
2691
2700
  class: "table-header-required"
2692
2701
  }, Ao = ["onClick"], Bo = {
@@ -2700,7 +2709,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2700
2709
  option: {}
2701
2710
  },
2702
2711
  setup(a) {
2703
- const o = z.isFun, s = a, n = Ge().type, e = (l) => l === !0 ? !0 : (Array.isArray(l) ? l : l ? [l] : []).some((f) => f?.required === !0), r = (l) => s.option.table?.editMode ? e(l.rules) || e(s.conf.update.rules?.[l.key]) : !1;
2712
+ const o = E.isFun, s = a, n = Ge().type, e = (l) => l === !0 ? !0 : (Array.isArray(l) ? l : l ? [l] : []).some((f) => f?.required === !0), r = (l) => s.option.table?.editMode ? e(l.rules) || e(s.conf.update.rules?.[l.key]) : !1;
2704
2713
  return (l, u) => {
2705
2714
  const f = pe("el-tooltip");
2706
2715
  return m(!0), C(A, null, G(l.columnList, (d) => (m(), C(A, {
@@ -2714,7 +2723,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2714
2723
  ref_for: !0
2715
2724
  }, d.table), {
2716
2725
  header: h(() => [
2717
- E(l.$slots, "table-header-" + d.key, { item: d }, () => [
2726
+ z(l.$slots, "table-header-" + d.key, { item: d }, () => [
2718
2727
  D("div", Fo, [
2719
2728
  d.table?.header?.tooltip ? (m(), y(f, {
2720
2729
  key: 0,
@@ -2728,13 +2737,13 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2728
2737
  ]),
2729
2738
  default: h(() => [
2730
2739
  D("span", Ro, [
2731
- O(rt)
2740
+ M(rt)
2732
2741
  ])
2733
2742
  ]),
2734
2743
  _: 2
2735
2744
  }, 1024)) : V("", !0),
2736
2745
  r(d) ? (m(), C("span", Uo, "*")) : V("", !0),
2737
- M(" " + R(d.label) + " ", 1),
2746
+ O(" " + R(d.label) + " ", 1),
2738
2747
  d.table?.header?.group !== void 0 ? (m(), C("span", {
2739
2748
  key: 2,
2740
2749
  class: "table-header-plus",
@@ -2747,14 +2756,14 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2747
2756
  ["stop"]
2748
2757
  )
2749
2758
  }, [
2750
- d.table.header.group ? (m(), y(Eo, { key: 0 })) : (m(), y(Mo, { key: 1 }))
2759
+ d.table.header.group ? (m(), y(Eo, { key: 0 })) : (m(), y(Oo, { key: 1 }))
2751
2760
  ], 8, Ao)) : V("", !0)
2752
2761
  ])
2753
2762
  ])
2754
2763
  ]),
2755
2764
  default: h(({ row: b }) => [
2756
2765
  d.children ? (m(), C(A, { key: 0 }, [
2757
- u[0] || (u[0] = M("   ")),
2766
+ u[0] || (u[0] = O("   ")),
2758
2767
  (m(), y(ee(i(n)), {
2759
2768
  conf: l.conf,
2760
2769
  columnList: d.children,
@@ -2763,13 +2772,13 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2763
2772
  G(l.$slots, (c, p) => ({
2764
2773
  name: p,
2765
2774
  fn: h((w) => [
2766
- E(l.$slots, p, S({ ref_for: !0 }, w || {}))
2775
+ z(l.$slots, p, S({ ref_for: !0 }, w || {}))
2767
2776
  ])
2768
2777
  }))
2769
2778
  ]), 1032, ["conf", "columnList", "option"]))
2770
2779
  ], 64)) : (m(), C(A, { key: 1 }, [
2771
2780
  l.option.table?.editMode ? (m(), C("div", Bo, [
2772
- O(i(he), {
2781
+ M(i(he), {
2773
2782
  size: l.option.size?.table,
2774
2783
  error: l.conf.tableEditValidate.getFieldError(b, d),
2775
2784
  class: "table-edit-form-item"
@@ -2779,7 +2788,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2779
2788
  class: J(["row", ["table-edit-" + d.key]]),
2780
2789
  style: { width: "100%" }
2781
2790
  }, [
2782
- E(l.$slots, "table-edit-left-" + d.key, {
2791
+ z(l.$slots, "table-edit-left-" + d.key, {
2783
2792
  row: b,
2784
2793
  item: d
2785
2794
  }),
@@ -2796,7 +2805,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2796
2805
  d.options?.input?.prepend ? {
2797
2806
  name: "prepend",
2798
2807
  fn: h(() => [
2799
- M(R(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(b) : d.options?.input?.prepend), 1)
2808
+ O(R(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(b) : d.options?.input?.prepend), 1)
2800
2809
  ]),
2801
2810
  key: "0"
2802
2811
  } : void 0
@@ -2828,7 +2837,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2828
2837
  }, l.conf.update.getBind(d), $(l.conf.update.getOn(d, b)), {
2829
2838
  "onUpdate:modelValue": (c) => l.conf.tableEditValidate.clearField(b, d)
2830
2839
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : V("", !0),
2831
- E(l.$slots, "table-edit-right-" + d.key, {
2840
+ z(l.$slots, "table-edit-right-" + d.key, {
2832
2841
  row: b,
2833
2842
  item: d
2834
2843
  })
@@ -2837,7 +2846,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2837
2846
  _: 2
2838
2847
  }, 1032, ["size", "error"])
2839
2848
  ])) : (m(), C(A, { key: 1 }, [
2840
- l.conf.update.type === i(z).EDialog.Update && i(o)(d.show?.form, l.conf.update.form, i(z).EDialog.Update) && l.option.table?.inlineEdit && l.conf.update.form[l.option.table?.rowKey] === b[l.option.table?.rowKey] && (d.type === "input" || d.type === "select") ? (m(), C(A, { key: 0 }, [
2849
+ l.conf.update.type === i(E).EDialog.Update && i(o)(d.show?.form, l.conf.update.form, i(E).EDialog.Update) && l.option.table?.inlineEdit && l.conf.update.form[l.option.table?.rowKey] === b[l.option.table?.rowKey] && (d.type === "input" || d.type === "select") ? (m(), C(A, { key: 0 }, [
2841
2850
  d.type === "input" ? (m(), y(i(fe), S({
2842
2851
  key: 0,
2843
2852
  modelValue: l.conf.update.form[d.key],
@@ -2848,7 +2857,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2848
2857
  d.options?.input?.prepend ? {
2849
2858
  name: "prepend",
2850
2859
  fn: h(() => [
2851
- M(R(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(b) : d.options?.input?.prepend), 1)
2860
+ O(R(typeof d.options?.input?.prepend == "function" ? d.options?.input?.prepend(b) : d.options?.input?.prepend), 1)
2852
2861
  ]),
2853
2862
  key: "0"
2854
2863
  } : void 0
@@ -2875,7 +2884,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2875
2884
  }, l.conf.update.getBind(d), $(l.conf.update.getOn(d, b)), {
2876
2885
  disabled: l.conf.update.getDisabled(d, !0)
2877
2886
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : V("", !0)
2878
- ], 64)) : E(l.$slots, "table-" + d.key, {
2887
+ ], 64)) : z(l.$slots, "table-" + d.key, {
2879
2888
  key: 1,
2880
2889
  row: b,
2881
2890
  item: d
@@ -2948,7 +2957,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2948
2957
  }
2949
2958
  },
2950
2959
  setup(a, { expose: o }) {
2951
- const s = z.EDialog, t = a, n = z.isFun, { conf: e, switchConfirmRef: r, ruleFormRef: l, tableRef: u } = to(t);
2960
+ const s = E.EDialog, t = a, n = E.isFun, { conf: e, switchConfirmRef: r, ruleFormRef: l, tableRef: u } = to(t);
2952
2961
  return o({
2953
2962
  conf: e
2954
2963
  }), (f, d) => {
@@ -2960,24 +2969,24 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2960
2969
  class: J(["row", [a.option.table?.fitHeight ? "absolute fit" : ""]]),
2961
2970
  style: { overflow: "hidden" }
2962
2971
  }, [
2963
- E(f.$slots, "box-left"),
2972
+ z(f.$slots, "box-left"),
2964
2973
  D("div", {
2965
2974
  class: J(["column fit-width no-wrap", [a.option.table?.fitHeight ? "col" : ""]])
2966
2975
  }, [
2967
2976
  a.option.search?.show !== !1 ? (m(), C("div", Po, [
2968
- O(i(oe), {
2977
+ M(i(oe), {
2969
2978
  model: i(e).search.form,
2970
2979
  inline: "",
2971
2980
  size: a.option.size?.search
2972
2981
  }, {
2973
2982
  default: h(() => [
2974
- E(f.$slots, "search-start", {
2983
+ z(f.$slots, "search-start", {
2975
2984
  row: i(e).search.form
2976
2985
  }),
2977
2986
  (m(!0), C(A, null, G(i(e).search.column.list, (p) => (m(), C(A, {
2978
2987
  key: p.key
2979
2988
  }, [
2980
- E(f.$slots, "search-" + p.key + "-start", {
2989
+ z(f.$slots, "search-" + p.key + "-start", {
2981
2990
  row: i(e).search.form
2982
2991
  }),
2983
2992
  (typeof p.show?.search == "function" ? p.show?.search(i(e).search.form) : p.show?.search) ? (m(), y(i(he), {
@@ -2985,10 +2994,10 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
2985
2994
  label: p.text?.search?.label ?? p.label
2986
2995
  }, {
2987
2996
  default: h(() => [
2988
- E(f.$slots, "search-" + p.key + "-left", {
2997
+ z(f.$slots, "search-" + p.key + "-left", {
2989
2998
  row: i(e).search.form
2990
2999
  }),
2991
- E(f.$slots, "search-" + p.key, {
3000
+ z(f.$slots, "search-" + p.key, {
2992
3001
  row: i(e).search.form
2993
3002
  }, () => [
2994
3003
  p.options?.search?.type ? (m(), y(Te, {
@@ -3003,17 +3012,17 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3003
3012
  type: p.type
3004
3013
  }, null, 8, ["item", "conf", "type"]))
3005
3014
  ]),
3006
- E(f.$slots, "search-" + p.key + "-right", {
3015
+ z(f.$slots, "search-" + p.key + "-right", {
3007
3016
  row: i(e).search.form
3008
3017
  })
3009
3018
  ]),
3010
3019
  _: 2
3011
3020
  }, 1032, ["label"])) : V("", !0),
3012
- E(f.$slots, "search-" + p.key + "-end", {
3021
+ z(f.$slots, "search-" + p.key + "-end", {
3013
3022
  row: i(e).search.form
3014
3023
  })
3015
3024
  ], 64))), 128)),
3016
- E(f.$slots, "search-center", {
3025
+ z(f.$slots, "search-center", {
3017
3026
  row: i(e).search.form
3018
3027
  }),
3019
3028
  a.option.tools?.search || a.option.tools?.reset ? (m(), y(i(he), { key: 0 }, {
@@ -3024,7 +3033,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3024
3033
  onClick: i(e).search.submit
3025
3034
  }, {
3026
3035
  default: h(() => [
3027
- M(R(i(k).tCurd("search")), 1)
3036
+ O(R(i(k).tCurd("search")), 1)
3028
3037
  ]),
3029
3038
  _: 1
3030
3039
  }, 8, ["onClick"])) : V("", !0),
@@ -3033,14 +3042,14 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3033
3042
  onClick: i(e).search.reset
3034
3043
  }, {
3035
3044
  default: h(() => [
3036
- M(R(i(k).tCurd("reset")), 1)
3045
+ O(R(i(k).tCurd("reset")), 1)
3037
3046
  ]),
3038
3047
  _: 1
3039
3048
  }, 8, ["onClick"])) : V("", !0)
3040
3049
  ]),
3041
3050
  _: 1
3042
3051
  })) : V("", !0),
3043
- E(f.$slots, "search-end", {
3052
+ z(f.$slots, "search-end", {
3044
3053
  row: i(e).search.form
3045
3054
  })
3046
3055
  ]),
@@ -3050,37 +3059,37 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3050
3059
  D("div", Ko, [
3051
3060
  D("div", Ho, [
3052
3061
  i(n)(a.option.tools?.add) ? (m(), C("div", No, [
3053
- O(i(K), {
3062
+ M(i(K), {
3054
3063
  type: "primary",
3055
3064
  onClick: d[0] || (d[0] = (p) => i(e).update.open(i(s).Add)),
3056
3065
  size: a.option.size?.search
3057
3066
  }, {
3058
3067
  default: h(() => [
3059
- M(R(i(k).tCurd("add")), 1)
3068
+ O(R(i(k).tCurd("add")), 1)
3060
3069
  ]),
3061
3070
  _: 1
3062
3071
  }, 8, ["size"])
3063
3072
  ])) : V("", !0),
3064
3073
  a.option.table?.selectable && i(n)(a.option.tools?.delete) ? (m(), C("div", Io, [
3065
- O(i(K), {
3074
+ M(i(K), {
3066
3075
  type: "danger",
3067
3076
  onClick: d[1] || (d[1] = (p) => i(e).remove.open(i(e).table.selection.list)),
3068
3077
  size: a.option.size?.search
3069
3078
  }, {
3070
3079
  default: h(() => [
3071
- M(R(i(k).tCurd("delete")), 1)
3080
+ O(R(i(k).tCurd("delete")), 1)
3072
3081
  ]),
3073
3082
  _: 1
3074
3083
  }, 8, ["size"])
3075
3084
  ])) : V("", !0),
3076
3085
  a.option.tools?.expand ? (m(), C("div", Go, [
3077
- O(i(K), {
3086
+ M(i(K), {
3078
3087
  type: "warning",
3079
3088
  onClick: d[2] || (d[2] = (p) => i(e).table.expand.all()),
3080
3089
  size: a.option.size?.search
3081
3090
  }, {
3082
3091
  default: h(() => [
3083
- M(R(i(k).tCurd("expandCollapse")), 1)
3092
+ O(R(i(k).tCurd("expandCollapse")), 1)
3084
3093
  ]),
3085
3094
  _: 1
3086
3095
  }, 8, ["size"])
@@ -3091,7 +3100,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3091
3100
  onCommand: i(e).export.click
3092
3101
  }, {
3093
3102
  dropdown: h(() => [
3094
- O(i(Ae), {
3103
+ M(i(Ae), {
3095
3104
  size: a.option.size?.search
3096
3105
  }, {
3097
3106
  default: h(() => [
@@ -3100,7 +3109,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3100
3109
  command: "select"
3101
3110
  }, {
3102
3111
  default: h(() => [
3103
- M(R(i(k).tCurd("exportSelect")), 1)
3112
+ O(R(i(k).tCurd("exportSelect")), 1)
3104
3113
  ]),
3105
3114
  _: 1
3106
3115
  })) : V("", !0),
@@ -3109,7 +3118,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3109
3118
  command: "page"
3110
3119
  }, {
3111
3120
  default: h(() => [
3112
- M(R(i(k).tCurd("exportPage")), 1)
3121
+ O(R(i(k).tCurd("exportPage")), 1)
3113
3122
  ]),
3114
3123
  _: 1
3115
3124
  })) : V("", !0),
@@ -3118,7 +3127,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3118
3127
  command: "all"
3119
3128
  }, {
3120
3129
  default: h(() => [
3121
- M(R(i(k).tCurd("exportAll")), 1)
3130
+ O(R(i(k).tCurd("exportAll")), 1)
3122
3131
  ]),
3123
3132
  _: 1
3124
3133
  })) : V("", !0)
@@ -3128,13 +3137,13 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3128
3137
  ]),
3129
3138
  default: h(() => [
3130
3139
  D("div", Wo, [
3131
- O(i(K), {
3140
+ M(i(K), {
3132
3141
  type: "warning",
3133
3142
  loading: i(e).export.loading,
3134
3143
  size: a.option.size?.search
3135
3144
  }, {
3136
3145
  default: h(() => [
3137
- M(R(i(k).tCurd("export")), 1)
3146
+ O(R(i(k).tCurd("export")), 1)
3138
3147
  ]),
3139
3148
  _: 1
3140
3149
  }, 8, ["loading", "size"])
@@ -3142,23 +3151,23 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3142
3151
  ]),
3143
3152
  _: 1
3144
3153
  }, 8, ["onCommand"])) : (m(), C("div", qo, [
3145
- O(i(K), {
3154
+ M(i(K), {
3146
3155
  type: "warning",
3147
3156
  loading: i(e).export.loading,
3148
3157
  size: a.option.size?.search,
3149
3158
  onClick: d[3] || (d[3] = (p) => i(e).export.run.start("all"))
3150
3159
  }, {
3151
3160
  default: h(() => [
3152
- M(R(i(k).tCurd("export")), 1)
3161
+ O(R(i(k).tCurd("export")), 1)
3153
3162
  ]),
3154
3163
  _: 1
3155
3164
  }, 8, ["loading", "size"])
3156
3165
  ]))
3157
3166
  ], 64)) : V("", !0),
3158
- E(f.$slots, "tools-left")
3167
+ z(f.$slots, "tools-left")
3159
3168
  ]),
3160
3169
  D("div", Jo, [
3161
- E(f.$slots, "tools-right"),
3170
+ z(f.$slots, "tools-right"),
3162
3171
  i(e).page.showTools && i(e).table.sortable.showPagination() ? (m(), y(i(Be), S({
3163
3172
  key: 0,
3164
3173
  "current-page": i(e).page.num,
@@ -3182,7 +3191,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3182
3191
  loading: i(e).table.sortable.actionLoading
3183
3192
  }, {
3184
3193
  default: h(() => [
3185
- M(R(i(k).tCurd("sortableStart")), 1)
3194
+ O(R(i(k).tCurd("sortableStart")), 1)
3186
3195
  ]),
3187
3196
  _: 1
3188
3197
  }, 8, ["onClick", "size", "loading"])) : V("", !0),
@@ -3191,19 +3200,19 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3191
3200
  onCommand: i(e).table.sortable.command
3192
3201
  }, {
3193
3202
  dropdown: h(() => [
3194
- O(i(Ae), {
3203
+ M(i(Ae), {
3195
3204
  size: a.option.size?.search
3196
3205
  }, {
3197
3206
  default: h(() => [
3198
- O(i(de), { command: "save" }, {
3207
+ M(i(de), { command: "save" }, {
3199
3208
  default: h(() => [
3200
- M(R(i(k).tCurd("sortableSave")), 1)
3209
+ O(R(i(k).tCurd("sortableSave")), 1)
3201
3210
  ]),
3202
3211
  _: 1
3203
3212
  }),
3204
- O(i(de), { command: "exit" }, {
3213
+ M(i(de), { command: "exit" }, {
3205
3214
  default: h(() => [
3206
- M(R(i(k).tCurd("sortableExit")), 1)
3215
+ O(R(i(k).tCurd("sortableExit")), 1)
3207
3216
  ]),
3208
3217
  _: 1
3209
3218
  })
@@ -3212,13 +3221,13 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3212
3221
  }, 8, ["size"])
3213
3222
  ]),
3214
3223
  default: h(() => [
3215
- O(i(K), {
3224
+ M(i(K), {
3216
3225
  type: "warning",
3217
3226
  size: a.option.size?.search,
3218
3227
  loading: i(e).table.sortable.actionLoading
3219
3228
  }, {
3220
3229
  default: h(() => [
3221
- M(R(i(k).tCurd("sortableAction")), 1)
3230
+ O(R(i(k).tCurd("sortableAction")), 1)
3222
3231
  ]),
3223
3232
  _: 1
3224
3233
  }, 8, ["size", "loading"])
@@ -3233,7 +3242,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3233
3242
  loading: i(e).table.sortable.actionLoading
3234
3243
  }, {
3235
3244
  default: h(() => [
3236
- M(R(i(k).tCurd("sortableSave")), 1)
3245
+ O(R(i(k).tCurd("sortableSave")), 1)
3237
3246
  ]),
3238
3247
  _: 1
3239
3248
  }, 8, ["onClick", "size", "loading"])) : V("", !0),
@@ -3260,7 +3269,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3260
3269
  onClick: d[7] || (d[7] = //@ts-ignore
3261
3270
  (...p) => i(e).table.sortable.refreshList && i(e).table.sortable.refreshList(...p))
3262
3271
  }, [
3263
- O(yo)
3272
+ M(yo)
3264
3273
  ], 2)) : V("", !0)
3265
3274
  ])
3266
3275
  ]),
@@ -3308,19 +3317,19 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3308
3317
  className: "cc1-form-drag-column"
3309
3318
  }, i(e).table.sortable.getColumnBind(), $(i(e).table.sortable.getColumnBind().on || {})), {
3310
3319
  header: h(() => [
3311
- E(f.$slots, "table-header-sortable", {}, () => [
3312
- O(b, {
3320
+ z(f.$slots, "table-header-sortable", {}, () => [
3321
+ M(b, {
3313
3322
  effect: "dark",
3314
3323
  placement: "top"
3315
3324
  }, {
3316
3325
  content: h(() => [
3317
3326
  D("div", {
3318
- innerHTML: i(k).tCurd("sortable")
3327
+ innerHTML: a.option.table?.sortable?.tipText ?? i(k).tCurd("sortable")
3319
3328
  }, null, 8, Xo)
3320
3329
  ]),
3321
3330
  default: h(() => [
3322
3331
  D("span", Qo, [
3323
- O(rt)
3332
+ M(rt)
3324
3333
  ])
3325
3334
  ]),
3326
3335
  _: 1
@@ -3332,7 +3341,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3332
3341
  ])),
3333
3342
  _: 3
3334
3343
  }, 16)) : V("", !0),
3335
- O(jo, {
3344
+ M(jo, {
3336
3345
  conf: i(e),
3337
3346
  columnList: i(e).table.column.list,
3338
3347
  option: a.option
@@ -3340,7 +3349,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3340
3349
  G(f.$slots, (p, w) => ({
3341
3350
  name: w,
3342
3351
  fn: h((F) => [
3343
- E(f.$slots, w, Oe(Me(F || {})))
3352
+ z(f.$slots, w, Me(Oe(F || {})))
3344
3353
  ])
3345
3354
  }))
3346
3355
  ]), 1032, ["conf", "columnList", "option"]),
@@ -3353,39 +3362,39 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3353
3362
  "show-overflow-tooltip": !1
3354
3363
  }), {
3355
3364
  header: h(() => [
3356
- E(f.$slots, "table-header-op", {}, () => [
3357
- M(R(i(k).tCurd("operation")), 1)
3365
+ z(f.$slots, "table-header-op", {}, () => [
3366
+ O(R(i(k).tCurd("operation")), 1)
3358
3367
  ])
3359
3368
  ]),
3360
3369
  default: h(({ row: p }) => [
3361
- O(i(oe), {
3370
+ M(i(oe), {
3362
3371
  size: a.option.size?.table
3363
3372
  }, {
3364
3373
  default: h(() => [
3365
- E(f.$slots, "table-op-left", { row: p }),
3374
+ z(f.$slots, "table-op-left", { row: p }),
3366
3375
  i(e).update.type === i(s).Update && a.option.table?.inlineEdit && i(e).update.form[t.option.table?.rowKey] === p[t.option.table?.rowKey] ? (m(), C(A, { key: 0 }, [
3367
- O(i(K), {
3376
+ M(i(K), {
3368
3377
  link: "",
3369
3378
  type: "info",
3370
3379
  onClick: i(e).update.close
3371
3380
  }, {
3372
3381
  default: h(() => [
3373
- M(R(i(k).tCurd("cancel")), 1)
3382
+ O(R(i(k).tCurd("cancel")), 1)
3374
3383
  ]),
3375
3384
  _: 1
3376
3385
  }, 8, ["onClick"]),
3377
- O(i(K), {
3386
+ M(i(K), {
3378
3387
  link: "",
3379
3388
  type: "primary",
3380
3389
  onClick: i(e).update.submit,
3381
3390
  loading: i(e).update.loading
3382
3391
  }, {
3383
3392
  default: h(() => [
3384
- M(R(i(k).tCurd("confirm")), 1)
3393
+ O(R(i(k).tCurd("confirm")), 1)
3385
3394
  ]),
3386
3395
  _: 1
3387
3396
  }, 8, ["onClick", "loading"]),
3388
- E(f.$slots, "table-op-edit-right", { row: p })
3397
+ z(f.$slots, "table-op-edit-right", { row: p })
3389
3398
  ], 64)) : (m(), C(A, { key: 1 }, [
3390
3399
  i(n)(a.option.table?.add, p) ? (m(), y(i(K), {
3391
3400
  key: 0,
@@ -3394,7 +3403,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3394
3403
  onClick: (w) => i(e).update.open(i(s).Add, p)
3395
3404
  }, {
3396
3405
  default: h(() => [
3397
- M(R(i(k).tCurd("add")), 1)
3406
+ O(R(i(k).tCurd("add")), 1)
3398
3407
  ]),
3399
3408
  _: 2
3400
3409
  }, 1032, ["onClick"])) : V("", !0),
@@ -3405,7 +3414,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3405
3414
  onClick: (w) => i(e).update.open(i(s).View, p)
3406
3415
  }, {
3407
3416
  default: h(() => [
3408
- M(R(i(k).tCurd("view")), 1)
3417
+ O(R(i(k).tCurd("view")), 1)
3409
3418
  ]),
3410
3419
  _: 2
3411
3420
  }, 1032, ["onClick"])) : V("", !0),
@@ -3416,7 +3425,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3416
3425
  onClick: (w) => i(e).update.open(i(s).Update, p)
3417
3426
  }, {
3418
3427
  default: h(() => [
3419
- M(R(i(k).tCurd("edit")), 1)
3428
+ O(R(i(k).tCurd("edit")), 1)
3420
3429
  ]),
3421
3430
  _: 2
3422
3431
  }, 1032, ["onClick"])) : V("", !0),
@@ -3427,11 +3436,11 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3427
3436
  onClick: (w) => i(e).remove.open([p])
3428
3437
  }, {
3429
3438
  default: h(() => [
3430
- M(R(i(k).tCurd("delete")), 1)
3439
+ O(R(i(k).tCurd("delete")), 1)
3431
3440
  ]),
3432
3441
  _: 2
3433
3442
  }, 1032, ["onClick"])) : V("", !0),
3434
- E(f.$slots, "table-op-right", { row: p })
3443
+ z(f.$slots, "table-op-right", { row: p })
3435
3444
  ], 64))
3436
3445
  ]),
3437
3446
  _: 2
@@ -3464,9 +3473,9 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3464
3473
  }, a.option.page?.pagination || {}, $(a.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : V("", !0)
3465
3474
  ])
3466
3475
  ], 2),
3467
- E(f.$slots, "box-right")
3476
+ z(f.$slots, "box-right")
3468
3477
  ], 2),
3469
- O(i($e), S({
3478
+ M(i($e), S({
3470
3479
  modelValue: i(e).update.show,
3471
3480
  "onUpdate:modelValue": d[10] || (d[10] = (p) => i(e).update.show = p),
3472
3481
  title: i(e).update.title,
@@ -3474,18 +3483,18 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3474
3483
  }, a.option.dialog), {
3475
3484
  footer: h(() => [
3476
3485
  D("span", Zo, [
3477
- O(i(oe), {
3486
+ M(i(oe), {
3478
3487
  size: a.option.size?.form
3479
3488
  }, {
3480
3489
  default: h(() => [
3481
- E(f.$slots, "dialog-footer", {
3490
+ z(f.$slots, "dialog-footer", {
3482
3491
  row: i(e).update
3483
3492
  }, () => [
3484
- O(i(K), {
3493
+ M(i(K), {
3485
3494
  onClick: i(e).update.close
3486
3495
  }, {
3487
3496
  default: h(() => [
3488
- M(R(i(k).tCurd("close")), 1)
3497
+ O(R(i(k).tCurd("close")), 1)
3489
3498
  ]),
3490
3499
  _: 1
3491
3500
  }, 8, ["onClick"]),
@@ -3496,7 +3505,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3496
3505
  loading: i(e).update.loading
3497
3506
  }, {
3498
3507
  default: h(() => [
3499
- M(R(i(k).tCurd("submit")), 1)
3508
+ O(R(i(k).tCurd("submit")), 1)
3500
3509
  ]),
3501
3510
  _: 1
3502
3511
  }, 8, ["onClick", "loading"])) : V("", !0)
@@ -3507,10 +3516,10 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3507
3516
  ])
3508
3517
  ]),
3509
3518
  default: h(() => [
3510
- E(f.$slots, "dialog-start", {
3519
+ z(f.$slots, "dialog-start", {
3511
3520
  row: i(e).update
3512
3521
  }),
3513
- O(i(oe), {
3522
+ M(i(oe), {
3514
3523
  ref_key: "ruleFormRef",
3515
3524
  ref: l,
3516
3525
  model: i(e).update.form,
@@ -3535,20 +3544,20 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3535
3544
  G(f.$slots, (p, w) => ({
3536
3545
  name: w,
3537
3546
  fn: h((F) => [
3538
- E(f.$slots, w, Oe(Me(F || {})))
3547
+ z(f.$slots, w, Me(Oe(F || {})))
3539
3548
  ])
3540
3549
  }))
3541
3550
  ]), 1032, ["form-grid", "max-span", "form", "type", "stripe", "label-width", "form-option", "get-bind", "get-on", "get-disabled"])) : V("", !0)
3542
3551
  ]),
3543
3552
  _: 3
3544
3553
  }, 8, ["model", "rules", "size"]),
3545
- E(f.$slots, "dialog-end", {
3554
+ z(f.$slots, "dialog-end", {
3546
3555
  row: i(e).update
3547
3556
  })
3548
3557
  ]),
3549
3558
  _: 3
3550
3559
  }, 16, ["modelValue", "title", "before-close"]),
3551
- O(i($e), {
3560
+ M(i($e), {
3552
3561
  modelValue: i(e).remove.show,
3553
3562
  "onUpdate:modelValue": d[11] || (d[11] = (p) => i(e).remove.show = p),
3554
3563
  title: i(e).remove.title,
@@ -3556,25 +3565,25 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3556
3565
  }, {
3557
3566
  footer: h(() => [
3558
3567
  D("span", ea, [
3559
- O(i(oe), {
3568
+ M(i(oe), {
3560
3569
  size: a.option.size?.form
3561
3570
  }, {
3562
3571
  default: h(() => [
3563
- O(i(K), {
3572
+ M(i(K), {
3564
3573
  onClick: i(e).remove.close
3565
3574
  }, {
3566
3575
  default: h(() => [
3567
- M(R(i(k).tCurd("close")), 1)
3576
+ O(R(i(k).tCurd("close")), 1)
3568
3577
  ]),
3569
3578
  _: 1
3570
3579
  }, 8, ["onClick"]),
3571
- O(i(K), {
3580
+ M(i(K), {
3572
3581
  type: "danger",
3573
3582
  onClick: i(e).remove.submit,
3574
3583
  loading: i(e).remove.loading
3575
3584
  }, {
3576
3585
  default: h(() => [
3577
- M(R(i(k).tCurd("confirmDelete")), 1)
3586
+ O(R(i(k).tCurd("confirmDelete")), 1)
3578
3587
  ]),
3579
3588
  _: 1
3580
3589
  }, 8, ["onClick", "loading"])
@@ -3585,7 +3594,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3585
3594
  ]),
3586
3595
  default: h(() => [
3587
3596
  a.option.dialog?.delete?.content ? (m(), C("div", xo, [
3588
- O(lo, {
3597
+ M(lo, {
3589
3598
  content: a.option.dialog?.delete?.content,
3590
3599
  value: i(e).remove.items
3591
3600
  }, null, 8, ["content", "value"])
@@ -3593,7 +3602,7 @@ const Mo = /* @__PURE__ */ se(zo, [["render", Oo]]), Fo = { class: "row flex-cen
3593
3602
  ]),
3594
3603
  _: 1
3595
3604
  }, 8, ["modelValue", "title"]),
3596
- O(ao, {
3605
+ M(ao, {
3597
3606
  ref_key: "switchConfirmRef",
3598
3607
  ref: r,
3599
3608
  size: a.option.size?.form
@@ -3634,7 +3643,7 @@ class ia {
3634
3643
  n.accept = e, n.style.display = "none", n.onchange = (r) => {
3635
3644
  const l = r.target.files[0];
3636
3645
  if (!l) {
3637
- z.fail("未选择文件"), t("未选择文件");
3646
+ E.fail("未选择文件"), t("未选择文件");
3638
3647
  return;
3639
3648
  }
3640
3649
  const u = new FileReader();
@@ -3642,7 +3651,7 @@ class ia {
3642
3651
  const d = e == ".json" ? JSON.parse(f.target.result) : f.target.result;
3643
3652
  s(d);
3644
3653
  }, u.onerror = () => {
3645
- z.fail("文件读取失败"), t("文件读取失败");
3654
+ E.fail("文件读取失败"), t("文件读取失败");
3646
3655
  }, u.readAsText(l), document.body.removeChild(n);
3647
3656
  }, document.body.appendChild(n), n.click();
3648
3657
  });
@@ -3666,7 +3675,7 @@ export {
3666
3675
  T as TFormConfig,
3667
3676
  k as TFormI18n,
3668
3677
  We as TFormList,
3669
- z as TSys,
3678
+ E as TSys,
3670
3679
  sa as default,
3671
3680
  oa as install
3672
3681
  };