cc1-form 1.1.42 → 1.2.0

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 X, 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 ge, ElDropdownItem as x, ElPagination as ie, ElTable as be } from "element-plus";
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";
2
2
  import "vue-router";
3
- import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as Q, createElementBlock as y, createCommentVNode as C, openBlock as f, renderSlot as k, createElementVNode as U, createVNode as z, withCtx as m, createTextVNode as E, Fragment as $, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, mergeProps as v, toHandlers as S, resolveDynamicComponent as q, toDisplayString as A, getCurrentInstance as ye, createSlots as te, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
4
- class O {
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 {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
7
7
  */
@@ -43,9 +43,9 @@ class O {
43
43
  * @param module
44
44
  */
45
45
  static loadModule = async (o) => {
46
- if (!O.moduleObj[o])
46
+ if (!E.moduleObj[o])
47
47
  throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const u = await O.moduleObj[o]();
48
+ const u = await E.moduleObj[o]();
49
49
  return u.default ?? u;
50
50
  };
51
51
  /**
@@ -63,9 +63,9 @@ class O {
63
63
  * @param options 其他选项
64
64
  */
65
65
  static showMessage(o, u, t = {}) {
66
- const i = Date.now();
67
- if (!this.tipMessages[o] || i - this.tipMessages[o] > this.tipMessagesGap) {
68
- this.tipMessages[o] = i;
66
+ const r = Date.now();
67
+ if (!this.tipMessages[o] || r - this.tipMessages[o] > this.tipMessagesGap) {
68
+ this.tipMessages[o] = r;
69
69
  const l = Object.assign(
70
70
  {
71
71
  message: o,
@@ -117,11 +117,11 @@ class O {
117
117
  */
118
118
  static openUrl = (o, u = !0) => {
119
119
  if (u) {
120
- let t = screen.width / 2 - 500, i = screen.height / 2 - 800 / 2 - 30;
120
+ let t = screen.width / 2 - 500, r = screen.height / 2 - 800 / 2 - 30;
121
121
  window.open(
122
122
  o,
123
123
  "_blank",
124
- "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + i + ", left=" + t
124
+ "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + r + ", left=" + t
125
125
  );
126
126
  } else
127
127
  window.open(o, "DescriptiveWindowName" + StrUtil.getId(), "resizable,scrollbars=yes,status=1,width=1024, height=600, top=0, left=0");
@@ -132,10 +132,10 @@ class O {
132
132
  * @returns
133
133
  */
134
134
  static getImgPic = (o) => new Promise(async (u, t) => {
135
- let i = document.getElementById(o.id);
136
- const l = await O.loadModule("html2canvas");
135
+ let r = document.getElementById(o.id);
136
+ const l = await E.loadModule("html2canvas");
137
137
  try {
138
- l(i, {
138
+ l(r, {
139
139
  logging: !1,
140
140
  allowTaint: !0,
141
141
  scale: window.devicePixelRatio,
@@ -154,7 +154,7 @@ class O {
154
154
  }
155
155
  });
156
156
  }
157
- class D {
157
+ class O {
158
158
  /**
159
159
  * 全局配置对象
160
160
  */
@@ -235,6 +235,17 @@ class D {
235
235
  * 是否显示导出
236
236
  */
237
237
  show: !0,
238
+ /** 下拉菜单配置 */
239
+ dropdown: {
240
+ /** 是否显示导出下拉菜单 默认显示 如果不显示,点击后导出全部数据 */
241
+ show: !0,
242
+ /** 是否显示导出选中按钮 默认显示 */
243
+ select: !0,
244
+ /** 是否显示导出当前页按钮 默认显示 */
245
+ page: !0,
246
+ /** 是否显示导出全部按钮 默认显示 */
247
+ all: !0
248
+ },
238
249
  /**
239
250
  * 导出文件名前缀
240
251
  */
@@ -492,7 +503,7 @@ class D {
492
503
  * @param config - 需要覆盖的配置项(深度 Partial)
493
504
  */
494
505
  static setConfig = (o) => {
495
- D.config = ObjectUtil.deepMerge(D.config, o);
506
+ O.config = ObjectUtil.deepMerge(O.config, o);
496
507
  };
497
508
  }
498
509
  class M {
@@ -514,9 +525,9 @@ class M {
514
525
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
515
526
  */
516
527
  static findOptions = (o, u) => {
517
- const t = o.column.find((l) => l.key === u), i = (l) => l.replace(/-([a-z])/g, (e, s) => s.toUpperCase());
528
+ const t = o.column.find((l) => l.key === u), r = (l) => l.replace(/-([a-z])/g, (e, s) => s.toUpperCase());
518
529
  if (t)
519
- return t.options[i(t.type)];
530
+ return t.options[r(t.type)];
520
531
  };
521
532
  /**
522
533
  * 更新组件数据
@@ -535,8 +546,8 @@ class M {
535
546
  )
536
547
  */
537
548
  static setOptionsData = (o, u, t) => {
538
- const i = M.findOptions(o, u);
539
- i && (i.data = t);
549
+ const r = M.findOptions(o, u);
550
+ r && (r.data = t);
540
551
  };
541
552
  static form = {
542
553
  openBefore: {
@@ -547,9 +558,9 @@ class M {
547
558
  * @param treeData 树形数据
548
559
  * @param option 组件配置
549
560
  */
550
- parentId: (o, u, t, i) => {
551
- const l = D.config.table.rowKey;
552
- o ? u.type === O.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(i, "parentId", [{ [l]: "0", title: "根", children: t }]);
561
+ parentId: (o, u, t, r) => {
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 }]);
553
564
  }
554
565
  }
555
566
  };
@@ -587,17 +598,17 @@ const Ve = {
587
598
  confirmModify: "确认修改",
588
599
  confirmSwitchMessage: "确认要修改吗?"
589
600
  };
590
- class b {
601
+ class y {
591
602
  /** 解析国际化值:函数则执行并返回字符串,字符串则替换 `{key}` 占位符 */
592
603
  static t(o, ...u) {
593
604
  if (typeof o == "function")
594
605
  return o(...u);
595
606
  o = String(o);
596
607
  let t = 0;
597
- return o.replace(/{([^}]+)}/g, (i, l) => t < u.length ? String(u[t++]) : `{${l}}`);
608
+ return o.replace(/{([^}]+)}/g, (r, l) => t < u.length ? String(u[t++]) : `{${l}}`);
598
609
  }
599
610
  static setI18n = (o) => {
600
- b.curd = ObjectUtil.deepMerge(b.curd, o);
611
+ y.curd = ObjectUtil.deepMerge(y.curd, o);
601
612
  };
602
613
  /** 解析curd国际化值 */
603
614
  static tCurd(o, ...u) {
@@ -618,12 +629,12 @@ class P {
618
629
  */
619
630
  static setId = (o, u, t) => {
620
631
  u[o] || (u[o] = []);
621
- const i = D.config.table.rowKey;
632
+ const r = O.config.table.rowKey;
622
633
  u[o].forEach((l) => {
623
634
  t.forEach((e) => {
624
635
  let s = e.default ?? "";
625
636
  e.type === "number" && (s = e.default ?? 0), e.type === "boolean" && (s = e.default ?? !1), e.type === "time" && (s = e.default ?? /* @__PURE__ */ new Date()), l[e.value] === void 0 && (l[e.value] = s);
626
- }), l[i] || (l[i] = P.getIdFun());
637
+ }), l[r] || (l[r] = P.getIdFun());
627
638
  });
628
639
  };
629
640
  /**
@@ -633,10 +644,10 @@ class P {
633
644
  * @param itemFields 元素字段-如:[{label:'',value:''}]
634
645
  * @param callback 回调函数
635
646
  */
636
- static add = (o, u, t, i) => {
647
+ static add = (o, u, t, r) => {
637
648
  const l = JSONUtil.cp(t);
638
649
  P.setId(o, u, t);
639
- const e = D.config.table.rowKey;
650
+ const e = O.config.table.rowKey;
640
651
  u[o].push(
641
652
  l.reduce(
642
653
  (s, p) => {
@@ -645,7 +656,7 @@ class P {
645
656
  },
646
657
  { [e]: P.getIdFun() }
647
658
  )
648
- ), i?.(u);
659
+ ), r?.(u);
649
660
  };
650
661
  /**
651
662
  * 删除数组元素
@@ -654,9 +665,9 @@ class P {
654
665
  * @param item 元素-如:{_id:''}
655
666
  * @param callback 回调函数
656
667
  */
657
- static remove = (o, u, t, i) => {
658
- const l = D.config.table.rowKey;
659
- u[o] = u[o].filter((e) => e[l] !== t[l]), i?.(u);
668
+ static remove = (o, u, t, r) => {
669
+ const l = O.config.table.rowKey;
670
+ u[o] = u[o].filter((e) => e[l] !== t[l]), r?.(u);
660
671
  };
661
672
  /**
662
673
  * 获取没有id的数据
@@ -665,20 +676,20 @@ class P {
665
676
  * @returns 没有id的数据
666
677
  */
667
678
  static getNoIdData = (o, u) => {
668
- const t = JSONUtil.cp(o), i = D.config.table.rowKey;
679
+ const t = JSONUtil.cp(o), r = O.config.table.rowKey;
669
680
  return t.forEach((l) => {
670
- l[i] && delete l[i], u && l[u] && P.getNoIdData(l[u], u);
681
+ l[r] && delete l[r], u && l[u] && P.getNoIdData(l[u], u);
671
682
  }), t;
672
683
  };
673
684
  }
674
685
  const ze = {
675
686
  key: 0,
676
- class: "column",
687
+ class: "column curd-form-com-list",
677
688
  style: { width: "100%", gap: "10px" }
678
- }, De = {
689
+ }, $e = { key: 0 }, De = {
679
690
  class: "row items-center",
680
691
  style: { gap: "10px", width: "100%" }
681
- }, ne = /* @__PURE__ */ J({
692
+ }, Se = { key: 1 }, ne = /* @__PURE__ */ J({
682
693
  __name: "list",
683
694
  props: {
684
695
  row: {
@@ -710,79 +721,94 @@ const ze = {
710
721
  },
711
722
  inputClass: {
712
723
  default: ""
724
+ },
725
+ addBottom: {
726
+ default: !1
713
727
  }
714
728
  },
715
729
  emits: ["change"],
716
- setup(r, { emit: o }) {
717
- const u = r, t = le({
730
+ setup(i, { emit: o }) {
731
+ const u = i, t = le({
718
732
  show: !1,
719
733
  add: (l, e, s) => {
720
734
  P.add(l, e, s, () => {
721
- i("change");
735
+ r("change");
722
736
  });
723
737
  },
724
738
  remove: (l, e, s) => {
725
739
  P.remove(l, e, s, () => {
726
- i("change");
740
+ r("change");
727
741
  });
728
742
  }
729
743
  });
730
744
  ue(() => {
731
745
  P.setId(u.field, u.row, u.itemFields), t.show = !0;
732
746
  });
733
- const i = o;
747
+ const r = o;
734
748
  return (l, e) => {
735
- const s = Q("el-button"), p = Q("el-input");
736
- return t.show ? (f(), y("div", ze, [
737
- k(l.$slots, "list-start", { row: r.row }),
738
- U("div", null, [
749
+ const s = X("el-button"), p = X("el-input");
750
+ return t.show ? (f(), g("div", ze, [
751
+ C(l.$slots, "list-start", { row: i.row }),
752
+ i.addBottom ? k("", !0) : (f(), g("div", $e, [
739
753
  z(s, {
740
754
  link: "",
741
755
  type: "primary",
742
- onClick: e[0] || (e[0] = (c) => t.add(r.field, r.row, r.itemFields))
756
+ onClick: e[0] || (e[0] = (c) => t.add(i.field, i.row, i.itemFields))
743
757
  }, {
744
- default: m(() => e[2] || (e[2] = [
745
- E("添加")
758
+ default: m(() => e[3] || (e[3] = [
759
+ $("添加")
746
760
  ])),
747
761
  _: 1
748
762
  })
749
- ]),
750
- (f(!0), y($, null, L(r.row[r.field], (c) => (f(), y("div", De, [
751
- k(l.$slots, "item-start", {
763
+ ])),
764
+ (f(!0), g(S, null, L(i.row[i.field], (c) => (f(), g("div", De, [
765
+ C(l.$slots, "item-start", {
752
766
  item: c,
753
- row: r.row
767
+ row: i.row
754
768
  }),
755
- (f(!0), y($, null, L(r.itemFields, (g) => (f(), h(p, {
756
- modelValue: c[g.value],
757
- "onUpdate:modelValue": (n) => c[g.value] = n,
758
- style: fe({ width: r.inputWidth }),
759
- class: j(r.inputClass),
760
- placeholder: g[r.label] || g[r.value],
761
- onChange: e[1] || (e[1] = (n) => i("change"))
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,
772
+ style: fe({ width: i.inputWidth }),
773
+ class: j(i.inputClass),
774
+ placeholder: b[i.label] || b[i.value],
775
+ onChange: e[1] || (e[1] = (n) => r("change"))
762
776
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
763
- k(l.$slots, "item-end", {
777
+ C(l.$slots, "item-end", {
764
778
  item: c,
765
- row: r.row
779
+ row: i.row
766
780
  }),
767
781
  z(s, {
768
782
  link: "",
769
783
  type: "danger",
770
- onClick: (g) => t.remove(r.field, r.row, c)
784
+ onClick: (b) => t.remove(i.field, i.row, c)
771
785
  }, {
772
- default: m(() => e[3] || (e[3] = [
773
- E("删除")
786
+ default: m(() => e[4] || (e[4] = [
787
+ $("删除")
774
788
  ])),
775
789
  _: 2
776
790
  }, 1032, ["onClick"])
777
791
  ]))), 256)),
778
- k(l.$slots, "list-end", { row: r.row })
779
- ])) : C("", !0);
792
+ i.addBottom ? (f(), g("div", Se, [
793
+ z(s, {
794
+ link: "",
795
+ type: "primary",
796
+ onClick: e[2] || (e[2] = (c) => t.add(i.field, i.row, i.itemFields))
797
+ }, {
798
+ default: m(() => e[5] || (e[5] = [
799
+ $("添加")
800
+ ])),
801
+ _: 1
802
+ })
803
+ ])) : k("", !0),
804
+ C(l.$slots, "list-end", { row: i.row })
805
+ ])) : k("", !0);
780
806
  };
781
807
  }
782
- }), Se = {
808
+ }), Ee = {
783
809
  class: "row form-item-content",
784
810
  style: { width: "100%" }
785
- }, Ee = { class: "col" }, $e = { class: "col" }, Ue = ["innerHTML"], Oe = /* @__PURE__ */ J({
811
+ }, Ue = { class: "col" }, Oe = { class: "col" }, Fe = ["innerHTML"], Ae = /* @__PURE__ */ J({
786
812
  __name: "column",
787
813
  props: {
788
814
  /**
@@ -798,8 +824,8 @@ const ze = {
798
824
  default: ""
799
825
  }
800
826
  },
801
- setup(r, { expose: o }) {
802
- const u = O.isFun, t = O.EDialog, i = H(), l = r, e = le({
827
+ setup(i, { expose: o }) {
828
+ const u = E.isFun, t = E.EDialog, r = H(), l = i, e = le({
803
829
  rules: {},
804
830
  show: !0,
805
831
  form: {},
@@ -811,31 +837,31 @@ const ze = {
811
837
  getOn: (s) => s.options?.[e.type === t.Add ? "formAdd" : "formUpdate"]?.[s.type]?.on || s.options?.[s.type]?.on || {},
812
838
  getColumnSpan: (s, p) => {
813
839
  if (s.item.form?.spanCol) {
814
- const c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !O.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || g), 0);
815
- return (s.item.form?.span || g) + d;
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;
816
842
  }
817
843
  return s.item.form?.span;
818
844
  },
819
845
  initColumnForm: () => {
820
846
  const s = l.option;
821
847
  e.formColumn = [], e.rules = {}, e.formDefault = {};
822
- const p = [], c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2;
848
+ const p = [], c = l.option.form?.maxSpan || 12, b = l.option.form?.defaultSpan || c / 2;
823
849
  let n = [];
824
850
  const d = (w) => {
825
851
  if (w.children) {
826
- w.children.forEach((F) => {
827
- d(F);
852
+ w.children.forEach((A) => {
853
+ d(A);
828
854
  });
829
855
  return;
830
856
  }
831
857
  if (e.formDefault[w.key] = w.value, w.isForm && (typeof w.show?.form != "boolean" || w.show?.form)) {
832
- w.form = w.form || { span: g }, w.form.span = w.form.span ?? g;
833
- const F = w.form.span, B = n.reduce((G, Z) => G + Z.span, F), R = n.length;
834
- if (n.push({ item: w, span: F }), (R === 1 && n[0].span === 0 || B >= c || F === 0 && R > 1) && (p.push(n), n = []), w.rules) {
835
- const G = {
836
- input: b.tCurd("placeholderInput"),
837
- select: b.tCurd("placeholderSelect")
838
- }, Z = (G[w.type] || G.input) + w.label;
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;
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
+ const Q = {
862
+ input: y.tCurd("placeholderInput"),
863
+ select: y.tCurd("placeholderSelect")
864
+ }, Z = (Q[w.type] || Q.input) + w.label;
839
865
  e.rules[w.key] = typeof w.rules == "boolean" ? [
840
866
  {
841
867
  required: !0,
@@ -845,8 +871,8 @@ const ze = {
845
871
  ] : w.rules;
846
872
  }
847
873
  }
848
- }, V = (w, F) => {
849
- w.isForm = F, Array.isArray(w.children) && w.children.forEach((B) => V(B, F));
874
+ }, V = (w, A) => {
875
+ w.isForm = A, Array.isArray(w.children) && w.children.forEach((B) => V(B, A));
850
876
  };
851
877
  s.column.forEach((w) => {
852
878
  V(w, !0), d(w);
@@ -854,53 +880,53 @@ const ze = {
854
880
  }
855
881
  });
856
882
  return e.initColumnForm(), o({
857
- ref: i,
883
+ ref: r,
858
884
  conf: e
859
885
  }), (s, p) => (f(), h(a(N), {
860
886
  ref_key: "ruleFormRef",
861
- ref: i,
887
+ ref: r,
862
888
  model: e.form,
863
889
  rules: e.rules
864
890
  }, {
865
891
  default: m(() => [
866
- e.show ? (f(!0), y($, { key: 0 }, L(e.formColumn, (c, g) => (f(), y($, { key: g }, [
892
+ e.show ? (f(!0), g(S, { key: 0 }, L(e.formColumn, (c, b) => (f(), g(S, { key: b }, [
867
893
  a(u)(
868
894
  c.map((n) => n.item?.show?.form),
869
895
  e.form,
870
896
  e.type
871
- ) ? (f(), y("div", {
897
+ ) ? (f(), g("div", {
872
898
  key: 0,
873
899
  class: j(["row curd-row", {
874
- stripe: r.option.form?.stripe === void 0 ? !0 : r.option.form?.stripe
900
+ stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
875
901
  }])
876
902
  }, [
877
- k(s.$slots, "form-start", {
903
+ C(s.$slots, "form-start", {
878
904
  row: e.form
879
905
  }),
880
- (f(!0), y($, null, L(c, (n) => (f(), y($, {
906
+ (f(!0), g(S, null, L(c, (n) => (f(), g(S, {
881
907
  key: n.item.key
882
908
  }, [
883
- a(u)(n.item.show?.form, e.form, e.type) ? (f(), y("div", {
909
+ a(u)(n.item.show?.form, e.form, e.type) ? (f(), g("div", {
884
910
  key: 0,
885
911
  class: j([n.item.form.span > 0 ? `col-${e.getColumnSpan(n, c)}` : "col", `form-item-col-${n.item.key}`])
886
912
  }, [
887
- z(a(X), {
913
+ z(a(G), {
888
914
  class: j({
889
915
  "hide-label": typeof n.item.text?.form?.label == "boolean" ? !n.item.text?.form?.label : !1
890
916
  }),
891
917
  label: typeof n.item.text?.form?.label == "string" ? n.item.text?.form?.label : n.item.label,
892
918
  prop: n.item.key,
893
- "label-width": n.item.form?.labelWidth || r.option.form?.labelWidth || "100px"
919
+ "label-width": n.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
894
920
  }, {
895
921
  default: m(() => [
896
- U("div", Se, [
897
- k(s.$slots, "form-" + n.item.key + "-start", {
922
+ F("div", Ee, [
923
+ C(s.$slots, "form-" + n.item.key + "-start", {
898
924
  row: e.form,
899
925
  item: n.item
900
926
  }),
901
- U("div", Ee, [
902
- U("div", $e, [
903
- k(s.$slots, "form-" + n.item.key, {
927
+ F("div", Ue, [
928
+ F("div", Oe, [
929
+ C(s.$slots, "form-" + n.item.key, {
904
930
  row: e.form,
905
931
  item: n.item
906
932
  }, () => [
@@ -909,26 +935,26 @@ const ze = {
909
935
  modelValue: e.form[n.item.key],
910
936
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
911
937
  ref_for: !0
912
- }, e.getBind(n.item), S(e.getOn(n.item)), {
938
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
913
939
  disabled: e.getDisabled(n.item)
914
940
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "switch" ? (f(), h(a(oe), v({
915
941
  key: 1,
916
942
  modelValue: e.form[n.item.key],
917
943
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
918
944
  ref_for: !0
919
- }, e.getBind(n.item), S(e.getOn(n.item)), {
945
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
920
946
  disabled: e.getDisabled(n.item)
921
947
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "select" ? (f(), h(a(W), v({
922
948
  key: 2,
923
949
  modelValue: e.form[n.item.key],
924
950
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
925
951
  ref_for: !0
926
- }, e.getBind(n.item), S(e.getOn(n.item)), {
952
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
927
953
  disabled: e.getDisabled(n.item),
928
954
  style: { width: "100%" }
929
955
  }), {
930
956
  default: m(() => [
931
- (f(!0), y($, null, L(n.item.options?.select?.data, (d) => (f(), h(a(K), {
957
+ (f(!0), g(S, null, L(n.item.options?.select?.data, (d) => (f(), h(a(K), {
932
958
  key: d.value,
933
959
  label: d.label,
934
960
  value: d.value
@@ -940,12 +966,12 @@ const ze = {
940
966
  modelValue: e.form[n.item.key],
941
967
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
942
968
  ref_for: !0
943
- }, e.getBind(n.item), S(e.getOn(n.item)), {
969
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
944
970
  disabled: e.getDisabled(n.item),
945
971
  style: { width: "100%" }
946
972
  }), {
947
973
  default: m(() => [
948
- (f(!0), y($, null, L(n.item.options?.radio?.data, (d) => (f(), h(a(se), {
974
+ (f(!0), g(S, null, L(n.item.options?.radio?.data, (d) => (f(), h(a(se), {
949
975
  key: d.value,
950
976
  label: d.label,
951
977
  value: d.value
@@ -957,7 +983,7 @@ const ze = {
957
983
  row: e.form,
958
984
  field: n.item.key,
959
985
  ref_for: !0
960
- }, e.getBind(n.item), S(e.getOn(n.item)), {
986
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
961
987
  disabled: e.getDisabled(n.item),
962
988
  style: { width: "100%" }
963
989
  }), null, 16, ["row", "field", "disabled"])) : n.item.type === "treeSelect" ? (f(), h(a(de), v({
@@ -965,7 +991,7 @@ const ze = {
965
991
  modelValue: e.form[n.item.key],
966
992
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
967
993
  ref_for: !0
968
- }, e.getBind(n.item), S(e.getOn(n.item)), {
994
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
969
995
  disabled: e.getDisabled(n.item),
970
996
  style: { width: "100%" }
971
997
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "datetime" ? (f(), h(a(ae), v({
@@ -973,34 +999,34 @@ const ze = {
973
999
  modelValue: e.form[n.item.key],
974
1000
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
975
1001
  ref_for: !0
976
- }, e.getBind(n.item), S(e.getOn(n.item)), {
1002
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
977
1003
  disabled: e.getDisabled(n.item)
978
1004
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type && (a(M).customComponent[n.item.type] || a(M).customComponent[n.item.type]?.form) ? (f(), h(q(a(M).customComponent[n.item.type]?.form || a(M).customComponent[n.item.type]), v({
979
1005
  key: 7,
980
1006
  modelValue: e.form[n.item.key],
981
1007
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
982
1008
  ref_for: !0
983
- }, e.getBind(n.item), S(e.getOn(n.item)), {
1009
+ }, e.getBind(n.item), D(e.getOn(n.item)), {
984
1010
  disabled: e.getDisabled(n.item)
985
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : C("", !0)
1011
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
986
1012
  ]),
987
- k(s.$slots, "form-" + n.item.key + "-right", {
1013
+ C(s.$slots, "form-" + n.item.key + "-right", {
988
1014
  row: e.form,
989
1015
  item: n.item
990
1016
  })
991
1017
  ]),
992
- k(s.$slots, "form-" + n.item.key + "-tip", {
1018
+ C(s.$slots, "form-" + n.item.key + "-tip", {
993
1019
  row: e.form,
994
1020
  item: n.item
995
1021
  }, () => [
996
- n.item.form?.tipText ? (f(), y("div", {
1022
+ n.item.form?.tipText ? (f(), g("div", {
997
1023
  key: 0,
998
1024
  class: "form-tip-text",
999
1025
  innerHTML: typeof n.item.form?.tipText == "function" ? n.item.form?.tipText(e.form, e.type) : n.item.form?.tipText
1000
- }, null, 8, Ue)) : C("", !0)
1026
+ }, null, 8, Fe)) : k("", !0)
1001
1027
  ])
1002
1028
  ]),
1003
- k(s.$slots, "form-" + n.item.key + "-end", {
1029
+ C(s.$slots, "form-" + n.item.key + "-end", {
1004
1030
  row: e.form,
1005
1031
  item: n.item
1006
1032
  })
@@ -1008,19 +1034,19 @@ const ze = {
1008
1034
  ]),
1009
1035
  _: 2
1010
1036
  }, 1032, ["class", "label", "prop", "label-width"])
1011
- ], 2)) : C("", !0)
1037
+ ], 2)) : k("", !0)
1012
1038
  ], 64))), 128)),
1013
- k(s.$slots, "form-end", {
1039
+ C(s.$slots, "form-end", {
1014
1040
  row: e.form
1015
1041
  })
1016
- ], 2)) : C("", !0)
1017
- ], 64))), 128)) : C("", !0)
1042
+ ], 2)) : k("", !0)
1043
+ ], 64))), 128)) : k("", !0)
1018
1044
  ]),
1019
1045
  _: 3
1020
1046
  }, 8, ["model", "rules"]));
1021
1047
  }
1022
1048
  });
1023
- class Fe {
1049
+ class Te {
1024
1050
  /**
1025
1051
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1026
1052
  *
@@ -1030,18 +1056,18 @@ class Fe {
1030
1056
  */
1031
1057
  static exportToExcel = async (o, u, t) => {
1032
1058
  if (!o || o.length === 0) return;
1033
- const i = await O.loadModule("xlsx"), l = o.map((p) => {
1059
+ const r = await E.loadModule("xlsx"), l = o.map((p) => {
1034
1060
  const c = {};
1035
- return u.forEach((g) => {
1036
- c[g.label] = p[g.key];
1061
+ return u.forEach((b) => {
1062
+ c[b.label] = p[b.key];
1037
1063
  }), c;
1038
- }), e = i.utils.json_to_sheet(l), s = i.utils.book_new();
1039
- i.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()}`, i.writeFile(s, `${t}.xlsx`);
1064
+ }), e = r.utils.json_to_sheet(l), s = r.utils.book_new();
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`);
1040
1066
  };
1041
1067
  }
1042
- const I = O.EDialog, Ae = (r) => {
1068
+ const I = E.EDialog, Le = (i) => {
1043
1069
  const o = H(), u = H(), t = le({
1044
- option: r.option,
1070
+ option: i.option,
1045
1071
  /** 查询区域相关配置对象 */
1046
1072
  search: {
1047
1073
  /** 查询表单列集合 */
@@ -1054,22 +1080,22 @@ const I = O.EDialog, Ae = (r) => {
1054
1080
  /** 搜索表单默认值 */
1055
1081
  formDefault: {},
1056
1082
  /** 获取占位符 */
1057
- getPlaceholder: (i, l = b.tCurd("placeholderInput")) => i.text?.search?.placeholder === void 0 ? `${l}${i.label}` : i.text?.search?.placeholder,
1083
+ getPlaceholder: (r, l = y.tCurd("placeholderInput")) => r.text?.search?.placeholder === void 0 ? `${l}${r.label}` : r.text?.search?.placeholder,
1058
1084
  /** 组装实际要搜索的数据对象 */
1059
1085
  getFormData: () => {
1060
- let i = {};
1061
- r.option.column.forEach((e) => {
1062
- (typeof e.show?.search == "function" ? e.show?.search(t.search.form) : e.show?.search) && (i[e.key] = t.search.form[e.key]);
1086
+ let r = {};
1087
+ i.option.column.forEach((e) => {
1088
+ (typeof e.show?.search == "function" ? e.show?.search(t.search.form) : e.show?.search) && (r[e.key] = t.search.form[e.key]);
1063
1089
  });
1064
- const l = r.option.search?.before?.(i);
1065
- return l && (i = l), i;
1090
+ const l = i.option.search?.before?.(r);
1091
+ return l && (r = l), r;
1066
1092
  },
1067
1093
  /** 重置搜索表单 */
1068
1094
  reset: () => {
1069
- const i = t.search.formDefault;
1070
- Object.keys(i).forEach((l) => {
1071
- r.option.search?.resetMode === "none" ? i[l] = void 0 : i[l] = t.search.formDefault[l];
1072
- }), t.search.form = JSONUtil.cp(i), t.page.num = 1, r.option.init !== !1 && t.table.getList();
1095
+ const r = t.search.formDefault;
1096
+ Object.keys(r).forEach((l) => {
1097
+ i.option.search?.resetMode === "none" ? r[l] = void 0 : r[l] = t.search.formDefault[l];
1098
+ }), t.search.form = JSONUtil.cp(r), t.page.num = 1, i.option.init !== !1 && t.table.getList();
1073
1099
  },
1074
1100
  /** 提交搜索表单 */
1075
1101
  submit: () => {
@@ -1083,22 +1109,28 @@ const I = O.EDialog, Ae = (r) => {
1083
1109
  /** 总条数 */
1084
1110
  total: 0,
1085
1111
  /** 分页控件的布局方式 */
1086
- layout: r.option.page?.layout || D.config.pagination.layout,
1112
+ layout: i.option.page?.layout || O.config.pagination.layout,
1087
1113
  /** 是否显示到工具栏 默认不显示 配置后show属性无效 */
1088
- showTools: r.option.page?.showTools || D.config.pagination.showTools,
1114
+ showTools: i.option.page?.showTools || O.config.pagination.showTools,
1089
1115
  /** 当前每页条数 */
1090
- size: r.option.page?.size || D.config.pagination.size,
1116
+ size: i.option.page?.size || O.config.pagination.size,
1091
1117
  /** 支持切换的每页条数选项 */
1092
- sizeList: r.option.page?.sizeList || D.config.pagination.pageSizes,
1118
+ sizeList: i.option.page?.sizeList || O.config.pagination.pageSizes,
1093
1119
  /** 分页器计数 */
1094
- pagerCount: r.option.page?.pagerCount || D.config.pagination.pagerCount
1120
+ pagerCount: i.option.page?.pagerCount || O.config.pagination.pagerCount,
1121
+ /** 获取分页查询参数 */
1122
+ getQuery: (r = {}) => ({
1123
+ [O.config.field.page.size]: r.size || t.page.size,
1124
+ [O.config.field.page.num]: r.num || t.page.num,
1125
+ ...t.search.getFormData()
1126
+ })
1095
1127
  },
1096
1128
  /** 表格区域相关配置对象 */
1097
1129
  table: {
1098
1130
  /** 操作列相关配置 */
1099
1131
  op: {
1100
1132
  /** 动态计算操作列宽度 */
1101
- width: (...i) => i.filter((e) => e).length * 30 + 60
1133
+ width: (...r) => r.filter((e) => e).length * 30 + 60
1102
1134
  },
1103
1135
  /** 表格加载中状态 */
1104
1136
  loading: !1,
@@ -1111,20 +1143,20 @@ const I = O.EDialog, Ae = (r) => {
1111
1143
  /** 已经展开的行key集合 */
1112
1144
  rowKeys: [],
1113
1145
  /** 行展开触发变更函数 */
1114
- change: (i, l) => {
1146
+ change: (r, l) => {
1115
1147
  },
1116
1148
  /** 全部展开/收起 */
1117
1149
  all: () => {
1118
1150
  if (t.table.expand.isExpand)
1119
1151
  t.table.expand.rowKeys = [];
1120
1152
  else {
1121
- const i = (l) => {
1153
+ const r = (l) => {
1122
1154
  let e = [];
1123
1155
  return l.forEach((s) => {
1124
- e.push(s[r.option.table.rowKey]), s.children && s.children.length > 0 && (e = e.concat(i(s.children)));
1156
+ e.push(s[i.option.table.rowKey]), s.children && s.children.length > 0 && (e = e.concat(r(s.children)));
1125
1157
  }), e;
1126
1158
  };
1127
- t.table.expand.rowKeys = i(t.table.data);
1159
+ t.table.expand.rowKeys = r(t.table.data);
1128
1160
  }
1129
1161
  t.table.expand.isExpand = !t.table.expand.isExpand;
1130
1162
  }
@@ -1144,29 +1176,27 @@ const I = O.EDialog, Ae = (r) => {
1144
1176
  /** 获取数据列表接口实现 */
1145
1177
  getList: async () => {
1146
1178
  t.table.loading = !0;
1147
- const i = r.option.api.list;
1179
+ const r = i.option.api.list;
1148
1180
  try {
1149
1181
  await t.initApiData("init");
1150
1182
  let l = {};
1151
1183
  if (t.table.sort.prop) {
1152
- const { props: d, order: V } = D.config.table.sort;
1184
+ const { props: d, order: V } = O.config.table.sort;
1153
1185
  l = {
1154
1186
  [d.field]: t.table.sort.prop,
1155
1187
  [V.field]: t.table.sort.order
1156
1188
  };
1157
1189
  }
1158
- const e = await i({
1159
- [D.config.field.page.size]: t.page.size,
1160
- [D.config.field.page.num]: t.page.num,
1161
- ...t.search.getFormData(),
1190
+ const e = await r({
1191
+ ...t.page.getQuery(),
1162
1192
  ...l
1163
- }), s = D.config.field.result, p = e.data || { [s.list]: e };
1193
+ }), s = O.config.field.result, p = e.data || { [s.list]: e };
1164
1194
  let c = (Array.isArray(p[s.list]), p[s.list]);
1165
- const g = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1166
- const F = g.find((B) => B.item.key === w);
1167
- F && ["select", "radio"].includes(F.item.type) && (F.item.table.format || (F.item.table.format = (B) => F.item.options[F.item.type].data?.find((R) => R.value == B[w])?.label || B[w]));
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);
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]));
1168
1198
  }), d));
1169
- t.table.data = r.option.data ? await r.option.data(n, c) : n, t.page.total = p[s.total] || 0;
1199
+ t.table.data = i.option.data ? await i.option.data(n, c) : n, t.page.total = p[s.total] || 0;
1170
1200
  } catch (l) {
1171
1201
  console.error(l);
1172
1202
  } finally {
@@ -1178,8 +1208,8 @@ const I = O.EDialog, Ae = (r) => {
1178
1208
  /** 已选数据项 */
1179
1209
  list: [],
1180
1210
  /** 选中状态回调 */
1181
- change: (i) => {
1182
- t.table.selection.list = i;
1211
+ change: (r) => {
1212
+ t.table.selection.list = r;
1183
1213
  }
1184
1214
  },
1185
1215
  /** 表格排序相关配置 */
@@ -1189,14 +1219,14 @@ const I = O.EDialog, Ae = (r) => {
1189
1219
  /** 当前排序顺序值 */
1190
1220
  order: "",
1191
1221
  /** 排序变更回调 */
1192
- change: (i) => {
1193
- D.config.table.sort.resetPage && (t.page.num = 1);
1194
- const l = D.config.table.sort;
1222
+ change: (r) => {
1223
+ O.config.table.sort.resetPage && (t.page.num = 1);
1224
+ const l = O.config.table.sort;
1195
1225
  if (l.change) {
1196
- l.change(i, t);
1226
+ l.change(r, t);
1197
1227
  return;
1198
1228
  }
1199
- t.table.sort.prop = i.prop, i.order === null ? t.table.sort.order = "" : t.table.sort.order = i.order === "ascending" ? l.order.asc : l.order.desc, t.table.getList();
1229
+ t.table.sort.prop = r.prop, r.order === null ? t.table.sort.order = "" : t.table.sort.order = r.order === "ascending" ? l.order.asc : l.order.desc, t.table.getList();
1200
1230
  }
1201
1231
  }
1202
1232
  },
@@ -1205,45 +1235,72 @@ const I = O.EDialog, Ae = (r) => {
1205
1235
  /** 导出逻辑方法集合 */
1206
1236
  run: {
1207
1237
  /** 执行指定方式的导出(如select、page、all) */
1208
- start: async (i) => {
1209
- let l = await t.export.run[i](), e = r.option.column;
1238
+ start: async (r) => {
1239
+ let l = await t.export.run[r](), e = i.option.column;
1210
1240
  const s = JSONUtil.cp({
1211
1241
  data: l,
1212
1242
  columns: e
1213
- }), p = r.option.tools?.export || {};
1214
- p.before && p.before(s), Fe.exportToExcel(s.data, s.columns, p.fileName);
1243
+ }), p = i.option.tools?.export || {};
1244
+ p.before && p.before(s), Te.exportToExcel(s.data, s.columns, p.fileName);
1215
1245
  },
1216
1246
  /** 获取当前选中项进行导出 */
1217
- select: () => {
1218
- if (t.table.selection.list.length === 0)
1219
- throw O.fail(b.tCurd("selectDataToExport")), new Error(b.tCurd("selectDataToExport"));
1220
- return t.table.selection.list;
1247
+ select: async () => {
1248
+ t.export.loading = !0;
1249
+ try {
1250
+ if (i.option.tools?.export?.select) {
1251
+ await i.option.tools?.export?.select({
1252
+ ...t.page.getQuery(),
1253
+ items: t.table.selection.list
1254
+ });
1255
+ return;
1256
+ }
1257
+ if (t.table.selection.list.length === 0)
1258
+ throw E.fail(y.tCurd("selectDataToExport")), new Error(y.tCurd("selectDataToExport"));
1259
+ return t.table.selection.list;
1260
+ } catch (r) {
1261
+ console.error(r);
1262
+ } finally {
1263
+ t.export.loading = !1;
1264
+ }
1221
1265
  },
1222
1266
  /** 导出当前页的数据 */
1223
- page: () => {
1224
- if (t.table.data.length === 0)
1225
- throw O.fail(b.tCurd("noData")), new Error(b.tCurd("noData"));
1226
- return t.table.data;
1267
+ page: async () => {
1268
+ t.export.loading = !0;
1269
+ try {
1270
+ if (i.option.tools?.export?.page) {
1271
+ await i.option.tools?.export?.page({
1272
+ ...t.page.getQuery()
1273
+ });
1274
+ return;
1275
+ }
1276
+ if (t.table.data.length === 0)
1277
+ throw E.fail(y.tCurd("noData")), new Error(y.tCurd("noData"));
1278
+ return t.table.data;
1279
+ } catch (r) {
1280
+ console.error(r);
1281
+ } finally {
1282
+ t.export.loading = !1;
1283
+ }
1227
1284
  },
1228
1285
  /** 导出所有数据 */
1229
1286
  all: async () => {
1230
1287
  t.export.loading = !0;
1231
1288
  try {
1232
- if (r.option.tools?.export?.all) {
1233
- await r.option.tools?.export?.all({
1234
- [D.config.field.page.size]: t.page.size,
1235
- [D.config.field.page.num]: t.page.num,
1236
- ...t.search.getFormData()
1289
+ if (i.option.tools?.export?.all) {
1290
+ await i.option.tools?.export?.all({
1291
+ ...t.page.getQuery()
1237
1292
  });
1238
1293
  return;
1239
1294
  }
1240
- const i = r.option.api.list, l = await i({
1241
- [D.config.field.page.size]: 999999,
1242
- [D.config.field.page.num]: 1
1295
+ const r = i.option.api.list, l = await r({
1296
+ ...t.page.getQuery({
1297
+ size: 999999,
1298
+ num: 1
1299
+ })
1243
1300
  });
1244
- return (l.data || { [D.config.field.result.list]: l })[D.config.field.result.list];
1245
- } catch (i) {
1246
- console.error(i);
1301
+ return (l.data || { [O.config.field.result.list]: l })[O.config.field.result.list];
1302
+ } catch (r) {
1303
+ console.error(r);
1247
1304
  } finally {
1248
1305
  t.export.loading = !1;
1249
1306
  }
@@ -1252,8 +1309,8 @@ const I = O.EDialog, Ae = (r) => {
1252
1309
  /** 导出时loading状态 */
1253
1310
  loading: !1,
1254
1311
  /** 执行导出操作的触发函数 */
1255
- click: (i) => {
1256
- t.export.loading || t.export.run.start(i);
1312
+ click: (r) => {
1313
+ t.export.loading || t.export.run.start(r);
1257
1314
  }
1258
1315
  },
1259
1316
  /** 表单增删改弹窗相关对象 */
@@ -1277,15 +1334,15 @@ const I = O.EDialog, Ae = (r) => {
1277
1334
  /** 表单所有列,二维数组结构按行分组 */
1278
1335
  formColumn: [],
1279
1336
  /** 判断是否禁用当前字段 */
1280
- getDisabled: (i) => t.update.type === I.View ? i.disabled?.view === void 0 ? !0 : i.disabled?.view : i.disabled?.[t.update.type === I.Add ? "create" : "update"],
1337
+ getDisabled: (r) => t.update.type === I.View ? r.disabled?.view === void 0 ? !0 : r.disabled?.view : r.disabled?.[t.update.type === I.Add ? "create" : "update"],
1281
1338
  /** 获取表单组件绑定属性 */
1282
- getBind: (i) => i.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[i.type] || i.options?.[i.type] || {},
1339
+ getBind: (r) => r.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[r.type] || r.options?.[r.type] || {},
1283
1340
  /** 获取表单组件事件属性 */
1284
- getOn: (i) => i.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[i.type]?.on || i.options?.[i.type]?.on || {},
1341
+ getOn: (r) => r.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[r.type]?.on || r.options?.[r.type]?.on || {},
1285
1342
  /** 获取表单组件绑定属性和事件 */
1286
- getOptions: (i) => {
1343
+ getOptions: (r) => {
1287
1344
  try {
1288
- const e = t.update.formColumn.flat().find((s) => s.item.key === i)?.item;
1345
+ const e = t.update.formColumn.flat().find((s) => s.item.key === r)?.item;
1289
1346
  return e ? {
1290
1347
  options: e.options,
1291
1348
  // @ts-ignore
@@ -1300,53 +1357,49 @@ const I = O.EDialog, Ae = (r) => {
1300
1357
  /** 当前编辑的数据原始项对象 */
1301
1358
  data: {},
1302
1359
  /** 返回编辑时与原值的变更数据,用于局部更新API */
1303
- getApiData: (i) => {
1304
- if (r.option.form?.editAll)
1305
- return i;
1360
+ getApiData: (r) => {
1361
+ if (i.option.form?.editAll)
1362
+ return r;
1306
1363
  let l = {
1307
- [r.option.table?.rowKey]: t.update.edit.data[r.option.table?.rowKey]
1364
+ [i.option.table?.rowKey]: t.update.edit.data[i.option.table?.rowKey]
1308
1365
  };
1309
1366
  return Object.keys(t.update.edit.data).forEach((e) => {
1310
- i[e] !== t.update.edit.data[e] && (l[e] = i[e]);
1367
+ r[e] !== t.update.edit.data[e] && (l[e] = r[e]);
1311
1368
  }), l;
1312
1369
  }
1313
1370
  },
1314
1371
  view: {},
1315
1372
  /** 打开增改弹窗 */
1316
- open: (i, l) => {
1373
+ open: (r, l) => {
1317
1374
  t.update.showContent || FunUtil.throttle(async () => {
1318
- O.loading(!0);
1375
+ E.loading(!0);
1319
1376
  try {
1320
- t.update.type = i, await t.initApiData("update");
1321
- const e = i === I.Add;
1322
- if (!e && r.option.table?.inlineEdit) {
1323
- t.inlineEdit.open(l);
1324
- return;
1325
- }
1326
- t.update.edit.data = l, t.update.title = b.tCurd(e ? "add" : i === I.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await r.option.form?.openBefore?.(t.update.form, t.update), t.inlineEdit.data || (t.update.show = !0), t.update.showContent = !0, r.option.form?.openAfter?.(t.update.form, t.update);
1377
+ t.update.type = r, await t.initApiData("update");
1378
+ const e = r === I.Add;
1379
+ t.update.edit.data = l, t.update.title = y.tCurd(e ? "add" : r === I.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await i.option.form?.openBefore?.(t.update.form, t.update), !e && i.option.table?.inlineEdit ? t.inlineEdit.open(l) : (t.update.show = !0, t.update.showContent = !0), i.option.form?.openAfter?.(t.update.form, t.update);
1327
1380
  } catch (e) {
1328
1381
  console.error(e);
1329
1382
  } finally {
1330
- O.loading(!1);
1383
+ E.loading(!1);
1331
1384
  }
1332
1385
  });
1333
1386
  },
1334
1387
  /** 提交增改表单操作 */
1335
1388
  submit: () => {
1336
1389
  FunUtil.throttle(async () => {
1337
- await u.value?.validate(async (s, p) => new Promise((c, g) => {
1338
- s || (O.fail(b.tCurd("checkFormData")), g(!1)), c();
1390
+ await u.value?.validate(async (s, p) => new Promise((c, b) => {
1391
+ s || (E.fail(y.tCurd("checkFormData")), b(!1)), c();
1339
1392
  })), t.update.loading = !0;
1340
- const i = t.update.type === I.Add ? r.option.api.create : r.option.api.update;
1393
+ const r = t.update.type === I.Add ? i.option.api.create : i.option.api.update;
1341
1394
  try {
1342
- await r.option.form?.submitBefore?.(t.update.form, t.update);
1395
+ await i.option.form?.submitBefore?.(t.update.form, t.update);
1343
1396
  } catch {
1344
1397
  t.update.loading = !1;
1345
1398
  return;
1346
1399
  }
1347
1400
  let l = JSONUtil.cp(t.update.form);
1348
1401
  delete l.children;
1349
- const e = new Set(r.option.column.filter((s) => s.type === "datetime").map((s) => s.key));
1402
+ const e = new Set(i.option.column.filter((s) => s.type === "datetime").map((s) => s.key));
1350
1403
  Object.keys(l).forEach((s) => {
1351
1404
  if (e.has(s) && l[s] != null) {
1352
1405
  const p = new Date(l[s]).getTime();
@@ -1354,10 +1407,10 @@ const I = O.EDialog, Ae = (r) => {
1354
1407
  }
1355
1408
  });
1356
1409
  try {
1357
- if (!i) return;
1358
- await i({
1410
+ if (!r) return;
1411
+ await r({
1359
1412
  ...l
1360
- }), t.update.close(), await t.table.getList(), r.option.form?.submitAfter?.(l, t.update);
1413
+ }), t.update.close(), await t.table.getList(), i.option.form?.submitAfter?.(l, t.update);
1361
1414
  } catch (s) {
1362
1415
  console.error(s);
1363
1416
  } finally {
@@ -1377,8 +1430,8 @@ const I = O.EDialog, Ae = (r) => {
1377
1430
  /** 行内编辑当前行对象 */
1378
1431
  data: null,
1379
1432
  /** 打开行内编辑 */
1380
- open: (i) => {
1381
- t.inlineEdit.data = i, t.update.open(I.Update, i);
1433
+ open: (r) => {
1434
+ t.inlineEdit.data = r, t.update.open(I.Update, r);
1382
1435
  },
1383
1436
  /** 关闭行内编辑 */
1384
1437
  close: () => {
@@ -1388,7 +1441,7 @@ const I = O.EDialog, Ae = (r) => {
1388
1441
  /** 删除操作弹窗与数据对象 */
1389
1442
  remove: {
1390
1443
  /** 删除弹窗标题 */
1391
- title: b.tCurd("confirmDelete"),
1444
+ title: y.tCurd("confirmDelete"),
1392
1445
  /** 删除弹窗显示控制 */
1393
1446
  show: !1,
1394
1447
  /** 待删除数据项集合 */
@@ -1400,24 +1453,24 @@ const I = O.EDialog, Ae = (r) => {
1400
1453
  t.remove.show = !1;
1401
1454
  },
1402
1455
  /** 打开删除弹窗并设置待删除项 */
1403
- open: (i) => {
1404
- if (i.length === 0) {
1405
- O.fail(b.tCurd("selectDataToDelete"));
1456
+ open: (r) => {
1457
+ if (r.length === 0) {
1458
+ E.fail(y.tCurd("selectDataToDelete"));
1406
1459
  return;
1407
1460
  }
1408
- t.remove.items = i, t.remove.show = !0;
1461
+ t.remove.items = r, t.remove.show = !0;
1409
1462
  },
1410
1463
  /** 执行删除实际操作 */
1411
1464
  submit: () => {
1412
1465
  FunUtil.throttle(async () => {
1413
1466
  t.remove.loading = !0;
1414
- const i = r.option.api.delete;
1467
+ const r = i.option.api.delete;
1415
1468
  try {
1416
- if (!i) return;
1417
- await i({
1418
- [r.option.table?.rowKey]: t.remove.items.map((l) => l[r.option.table?.rowKey]),
1469
+ if (!r) return;
1470
+ await r({
1471
+ [i.option.table?.rowKey]: t.remove.items.map((l) => l[i.option.table?.rowKey]),
1419
1472
  items: t.remove.items
1420
- }), O.success(b.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
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();
1421
1474
  } catch (l) {
1422
1475
  console.error(l);
1423
1476
  } finally {
@@ -1433,20 +1486,20 @@ const I = O.EDialog, Ae = (r) => {
1433
1486
  /** 下拉请求等数据缓存 */
1434
1487
  apiDataMap: {},
1435
1488
  /** 获取并绑定curd中所有下拉数据等远程依赖 */
1436
- initApiData: async (i) => {
1489
+ initApiData: async (r) => {
1437
1490
  const l = [], e = (s) => {
1438
1491
  if (s.children && s.children.length) {
1439
1492
  s.children.forEach((p) => e(p));
1440
1493
  return;
1441
1494
  }
1442
- if (s.options?.[s.type]?.dataApi && s.options?.[s.type]?.dataApiConfig?.[i]) {
1495
+ if (s.options?.[s.type]?.dataApi && s.options?.[s.type]?.dataApiConfig?.[r]) {
1443
1496
  if (t.apiDataMap[s.key] && s.options?.[s.type]?.dataApiConfig?.once) return;
1444
1497
  const p = (async () => {
1445
1498
  try {
1446
- let c = await s.options?.[s.type]?.dataApi?.(t.update.form, i);
1499
+ let c = await s.options?.[s.type]?.dataApi?.(t.update.form, r);
1447
1500
  if (c) {
1448
- const g = s.options?.[s.type]?.dataPath;
1449
- 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;
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;
1450
1503
  }
1451
1504
  } catch {
1452
1505
  }
@@ -1454,17 +1507,17 @@ const I = O.EDialog, Ae = (r) => {
1454
1507
  l.push(p);
1455
1508
  }
1456
1509
  };
1457
- return r.option.column.forEach((s) => {
1510
+ return i.option.column.forEach((s) => {
1458
1511
  e(s);
1459
1512
  }), await Promise.all(l), !0;
1460
1513
  },
1461
1514
  /** 初始化curd配置(option默认值合并等) */
1462
1515
  initCurdConfig: () => {
1463
- const i = JSONUtil.cp(D.config);
1464
- i.table.emptyText = b.tCurd("noData"), r.option.size = r.option.size || {}, i.table.size = r.option.size.table || i.size.table, i.form.size = r.option.size.form || i.size.form, i.size.search = r.option.size.search || i.size.search;
1465
- const l = ObjectUtil.deepMerge(i, r.option || {});
1516
+ const r = JSONUtil.cp(O.config);
1517
+ r.table.emptyText = y.tCurd("noData"), i.option.size = i.option.size || {}, r.table.size = i.option.size.table || r.size.table, r.form.size = i.option.size.form || r.size.form, r.size.search = i.option.size.search || r.size.search;
1518
+ const l = ObjectUtil.deepMerge(r, i.option || {});
1466
1519
  Object.keys(l).forEach((e) => {
1467
- r.option[e] = l[e];
1520
+ i.option[e] = l[e];
1468
1521
  });
1469
1522
  },
1470
1523
  /**
@@ -1473,69 +1526,69 @@ const I = O.EDialog, Ae = (r) => {
1473
1526
  * @returns
1474
1527
  */
1475
1528
  initColumnOptions: () => {
1476
- let i = JSONUtil.cp(D.config.columnConfig);
1477
- i.options = ObjectUtil.deepMerge(i.options, {
1529
+ let r = JSONUtil.cp(O.config.columnConfig);
1530
+ r.options = ObjectUtil.deepMerge(r.options, {
1478
1531
  switch: {
1479
- activeLabel: b.tCurd("switchOn"),
1480
- inactiveLabel: b.tCurd("switchOff")
1532
+ activeLabel: y.tCurd("switchOn"),
1533
+ inactiveLabel: y.tCurd("switchOff")
1481
1534
  }
1482
1535
  });
1483
1536
  const l = (e) => {
1484
- for (const s in i) {
1537
+ for (const s in r) {
1485
1538
  if (s === "table") {
1486
- if (e.table = ObjectUtil.deepMerge(i.table, e.table || {}), e.children) {
1539
+ if (e.table = ObjectUtil.deepMerge(r.table, e.table || {}), e.children) {
1487
1540
  e.children.forEach((c) => {
1488
1541
  l(c);
1489
1542
  });
1490
1543
  return;
1491
1544
  }
1492
- } else s === "type" ? e.type = e.type || i.type : e[s] = ObjectUtil.deepMerge(i[s], e[s] || {});
1493
- e.options = e.options || {}, e.options[e.type] = e.options[e.type] || {}, e.options[e.type].size = r.option.size.form, ["search", "formAdd", "formUpdate"].forEach((c) => {
1494
- e.options[c] = e.options[c] || JSONUtil.cp(e.options), e.options[c][e.type] = e.options[c][e.type] || {}, e.options[c][e.type].size = c === "search" ? r.option.size.search : r.option.size.form;
1545
+ } else s === "type" ? e.type = e.type || r.type : e[s] = ObjectUtil.deepMerge(r[s], e[s] || {});
1546
+ e.options = e.options || {}, e.options[e.type] = e.options[e.type] || {}, e.options[e.type].size = i.option.size.form, ["search", "formAdd", "formUpdate"].forEach((c) => {
1547
+ e.options[c] = e.options[c] || JSONUtil.cp(e.options), e.options[c][e.type] = e.options[c][e.type] || {}, e.options[c][e.type].size = c === "search" ? i.option.size.search : i.option.size.form;
1495
1548
  }), e.table = ObjectUtil.deepMerge(e.table, e.options[e.type].table || {});
1496
1549
  }
1497
1550
  e.type === "switch" && (e.options.switch.tableBeforeChange = async (s, p) => {
1498
1551
  const c = e.options?.switch;
1499
1552
  try {
1500
1553
  await o.value?.open({
1501
- title: b.tCurd("confirmModify"),
1502
- content: b.tCurd("confirmSwitchMessage")
1554
+ title: y.tCurd("confirmModify"),
1555
+ content: y.tCurd("confirmSwitchMessage")
1503
1556
  }), t.table.loading = !0;
1504
1557
  try {
1505
- return r.option.api.update ? (await r.option.api.update({
1506
- [r.option.table?.rowKey]: p[r.option.table?.rowKey],
1558
+ return i.option.api.update ? (await i.option.api.update({
1559
+ [i.option.table?.rowKey]: p[i.option.table?.rowKey],
1507
1560
  [s]: p[s] === c.activeValue ? c.inactiveValue : c.activeValue,
1508
- final(g, n, d) {
1561
+ final(b, n, d) {
1509
1562
  t.table.loading = !1;
1510
1563
  }
1511
- }), t.table.loading = !1, O.success(b.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
1512
- } catch (g) {
1513
- return console.error(g), !1;
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;
1514
1567
  } finally {
1515
1568
  t.table.loading = !1;
1516
1569
  }
1517
1570
  } catch {
1518
1571
  return !1;
1519
1572
  }
1520
- }), e.type === "treeSelect" && (e.options.treeSelect.rowKey = r.option.table?.rowKey, e.options.treeSelect.nodeKey = r.option.table?.rowKey);
1573
+ }), e.type === "treeSelect" && (e.options.treeSelect.rowKey = i.option.table?.rowKey, e.options.treeSelect.nodeKey = i.option.table?.rowKey);
1521
1574
  };
1522
- r.option.column.forEach(l), r.option.table?.column?.forEach(l);
1575
+ i.option.column.forEach(l), i.option.table?.column?.forEach(l);
1523
1576
  },
1524
- getColumnSpan: (i, l) => {
1525
- if (i.item.form?.spanCol) {
1526
- const e = D.config.form.defaultSpan, p = l.filter((c) => !O.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, g) => c + (g.item.form?.span || e), 0);
1527
- return (i.item?.form.span || e) + p;
1577
+ getColumnSpan: (r, l) => {
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);
1580
+ return (r.item?.form.span || e) + p;
1528
1581
  }
1529
- return i.item.form.span;
1582
+ return r.item.form.span;
1530
1583
  },
1531
1584
  /** 初始化配置并生成表单列及默认值及规则 */
1532
1585
  initColumnForm: () => {
1533
- const i = r.option;
1586
+ const r = i.option;
1534
1587
  t.update.formColumn = [], t.table.column.show = {
1535
1588
  list: [],
1536
1589
  listSource: []
1537
1590
  };
1538
- const l = [], e = r.option.form?.maxSpan || 12, s = r.option.form?.defaultSpan || e / 2;
1591
+ const l = [], e = i.option.form?.maxSpan || 12, s = i.option.form?.defaultSpan || e / 2;
1539
1592
  let p = [];
1540
1593
  const c = (d) => {
1541
1594
  if (d.children) {
@@ -1547,11 +1600,11 @@ const I = O.EDialog, Ae = (r) => {
1547
1600
  if (t.update.formDefault[d.key] = d.value, d.table.table && (d.show.table && t.table.column.show.list.push(d.key), d.table.table && t.table.column.show.listSource.push(d.key)), !(d.isForm && typeof d.show?.form == "boolean") || d.show?.form) {
1548
1601
  d.form = d.form || { span: s }, d.form.span = d.form.span ?? s;
1549
1602
  let V = d.form.span, w = p.reduce((B, R) => B + R.span, V);
1550
- const F = p.length;
1551
- if (p.push({ item: d, span: V }), (F === 1 && p[0].span === 0 || w >= e || V === 0 && F > 1) && (l.push(p), p = []), d.rules) {
1603
+ const A = p.length;
1604
+ if (p.push({ item: d, span: V }), (A === 1 && p[0].span === 0 || w >= e || V === 0 && A > 1) && (l.push(p), p = []), d.rules) {
1552
1605
  const B = {
1553
- input: b.tCurd("placeholderInput"),
1554
- select: b.tCurd("placeholderSelect")
1606
+ input: y.tCurd("placeholderInput"),
1607
+ select: y.tCurd("placeholderSelect")
1555
1608
  }, R = (B[d.type] || B.input) + d.label;
1556
1609
  t.update.rules[d.key] = typeof d.rules == "boolean" ? [
1557
1610
  {
@@ -1562,34 +1615,34 @@ const I = O.EDialog, Ae = (r) => {
1562
1615
  ] : d.rules;
1563
1616
  }
1564
1617
  }
1565
- }, g = (d, V) => {
1566
- d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => g(w, V));
1618
+ }, b = (d, V) => {
1619
+ d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => b(w, V));
1567
1620
  };
1568
- i.column.forEach((d) => {
1569
- d.isForm = !0, g(d, !0), c(d);
1570
- }), r.option.table?.column?.forEach((d) => {
1571
- g(d, !1), c(d);
1572
- }), t.search.column.list = i.column.concat(i.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;
1573
- const n = r.option.search?.formDefault;
1621
+ r.column.forEach((d) => {
1622
+ d.isForm = !0, b(d, !0), c(d);
1623
+ }), i.option.table?.column?.forEach((d) => {
1624
+ b(d, !1), c(d);
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
+ const n = i.option.search?.formDefault;
1574
1627
  n && Object.keys(n).forEach((d) => {
1575
1628
  t.search.formDefault[d] = n[d];
1576
- }), i.column.forEach((d) => {
1629
+ }), r.column.forEach((d) => {
1577
1630
  d.show?.search || (t.search.formDefault[d.key] = void 0);
1578
1631
  }), t.search.form = JSONUtil.cp(t.search.formDefault);
1579
1632
  }
1580
1633
  });
1581
1634
  return t.init(), ue(() => {
1582
- r.option.init !== !1 && t.table.getList();
1635
+ i.option.init !== !1 && t.table.getList();
1583
1636
  }), { conf: t, switchConfirmRef: o, ruleFormRef: u };
1584
- }, Te = { class: "dialog-footer" }, Le = /* @__PURE__ */ J({
1637
+ }, Me = { class: "dialog-footer" }, Be = /* @__PURE__ */ J({
1585
1638
  __name: "switchConfirm",
1586
1639
  props: {
1587
1640
  size: {}
1588
1641
  },
1589
- setup(r, { expose: o }) {
1590
- const u = H(!1), t = H("确认修改"), i = H("确认要修改状态吗?");
1642
+ setup(i, { expose: o }) {
1643
+ const u = H(!1), t = H("确认修改"), r = H("确认要修改状态吗?");
1591
1644
  let l = null, e = null;
1592
- const s = (g) => (g?.title && (t.value = g.title), g?.content && (i.value = g.content), u.value = !0, new Promise((n, d) => {
1645
+ const s = (b) => (b?.title && (t.value = b.title), b?.content && (r.value = b.content), u.value = !0, new Promise((n, d) => {
1593
1646
  l = n, e = d;
1594
1647
  })), p = () => {
1595
1648
  u.value = !1, l?.(!0), l = null, e = null;
@@ -1598,8 +1651,8 @@ const I = O.EDialog, Ae = (r) => {
1598
1651
  };
1599
1652
  return o({
1600
1653
  open: s
1601
- }), (g, n) => {
1602
- const d = Q("el-form");
1654
+ }), (b, n) => {
1655
+ const d = X("el-form");
1603
1656
  return f(), h(a(_), {
1604
1657
  modelValue: u.value,
1605
1658
  "onUpdate:modelValue": n[0] || (n[0] = (V) => u.value = V),
@@ -1608,12 +1661,12 @@ const I = O.EDialog, Ae = (r) => {
1608
1661
  width: "400px"
1609
1662
  }, {
1610
1663
  footer: m(() => [
1611
- z(d, { size: g.size }, {
1664
+ z(d, { size: b.size }, {
1612
1665
  default: m(() => [
1613
- U("span", Te, [
1666
+ F("span", Me, [
1614
1667
  z(a(T), { onClick: c }, {
1615
1668
  default: m(() => n[1] || (n[1] = [
1616
- E("取消")
1669
+ $("取消")
1617
1670
  ])),
1618
1671
  _: 1
1619
1672
  }),
@@ -1622,7 +1675,7 @@ const I = O.EDialog, Ae = (r) => {
1622
1675
  onClick: p
1623
1676
  }, {
1624
1677
  default: m(() => n[2] || (n[2] = [
1625
- E("确认")
1678
+ $("确认")
1626
1679
  ])),
1627
1680
  _: 1
1628
1681
  })
@@ -1632,54 +1685,54 @@ const I = O.EDialog, Ae = (r) => {
1632
1685
  }, 8, ["size"])
1633
1686
  ]),
1634
1687
  default: m(() => [
1635
- U("div", null, A(i.value), 1)
1688
+ F("div", null, U(r.value), 1)
1636
1689
  ]),
1637
1690
  _: 1
1638
1691
  }, 8, ["modelValue", "title"]);
1639
1692
  };
1640
1693
  }
1641
- }), pe = (r, o) => {
1642
- const u = r.__vccOpts || r;
1643
- for (const [t, i] of o)
1644
- u[t] = i;
1694
+ }), pe = (i, o) => {
1695
+ const u = i.__vccOpts || i;
1696
+ for (const [t, r] of o)
1697
+ u[t] = r;
1645
1698
  return u;
1646
- }, Me = {}, Be = {
1699
+ }, je = {}, Ie = {
1647
1700
  xmlns: "http://www.w3.org/2000/svg",
1648
1701
  viewBox: "0 0 1024 1024"
1649
1702
  };
1650
- function je(r, o) {
1651
- return f(), y("svg", Be, o[0] || (o[0] = [
1652
- U("path", {
1703
+ function Re(i, o) {
1704
+ return f(), g("svg", Ie, o[0] || (o[0] = [
1705
+ F("path", {
1653
1706
  fill: "currentColor",
1654
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"
1655
1708
  }, null, -1)
1656
1709
  ]));
1657
1710
  }
1658
- const Ie = /* @__PURE__ */ pe(Me, [["render", je]]), Re = {}, Pe = {
1711
+ const Pe = /* @__PURE__ */ pe(je, [["render", Re]]), Ne = {}, Ke = {
1659
1712
  "data-v-58697b5c": "",
1660
1713
  xmlns: "http://www.w3.org/2000/svg",
1661
1714
  viewBox: "0 0 1024 1024"
1662
1715
  };
1663
- function Ne(r, o) {
1664
- return f(), y("svg", Pe, o[0] || (o[0] = [
1665
- U("path", {
1716
+ function He(i, o) {
1717
+ return f(), g("svg", Ke, o[0] || (o[0] = [
1718
+ F("path", {
1666
1719
  fill: "currentColor",
1667
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"
1668
1721
  }, null, -1)
1669
1722
  ]));
1670
1723
  }
1671
- const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-center table-header-label inline" }, Je = { class: "table-header-tooltip" }, We = ["onClick", "innerHTML"], qe = /* @__PURE__ */ J({
1724
+ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-center table-header-label inline" }, qe = { class: "table-header-tooltip" }, Qe = ["onClick", "innerHTML"], Ge = /* @__PURE__ */ J({
1672
1725
  __name: "tableColumn",
1673
1726
  props: {
1674
1727
  conf: {},
1675
1728
  columnList: {},
1676
1729
  option: {}
1677
1730
  },
1678
- setup(r) {
1679
- const o = O.isFun, u = ye().type;
1680
- return (t, i) => {
1681
- const l = Q("el-tooltip");
1682
- return f(!0), y($, null, L(t.columnList, (e) => (f(), y($, {
1731
+ setup(i) {
1732
+ const o = E.isFun, u = be().type;
1733
+ return (t, r) => {
1734
+ const l = X("el-tooltip");
1735
+ return f(!0), g(S, null, L(t.columnList, (e) => (f(), g(S, {
1683
1736
  key: e.key
1684
1737
  }, [
1685
1738
  t.conf.table.column.show.list.includes(e.key) ? (f(), h(a(ee), v({
@@ -1689,8 +1742,8 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1689
1742
  ref_for: !0
1690
1743
  }, e.table), {
1691
1744
  header: m(() => [
1692
- k(t.$slots, "table-header-" + e.key, { item: e }, () => [
1693
- U("div", He, [
1745
+ C(t.$slots, "table-header-" + e.key, { item: e }, () => [
1746
+ F("div", We, [
1694
1747
  e.table?.tooltip ? (f(), h(l, {
1695
1748
  key: 0,
1696
1749
  effect: "dark",
@@ -1698,19 +1751,19 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1698
1751
  placement: "top"
1699
1752
  }, {
1700
1753
  default: m(() => [
1701
- U("span", Je, [
1702
- z(Ke)
1754
+ F("span", qe, [
1755
+ z(Je)
1703
1756
  ])
1704
1757
  ]),
1705
1758
  _: 2
1706
- }, 1032, ["content"])) : C("", !0),
1707
- E(" " + A(e.label), 1)
1759
+ }, 1032, ["content"])) : k("", !0),
1760
+ $(" " + U(e.label), 1)
1708
1761
  ])
1709
1762
  ])
1710
1763
  ]),
1711
1764
  default: m(({ row: s }) => [
1712
- e.children ? (f(), y($, { key: 0 }, [
1713
- i[0] || (i[0] = E("   ")),
1765
+ e.children ? (f(), g(S, { key: 0 }, [
1766
+ r[0] || (r[0] = $("   ")),
1714
1767
  (f(), h(q(a(u)), {
1715
1768
  conf: t.conf,
1716
1769
  columnList: e.children,
@@ -1718,34 +1771,34 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1718
1771
  }, te({ _: 2 }, [
1719
1772
  L(t.$slots, (p, c) => ({
1720
1773
  name: c,
1721
- fn: m((g) => [
1722
- k(t.$slots, c, v({ ref_for: !0 }, g || {}))
1774
+ fn: m((b) => [
1775
+ C(t.$slots, c, v({ ref_for: !0 }, b || {}))
1723
1776
  ])
1724
1777
  }))
1725
1778
  ]), 1032, ["conf", "columnList", "option"]))
1726
- ], 64)) : (f(), y($, { key: 1 }, [
1727
- a(o)(e.show?.form, t.conf.update.form, a(O).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), y($, { key: 0 }, [
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 }, [
1728
1781
  e.type === "input" ? (f(), h(a(Y), v({
1729
1782
  key: 0,
1730
1783
  modelValue: t.conf.update.form[e.key],
1731
1784
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1732
1785
  ref_for: !0
1733
- }, t.conf.update.getBind(e), S(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "select" ? (f(), h(a(W), v({
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({
1734
1787
  key: 1,
1735
1788
  modelValue: t.conf.update.form[e.key],
1736
1789
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1737
1790
  ref_for: !0
1738
- }, t.conf.update.getBind(e), S(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
1791
+ }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
1739
1792
  default: m(() => [
1740
- (f(!0), y($, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
1793
+ (f(!0), g(S, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
1741
1794
  key: p.value,
1742
1795
  label: p.label,
1743
1796
  value: p.value
1744
1797
  }, null, 8, ["label", "value"]))), 128))
1745
1798
  ]),
1746
1799
  _: 2
1747
- }, 1040, ["modelValue", "onUpdate:modelValue"])) : C("", !0)
1748
- ], 64)) : k(t.$slots, "table-" + e.key, {
1800
+ }, 1040, ["modelValue", "onUpdate:modelValue"])) : k("", !0)
1801
+ ], 64)) : C(t.$slots, "table-" + e.key, {
1749
1802
  key: 1,
1750
1803
  row: s,
1751
1804
  item: e
@@ -1755,13 +1808,13 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1755
1808
  modelValue: s[e.key],
1756
1809
  "onUpdate:modelValue": (p) => s[e.key] = p,
1757
1810
  ref_for: !0
1758
- }, e.options?.[e.type ?? ""], S(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(oe), v({
1811
+ }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(oe), v({
1759
1812
  key: 1,
1760
1813
  modelValue: s[e.key],
1761
1814
  "onUpdate:modelValue": (p) => s[e.key] = p,
1762
1815
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, s),
1763
1816
  ref_for: !0
1764
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), y("span", {
1817
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), g("span", {
1765
1818
  key: 2,
1766
1819
  style: fe({
1767
1820
  "--table-text-click-color": e.table?.click?.color
@@ -1769,26 +1822,26 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1769
1822
  class: j({ "table-text-click": e.table?.click?.callback }),
1770
1823
  onClick: (p) => e.table?.click?.callback?.(s),
1771
1824
  innerHTML: e.table?.format ? e.table?.format(s) : s[e.key]
1772
- }, null, 14, We))
1825
+ }, null, 14, Qe))
1773
1826
  ])
1774
1827
  ], 64))
1775
1828
  ]),
1776
1829
  _: 2
1777
- }, 1040, ["prop", "label"])) : C("", !0)
1830
+ }, 1040, ["prop", "label"])) : k("", !0)
1778
1831
  ], 64))), 128);
1779
1832
  };
1780
1833
  }
1781
- }), Ge = {
1834
+ }), Xe = {
1782
1835
  class: "row form-item-content",
1783
1836
  style: { width: "100%" }
1784
- }, Xe = { class: "col" }, Qe = { class: "col" }, Ye = ["innerHTML"], Ze = /* @__PURE__ */ J({
1837
+ }, Ye = { class: "col column form-item-content-item" }, Ze = { class: "col" }, xe = ["innerHTML"], _e = /* @__PURE__ */ J({
1785
1838
  __name: "formColumn",
1786
1839
  props: {
1787
1840
  conf: {},
1788
1841
  item: {}
1789
1842
  },
1790
- setup(r) {
1791
- return (o, u) => (f(), h(a(X), {
1843
+ setup(i) {
1844
+ return (o, u) => (f(), h(a(G), {
1792
1845
  class: j({
1793
1846
  "hide-label": typeof o.item.item.text?.form?.label == "boolean" ? !o.item.item.text?.form?.label : !1
1794
1847
  }),
@@ -1797,14 +1850,14 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1797
1850
  "label-width": o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
1798
1851
  }, {
1799
1852
  default: m(() => [
1800
- U("div", Ge, [
1801
- k(o.$slots, "form-" + o.item.item.key + "-start", {
1853
+ F("div", Xe, [
1854
+ C(o.$slots, "form-" + o.item.item.key + "-start", {
1802
1855
  row: o.conf.update.form,
1803
1856
  item: o.item.item
1804
1857
  }),
1805
- U("div", Xe, [
1806
- U("div", Qe, [
1807
- k(o.$slots, "form-" + o.item.item.key, {
1858
+ F("div", Ye, [
1859
+ F("div", Ze, [
1860
+ C(o.$slots, "form-" + o.item.item.key, {
1808
1861
  row: o.conf.update.form,
1809
1862
  item: o.item.item
1810
1863
  }, () => [
@@ -1812,24 +1865,24 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1812
1865
  key: 0,
1813
1866
  modelValue: o.conf.update.form[o.item.item.key],
1814
1867
  "onUpdate:modelValue": u[0] || (u[0] = (t) => o.conf.update.form[o.item.item.key] = t)
1815
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1868
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1816
1869
  disabled: o.conf.update.getDisabled(o.item.item)
1817
1870
  }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (f(), h(a(oe), v({
1818
1871
  key: 1,
1819
1872
  modelValue: o.conf.update.form[o.item.item.key],
1820
1873
  "onUpdate:modelValue": u[1] || (u[1] = (t) => o.conf.update.form[o.item.item.key] = t)
1821
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1874
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1822
1875
  disabled: o.conf.update.getDisabled(o.item.item)
1823
1876
  }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (f(), h(a(W), v({
1824
1877
  key: 2,
1825
1878
  modelValue: o.conf.update.form[o.item.item.key],
1826
1879
  "onUpdate:modelValue": u[2] || (u[2] = (t) => o.conf.update.form[o.item.item.key] = t)
1827
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1880
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1828
1881
  disabled: o.conf.update.getDisabled(o.item.item),
1829
1882
  style: { width: "100%" }
1830
1883
  }), {
1831
1884
  default: m(() => [
1832
- (f(!0), y($, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
1885
+ (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
1833
1886
  key: t.value,
1834
1887
  label: t.label,
1835
1888
  value: t.value
@@ -1840,12 +1893,12 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1840
1893
  key: 3,
1841
1894
  modelValue: o.conf.update.form[o.item.item.key],
1842
1895
  "onUpdate:modelValue": u[3] || (u[3] = (t) => o.conf.update.form[o.item.item.key] = t)
1843
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1896
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1844
1897
  disabled: o.conf.update.getDisabled(o.item.item),
1845
1898
  style: { width: "100%" }
1846
1899
  }), {
1847
1900
  default: m(() => [
1848
- (f(!0), y($, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
1901
+ (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
1849
1902
  key: t.value,
1850
1903
  label: t.label,
1851
1904
  value: t.value
@@ -1856,47 +1909,47 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1856
1909
  key: 4,
1857
1910
  row: o.conf.update.form,
1858
1911
  field: o.item.item.key
1859
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1912
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1860
1913
  disabled: o.conf.update.getDisabled(o.item.item),
1861
1914
  style: { width: "100%" }
1862
1915
  }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (f(), h(a(de), v({
1863
1916
  key: 5,
1864
1917
  modelValue: o.conf.update.form[o.item.item.key],
1865
1918
  "onUpdate:modelValue": u[4] || (u[4] = (t) => o.conf.update.form[o.item.item.key] = t)
1866
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1919
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1867
1920
  disabled: o.conf.update.getDisabled(o.item.item),
1868
1921
  style: { width: "100%" }
1869
1922
  }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (f(), h(a(ae), v({
1870
1923
  key: 6,
1871
1924
  modelValue: o.conf.update.form[o.item.item.key],
1872
1925
  "onUpdate:modelValue": u[5] || (u[5] = (t) => o.conf.update.form[o.item.item.key] = t)
1873
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1926
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1874
1927
  disabled: o.conf.update.getDisabled(o.item.item)
1875
1928
  }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (a(M).customComponent[o.item.item.type] || a(M).customComponent[o.item.item.type]?.form) ? (f(), h(q(a(M).customComponent[o.item.item.type]?.form || a(M).customComponent[o.item.item.type]), v({
1876
1929
  key: 7,
1877
1930
  modelValue: o.conf.update.form[o.item.item.key],
1878
1931
  "onUpdate:modelValue": u[6] || (u[6] = (t) => o.conf.update.form[o.item.item.key] = t)
1879
- }, o.conf.update.getBind(o.item.item), S(o.conf.update.getOn(o.item.item)), {
1932
+ }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1880
1933
  disabled: o.conf.update.getDisabled(o.item.item)
1881
- }), null, 16, ["modelValue", "disabled"])) : C("", !0)
1934
+ }), null, 16, ["modelValue", "disabled"])) : k("", !0)
1882
1935
  ]),
1883
- k(o.$slots, "form-" + o.item.item.key + "-right", {
1936
+ C(o.$slots, "form-" + o.item.item.key + "-right", {
1884
1937
  row: o.conf.update.form,
1885
1938
  item: o.item.item
1886
1939
  })
1887
1940
  ]),
1888
- k(o.$slots, "form-" + o.item.item.key + "-tip", {
1941
+ C(o.$slots, "form-" + o.item.item.key + "-tip", {
1889
1942
  row: o.conf.update.form,
1890
1943
  item: o.item.item
1891
1944
  }, () => [
1892
- o.item.item.form?.tipText ? (f(), y("div", {
1945
+ o.item.item.form?.tipText ? (f(), g("div", {
1893
1946
  key: 0,
1894
1947
  class: "form-tip-text",
1895
1948
  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
1896
- }, null, 8, Ye)) : C("", !0)
1949
+ }, null, 8, xe)) : k("", !0)
1897
1950
  ])
1898
1951
  ]),
1899
- k(o.$slots, "form-" + o.item.item.key + "-end", {
1952
+ C(o.$slots, "form-" + o.item.item.key + "-end", {
1900
1953
  row: o.conf.update.form,
1901
1954
  item: o.item.item
1902
1955
  })
@@ -1905,16 +1958,19 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1905
1958
  _: 3
1906
1959
  }, 8, ["class", "label", "prop", "label-width"]));
1907
1960
  }
1908
- }), xe = {
1961
+ }), et = {
1909
1962
  key: 0,
1910
1963
  class: "relative curd-search fit-width"
1911
- }, _e = { class: "mb-10 flex justify-between items-center fit-width" }, et = {
1964
+ }, tt = { class: "mb-10 flex justify-between items-center fit-width" }, ot = {
1912
1965
  class: "flex items-center",
1913
1966
  style: { gap: "10px" }
1914
- }, tt = { key: 0 }, ot = { key: 1 }, at = { key: 2 }, lt = { class: "export-btn" }, nt = {
1967
+ }, at = { key: 0 }, lt = { key: 1 }, nt = { key: 2 }, it = { class: "export-btn" }, rt = {
1968
+ key: 1,
1969
+ class: "export-btn"
1970
+ }, st = {
1915
1971
  class: "flex items-center table-tools-right",
1916
1972
  style: { gap: "10px" }
1917
- }, it = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, rt = { class: "dialog-footer" }, st = { class: "dialog-footer" }, dt = /* @__PURE__ */ J({
1973
+ }, dt = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, ut = { class: "dialog-footer" }, ft = { class: "dialog-footer" }, pt = /* @__PURE__ */ J({
1918
1974
  __name: "index",
1919
1975
  props: {
1920
1976
  /**
@@ -1924,37 +1980,37 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1924
1980
  default: {}
1925
1981
  }
1926
1982
  },
1927
- setup(r, { expose: o }) {
1928
- const u = O.EDialog, t = r, i = O.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Ae(t);
1983
+ setup(i, { expose: o }) {
1984
+ const u = E.EDialog, t = i, r = E.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Le(t);
1929
1985
  return o({
1930
1986
  conf: l
1931
1987
  }), (p, c) => {
1932
- const g = we("loading");
1933
- return f(), y("div", {
1934
- class: j(["relative cc1-form-box", [r.option.table?.fitHeight ? "col" : "no-min-height"]])
1988
+ const b = we("loading");
1989
+ return f(), g("div", {
1990
+ class: j(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
1935
1991
  }, [
1936
- U("div", {
1937
- class: j(["row", [r.option.table?.fitHeight ? "absolute fit" : ""]]),
1992
+ F("div", {
1993
+ class: j(["row", [i.option.table?.fitHeight ? "absolute fit" : ""]]),
1938
1994
  style: { overflow: "hidden" }
1939
1995
  }, [
1940
- k(p.$slots, "box-left"),
1941
- U("div", {
1942
- class: j(["column fit-width no-wrap", [r.option.table?.fitHeight ? "col" : ""]])
1996
+ C(p.$slots, "box-left"),
1997
+ F("div", {
1998
+ class: j(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
1943
1999
  }, [
1944
- r.option.search?.show !== !1 ? (f(), y("div", xe, [
2000
+ i.option.search?.show !== !1 ? (f(), g("div", et, [
1945
2001
  z(a(N), {
1946
2002
  model: a(l).search.form,
1947
2003
  inline: "",
1948
- size: r.option.size?.search
2004
+ size: i.option.size?.search
1949
2005
  }, {
1950
2006
  default: m(() => [
1951
- k(p.$slots, "search-start", {
2007
+ C(p.$slots, "search-start", {
1952
2008
  row: a(l).search.form
1953
2009
  }),
1954
- (f(!0), y($, null, L(a(l).search.column.list, (n) => (f(), y($, {
2010
+ (f(!0), g(S, null, L(a(l).search.column.list, (n) => (f(), g(S, {
1955
2011
  key: n.key
1956
2012
  }, [
1957
- (typeof n.show?.search == "function" ? n.show?.search(a(l).search.form) : n.show?.search) ? (f(), h(a(X), {
2013
+ (typeof n.show?.search == "function" ? n.show?.search(a(l).search.form) : n.show?.search) ? (f(), h(a(G), {
1958
2014
  key: 0,
1959
2015
  label: typeof n.text?.search?.label == "string" ? n.text?.search?.label : n.label,
1960
2016
  class: j({
@@ -1962,7 +2018,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1962
2018
  })
1963
2019
  }, {
1964
2020
  default: m(() => [
1965
- k(p.$slots, "search-" + n.key, {
2021
+ C(p.$slots, "search-" + n.key, {
1966
2022
  row: a(l).search.form
1967
2023
  }, () => [
1968
2024
  n.type === "input" ? (f(), h(a(Y), v({
@@ -1973,15 +2029,15 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1973
2029
  clearable: "",
1974
2030
  disabled: n.disabled?.search,
1975
2031
  ref_for: !0
1976
- }, n.options?.search?.input || n.options?.input, S(n.options?.search?.input?.on || n.options?.input?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (f(), h(a(W), v({
2032
+ }, n.options?.search?.input || n.options?.input, D(n.options?.search?.input?.on || n.options?.input?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (f(), h(a(W), v({
1977
2033
  key: 1,
1978
2034
  modelValue: a(l).search.form[n.key],
1979
2035
  "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
1980
- placeholder: a(l).search.getPlaceholder(n, a(b).tCurd("placeholderSelect")),
2036
+ placeholder: a(l).search.getPlaceholder(n, a(y).tCurd("placeholderSelect")),
1981
2037
  clearable: "",
1982
2038
  disabled: n.disabled?.search,
1983
2039
  ref_for: !0
1984
- }, n.options?.search?.switch || n.options?.switch, S(n.options?.search?.switch?.on || n.options?.switch?.on || {})), {
2040
+ }, n.options?.search?.switch || n.options?.switch, D(n.options?.search?.switch?.on || n.options?.switch?.on || {})), {
1985
2041
  default: m(() => [
1986
2042
  (f(), h(a(K), {
1987
2043
  key: n.options?.switch?.activeValue,
@@ -1999,13 +2055,13 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
1999
2055
  key: 2,
2000
2056
  modelValue: a(l).search.form[n.key],
2001
2057
  "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2002
- placeholder: a(l).search.getPlaceholder(n, a(b).tCurd("placeholderSelect")),
2058
+ placeholder: a(l).search.getPlaceholder(n, a(y).tCurd("placeholderSelect")),
2003
2059
  clearable: "",
2004
2060
  disabled: n.disabled?.search,
2005
2061
  ref_for: !0
2006
- }, n.options?.search?.select || n.options?.select, S(n.options?.search?.select?.on || n.options?.select?.on || {})), {
2062
+ }, n.options?.search?.select || n.options?.select, D(n.options?.search?.select?.on || n.options?.select?.on || {})), {
2007
2063
  default: m(() => [
2008
- (f(!0), y($, null, L(n.options?.select?.data, (d) => (f(), h(a(K), {
2064
+ (f(!0), g(S, null, L(n.options?.select?.data, (d) => (f(), h(a(K), {
2009
2065
  key: d.value,
2010
2066
  label: d.label,
2011
2067
  value: d.value
@@ -2018,234 +2074,254 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2018
2074
  "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2019
2075
  disabled: n.disabled?.search,
2020
2076
  ref_for: !0
2021
- }, n.options?.search?.datetime || n.options?.datetime, S(n.options?.search?.datetime?.on || n.options?.datetime?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.type && a(M).customComponent[n.type] ? (f(), h(q(a(M).customComponent[n.type]), v({
2077
+ }, n.options?.search?.datetime || n.options?.datetime, D(n.options?.search?.datetime?.on || n.options?.datetime?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.type && a(M).customComponent[n.type] ? (f(), h(q(a(M).customComponent[n.type]), v({
2022
2078
  key: 4,
2023
2079
  modelValue: a(l).search.form[n.key],
2024
2080
  "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2025
2081
  ref_for: !0
2026
- }, n.options?.search?.[n.type] || n.options?.[n.type], S(n.options?.search?.[n.type]?.on || n.options?.[n.type]?.on || {}), {
2082
+ }, n.options?.search?.[n.type] || n.options?.[n.type], D(n.options?.search?.[n.type]?.on || n.options?.[n.type]?.on || {}), {
2027
2083
  disabled: n.disabled?.search
2028
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : C("", !0)
2084
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
2029
2085
  ]),
2030
- k(p.$slots, "search-" + n.key + "-right", {
2086
+ C(p.$slots, "search-" + n.key + "-right", {
2031
2087
  row: a(l).search.form
2032
2088
  })
2033
2089
  ]),
2034
2090
  _: 2
2035
- }, 1032, ["label", "class"])) : C("", !0)
2091
+ }, 1032, ["label", "class"])) : k("", !0)
2036
2092
  ], 64))), 128)),
2037
- k(p.$slots, "search-center", {
2093
+ C(p.$slots, "search-center", {
2038
2094
  row: a(l).search.form
2039
2095
  }),
2040
- r.option.tools?.search || r.option.tools?.reset ? (f(), h(a(X), { key: 0 }, {
2096
+ i.option.tools?.search || i.option.tools?.reset ? (f(), h(a(G), { key: 0 }, {
2041
2097
  default: m(() => [
2042
- r.option.tools?.search ? (f(), h(a(T), {
2098
+ i.option.tools?.search ? (f(), h(a(T), {
2043
2099
  key: 0,
2044
2100
  type: "primary",
2045
2101
  onClick: a(l).search.submit
2046
2102
  }, {
2047
2103
  default: m(() => [
2048
- E(A(a(b).tCurd("search")), 1)
2104
+ $(U(a(y).tCurd("search")), 1)
2049
2105
  ]),
2050
2106
  _: 1
2051
- }, 8, ["onClick"])) : C("", !0),
2052
- r.option.tools?.reset ? (f(), h(a(T), {
2107
+ }, 8, ["onClick"])) : k("", !0),
2108
+ i.option.tools?.reset ? (f(), h(a(T), {
2053
2109
  key: 1,
2054
2110
  onClick: a(l).search.reset
2055
2111
  }, {
2056
2112
  default: m(() => [
2057
- E(A(a(b).tCurd("reset")), 1)
2113
+ $(U(a(y).tCurd("reset")), 1)
2058
2114
  ]),
2059
2115
  _: 1
2060
- }, 8, ["onClick"])) : C("", !0)
2116
+ }, 8, ["onClick"])) : k("", !0)
2061
2117
  ]),
2062
2118
  _: 1
2063
- })) : C("", !0),
2064
- k(p.$slots, "search-end", {
2119
+ })) : k("", !0),
2120
+ C(p.$slots, "search-end", {
2065
2121
  row: a(l).search.form
2066
2122
  })
2067
2123
  ]),
2068
2124
  _: 3
2069
2125
  }, 8, ["model", "size"])
2070
- ])) : C("", !0),
2071
- U("div", _e, [
2072
- U("div", et, [
2073
- a(i)(r.option.tools?.add) ? (f(), y("div", tt, [
2126
+ ])) : k("", !0),
2127
+ F("div", tt, [
2128
+ F("div", ot, [
2129
+ a(r)(i.option.tools?.add) ? (f(), g("div", at, [
2074
2130
  z(a(T), {
2075
2131
  type: "primary",
2076
2132
  onClick: c[0] || (c[0] = (n) => a(l).update.open(a(u).Add)),
2077
- size: r.option.size?.search
2133
+ size: i.option.size?.search
2078
2134
  }, {
2079
2135
  default: m(() => [
2080
- E(A(a(b).tCurd("add")), 1)
2136
+ $(U(a(y).tCurd("add")), 1)
2081
2137
  ]),
2082
2138
  _: 1
2083
2139
  }, 8, ["size"])
2084
- ])) : C("", !0),
2085
- r.option.table?.selectable && a(i)(r.option.tools?.delete) ? (f(), y("div", ot, [
2140
+ ])) : k("", !0),
2141
+ i.option.table?.selectable && a(r)(i.option.tools?.delete) ? (f(), g("div", lt, [
2086
2142
  z(a(T), {
2087
2143
  type: "danger",
2088
2144
  onClick: c[1] || (c[1] = (n) => a(l).remove.open(a(l).table.selection.list)),
2089
- size: r.option.size?.search
2145
+ size: i.option.size?.search
2090
2146
  }, {
2091
2147
  default: m(() => [
2092
- E(A(a(b).tCurd("delete")), 1)
2148
+ $(U(a(y).tCurd("delete")), 1)
2093
2149
  ]),
2094
2150
  _: 1
2095
2151
  }, 8, ["size"])
2096
- ])) : C("", !0),
2097
- r.option.tools?.expand ? (f(), y("div", at, [
2152
+ ])) : k("", !0),
2153
+ i.option.tools?.expand ? (f(), g("div", nt, [
2098
2154
  z(a(T), {
2099
2155
  type: "warning",
2100
2156
  onClick: c[2] || (c[2] = (n) => a(l).table.expand.all()),
2101
- size: r.option.size?.search
2157
+ size: i.option.size?.search
2102
2158
  }, {
2103
2159
  default: m(() => [
2104
- E(A(a(b).tCurd("expandCollapse")), 1)
2160
+ $(U(a(y).tCurd("expandCollapse")), 1)
2105
2161
  ]),
2106
2162
  _: 1
2107
2163
  }, 8, ["size"])
2108
- ])) : C("", !0),
2109
- r.option.tools?.export?.show ? (f(), h(a(he), {
2110
- key: 3,
2111
- onCommand: a(l).export.click
2112
- }, {
2113
- dropdown: m(() => [
2114
- z(a(ge), {
2115
- size: r.option.size?.search
2116
- }, {
2117
- default: m(() => [
2118
- r.option.table?.selectable ? (f(), h(a(x), {
2119
- key: 0,
2120
- command: "select"
2164
+ ])) : k("", !0),
2165
+ i.option.tools?.export?.show ? (f(), g(S, { key: 3 }, [
2166
+ i.option.tools?.export?.dropdown?.show ? (f(), h(a(he), {
2167
+ key: 0,
2168
+ onCommand: a(l).export.click
2169
+ }, {
2170
+ dropdown: m(() => [
2171
+ z(a(ye), {
2172
+ size: i.option.size?.search
2173
+ }, {
2174
+ default: m(() => [
2175
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(r)(i.option.tools?.delete)) ? (f(), h(a(x), {
2176
+ key: 0,
2177
+ command: "select"
2178
+ }, {
2179
+ default: m(() => [
2180
+ $(U(a(y).tCurd("exportSelect")), 1)
2181
+ ]),
2182
+ _: 1
2183
+ })) : k("", !0),
2184
+ i.option.tools?.export?.dropdown?.page ? (f(), h(a(x), {
2185
+ key: 1,
2186
+ command: "page"
2187
+ }, {
2188
+ default: m(() => [
2189
+ $(U(a(y).tCurd("exportPage")), 1)
2190
+ ]),
2191
+ _: 1
2192
+ })) : k("", !0),
2193
+ i.option.tools?.export?.dropdown?.all ? (f(), h(a(x), {
2194
+ key: 2,
2195
+ command: "all"
2196
+ }, {
2197
+ default: m(() => [
2198
+ $(U(a(y).tCurd("exportAll")), 1)
2199
+ ]),
2200
+ _: 1
2201
+ })) : k("", !0)
2202
+ ]),
2203
+ _: 1
2204
+ }, 8, ["size"])
2205
+ ]),
2206
+ default: m(() => [
2207
+ F("div", it, [
2208
+ z(a(T), {
2209
+ type: "warning",
2210
+ loading: a(l).export.loading,
2211
+ size: i.option.size?.search
2121
2212
  }, {
2122
2213
  default: m(() => [
2123
- E(A(a(b).tCurd("exportSelect")), 1)
2214
+ $(U(a(y).tCurd("export")), 1)
2124
2215
  ]),
2125
2216
  _: 1
2126
- })) : C("", !0),
2127
- z(a(x), { command: "page" }, {
2128
- default: m(() => [
2129
- E(A(a(b).tCurd("exportPage")), 1)
2130
- ]),
2131
- _: 1
2132
- }),
2133
- z(a(x), { command: "all" }, {
2134
- default: m(() => [
2135
- E(A(a(b).tCurd("exportAll")), 1)
2136
- ]),
2137
- _: 1
2138
- })
2217
+ }, 8, ["loading", "size"])
2218
+ ])
2219
+ ]),
2220
+ _: 1
2221
+ }, 8, ["onCommand"])) : (f(), g("div", rt, [
2222
+ z(a(T), {
2223
+ type: "warning",
2224
+ loading: a(l).export.loading,
2225
+ size: i.option.size?.search,
2226
+ onClick: c[3] || (c[3] = (n) => a(l).export.run.start("all"))
2227
+ }, {
2228
+ default: m(() => [
2229
+ $(U(a(y).tCurd("export")), 1)
2139
2230
  ]),
2140
2231
  _: 1
2141
- }, 8, ["size"])
2142
- ]),
2143
- default: m(() => [
2144
- U("div", lt, [
2145
- z(a(T), {
2146
- type: "warning",
2147
- loading: a(l).export.loading,
2148
- size: r.option.size?.search
2149
- }, {
2150
- default: m(() => [
2151
- E(A(a(b).tCurd("export")), 1)
2152
- ]),
2153
- _: 1
2154
- }, 8, ["loading", "size"])
2155
- ])
2156
- ]),
2157
- _: 1
2158
- }, 8, ["onCommand"])) : C("", !0),
2159
- k(p.$slots, "tools-left")
2232
+ }, 8, ["loading", "size"])
2233
+ ]))
2234
+ ], 64)) : k("", !0),
2235
+ C(p.$slots, "tools-left")
2160
2236
  ]),
2161
- U("div", nt, [
2162
- k(p.$slots, "tools-right"),
2237
+ F("div", st, [
2238
+ C(p.$slots, "tools-right"),
2163
2239
  a(l).page.showTools ? (f(), h(a(ie), v({
2164
2240
  key: 0,
2165
2241
  "current-page": a(l).page.num,
2166
- "onUpdate:currentPage": c[3] || (c[3] = (n) => a(l).page.num = n),
2242
+ "onUpdate:currentPage": c[4] || (c[4] = (n) => a(l).page.num = n),
2167
2243
  "page-size": a(l).page.size,
2168
- "onUpdate:pageSize": c[4] || (c[4] = (n) => a(l).page.size = n),
2244
+ "onUpdate:pageSize": c[5] || (c[5] = (n) => a(l).page.size = n),
2169
2245
  background: "",
2170
2246
  "page-sizes": a(l).page.sizeList,
2171
2247
  "pager-count": a(l).page.pagerCount,
2172
2248
  layout: a(l).page.layout,
2173
2249
  total: a(l).page.total,
2174
- size: r.option.size?.table,
2250
+ size: i.option.size?.table,
2175
2251
  onSizeChange: a(l).table.getList,
2176
2252
  onCurrentChange: a(l).table.getList
2177
- }, r.option.page?.pagination || {}, S(r.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : C("", !0),
2178
- r.option.tools?.refresh === void 0 || r.option.tools?.refresh ? (f(), y("div", {
2253
+ }, 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", {
2179
2255
  key: 1,
2180
- class: j(["refresh-btn", [r.option.size?.search]]),
2181
- onClick: c[5] || (c[5] = //@ts-ignore
2256
+ class: j(["refresh-btn", [i.option.size?.search]]),
2257
+ onClick: c[6] || (c[6] = //@ts-ignore
2182
2258
  (...n) => a(l).table.getList && a(l).table.getList(...n))
2183
2259
  }, [
2184
- z(Ie)
2185
- ], 2)) : C("", !0)
2260
+ z(Pe)
2261
+ ], 2)) : k("", !0)
2186
2262
  ])
2187
2263
  ]),
2188
- U("div", {
2189
- class: j(["fit-width relative form-box", [r.option.table?.fitHeight ? "col " : ""]])
2264
+ F("div", {
2265
+ class: j(["fit-width relative form-box", [i.option.table?.fitHeight ? "col " : ""]])
2190
2266
  }, [
2191
- U("div", {
2192
- class: j(["column form-box-content", [r.option.table?.fitHeight ? "absolute fit" : ""]])
2267
+ F("div", {
2268
+ class: j(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2193
2269
  }, [
2194
- ke((f(), h(a(be), v({
2270
+ ke((f(), h(a(ge), v({
2195
2271
  data: a(l).table.data,
2196
- border: r.option.table?.border === void 0 ? !0 : r.option.table?.border,
2272
+ border: i.option.table?.border === void 0 ? !0 : i.option.table?.border,
2197
2273
  onSelectionChange: a(l).table.selection.change,
2198
2274
  onSortChange: a(l).table.sort.change,
2199
2275
  "expand-row-keys": a(l).table.expand.rowKeys,
2200
2276
  onExpandChange: a(l).table.expand.change
2201
- }, r.option.table, S(r.option.table?.on || {})), {
2277
+ }, i.option.table, D(i.option.table?.on || {})), {
2202
2278
  default: m(() => [
2203
- r.option.table?.selectable || a(i)(r.option.tools?.delete) || r.option.tools?.export?.show ? (f(), h(a(ee), {
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({
2204
2280
  key: 0,
2205
2281
  type: "selection",
2206
- selectable: typeof r.option.table?.selectable == "function" ? r.option.table?.selectable : void 0,
2207
2282
  width: "40",
2208
2283
  align: "center",
2209
2284
  fixed: "left",
2210
- "show-overflow-tooltip": !1
2211
- }, null, 8, ["selectable"])) : C("", !0),
2212
- z(qe, {
2285
+ "show-overflow-tooltip": !1,
2286
+ className: "cc1-form-selectable-column"
2287
+ }, typeof i.option.table?.selectable == "object" ? i.option.table?.selectable : {}, D(typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.on || {} : {})), null, 16)) : k("", !0),
2288
+ z(Ge, {
2213
2289
  conf: a(l),
2214
2290
  columnList: a(l).table.column.list,
2215
- option: r.option
2291
+ option: i.option
2216
2292
  }, te({ _: 2 }, [
2217
2293
  L(p.$slots, (n, d) => ({
2218
2294
  name: d,
2219
2295
  fn: m((V) => [
2220
- k(p.$slots, d, Ce(ve(V || {})))
2296
+ C(p.$slots, d, Ce(ve(V || {})))
2221
2297
  ])
2222
2298
  }))
2223
2299
  ]), 1032, ["conf", "columnList", "option"]),
2224
- a(i)(r.option.table?.add) || a(i)(r.option.table?.update) || a(i)(r.option.table?.delete) || a(i)(r.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(a(ee), v({
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({
2225
2301
  key: 1,
2226
- width: a(l).table.op.width(a(i)(r.option.table?.add), a(i)(r.option.table?.update), a(i)(r.option.table?.delete), a(i)(r.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2302
+ 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"]),
2227
2303
  align: "center",
2228
2304
  fixed: "right"
2229
- }, r.option.table?.operate), {
2305
+ }, i.option.table?.operate), {
2230
2306
  header: m(() => [
2231
- k(p.$slots, "table-header-op", {}, () => [
2232
- E(A(a(b).tCurd("operation")), 1)
2307
+ C(p.$slots, "table-header-op", {}, () => [
2308
+ $(U(a(y).tCurd("operation")), 1)
2233
2309
  ])
2234
2310
  ]),
2235
2311
  default: m(({ row: n }) => [
2236
2312
  z(a(N), {
2237
- size: r.option.size?.table
2313
+ size: i.option.size?.table
2238
2314
  }, {
2239
2315
  default: m(() => [
2240
- k(p.$slots, "table-op-left", { row: n }),
2241
- r.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), y($, { key: 0 }, [
2316
+ C(p.$slots, "table-op-left", { row: n }),
2317
+ i.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), g(S, { key: 0 }, [
2242
2318
  z(a(T), {
2243
2319
  link: "",
2244
2320
  type: "info",
2245
2321
  onClick: a(l).inlineEdit.close
2246
2322
  }, {
2247
2323
  default: m(() => [
2248
- E(A(a(b).tCurd("cancel")), 1)
2324
+ $(U(a(y).tCurd("cancel")), 1)
2249
2325
  ]),
2250
2326
  _: 1
2251
2327
  }, 8, ["onClick"]),
@@ -2256,108 +2332,108 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2256
2332
  loading: a(l).update.loading
2257
2333
  }, {
2258
2334
  default: m(() => [
2259
- E(A(a(b).tCurd("confirm")), 1)
2335
+ $(U(a(y).tCurd("confirm")), 1)
2260
2336
  ]),
2261
2337
  _: 1
2262
2338
  }, 8, ["onClick", "loading"]),
2263
- k(p.$slots, "table-op-edit-right", { row: n })
2264
- ], 64)) : (f(), y($, { key: 1 }, [
2265
- a(i)(r.option.table?.add, n) ? (f(), h(a(T), {
2339
+ C(p.$slots, "table-op-edit-right", { row: n })
2340
+ ], 64)) : (f(), g(S, { key: 1 }, [
2341
+ a(r)(i.option.table?.add, n) ? (f(), h(a(T), {
2266
2342
  key: 0,
2267
2343
  link: "",
2268
2344
  type: "primary",
2269
2345
  onClick: (d) => a(l).update.open(a(u).Add, n)
2270
2346
  }, {
2271
2347
  default: m(() => [
2272
- E(A(a(b).tCurd("add")), 1)
2348
+ $(U(a(y).tCurd("add")), 1)
2273
2349
  ]),
2274
2350
  _: 2
2275
- }, 1032, ["onClick"])) : C("", !0),
2276
- a(i)(r.option.table?.view, n) ? (f(), h(a(T), {
2351
+ }, 1032, ["onClick"])) : k("", !0),
2352
+ a(r)(i.option.table?.view, n) ? (f(), h(a(T), {
2277
2353
  key: 1,
2278
2354
  link: "",
2279
2355
  type: "primary",
2280
2356
  onClick: (d) => a(l).update.open(a(u).View, n)
2281
2357
  }, {
2282
2358
  default: m(() => [
2283
- E(A(a(b).tCurd("view")), 1)
2359
+ $(U(a(y).tCurd("view")), 1)
2284
2360
  ]),
2285
2361
  _: 2
2286
- }, 1032, ["onClick"])) : C("", !0),
2287
- a(i)(r.option.table?.update, n) ? (f(), h(a(T), {
2362
+ }, 1032, ["onClick"])) : k("", !0),
2363
+ a(r)(i.option.table?.update, n) ? (f(), h(a(T), {
2288
2364
  key: 2,
2289
2365
  link: "",
2290
2366
  type: "warning",
2291
2367
  onClick: (d) => a(l).update.open(a(u).Update, n)
2292
2368
  }, {
2293
2369
  default: m(() => [
2294
- E(A(a(b).tCurd("edit")), 1)
2370
+ $(U(a(y).tCurd("edit")), 1)
2295
2371
  ]),
2296
2372
  _: 2
2297
- }, 1032, ["onClick"])) : C("", !0),
2298
- a(i)(r.option.table?.delete, n) ? (f(), h(a(T), {
2373
+ }, 1032, ["onClick"])) : k("", !0),
2374
+ a(r)(i.option.table?.delete, n) ? (f(), h(a(T), {
2299
2375
  key: 3,
2300
2376
  link: "",
2301
2377
  type: "danger",
2302
2378
  onClick: (d) => a(l).remove.open([n])
2303
2379
  }, {
2304
2380
  default: m(() => [
2305
- E(A(a(b).tCurd("delete")), 1)
2381
+ $(U(a(y).tCurd("delete")), 1)
2306
2382
  ]),
2307
2383
  _: 2
2308
- }, 1032, ["onClick"])) : C("", !0),
2309
- k(p.$slots, "table-op-right", { row: n })
2384
+ }, 1032, ["onClick"])) : k("", !0),
2385
+ C(p.$slots, "table-op-right", { row: n })
2310
2386
  ], 64))
2311
2387
  ]),
2312
2388
  _: 2
2313
2389
  }, 1032, ["size"])
2314
2390
  ]),
2315
2391
  _: 3
2316
- }, 16, ["width"])) : C("", !0)
2392
+ }, 16, ["width"])) : k("", !0)
2317
2393
  ]),
2318
2394
  _: 3
2319
2395
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2320
- [g, a(l).table.loading]
2396
+ [b, a(l).table.loading]
2321
2397
  ])
2322
2398
  ], 2)
2323
2399
  ], 2),
2324
- U("div", it, [
2325
- (r.option.page?.show === void 0 || r.option.page?.show) && !a(l).page.showTools ? (f(), h(a(ie), v({
2400
+ F("div", dt, [
2401
+ (i.option.page?.show === void 0 || i.option.page?.show) && !a(l).page.showTools ? (f(), h(a(ie), v({
2326
2402
  key: 0,
2327
2403
  "current-page": a(l).page.num,
2328
- "onUpdate:currentPage": c[6] || (c[6] = (n) => a(l).page.num = n),
2404
+ "onUpdate:currentPage": c[7] || (c[7] = (n) => a(l).page.num = n),
2329
2405
  "page-size": a(l).page.size,
2330
- "onUpdate:pageSize": c[7] || (c[7] = (n) => a(l).page.size = n),
2406
+ "onUpdate:pageSize": c[8] || (c[8] = (n) => a(l).page.size = n),
2331
2407
  background: "",
2332
2408
  "page-sizes": a(l).page.sizeList,
2333
2409
  "pager-count": a(l).page.pagerCount,
2334
2410
  layout: a(l).page.layout,
2335
2411
  total: a(l).page.total,
2336
- size: r.option.size?.table,
2412
+ size: i.option.size?.table,
2337
2413
  onSizeChange: a(l).table.getList,
2338
2414
  onCurrentChange: a(l).table.getList
2339
- }, r.option.page?.pagination || {}, S(r.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : C("", !0)
2415
+ }, 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)
2340
2416
  ])
2341
2417
  ], 2),
2342
- k(p.$slots, "box-right")
2418
+ C(p.$slots, "box-right")
2343
2419
  ], 2),
2344
2420
  z(a(_), v({
2345
2421
  modelValue: a(l).update.show,
2346
- "onUpdate:modelValue": c[8] || (c[8] = (n) => a(l).update.show = n),
2422
+ "onUpdate:modelValue": c[9] || (c[9] = (n) => a(l).update.show = n),
2347
2423
  title: a(l).update.title,
2348
2424
  "before-close": a(l).update.close
2349
- }, r.option.dialog), {
2425
+ }, i.option.dialog), {
2350
2426
  footer: m(() => [
2351
- U("span", rt, [
2427
+ F("span", ut, [
2352
2428
  z(a(N), {
2353
- size: r.option.size?.form
2429
+ size: i.option.size?.form
2354
2430
  }, {
2355
2431
  default: m(() => [
2356
2432
  z(a(T), {
2357
2433
  onClick: a(l).update.close
2358
2434
  }, {
2359
2435
  default: m(() => [
2360
- E(A(a(b).tCurd("close")), 1)
2436
+ $(U(a(y).tCurd("close")), 1)
2361
2437
  ]),
2362
2438
  _: 1
2363
2439
  }, 8, ["onClick"]),
@@ -2368,10 +2444,10 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2368
2444
  loading: a(l).update.loading
2369
2445
  }, {
2370
2446
  default: m(() => [
2371
- E(A(a(b).tCurd("submit")), 1)
2447
+ $(U(a(y).tCurd("submit")), 1)
2372
2448
  ]),
2373
2449
  _: 1
2374
- }, 8, ["onClick", "loading"])) : C("", !0)
2450
+ }, 8, ["onClick", "loading"])) : k("", !0)
2375
2451
  ]),
2376
2452
  _: 1
2377
2453
  }, 8, ["size"])
@@ -2383,52 +2459,52 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2383
2459
  ref: s,
2384
2460
  model: a(l).update.form,
2385
2461
  rules: a(l).update.rules,
2386
- size: r.option.size?.form
2462
+ size: i.option.size?.form
2387
2463
  }, {
2388
2464
  default: m(() => [
2389
- a(l).update.showContent ? (f(!0), y($, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), y($, null, [
2390
- a(i)(
2465
+ a(l).update.showContent ? (f(!0), g(S, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), g(S, null, [
2466
+ a(r)(
2391
2467
  (() => {
2392
2468
  const d = [], V = (w) => {
2393
- w?.item?.children ? V(w.item.children) : d.push(...w.map((F) => F.item?.show?.form));
2469
+ w?.item?.children ? V(w.item.children) : d.push(...w.map((A) => A.item?.show?.form));
2394
2470
  };
2395
2471
  return V(n), d;
2396
2472
  })(),
2397
2473
  a(l).update.form,
2398
2474
  a(l).update.type
2399
- ) ? (f(), y("div", {
2475
+ ) ? (f(), g("div", {
2400
2476
  key: 0,
2401
2477
  class: j(["row curd-row", {
2402
- stripe: r.option.form?.stripe === void 0 ? !0 : r.option.form?.stripe
2478
+ stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
2403
2479
  }])
2404
2480
  }, [
2405
- k(p.$slots, "form-start", {
2481
+ C(p.$slots, "form-start", {
2406
2482
  row: a(l).update.form
2407
2483
  }),
2408
- (f(!0), y($, null, L(n, (d) => (f(), y($, null, [
2409
- a(i)(d.item.show?.form, a(l).update.form, a(l).update.type) ? (f(), y("div", {
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", {
2410
2486
  key: 0,
2411
2487
  class: j([d.item.form.span > 0 ? `col-${a(l).getColumnSpan(d, n)}` : "col", `form-item-col-${d.item.key}`])
2412
2488
  }, [
2413
- (f(!0), y($, null, L(d.item.children ? d.children : [d], (V) => (f(), h(Ze, {
2489
+ (f(!0), g(S, null, L(d.item.children ? d.children : [d], (V) => (f(), h(_e, {
2414
2490
  key: V.item.key,
2415
2491
  conf: a(l),
2416
2492
  item: V
2417
2493
  }, te({ _: 2 }, [
2418
- L(p.$slots, (w, F) => ({
2419
- name: F,
2494
+ L(p.$slots, (w, A) => ({
2495
+ name: A,
2420
2496
  fn: m((B) => [
2421
- k(p.$slots, F, v({ ref_for: !0 }, B || {}))
2497
+ C(p.$slots, A, v({ ref_for: !0 }, B || {}))
2422
2498
  ])
2423
2499
  }))
2424
2500
  ]), 1032, ["conf", "item"]))), 128))
2425
- ], 2)) : C("", !0)
2501
+ ], 2)) : k("", !0)
2426
2502
  ], 64))), 256)),
2427
- k(p.$slots, "form-end", {
2503
+ C(p.$slots, "form-end", {
2428
2504
  row: a(l).update.form
2429
2505
  })
2430
- ], 2)) : C("", !0)
2431
- ], 64))), 256)) : C("", !0)
2506
+ ], 2)) : k("", !0)
2507
+ ], 64))), 256)) : k("", !0)
2432
2508
  ]),
2433
2509
  _: 3
2434
2510
  }, 8, ["model", "rules", "size"])
@@ -2437,21 +2513,21 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2437
2513
  }, 16, ["modelValue", "title", "before-close"]),
2438
2514
  z(a(_), {
2439
2515
  modelValue: a(l).remove.show,
2440
- "onUpdate:modelValue": c[9] || (c[9] = (n) => a(l).remove.show = n),
2516
+ "onUpdate:modelValue": c[10] || (c[10] = (n) => a(l).remove.show = n),
2441
2517
  title: a(l).remove.title,
2442
2518
  "close-on-click-modal": !1
2443
2519
  }, {
2444
2520
  footer: m(() => [
2445
- U("span", st, [
2521
+ F("span", ft, [
2446
2522
  z(a(N), {
2447
- size: r.option.size?.form
2523
+ size: i.option.size?.form
2448
2524
  }, {
2449
2525
  default: m(() => [
2450
2526
  z(a(T), {
2451
2527
  onClick: a(l).remove.close
2452
2528
  }, {
2453
2529
  default: m(() => [
2454
- E(A(a(b).tCurd("close")), 1)
2530
+ $(U(a(y).tCurd("close")), 1)
2455
2531
  ]),
2456
2532
  _: 1
2457
2533
  }, 8, ["onClick"]),
@@ -2461,7 +2537,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2461
2537
  loading: a(l).remove.loading
2462
2538
  }, {
2463
2539
  default: m(() => [
2464
- E(A(a(b).tCurd("confirmDelete")), 1)
2540
+ $(U(a(y).tCurd("confirmDelete")), 1)
2465
2541
  ]),
2466
2542
  _: 1
2467
2543
  }, 8, ["onClick", "loading"])
@@ -2471,20 +2547,20 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
2471
2547
  ])
2472
2548
  ]),
2473
2549
  default: m(() => [
2474
- U("div", null, A(a(b).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
2550
+ F("div", null, U(a(y).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
2475
2551
  ]),
2476
2552
  _: 1
2477
2553
  }, 8, ["modelValue", "title"]),
2478
- z(Le, {
2554
+ z(Be, {
2479
2555
  ref_key: "switchConfirmRef",
2480
2556
  ref: e,
2481
- size: r.option.size?.form
2557
+ size: i.option.size?.form
2482
2558
  }, null, 8, ["size"])
2483
2559
  ], 2);
2484
2560
  };
2485
2561
  }
2486
2562
  });
2487
- class mt {
2563
+ class gt {
2488
2564
  /**
2489
2565
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2490
2566
  *
@@ -2501,8 +2577,8 @@ class mt {
2501
2577
  * @param name
2502
2578
  */
2503
2579
  static exportJSONFile = (o, u) => {
2504
- const t = new Blob([JSON.stringify(o)], { type: "application/json" }), i = URL.createObjectURL(t), l = document.createElement("a");
2505
- l.href = i, l.download = `${u || "config"}.json`, l.click();
2580
+ const t = new Blob([JSON.stringify(o)], { type: "application/json" }), r = URL.createObjectURL(t), l = document.createElement("a");
2581
+ l.href = r, l.download = `${u || "config"}.json`, l.click();
2506
2582
  };
2507
2583
  /**
2508
2584
  * 导入文件内容,默认为json
@@ -2510,45 +2586,45 @@ class mt {
2510
2586
  * @returns
2511
2587
  */
2512
2588
  static importFile = async (o) => new Promise((u, t) => {
2513
- const i = document.createElement("input");
2514
- i.type = "file";
2589
+ const r = document.createElement("input");
2590
+ r.type = "file";
2515
2591
  const l = o?.accept || ".json";
2516
- i.accept = l, i.style.display = "none", i.onchange = (e) => {
2592
+ r.accept = l, r.style.display = "none", r.onchange = (e) => {
2517
2593
  const s = e.target.files[0];
2518
2594
  if (!s) {
2519
- O.fail("未选择文件"), t("未选择文件");
2595
+ E.fail("未选择文件"), t("未选择文件");
2520
2596
  return;
2521
2597
  }
2522
2598
  const p = new FileReader();
2523
2599
  p.onload = async (c) => {
2524
- const g = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2525
- u(g);
2600
+ const b = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2601
+ u(b);
2526
2602
  }, p.onerror = () => {
2527
- O.fail("文件读取失败"), t("文件读取失败");
2528
- }, p.readAsText(s), document.body.removeChild(i);
2529
- }, document.body.appendChild(i), i.click();
2603
+ E.fail("文件读取失败"), t("文件读取失败");
2604
+ }, p.readAsText(s), document.body.removeChild(r);
2605
+ }, document.body.appendChild(r), r.click();
2530
2606
  });
2531
2607
  }
2532
- const ut = (r, o) => {
2533
- if (r.component("TCurd", dt), r.component("TFormList", ne), r.component("TColumn", Oe), o?.customComponent) {
2608
+ const ct = (i, o) => {
2609
+ if (i.component("TCurd", pt), i.component("TFormList", ne), i.component("TColumn", Ae), o?.customComponent) {
2534
2610
  M.customComponent = o.customComponent;
2535
2611
  for (const u in o.customComponent)
2536
- r.component(u, o.customComponent[u]);
2612
+ i.component(u, o.customComponent[u]);
2537
2613
  }
2538
- }, ht = {
2539
- install: ut
2614
+ }, bt = {
2615
+ install: ct
2540
2616
  };
2541
2617
  export {
2542
2618
  P as ArrUtil,
2543
- Fe as ExcelUtil,
2544
- Oe as TColumn,
2545
- dt as TCurd,
2546
- mt as TFile,
2619
+ Te as ExcelUtil,
2620
+ Ae as TColumn,
2621
+ pt as TCurd,
2622
+ gt as TFile,
2547
2623
  M as TForm,
2548
- D as TFormConfig,
2549
- b as TFormI18n,
2624
+ O as TFormConfig,
2625
+ y as TFormI18n,
2550
2626
  ne as TFormList,
2551
- O as TSys,
2552
- ht as default,
2553
- ut as install
2627
+ E as TSys,
2628
+ bt as default,
2629
+ ct as install
2554
2630
  };