cc1-form 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cc1-form.js CHANGED
@@ -1,6 +1,6 @@
1
- import { ElMessage as he, ElLoading as ge, ElForm as q, ElFormItem as te, ElInput as x, ElSwitch as Z, ElSelect as G, ElOption as N, ElRadioGroup as le, ElRadio as ne, ElTreeSelect as pe, ElDatePicker as ie, ElDialog as ae, ElButton as L, ElTableColumn as ee, ElDropdown as ye, ElDropdownMenu as be, ElDropdownItem as oe, ElPagination as de, ElTable as we } from "element-plus";
1
+ import { ElMessage as Ve, ElLoading as ze, ElForm as Q, ElFormItem as ae, ElInput as _, ElSwitch as Z, ElSelect as X, ElOption as W, ElRadioGroup as ie, ElRadio as re, ElTreeSelect as me, ElDatePicker as se, ElDialog as ne, ElButton as T, ElTableColumn as oe, ElDropdown as $e, ElDropdownMenu as De, ElDropdownItem as le, ElPagination as fe, ElTable as Ee } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as K, reactive as re, onMounted as fe, resolveComponent as _, createElementBlock as b, createCommentVNode as v, openBlock as d, renderSlot as C, createVNode as U, withCtx as y, createTextVNode as D, Fragment as $, renderList as A, createBlock as h, normalizeClass as I, normalizeStyle as ce, ref as W, unref as a, createElementVNode as E, mergeProps as V, toHandlers as z, resolveDynamicComponent as J, nextTick as ke, toDisplayString as O, computed as me, getCurrentInstance as ve, createSlots as Q, withModifiers as Ce, resolveDirective as Ve, withDirectives as ze, normalizeProps as $e, guardReactiveProps as De } from "vue";
3
+ import { defineComponent as N, reactive as de, onMounted as he, resolveComponent as ee, createElementBlock as b, createCommentVNode as v, openBlock as d, renderSlot as C, createVNode as O, withCtx as g, createTextVNode as E, Fragment as D, renderList as A, createBlock as h, normalizeClass as I, normalizeStyle as ye, ref as J, unref as a, createElementVNode as U, mergeProps as V, toHandlers as $, resolveDynamicComponent as q, nextTick as Oe, watch as pe, toDisplayString as S, computed as ge, getCurrentInstance as Ue, createSlots as G, withModifiers as Se, resolveDirective as Me, withDirectives as Fe, normalizeProps as Ae, guardReactiveProps as Te } from "vue";
4
4
  class M {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
@@ -26,13 +26,13 @@ class M {
26
26
  * @param data 数据
27
27
  * @returns 是否显示
28
28
  */
29
- static isFun = (o, ...p) => Array.isArray(o) ? o.some((n) => typeof n == "function" ? n(...p) : n) : typeof o == "function" ? o(...p) : o;
29
+ static isFun = (o, ...f) => Array.isArray(o) ? o.some((n) => typeof n == "function" ? n(...f) : n) : typeof o == "function" ? o(...f) : o;
30
30
  /**
31
31
  * 获取路由参数,自动获取query、params中的参数, 哪个有就返回哪个
32
32
  */
33
33
  static getRouterParams = () => {
34
- const o = this.router.currentRoute.value.query || {}, p = this.router.currentRoute.value.params || {};
35
- return Object.keys(o).length ? o : Object.keys(p).length ? p : {};
34
+ const o = this.router.currentRoute.value.query || {}, f = this.router.currentRoute.value.params || {};
35
+ return Object.keys(o).length ? o : Object.keys(f).length ? f : {};
36
36
  };
37
37
  /**
38
38
  * 模块赋值
@@ -45,8 +45,8 @@ class M {
45
45
  static loadModule = async (o) => {
46
46
  if (!M.moduleObj[o])
47
47
  throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const p = await M.moduleObj[o]();
49
- return p.default ?? p;
48
+ const f = await M.moduleObj[o]();
49
+ return f.default ?? f;
50
50
  };
51
51
  /**
52
52
  * 提示信息对象管理
@@ -62,18 +62,18 @@ class M {
62
62
  * @param type 消息类型
63
63
  * @param options 其他选项
64
64
  */
65
- static showMessage(o, p, n = {}) {
65
+ static showMessage(o, f, n = {}) {
66
66
  const l = Date.now();
67
67
  if (!this.tipMessages[o] || l - this.tipMessages[o] > this.tipMessagesGap) {
68
68
  this.tipMessages[o] = l;
69
69
  const t = Object.assign(
70
70
  {
71
71
  message: o,
72
- type: p
72
+ type: f
73
73
  },
74
74
  n
75
75
  );
76
- he(t), setTimeout(() => {
76
+ Ve(t), setTimeout(() => {
77
77
  delete this.tipMessages[o];
78
78
  }, this.tipMessagesGap);
79
79
  }
@@ -83,16 +83,16 @@ class M {
83
83
  * @param content
84
84
  * @param options
85
85
  */
86
- static fail = (o, p = {}) => {
87
- this.showMessage(o, "error", p);
86
+ static fail = (o, f = {}) => {
87
+ this.showMessage(o, "error", f);
88
88
  };
89
89
  /**
90
90
  * 成功提示
91
91
  * @param content
92
92
  * @param options
93
93
  */
94
- static success = (o, p = {}) => {
95
- this.showMessage(o, "success", p);
94
+ static success = (o, f = {}) => {
95
+ this.showMessage(o, "success", f);
96
96
  };
97
97
  static loadingObj = null;
98
98
  static loadingTimer = null;
@@ -101,11 +101,11 @@ class M {
101
101
  * @param show
102
102
  * @param text
103
103
  */
104
- static loading = (o = !0, p = "Loading...") => {
104
+ static loading = (o = !0, f = "Loading...") => {
105
105
  Timer.un(this.loadingTimer), this.loadingTimer = Timer.once(() => {
106
- o ? this.loadingObj = ge.service({
106
+ o ? this.loadingObj = ze.service({
107
107
  lock: !0,
108
- text: p,
108
+ text: f,
109
109
  background: "rgba(0, 0, 0, 0.3)"
110
110
  }) : this.loadingObj && (this.loadingObj.close(), this.loadingObj = null);
111
111
  }, 50);
@@ -115,8 +115,8 @@ class M {
115
115
  * @param url 地址
116
116
  * @param isCenter 是否居中
117
117
  */
118
- static openUrl = (o, p = !0) => {
119
- if (p) {
118
+ static openUrl = (o, f = !0) => {
119
+ if (f) {
120
120
  let n = screen.width / 2 - 500, l = screen.height / 2 - 800 / 2 - 30;
121
121
  window.open(
122
122
  o,
@@ -131,7 +131,7 @@ class M {
131
131
  * @param param
132
132
  * @returns
133
133
  */
134
- static getImgPic = (o) => new Promise(async (p, n) => {
134
+ static getImgPic = (o) => new Promise(async (f, n) => {
135
135
  let l = document.getElementById(o.id);
136
136
  const t = await M.loadModule("html2canvas");
137
137
  try {
@@ -147,14 +147,14 @@ class M {
147
147
  backgroundColor: "#ffffff00"
148
148
  }).then(function(e) {
149
149
  let r = e.toDataURL("image/png");
150
- p(r);
150
+ f(r);
151
151
  });
152
152
  } catch (e) {
153
153
  n(e);
154
154
  }
155
155
  });
156
156
  }
157
- class T {
157
+ class F {
158
158
  /**
159
159
  * 全局配置对象
160
160
  */
@@ -516,7 +516,7 @@ class T {
516
516
  * @param config - 需要覆盖的配置项(深度 Partial)
517
517
  */
518
518
  static setConfig = (o) => {
519
- T.config = ObjectUtil.deepMerge(T.config, o);
519
+ F.config = ObjectUtil.deepMerge(F.config, o);
520
520
  };
521
521
  }
522
522
  class j {
@@ -537,8 +537,8 @@ class j {
537
537
  * @param field - 字段的 key 值
538
538
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
539
539
  */
540
- static findOptions = (o, p) => {
541
- const n = o.column.find((t) => t.key === p), l = (t) => t.replace(/-([a-z])/g, (e, r) => r.toUpperCase());
540
+ static findOptions = (o, f) => {
541
+ const n = o.column.find((t) => t.key === f), l = (t) => t.replace(/-([a-z])/g, (e, r) => r.toUpperCase());
542
542
  if (n)
543
543
  return n.options[l(n.type)];
544
544
  };
@@ -558,8 +558,8 @@ class j {
558
558
  }))
559
559
  )
560
560
  */
561
- static setOptionsData = (o, p, n) => {
562
- const l = j.findOptions(o, p);
561
+ static setOptionsData = (o, f, n) => {
562
+ const l = j.findOptions(o, f);
563
563
  l && (l.data = n);
564
564
  };
565
565
  static form = {
@@ -571,14 +571,14 @@ class j {
571
571
  * @param treeData 树形数据
572
572
  * @param option 组件配置
573
573
  */
574
- parentId: (o, p, n, l) => {
575
- const t = T.config.table.rowKey;
576
- o ? p.type === M.EDialog.Add ? (p.form.parentId = o[t], p.form.sort = o.children.length + 1) : p.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (p.form.parentId = "0", p.form.sort = n.length + 1), j.setOptionsData(l, "parentId", [{ [t]: "0", title: "根", children: n }]);
574
+ parentId: (o, f, n, l) => {
575
+ const t = F.config.table.rowKey;
576
+ o ? f.type === M.EDialog.Add ? (f.form.parentId = o[t], f.form.sort = o.children.length + 1) : f.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (f.form.parentId = "0", f.form.sort = n.length + 1), j.setOptionsData(l, "parentId", [{ [t]: "0", title: "根", children: n }]);
577
577
  }
578
578
  }
579
579
  };
580
580
  }
581
- const Ue = {
581
+ const je = {
582
582
  search: "搜索",
583
583
  add: "新增",
584
584
  edit: "编辑",
@@ -616,22 +616,22 @@ const Ue = {
616
616
  };
617
617
  class w {
618
618
  /** 解析国际化值:函数则执行并返回字符串,字符串则替换 `{key}` 占位符 */
619
- static t(o, ...p) {
619
+ static t(o, ...f) {
620
620
  if (typeof o == "function")
621
- return o(...p);
621
+ return o(...f);
622
622
  o = String(o);
623
623
  let n = 0;
624
- return o.replace(/{([^}]+)}/g, (l, t) => n < p.length ? String(p[n++]) : `{${t}}`);
624
+ return o.replace(/{([^}]+)}/g, (l, t) => n < f.length ? String(f[n++]) : `{${t}}`);
625
625
  }
626
626
  static setI18n = (o) => {
627
627
  w.curd = ObjectUtil.deepMerge(w.curd, o);
628
628
  };
629
629
  /** 解析curd国际化值 */
630
- static tCurd(o, ...p) {
631
- return this.t(this.curd[o], ...p);
630
+ static tCurd(o, ...f) {
631
+ return this.t(this.curd[o], ...f);
632
632
  }
633
633
  /** curd表单 */
634
- static curd = Ue;
634
+ static curd = je;
635
635
  }
636
636
  class P {
637
637
  /**
@@ -643,10 +643,10 @@ class P {
643
643
  * @param field 字段名
644
644
  * @param row 行数据
645
645
  */
646
- static setId = (o, p, n) => {
647
- p[o] || (p[o] = []);
648
- const l = T.config.table.rowKey;
649
- p[o].forEach((t) => {
646
+ static setId = (o, f, n) => {
647
+ f[o] || (f[o] = []);
648
+ const l = F.config.table.rowKey;
649
+ f[o].forEach((t) => {
650
650
  n.forEach((e) => {
651
651
  let r = e.default ?? "";
652
652
  e.type === "number" && (r = e.default ?? 0), e.type === "boolean" && (r = e.default ?? !1), e.type === "time" && (r = e.default ?? /* @__PURE__ */ new Date()), t[e.value] === void 0 && (t[e.value] = r);
@@ -660,11 +660,11 @@ class P {
660
660
  * @param itemFields 元素字段-如:[{label:'',value:''}]
661
661
  * @param callback 回调函数
662
662
  */
663
- static add = (o, p, n, l) => {
663
+ static add = (o, f, n, l) => {
664
664
  const t = JSONUtil.cp(n);
665
- P.setId(o, p, n);
666
- const e = T.config.table.rowKey;
667
- p[o].push(
665
+ P.setId(o, f, n);
666
+ const e = F.config.table.rowKey;
667
+ f[o].push(
668
668
  t.reduce(
669
669
  (r, s) => {
670
670
  let m = s.default ?? "";
@@ -672,7 +672,7 @@ class P {
672
672
  },
673
673
  { [e]: P.getIdFun() }
674
674
  )
675
- ), l?.(p);
675
+ ), l?.(f);
676
676
  };
677
677
  /**
678
678
  * 删除数组元素
@@ -681,9 +681,9 @@ class P {
681
681
  * @param item 元素-如:{_id:''}
682
682
  * @param callback 回调函数
683
683
  */
684
- static remove = (o, p, n, l) => {
685
- const t = T.config.table.rowKey;
686
- p[o] = p[o].filter((e) => e[t] !== n[t]), l?.(p);
684
+ static remove = (o, f, n, l) => {
685
+ const t = F.config.table.rowKey;
686
+ f[o] = f[o].filter((e) => e[t] !== n[t]), l?.(f);
687
687
  };
688
688
  /**
689
689
  * 获取没有id的数据
@@ -691,21 +691,21 @@ class P {
691
691
  * @param childernField 子级字段-如:list、children
692
692
  * @returns 没有id的数据
693
693
  */
694
- static getNoIdData = (o, p) => {
695
- const n = JSONUtil.cp(o), l = T.config.table.rowKey;
694
+ static getNoIdData = (o, f) => {
695
+ const n = JSONUtil.cp(o), l = F.config.table.rowKey;
696
696
  return n.forEach((t) => {
697
- t[l] && delete t[l], p && t[p] && P.getNoIdData(t[p], p);
697
+ t[l] && delete t[l], f && t[f] && P.getNoIdData(t[f], f);
698
698
  }), n;
699
699
  };
700
700
  }
701
- const Ee = {
701
+ const Le = {
702
702
  key: 0,
703
703
  class: "column curd-form-com-list",
704
704
  style: { width: "100%", gap: "10px" }
705
- }, Oe = { key: 0 }, Se = {
705
+ }, Be = { key: 0 }, Re = {
706
706
  class: "row items-center",
707
707
  style: { gap: "10px", width: "100%" }
708
- }, Me = { key: 1 }, se = /* @__PURE__ */ K({
708
+ }, Ie = { key: 1 }, ue = /* @__PURE__ */ N({
709
709
  __name: "list",
710
710
  props: {
711
711
  row: {
@@ -744,7 +744,7 @@ const Ee = {
744
744
  },
745
745
  emits: ["change"],
746
746
  setup(i, { emit: o }) {
747
- const p = i, n = re({
747
+ const f = i, n = de({
748
748
  show: !1,
749
749
  add: (t, e, r) => {
750
750
  P.add(t, e, r, () => {
@@ -757,35 +757,35 @@ const Ee = {
757
757
  });
758
758
  }
759
759
  });
760
- fe(() => {
761
- P.setId(p.field, p.row, p.itemFields), n.show = !0;
760
+ he(() => {
761
+ P.setId(f.field, f.row, f.itemFields), n.show = !0;
762
762
  });
763
763
  const l = o;
764
764
  return (t, e) => {
765
- const r = _("el-button"), s = _("el-input");
766
- return n.show ? (d(), b("div", Ee, [
765
+ const r = ee("el-button"), s = ee("el-input");
766
+ return n.show ? (d(), b("div", Le, [
767
767
  C(t.$slots, "list-start", { row: i.row }),
768
- i.addBottom ? v("", !0) : (d(), b("div", Oe, [
769
- U(r, {
768
+ i.addBottom ? v("", !0) : (d(), b("div", Be, [
769
+ O(r, {
770
770
  link: "",
771
771
  type: "primary",
772
772
  onClick: e[0] || (e[0] = (m) => n.add(i.field, i.row, i.itemFields))
773
773
  }, {
774
- default: y(() => e[3] || (e[3] = [
775
- D("添加")
774
+ default: g(() => e[3] || (e[3] = [
775
+ E("添加")
776
776
  ])),
777
777
  _: 1
778
778
  })
779
779
  ])),
780
- (d(!0), b($, null, A(i.row[i.field], (m) => (d(), b("div", Se, [
780
+ (d(!0), b(D, null, A(i.row[i.field], (m) => (d(), b("div", Re, [
781
781
  C(t.$slots, "item-start", {
782
782
  item: m,
783
783
  row: i.row
784
784
  }),
785
- (d(!0), b($, null, A(i.itemFields, (c) => (d(), h(s, {
785
+ (d(!0), b(D, null, A(i.itemFields, (c) => (d(), h(s, {
786
786
  modelValue: m[c.value],
787
787
  "onUpdate:modelValue": (u) => m[c.value] = u,
788
- style: ce({ width: i.inputWidth }),
788
+ style: ye({ width: i.inputWidth }),
789
789
  class: I(i.inputClass),
790
790
  placeholder: c[i.label] || c[i.value],
791
791
  onChange: e[1] || (e[1] = (u) => l("change"))
@@ -794,25 +794,25 @@ const Ee = {
794
794
  item: m,
795
795
  row: i.row
796
796
  }),
797
- U(r, {
797
+ O(r, {
798
798
  link: "",
799
799
  type: "danger",
800
800
  onClick: (c) => n.remove(i.field, i.row, m)
801
801
  }, {
802
- default: y(() => e[4] || (e[4] = [
803
- D("删除")
802
+ default: g(() => e[4] || (e[4] = [
803
+ E("删除")
804
804
  ])),
805
805
  _: 2
806
806
  }, 1032, ["onClick"])
807
807
  ]))), 256)),
808
- i.addBottom ? (d(), b("div", Me, [
809
- U(r, {
808
+ i.addBottom ? (d(), b("div", Ie, [
809
+ O(r, {
810
810
  link: "",
811
811
  type: "primary",
812
812
  onClick: e[2] || (e[2] = (m) => n.add(i.field, i.row, i.itemFields))
813
813
  }, {
814
- default: y(() => e[5] || (e[5] = [
815
- D("添加")
814
+ default: g(() => e[5] || (e[5] = [
815
+ E("添加")
816
816
  ])),
817
817
  _: 1
818
818
  })
@@ -821,10 +821,10 @@ const Ee = {
821
821
  ])) : v("", !0);
822
822
  };
823
823
  }
824
- }), Te = {
824
+ }), He = {
825
825
  class: "row form-item-content",
826
826
  style: { width: "100%" }
827
- }, Ae = { class: "col" }, Fe = { class: "col" }, Le = ["innerHTML"], je = /* @__PURE__ */ K({
827
+ }, Ke = { class: "col" }, Pe = { class: "col" }, Ne = ["innerHTML"], We = /* @__PURE__ */ N({
828
828
  __name: "column",
829
829
  props: {
830
830
  /**
@@ -841,7 +841,7 @@ const Ee = {
841
841
  }
842
842
  },
843
843
  setup(i, { expose: o }) {
844
- const p = M.isFun, n = M.EDialog, l = W(), t = i, e = re({
844
+ const f = M.isFun, n = M.EDialog, l = J(), t = i, e = de({
845
845
  rules: {},
846
846
  show: !0,
847
847
  form: {},
@@ -853,7 +853,7 @@ const Ee = {
853
853
  getOn: (r) => r.options?.[e.type === n.Add ? "formAdd" : "formUpdate"]?.[r.type]?.on || r.options?.[r.type]?.on || {},
854
854
  getColumnSpan: (r, s) => {
855
855
  if (r.item.form?.spanCol) {
856
- const m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2, k = s.filter((f) => !M.isFun(f.item.show?.form, e.form, e.type)).reduce((f, g) => f + (g.item.form?.span || c), 0);
856
+ const m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2, k = s.filter((y) => !M.isFun(y.item.show?.form, e.form, e.type)).reduce((y, p) => y + (p.item.form?.span || c), 0);
857
857
  return (r.item.form?.span || c) + k;
858
858
  }
859
859
  return r.item.form?.span;
@@ -863,50 +863,50 @@ const Ee = {
863
863
  e.formColumn = [], e.rules = {}, e.formDefault = {};
864
864
  const s = [], m = t.option.form?.maxSpan || 12, c = t.option.form?.defaultSpan || m / 2;
865
865
  let u = [];
866
- const k = (g) => {
867
- if (g.children) {
868
- g.children.forEach((S) => {
869
- k(S);
866
+ const k = (p) => {
867
+ if (p.children) {
868
+ p.children.forEach((z) => {
869
+ k(z);
870
870
  });
871
871
  return;
872
872
  }
873
- if (e.formDefault[g.key] = g.value, g.isForm && (typeof g.show?.form != "boolean" || g.show?.form)) {
874
- g.form = g.form || { span: c }, g.form.span = g.form.span ?? c;
875
- const S = g.form.span, B = u.reduce((R, Y) => R + Y.span, S), F = u.length;
876
- if (u.push({ item: g, span: S }), (F === 1 && u[0].span === 0 || B >= m || S === 0 && F > 1) && (s.push(u), u = []), g.rules) {
873
+ if (e.formDefault[p.key] = p.value, p.isForm && (typeof p.show?.form != "boolean" || p.show?.form)) {
874
+ p.form = p.form || { span: c }, p.form.span = p.form.span ?? c;
875
+ const z = p.form.span, B = u.reduce((R, H) => R + H.span, z), L = u.length;
876
+ if (u.push({ item: p, span: z }), (L === 1 && u[0].span === 0 || B >= m || z === 0 && L > 1) && (s.push(u), u = []), p.rules) {
877
877
  const R = {
878
878
  input: w.tCurd("placeholderInput"),
879
879
  select: w.tCurd("placeholderSelect")
880
- }, Y = (R[g.type] || R.input) + g.label;
881
- e.rules[g.key] = typeof g.rules == "boolean" ? [
880
+ }, H = (R[p.type] || R.input) + p.label;
881
+ e.rules[p.key] = typeof p.rules == "boolean" ? [
882
882
  {
883
883
  required: !0,
884
- message: Y,
884
+ message: H,
885
885
  trigger: "blur"
886
886
  }
887
- ] : g.rules;
887
+ ] : p.rules;
888
888
  }
889
889
  }
890
- }, f = (g, S) => {
891
- g.isForm = S, Array.isArray(g.children) && g.children.forEach((B) => f(B, S));
890
+ }, y = (p, z) => {
891
+ p.isForm = z, Array.isArray(p.children) && p.children.forEach((B) => y(B, z));
892
892
  };
893
- r.column.forEach((g) => {
894
- f(g, !0), k(g);
893
+ r.column.forEach((p) => {
894
+ y(p, !0), k(p);
895
895
  }), u.length > 0 && s.push(u), e.formColumn = s, e.form = JSONUtil.cp(e.formDefault);
896
896
  }
897
897
  });
898
898
  return e.initColumnForm(), o({
899
899
  ref: l,
900
900
  conf: e
901
- }), (r, s) => (d(), h(a(q), {
901
+ }), (r, s) => (d(), h(a(Q), {
902
902
  ref_key: "ruleFormRef",
903
903
  ref: l,
904
904
  model: e.form,
905
905
  rules: e.rules
906
906
  }, {
907
- default: y(() => [
908
- e.show ? (d(!0), b($, { key: 0 }, A(e.formColumn, (m, c) => (d(), b($, { key: c }, [
909
- a(p)(
907
+ default: g(() => [
908
+ e.show ? (d(!0), b(D, { key: 0 }, A(e.formColumn, (m, c) => (d(), b(D, { key: c }, [
909
+ a(f)(
910
910
  m.map((u) => u.item?.show?.form),
911
911
  e.form,
912
912
  e.type
@@ -919,107 +919,107 @@ const Ee = {
919
919
  C(r.$slots, "form-start", {
920
920
  row: e.form
921
921
  }),
922
- (d(!0), b($, null, A(m, (u) => (d(), b($, {
922
+ (d(!0), b(D, null, A(m, (u) => (d(), b(D, {
923
923
  key: u.item.key
924
924
  }, [
925
- a(p)(u.item.show?.form, e.form, e.type) ? (d(), b("div", {
925
+ a(f)(u.item.show?.form, e.form, e.type) ? (d(), b("div", {
926
926
  key: 0,
927
927
  class: I([u.item.form.span > 0 ? `col-${e.getColumnSpan(u, m)}` : "col", `form-item-col-${u.item.key}`])
928
928
  }, [
929
- U(a(te), {
929
+ O(a(ae), {
930
930
  label: u.item.text?.form?.label ?? u.item.label,
931
931
  prop: u.item.key,
932
932
  "label-width": u.item.text?.form?.label == "" ? 0 : u.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
933
933
  }, {
934
- default: y(() => [
935
- E("div", Te, [
934
+ default: g(() => [
935
+ U("div", He, [
936
936
  C(r.$slots, "form-" + u.item.key + "-start", {
937
937
  row: e.form,
938
938
  item: u.item
939
939
  }),
940
- E("div", Ae, [
941
- E("div", Fe, [
940
+ U("div", Ke, [
941
+ U("div", Pe, [
942
942
  C(r.$slots, "form-" + u.item.key, {
943
943
  row: e.form,
944
944
  item: u.item
945
945
  }, () => [
946
- u.item.type === "input" ? (d(), h(a(x), V({
946
+ u.item.type === "input" ? (d(), h(a(_), V({
947
947
  key: 0,
948
948
  modelValue: e.form[u.item.key],
949
949
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
950
950
  ref_for: !0
951
- }, e.getBind(u.item), z(e.getOn(u.item)), {
951
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
952
952
  disabled: e.getDisabled(u.item)
953
953
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "switch" ? (d(), h(a(Z), V({
954
954
  key: 1,
955
955
  modelValue: e.form[u.item.key],
956
956
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
957
957
  ref_for: !0
958
- }, e.getBind(u.item), z(e.getOn(u.item)), {
958
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
959
959
  disabled: e.getDisabled(u.item)
960
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "select" ? (d(), h(a(G), V({
960
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "select" ? (d(), h(a(X), V({
961
961
  key: 2,
962
962
  modelValue: e.form[u.item.key],
963
963
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
964
964
  ref_for: !0
965
- }, e.getBind(u.item), z(e.getOn(u.item)), {
965
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
966
966
  disabled: e.getDisabled(u.item),
967
967
  style: { width: "100%" }
968
968
  }), {
969
- default: y(() => [
970
- (d(!0), b($, null, A(u.item.options?.select?.data, (k) => (d(), h(a(N), {
969
+ default: g(() => [
970
+ (d(!0), b(D, null, A(u.item.options?.select?.data, (k) => (d(), h(a(W), {
971
971
  key: k.value,
972
972
  label: k.label,
973
973
  value: k.value
974
974
  }, null, 8, ["label", "value"]))), 128))
975
975
  ]),
976
976
  _: 2
977
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), h(a(le), V({
977
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "radio" ? (d(), h(a(ie), V({
978
978
  key: 3,
979
979
  modelValue: e.form[u.item.key],
980
980
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
981
981
  ref_for: !0
982
- }, e.getBind(u.item), z(e.getOn(u.item)), {
982
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
983
983
  disabled: e.getDisabled(u.item),
984
984
  style: { width: "100%" }
985
985
  }), {
986
- default: y(() => [
987
- (d(!0), b($, null, A(u.item.options?.radio?.data, (k) => (d(), h(a(ne), {
986
+ default: g(() => [
987
+ (d(!0), b(D, null, A(u.item.options?.radio?.data, (k) => (d(), h(a(re), {
988
988
  key: k.value,
989
989
  label: k.label,
990
990
  value: k.value
991
991
  }, null, 8, ["label", "value"]))), 128))
992
992
  ]),
993
993
  _: 2
994
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), h(se, V({
994
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "list" ? (d(), h(ue, V({
995
995
  key: 4,
996
996
  row: e.form,
997
997
  field: u.item.key,
998
998
  ref_for: !0
999
- }, e.getBind(u.item), z(e.getOn(u.item)), {
999
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
1000
1000
  disabled: e.getDisabled(u.item),
1001
1001
  style: { width: "100%" }
1002
- }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), h(a(pe), V({
1002
+ }), null, 16, ["row", "field", "disabled"])) : u.item.type === "treeSelect" ? (d(), h(a(me), V({
1003
1003
  key: 5,
1004
1004
  modelValue: e.form[u.item.key],
1005
1005
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1006
1006
  ref_for: !0
1007
- }, e.getBind(u.item), z(e.getOn(u.item)), {
1007
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
1008
1008
  disabled: e.getDisabled(u.item),
1009
1009
  style: { width: "100%" }
1010
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), h(a(ie), V({
1010
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type === "datetime" ? (d(), h(a(se), V({
1011
1011
  key: 6,
1012
1012
  modelValue: e.form[u.item.key],
1013
1013
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1014
1014
  ref_for: !0
1015
- }, e.getBind(u.item), z(e.getOn(u.item)), {
1015
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
1016
1016
  disabled: e.getDisabled(u.item)
1017
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (a(j).customComponent[u.item.type] || a(j).customComponent[u.item.type]?.form) ? (d(), h(J(a(j).customComponent[u.item.type]?.form || a(j).customComponent[u.item.type]), V({
1017
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : u.item.type && (a(j).customComponent[u.item.type] || a(j).customComponent[u.item.type]?.form) ? (d(), h(q(a(j).customComponent[u.item.type]?.form || a(j).customComponent[u.item.type]), V({
1018
1018
  key: 7,
1019
1019
  modelValue: e.form[u.item.key],
1020
1020
  "onUpdate:modelValue": (k) => e.form[u.item.key] = k,
1021
1021
  ref_for: !0
1022
- }, e.getBind(u.item), z(e.getOn(u.item)), {
1022
+ }, e.getBind(u.item), $(e.getOn(u.item)), {
1023
1023
  disabled: e.getDisabled(u.item)
1024
1024
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0)
1025
1025
  ]),
@@ -1036,7 +1036,7 @@ const Ee = {
1036
1036
  key: 0,
1037
1037
  class: "form-tip-text",
1038
1038
  innerHTML: typeof u.item.form?.tipText == "function" ? u.item.form?.tipText(e.form, e.type) : u.item.form?.tipText
1039
- }, null, 8, Le)) : v("", !0)
1039
+ }, null, 8, Ne)) : v("", !0)
1040
1040
  ])
1041
1041
  ]),
1042
1042
  C(r.$slots, "form-" + u.item.key + "-end", {
@@ -1059,7 +1059,7 @@ const Ee = {
1059
1059
  }, 8, ["model", "rules"]));
1060
1060
  }
1061
1061
  });
1062
- class Be {
1062
+ class Je {
1063
1063
  /**
1064
1064
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1065
1065
  *
@@ -1067,19 +1067,43 @@ class Be {
1067
1067
  * @param columns - 列配置数组,需包含 `key`(数据字段)和 `label`(Excel 表头)
1068
1068
  * @param fileName - 文件名(不含扩展名),支持字符串或返回字符串的函数;默认生成「导出数据_日期_时间戳」
1069
1069
  */
1070
- static exportToExcel = async (o, p, n) => {
1070
+ static exportToExcel = async (o, f, n) => {
1071
1071
  if (!o || o.length === 0) return;
1072
1072
  const l = await M.loadModule("xlsx"), t = o.map((s) => {
1073
1073
  const m = {};
1074
- return p.forEach((c) => {
1074
+ return f.forEach((c) => {
1075
1075
  m[c.label] = s[c.key];
1076
1076
  }), m;
1077
1077
  }), e = l.utils.json_to_sheet(t), r = l.utils.book_new();
1078
1078
  l.utils.book_append_sheet(r, e, "Sheet1"), n ? typeof n == "function" && (n = n()) : n = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, l.writeFile(r, `${n}.xlsx`);
1079
1079
  };
1080
1080
  }
1081
- const H = M.EDialog, Re = (i) => {
1082
- const o = W(), p = W(), n = W(), l = re({
1081
+ class x {
1082
+ /**
1083
+ * 删除对象所有属性
1084
+ * @param obj 对象
1085
+ * @returns
1086
+ */
1087
+ static delAllKey = (o) => {
1088
+ Object.keys(o).forEach((f) => {
1089
+ delete o[f];
1090
+ });
1091
+ };
1092
+ /**
1093
+ * 设置目标对象属性值为源对象属性值
1094
+ * @param a 目标对象
1095
+ * @param b 源对象
1096
+ * @param delAll 是否删除目标对象所有属性
1097
+ * @returns
1098
+ */
1099
+ static setValue = (o, f, n = !1) => {
1100
+ n && x.delAllKey(o), Object.keys(f).forEach((l) => {
1101
+ o[l] !== f[l] && (o[l] = f[l]);
1102
+ });
1103
+ };
1104
+ }
1105
+ const K = M.EDialog, qe = (i) => {
1106
+ const o = J(), f = J(), n = J(), l = de({
1083
1107
  option: i.option,
1084
1108
  /** 查询区域相关配置对象 */
1085
1109
  search: {
@@ -1106,9 +1130,11 @@ const H = M.EDialog, Re = (i) => {
1106
1130
  /** 重置搜索表单 */
1107
1131
  reset: () => {
1108
1132
  const t = l.search.formDefault;
1109
- Object.keys(t).forEach((e) => {
1110
- i.option.search?.resetMode === "none" ? t[e] = void 0 : t[e] = l.search.formDefault[e];
1111
- }), l.search.form = ObjectUtil.deepMerge(t, {}), l.page.num = 1, i.option.init !== !1 && l.table.getList();
1133
+ Object.keys(t).forEach((r) => {
1134
+ i.option.search?.resetMode === "none" ? t[r] = void 0 : t[r] = l.search.formDefault[r];
1135
+ });
1136
+ const e = ObjectUtil.deepMerge(t, {});
1137
+ x.setValue(l.search.form, e, !0), l.page.num = 1, i.option.init !== !1 && l.table.getList();
1112
1138
  },
1113
1139
  /** 提交搜索表单 */
1114
1140
  submit: () => {
@@ -1122,19 +1148,19 @@ const H = M.EDialog, Re = (i) => {
1122
1148
  /** 总条数 */
1123
1149
  total: 0,
1124
1150
  /** 分页控件的布局方式 */
1125
- layout: i.option.page?.layout || T.config.pagination.layout,
1151
+ layout: i.option.page?.layout || F.config.pagination.layout,
1126
1152
  /** 是否显示到工具栏 默认不显示 配置后show属性无效 */
1127
- showTools: i.option.page?.showTools || T.config.pagination.showTools,
1153
+ showTools: i.option.page?.showTools || F.config.pagination.showTools,
1128
1154
  /** 当前每页条数 */
1129
- size: i.option.page?.size || T.config.pagination.size,
1155
+ size: i.option.page?.size || F.config.pagination.size,
1130
1156
  /** 支持切换的每页条数选项 */
1131
- sizeList: i.option.page?.sizeList || T.config.pagination.pageSizes,
1157
+ sizeList: i.option.page?.sizeList || F.config.pagination.pageSizes,
1132
1158
  /** 分页器计数 */
1133
- pagerCount: i.option.page?.pagerCount || T.config.pagination.pagerCount,
1159
+ pagerCount: i.option.page?.pagerCount || F.config.pagination.pagerCount,
1134
1160
  /** 获取分页查询参数 */
1135
1161
  getQuery: (t = {}) => ({
1136
- [T.config.field.page.size]: t.size || l.page.size,
1137
- [T.config.field.page.num]: t.num || l.page.num,
1162
+ [F.config.field.page.size]: t.size || l.page.size,
1163
+ [F.config.field.page.num]: t.num || l.page.num,
1138
1164
  ...l.search.getFormData()
1139
1165
  })
1140
1166
  },
@@ -1212,22 +1238,22 @@ const H = M.EDialog, Re = (i) => {
1212
1238
  await l.initApiData("init");
1213
1239
  let e = {};
1214
1240
  if (l.table.sort.prop) {
1215
- const { props: g, order: S } = T.config.table.sort;
1241
+ const { props: p, order: z } = F.config.table.sort;
1216
1242
  e = {
1217
- [g.field]: l.table.sort.prop,
1218
- [S.field]: l.table.sort.order
1243
+ [p.field]: l.table.sort.prop,
1244
+ [z.field]: l.table.sort.order
1219
1245
  };
1220
1246
  }
1221
1247
  const r = await t({
1222
1248
  ...l.page.getQuery(),
1223
1249
  ...e
1224
- }), s = T.config.field.result, m = r.data || { [s.list]: r };
1250
+ }), s = F.config.field.result, m = r.data || { [s.list]: r };
1225
1251
  let c = (Array.isArray(m[s.list]), m[s.list]);
1226
- const u = l.update.formColumn.flat(), f = ObjectUtil.deepMerge({ data: c }, {}).data.map((g) => (Object.keys(g).forEach((B) => {
1227
- const F = u.find((R) => R.item.key === B);
1228
- F && ["select", "radio"].includes(F.item.type) && (F.item.table.format || (F.item.table.format = (R) => F.item.options[F.item.type].data?.find((Y) => Y.value == R[B])?.label || R[B]));
1229
- }), g));
1230
- l.table.data = i.option.data ? await i.option.data(f, c) : f, l.page.total = m[s.total] || 0;
1252
+ const u = l.update.formColumn.flat(), y = ObjectUtil.deepMerge({ data: c }, {}).data.map((p) => (Object.keys(p).forEach((B) => {
1253
+ const L = u.find((R) => R.item.key === B);
1254
+ L && ["select", "radio"].includes(L.item.type) && (L.item.table.format || (L.item.table.format = (R) => L.item.options[L.item.type].data?.find((H) => H.value == R[B])?.label || R[B]));
1255
+ }), p));
1256
+ l.table.data = i.option.data ? await i.option.data(y, c) : y, l.page.total = m[s.total] || 0;
1231
1257
  } catch (e) {
1232
1258
  console.error(e);
1233
1259
  } finally {
@@ -1248,28 +1274,28 @@ const H = M.EDialog, Re = (i) => {
1248
1274
  const r = n.value;
1249
1275
  if (r?.clearSelection(), !r || !t?.length) return;
1250
1276
  const s = i.option.table?.rowKey, m = l.table.data, c = (u) => {
1251
- const k = (f) => {
1252
- for (const g of f) {
1277
+ const k = (y) => {
1278
+ for (const p of y) {
1253
1279
  if (s != null && s !== "") {
1254
- if (g[s] === u[s]) return g;
1255
- } else if (g === u)
1256
- return g;
1257
- if (Array.isArray(g.children) && g.children.length) {
1258
- const S = k(g.children);
1259
- if (S !== void 0) return S;
1280
+ if (p[s] === u[s]) return p;
1281
+ } else if (p === u)
1282
+ return p;
1283
+ if (Array.isArray(p.children) && p.children.length) {
1284
+ const z = k(p.children);
1285
+ if (z !== void 0) return z;
1260
1286
  }
1261
1287
  }
1262
1288
  };
1263
1289
  return k(m);
1264
1290
  };
1265
- ke(() => {
1291
+ Oe(() => {
1266
1292
  t.forEach((u) => {
1267
1293
  const k = c(u) ?? u;
1268
1294
  if (e) {
1269
- const f = () => {
1295
+ const y = () => {
1270
1296
  r.toggleRowSelection(k, !0, !1);
1271
1297
  };
1272
- e(u) !== !1 && f();
1298
+ e(u) !== !1 && y();
1273
1299
  } else
1274
1300
  r.toggleRowSelection(k, !0, !1);
1275
1301
  });
@@ -1284,8 +1310,8 @@ const H = M.EDialog, Re = (i) => {
1284
1310
  order: "",
1285
1311
  /** 排序变更回调 */
1286
1312
  change: (t) => {
1287
- T.config.table.sort.resetPage && (l.page.num = 1);
1288
- const e = T.config.table.sort;
1313
+ F.config.table.sort.resetPage && (l.page.num = 1);
1314
+ const e = F.config.table.sort;
1289
1315
  if (e.change) {
1290
1316
  e.change(t, l);
1291
1317
  return;
@@ -1308,7 +1334,7 @@ const H = M.EDialog, Re = (i) => {
1308
1334
  },
1309
1335
  {}
1310
1336
  ), m = i.option.tools?.export || {};
1311
- m.before && m.before(s), Be.exportToExcel(s.data, s.columns, m.fileName);
1337
+ m.before && m.before(s), Je.exportToExcel(s.data, s.columns, m.fileName);
1312
1338
  },
1313
1339
  /** 获取当前选中项进行导出 */
1314
1340
  select: async () => {
@@ -1365,7 +1391,7 @@ const H = M.EDialog, Re = (i) => {
1365
1391
  num: 1
1366
1392
  })
1367
1393
  });
1368
- return (e.data || { [T.config.field.result.list]: e })[T.config.field.result.list];
1394
+ return (e.data || { [F.config.field.result.list]: e })[F.config.field.result.list];
1369
1395
  } catch (t) {
1370
1396
  console.error(t);
1371
1397
  } finally {
@@ -1393,7 +1419,7 @@ const H = M.EDialog, Re = (i) => {
1393
1419
  /** 弹窗loading */
1394
1420
  loading: !1,
1395
1421
  /** 当前操作类型,插入或修改 */
1396
- type: H.Update,
1422
+ type: K.Update,
1397
1423
  /** 当前操作表单数据 */
1398
1424
  form: {},
1399
1425
  /** 表单默认值 */
@@ -1401,12 +1427,12 @@ const H = M.EDialog, Re = (i) => {
1401
1427
  /** 表单所有列,二维数组结构按行分组 */
1402
1428
  formColumn: [],
1403
1429
  /** 判断是否禁用当前字段 */
1404
- getDisabled: (t, e = !1) => i.option.table?.editMode && e ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : l.update.type === H.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[l.update.type === H.Add ? "create" : "update"],
1430
+ getDisabled: (t, e = !1) => i.option.table?.editMode && e ? t.disabled?.table === void 0 ? !1 : t.disabled?.table : l.update.type === K.View ? t.disabled?.view === void 0 ? !0 : t.disabled?.view : t.disabled?.[l.update.type === K.Add ? "create" : "update"],
1405
1431
  /** 获取表单组件绑定属性 */
1406
- getBind: (t) => t.options?.[l.update.type === H.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1432
+ getBind: (t) => t.options?.[l.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type] || t.options?.[t.type] || {},
1407
1433
  /** 获取表单组件事件属性 */
1408
1434
  getOn: (t, e) => {
1409
- const s = t.options?.[l.update.type === H.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1435
+ const s = t.options?.[l.update.type === K.Add ? "formAdd" : "formUpdate"]?.[t.type]?.on || t.options?.[t.type]?.on || {}, m = {};
1410
1436
  return Object.keys(s).forEach((c) => {
1411
1437
  const u = s[c];
1412
1438
  typeof u == "function" ? m[c] = function(...k) {
@@ -1450,8 +1476,10 @@ const H = M.EDialog, Re = (i) => {
1450
1476
  M.loading(!0);
1451
1477
  try {
1452
1478
  l.update.type = t;
1453
- const r = t === H.Add;
1454
- l.update.edit.data = e, l.update.title = w.tCurd(r ? "add" : t === H.View ? "view" : "edit"), l.update.form = ObjectUtil.deepMerge(r ? l.update.formDefault : e, {}), await l.initApiData("update"), await i.option.form?.openBefore?.(l.update.form, l.update), (!i.option.table?.inlineEdit || r) && (l.update.show = !0, l.update.showContent = !0), i.option.form?.openAfter?.(l.update.form, l.update);
1479
+ const r = t === K.Add;
1480
+ l.update.edit.data = e, l.update.title = w.tCurd(r ? "add" : t === K.View ? "view" : "edit");
1481
+ const s = ObjectUtil.deepMerge(r ? l.update.formDefault : e, {});
1482
+ x.setValue(l.update.form, s, !0), await l.initApiData("update"), await i.option.form?.openBefore?.(l.update.form, l.update), (!i.option.table?.inlineEdit || r) && (l.update.show = !0, l.update.showContent = !0), i.option.form?.openAfter?.(l.update.form, l.update);
1455
1483
  } catch (r) {
1456
1484
  console.error(r);
1457
1485
  } finally {
@@ -1462,10 +1490,10 @@ const H = M.EDialog, Re = (i) => {
1462
1490
  /** 提交增改表单操作 */
1463
1491
  submit: () => {
1464
1492
  FunUtil.throttle(async () => {
1465
- await p.value?.validate(async (s, m) => new Promise((c, u) => {
1493
+ await f.value?.validate(async (s, m) => new Promise((c, u) => {
1466
1494
  s || (M.fail(w.tCurd("checkFormData")), u(!1)), c();
1467
1495
  })), l.update.loading = !0;
1468
- const t = l.update.type === H.Add ? i.option.api.create : i.option.api.update;
1496
+ const t = l.update.type === K.Add ? i.option.api.create : i.option.api.update;
1469
1497
  try {
1470
1498
  await i.option.form?.submitBefore?.(l.update.form, l.update);
1471
1499
  } catch {
@@ -1561,7 +1589,7 @@ const H = M.EDialog, Re = (i) => {
1561
1589
  let c = await s.options?.[s.type]?.dataApi?.(l.update.form, l.update.type);
1562
1590
  if (c) {
1563
1591
  const u = s.options?.[s.type]?.dataPath;
1564
- !Array.isArray(c) && u && (c = ObjectUtil.getPathValue(c, u)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.search[s.options.search.type ?? s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, l.apiDataMap[s.key] = c;
1592
+ !Array.isArray(c) && u && (c = ObjectUtil.getPathValue(c, u)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.search[s.options.search.type ?? s.type] || (s.options.search[s.options.search.type ?? s.type] = {}), s.options.search[s.options.search.type ?? s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, l.apiDataMap[s.key] = c;
1565
1593
  }
1566
1594
  } catch {
1567
1595
  }
@@ -1575,7 +1603,7 @@ const H = M.EDialog, Re = (i) => {
1575
1603
  },
1576
1604
  /** 初始化curd配置(option默认值合并等) */
1577
1605
  initCurdConfig: () => {
1578
- const t = ObjectUtil.deepMerge(T.config, {});
1606
+ const t = ObjectUtil.deepMerge(F.config, {});
1579
1607
  t.table.emptyText = w.tCurd("noData"), i.option.size = i.option.size || {}, t.table.size = i.option.size.table || t.size.table, t.form.size = i.option.size.form || t.size.form, t.size.search = i.option.size.search || t.size.search;
1580
1608
  const e = ObjectUtil.deepMerge(t, i.option || {});
1581
1609
  Object.keys(e).forEach((r) => {
@@ -1588,7 +1616,7 @@ const H = M.EDialog, Re = (i) => {
1588
1616
  * @returns
1589
1617
  */
1590
1618
  initColumnOptions: () => {
1591
- let t = JSONUtil.cp(T.config.columnConfig);
1619
+ let t = JSONUtil.cp(F.config.columnConfig);
1592
1620
  t.options = ObjectUtil.deepMerge(
1593
1621
  {
1594
1622
  switch: {
@@ -1623,10 +1651,10 @@ const H = M.EDialog, Re = (i) => {
1623
1651
  if (!i.option.api.update && !c.tableConfig?.api) return;
1624
1652
  const u = m[i.option.table?.rowKey];
1625
1653
  c.loadingMap || (c.loadingMap = {}), c.loadingMap[u] || (c.loadingMap[u] = { loading: !1 }), c.loadingMap[u].loading = !0;
1626
- const k = m[s] === c.activeValue ? c.inactiveValue : c.activeValue, f = c.tableConfig?.api ? c.tableConfig.api : i.option.api.update;
1627
- if (!f) return;
1654
+ const k = m[s] === c.activeValue ? c.inactiveValue : c.activeValue, y = c.tableConfig?.api ? c.tableConfig.api : i.option.api.update;
1655
+ if (!y) return;
1628
1656
  try {
1629
- await f(
1657
+ await y(
1630
1658
  {
1631
1659
  ...m,
1632
1660
  [s]: k
@@ -1653,7 +1681,7 @@ const H = M.EDialog, Re = (i) => {
1653
1681
  },
1654
1682
  getColumnSpan: (t, e) => {
1655
1683
  if (t.item.form?.spanCol) {
1656
- const r = T.config.form.defaultSpan, m = e.filter((c) => !M.isFun(c.item.show?.form, l.update.form, l.update.type)).reduce((c, u) => c + (u.item.form?.span || r), 0);
1684
+ const r = F.config.form.defaultSpan, m = e.filter((c) => !M.isFun(c.item.show?.form, l.update.form, l.update.type)).reduce((c, u) => c + (u.item.form?.span || r), 0);
1657
1685
  return (t.item?.form.span || r) + m;
1658
1686
  }
1659
1687
  return t.item.form.span;
@@ -1667,92 +1695,125 @@ const H = M.EDialog, Re = (i) => {
1667
1695
  };
1668
1696
  const e = [], r = i.option.form?.maxSpan || 12, s = i.option.form?.defaultSpan || r / 2;
1669
1697
  let m = [];
1670
- const c = (f) => {
1671
- if (f.children) {
1672
- l.table.column.show.list.push(f.key), f.children.forEach((g) => {
1673
- c(g);
1698
+ const c = (p) => {
1699
+ if (p.children) {
1700
+ l.table.column.show.list.push(p.key), p.children.forEach((z) => {
1701
+ c(z);
1674
1702
  });
1675
1703
  return;
1676
1704
  }
1677
- if (l.update.formDefault[f.key] = f.value, f.table.table && (f.show.table && l.table.column.show.list.push(f.key), f.table.table && l.table.column.show.listSource.push(f.key)), !(f.isForm && typeof f.show?.form == "boolean") || f.show?.form) {
1678
- f.form = f.form || { span: s }, f.form.span = f.form.span ?? s;
1679
- let g = f.form.span, S = m.reduce((F, R) => F + R.span, g);
1680
- const B = m.length;
1681
- if (m.push({ item: f, span: g }), (B === 1 && m[0].span === 0 || S >= r || g === 0 && B > 1) && (e.push(m), m = []), f.rules) {
1682
- const F = {
1705
+ if (l.update.formDefault[p.key] = p.value, p.table.table && (p.show.table && l.table.column.show.list.push(p.key), p.table.table && l.table.column.show.listSource.push(p.key)), !(p.isForm && typeof p.show?.form == "boolean") || p.show?.form) {
1706
+ p.form = p.form || { span: s }, p.form.span = p.form.span ?? s;
1707
+ let z = p.form.span, B = m.reduce((R, H) => R + H.span, z);
1708
+ const L = m.length;
1709
+ if (m.push({ item: p, span: z }), (L === 1 && m[0].span === 0 || B >= r || z === 0 && L > 1) && (e.push(m), m = []), p.rules) {
1710
+ const R = {
1683
1711
  input: w.tCurd("placeholderInput"),
1684
1712
  select: w.tCurd("placeholderSelect")
1685
- }, R = (F[f.type] || F.input) + f.label;
1686
- l.update.rules[f.key] = typeof f.rules == "boolean" ? [
1713
+ }, H = (R[p.type] || R.input) + p.label, be = typeof p.rules == "boolean" ? [
1687
1714
  {
1688
1715
  required: !0,
1689
- message: R,
1716
+ message: H,
1690
1717
  trigger: "blur"
1691
1718
  }
1692
- ] : f.rules;
1719
+ ] : p.rules;
1720
+ l.update.rules[p.key] = be.map((te) => {
1721
+ if (te.validator) {
1722
+ const we = te.validator;
1723
+ return {
1724
+ ...te,
1725
+ validator: (ke, ve, Ce) => we(ke, ve, Ce, l.update.form)
1726
+ };
1727
+ }
1728
+ return te;
1729
+ });
1693
1730
  }
1694
1731
  }
1695
- }, u = (f, g) => {
1696
- f.isForm = g, Array.isArray(f.children) && f.children.forEach((S) => u(S, g));
1732
+ }, u = (p, z) => {
1733
+ p.isForm = z, Array.isArray(p.children) && p.children.forEach((B) => u(B, z));
1697
1734
  };
1698
- t.column.forEach((f) => {
1699
- f.isForm = !0, u(f, !0), c(f);
1700
- }), i.option.table?.column?.forEach((f) => {
1701
- u(f, !1), c(f);
1702
- }), l.search.column.list = t.column.concat(t.table?.column || []), l.table.column.list = l.search.column.list.filter((f) => f.table?.table), l.search.column.list.sort((f, g) => f.sort?.search - g.sort?.search), l.table.column.list.sort((f, g) => f.sort?.table - g.sort?.table), m.length > 0 && e.push(m), l.update.formColumn = e;
1735
+ t.column.forEach((p) => {
1736
+ p.isForm = !0, u(p, !0), c(p);
1737
+ }), i.option.table?.column?.forEach((p) => {
1738
+ u(p, !1), c(p);
1739
+ }), l.search.column.list = t.column.concat(t.table?.column || []), l.table.column.list = l.search.column.list.filter((p) => p.table?.table), l.search.column.list.sort((p, z) => p.sort?.search - z.sort?.search), l.table.column.list.sort((p, z) => p.sort?.table - z.sort?.table), m.length > 0 && e.push(m), l.update.formColumn = e;
1703
1740
  const k = i.option.search?.formDefault;
1704
- k && Object.keys(k).forEach((f) => {
1705
- l.search.formDefault[f] = k[f];
1706
- }), t.column.forEach((f) => {
1707
- f.show?.search || (l.search.formDefault[f.key] = void 0);
1708
- }), l.search.form = ObjectUtil.deepMerge(l.search.formDefault, {});
1741
+ k && Object.keys(k).forEach((p) => {
1742
+ l.search.formDefault[p] = k[p];
1743
+ }), t.column.forEach((p) => {
1744
+ p.show?.search || (l.search.formDefault[p.key] = void 0);
1745
+ });
1746
+ const y = ObjectUtil.deepMerge(l.search.formDefault, {});
1747
+ x.setValue(l.search.form, y, !0);
1709
1748
  }
1710
1749
  });
1711
- return l.init(), fe(() => {
1750
+ return l.init(), he(() => {
1712
1751
  i.option.init !== !1 && l.table.getList();
1713
- }), { conf: l, switchConfirmRef: o, ruleFormRef: p, tableRef: n };
1714
- }, Ie = { class: "dialog-footer" }, He = /* @__PURE__ */ K({
1752
+ }), i.form && pe(
1753
+ () => l.update.form,
1754
+ (t) => {
1755
+ Object.keys(l.update.form).forEach((e) => {
1756
+ i.form[e] = l.update.form[e];
1757
+ });
1758
+ },
1759
+ {
1760
+ deep: !0,
1761
+ immediate: !0
1762
+ }
1763
+ ), i.searchForm && pe(
1764
+ () => l.search.form,
1765
+ (t) => {
1766
+ Object.keys(l.search.form).forEach((e) => {
1767
+ i.searchForm[e] = l.search.form[e];
1768
+ });
1769
+ },
1770
+ {
1771
+ deep: !0,
1772
+ immediate: !0
1773
+ }
1774
+ ), { conf: l, switchConfirmRef: o, ruleFormRef: f, tableRef: n };
1775
+ }, Qe = { class: "dialog-footer" }, Ge = /* @__PURE__ */ N({
1715
1776
  __name: "switchConfirm",
1716
1777
  props: {
1717
1778
  size: {}
1718
1779
  },
1719
1780
  setup(i, { expose: o }) {
1720
- const p = W(!1), n = W("确认修改"), l = W("确认要修改状态吗?");
1781
+ const f = J(!1), n = J("确认修改"), l = J("确认要修改状态吗?");
1721
1782
  let t = null, e = null;
1722
- const r = (c) => (c?.title && (n.value = c.title), c?.content && (l.value = c.content), p.value = !0, new Promise((u, k) => {
1783
+ const r = (c) => (c?.title && (n.value = c.title), c?.content && (l.value = c.content), f.value = !0, new Promise((u, k) => {
1723
1784
  t = u, e = k;
1724
1785
  })), s = () => {
1725
- p.value = !1, t?.(!0), t = null, e = null;
1786
+ f.value = !1, t?.(!0), t = null, e = null;
1726
1787
  }, m = () => {
1727
- p.value = !1, e?.(new Error("用户取消操作")), t = null, e = null;
1788
+ f.value = !1, e?.(new Error("用户取消操作")), t = null, e = null;
1728
1789
  };
1729
1790
  return o({
1730
1791
  open: r
1731
1792
  }), (c, u) => {
1732
- const k = _("el-form");
1733
- return d(), h(a(ae), {
1734
- modelValue: p.value,
1735
- "onUpdate:modelValue": u[0] || (u[0] = (f) => p.value = f),
1793
+ const k = ee("el-form");
1794
+ return d(), h(a(ne), {
1795
+ modelValue: f.value,
1796
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => f.value = y),
1736
1797
  title: n.value,
1737
1798
  "close-on-click-modal": !1,
1738
1799
  width: "400px"
1739
1800
  }, {
1740
- footer: y(() => [
1741
- U(k, { size: c.size }, {
1742
- default: y(() => [
1743
- E("span", Ie, [
1744
- U(a(L), { onClick: m }, {
1745
- default: y(() => u[1] || (u[1] = [
1746
- D("取消")
1801
+ footer: g(() => [
1802
+ O(k, { size: c.size }, {
1803
+ default: g(() => [
1804
+ U("span", Qe, [
1805
+ O(a(T), { onClick: m }, {
1806
+ default: g(() => u[1] || (u[1] = [
1807
+ E("取消")
1747
1808
  ])),
1748
1809
  _: 1
1749
1810
  }),
1750
- U(a(L), {
1811
+ O(a(T), {
1751
1812
  type: "primary",
1752
1813
  onClick: s
1753
1814
  }, {
1754
- default: y(() => u[2] || (u[2] = [
1755
- D("确认")
1815
+ default: g(() => u[2] || (u[2] = [
1816
+ E("确认")
1756
1817
  ])),
1757
1818
  _: 1
1758
1819
  })
@@ -1761,83 +1822,83 @@ const H = M.EDialog, Re = (i) => {
1761
1822
  _: 1
1762
1823
  }, 8, ["size"])
1763
1824
  ]),
1764
- default: y(() => [
1765
- E("div", null, O(l.value), 1)
1825
+ default: g(() => [
1826
+ U("div", null, S(l.value), 1)
1766
1827
  ]),
1767
1828
  _: 1
1768
1829
  }, 8, ["modelValue", "title"]);
1769
1830
  };
1770
1831
  }
1771
- }), X = (i, o) => {
1772
- const p = i.__vccOpts || i;
1832
+ }), Y = (i, o) => {
1833
+ const f = i.__vccOpts || i;
1773
1834
  for (const [n, l] of o)
1774
- p[n] = l;
1775
- return p;
1776
- }, Pe = {}, Ke = {
1835
+ f[n] = l;
1836
+ return f;
1837
+ }, Xe = {}, Ye = {
1777
1838
  xmlns: "http://www.w3.org/2000/svg",
1778
1839
  viewBox: "0 0 1024 1024"
1779
1840
  };
1780
- function Ne(i, o) {
1781
- return d(), b("svg", Ke, o[0] || (o[0] = [
1782
- E("path", {
1841
+ function Ze(i, o) {
1842
+ return d(), b("svg", Ye, o[0] || (o[0] = [
1843
+ U("path", {
1783
1844
  fill: "currentColor",
1784
1845
  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"
1785
1846
  }, null, -1)
1786
1847
  ]));
1787
1848
  }
1788
- const We = /* @__PURE__ */ X(Pe, [["render", Ne]]), Je = ["innerHTML"], qe = /* @__PURE__ */ K({
1849
+ const xe = /* @__PURE__ */ Y(Xe, [["render", Ze]]), _e = ["innerHTML"], et = /* @__PURE__ */ N({
1789
1850
  __name: "text",
1790
1851
  props: {
1791
1852
  content: {},
1792
1853
  value: {}
1793
1854
  },
1794
1855
  setup(i) {
1795
- const o = i, p = me(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1796
- return (n, l) => typeof p.value == "object" ? (d(), h(J(p.value), { key: 0 })) : (d(), b("div", {
1856
+ const o = i, f = ge(() => typeof o.content == "function" ? o.content(o.value) : o.content);
1857
+ return (n, l) => typeof f.value == "object" ? (d(), h(q(f.value), { key: 0 })) : (d(), b("div", {
1797
1858
  key: 1,
1798
- innerHTML: p.value
1799
- }, null, 8, Je));
1859
+ innerHTML: f.value
1860
+ }, null, 8, _e));
1800
1861
  }
1801
- }), Qe = {}, Ge = {
1862
+ }), tt = {}, ot = {
1802
1863
  "data-v-58697b5c": "",
1803
1864
  xmlns: "http://www.w3.org/2000/svg",
1804
1865
  viewBox: "0 0 1024 1024"
1805
1866
  };
1806
- function Xe(i, o) {
1807
- return d(), b("svg", Ge, o[0] || (o[0] = [
1808
- E("path", {
1867
+ function at(i, o) {
1868
+ return d(), b("svg", ot, o[0] || (o[0] = [
1869
+ U("path", {
1809
1870
  fill: "currentColor",
1810
1871
  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"
1811
1872
  }, null, -1)
1812
1873
  ]));
1813
1874
  }
1814
- const Ye = /* @__PURE__ */ X(Qe, [["render", Xe]]), Ze = {}, xe = {
1875
+ const lt = /* @__PURE__ */ Y(tt, [["render", at]]), nt = {}, it = {
1815
1876
  "data-v-58697b5c": "",
1816
1877
  xmlns: "http://www.w3.org/2000/svg",
1817
1878
  viewBox: "0 0 1024 1024"
1818
1879
  };
1819
- function _e(i, o) {
1820
- return d(), b("svg", xe, o[0] || (o[0] = [
1821
- E("path", {
1880
+ function rt(i, o) {
1881
+ return d(), b("svg", it, o[0] || (o[0] = [
1882
+ U("path", {
1822
1883
  fill: "currentColor",
1823
1884
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"
1824
1885
  }, null, -1)
1825
1886
  ]));
1826
1887
  }
1827
- const et = /* @__PURE__ */ X(Ze, [["render", _e]]), tt = {}, ot = {
1888
+ const st = /* @__PURE__ */ Y(nt, [["render", rt]]), dt = {}, ut = {
1828
1889
  "data-v-58697b5c": "",
1829
1890
  xmlns: "http://www.w3.org/2000/svg",
1830
1891
  viewBox: "0 0 1024 1024"
1831
1892
  };
1832
- function at(i, o) {
1833
- return d(), b("svg", ot, o[0] || (o[0] = [
1834
- E("path", {
1893
+ function ft(i, o) {
1894
+ return d(), b("svg", ut, o[0] || (o[0] = [
1895
+ U("path", {
1835
1896
  fill: "currentColor",
1836
1897
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"
1837
1898
  }, null, -1)
1838
1899
  ]));
1839
1900
  }
1840
- const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-center table-header-label inline" }, it = { class: "table-header-tooltip" }, rt = ["innerHTML"], st = ["onClick"], dt = { key: 1 }, ut = ["onClick", "innerHTML"], pt = /* @__PURE__ */ K({
1901
+ const pt = /* @__PURE__ */ Y(dt, [["render", ft]]), ct = { class: "row flex-center table-header-label inline" }, mt = { class: "table-header-tooltip" }, ht = ["innerHTML"], yt = ["onClick"], gt = { key: 1 }, bt = ["onClick", "innerHTML"], wt = /* @__PURE__ */ N({
1841
1902
  __name: "tableColumn",
1842
1903
  props: {
1843
1904
  conf: {},
@@ -1845,44 +1906,44 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
1845
1906
  option: {}
1846
1907
  },
1847
1908
  setup(i) {
1848
- const o = M.isFun, p = ve().type;
1909
+ const o = M.isFun, f = Ue().type;
1849
1910
  return (n, l) => {
1850
- const t = _("el-tooltip");
1851
- return d(!0), b($, null, A(n.columnList, (e) => (d(), b($, {
1911
+ const t = ee("el-tooltip");
1912
+ return d(!0), b(D, null, A(n.columnList, (e) => (d(), b(D, {
1852
1913
  key: e.key
1853
1914
  }, [
1854
- n.conf.table.column.show.list.includes(e.key) && a(o)(e.show?.table, n.conf.table.data) ? (d(), b($, { key: 0 }, [
1855
- e.table?.header?.groupKey === void 0 || e.table.header.show ? (d(), h(a(ee), V({
1915
+ n.conf.table.column.show.list.includes(e.key) && a(o)(e.show?.table, n.conf.table.data) ? (d(), b(D, { key: 0 }, [
1916
+ e.table?.header?.groupKey === void 0 || e.table.header.show ? (d(), h(a(oe), V({
1856
1917
  key: 0,
1857
1918
  prop: e.key,
1858
1919
  label: e.label,
1859
1920
  ref_for: !0
1860
1921
  }, e.table), {
1861
- header: y(() => [
1922
+ header: g(() => [
1862
1923
  C(n.$slots, "table-header-" + e.key, { item: e }, () => [
1863
- E("div", nt, [
1924
+ U("div", ct, [
1864
1925
  e.table?.header?.tooltip ? (d(), h(t, {
1865
1926
  key: 0,
1866
1927
  effect: "dark",
1867
1928
  placement: "top"
1868
1929
  }, {
1869
- content: y(() => [
1870
- E("div", {
1930
+ content: g(() => [
1931
+ U("div", {
1871
1932
  innerHTML: e.table?.header?.tooltip
1872
- }, null, 8, rt)
1933
+ }, null, 8, ht)
1873
1934
  ]),
1874
- default: y(() => [
1875
- E("span", it, [
1876
- U(Ye)
1935
+ default: g(() => [
1936
+ U("span", mt, [
1937
+ O(lt)
1877
1938
  ])
1878
1939
  ]),
1879
1940
  _: 2
1880
1941
  }, 1024)) : v("", !0),
1881
- D(" " + O(e.label) + " ", 1),
1942
+ E(" " + S(e.label) + " ", 1),
1882
1943
  e.table?.header?.group !== void 0 ? (d(), b("span", {
1883
1944
  key: 1,
1884
1945
  class: "table-header-plus",
1885
- onClick: Ce(
1946
+ onClick: Se(
1886
1947
  () => {
1887
1948
  e.table.header.group = !e.table.header.group, n.columnList.forEach((r) => {
1888
1949
  r.table?.header?.groupKey === e.key && (r.table.header.show = !e.table.header.group);
@@ -1891,27 +1952,27 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
1891
1952
  ["stop"]
1892
1953
  )
1893
1954
  }, [
1894
- e.table.header.group ? (d(), h(et, { key: 0 })) : (d(), h(lt, { key: 1 }))
1895
- ], 8, st)) : v("", !0)
1955
+ e.table.header.group ? (d(), h(st, { key: 0 })) : (d(), h(pt, { key: 1 }))
1956
+ ], 8, yt)) : v("", !0)
1896
1957
  ])
1897
1958
  ])
1898
1959
  ]),
1899
- default: y(({ row: r }) => [
1900
- e.children ? (d(), b($, { key: 0 }, [
1901
- l[0] || (l[0] = D("   ")),
1902
- (d(), h(J(a(p)), {
1960
+ default: g(({ row: r }) => [
1961
+ e.children ? (d(), b(D, { key: 0 }, [
1962
+ l[0] || (l[0] = E("   ")),
1963
+ (d(), h(q(a(f)), {
1903
1964
  conf: n.conf,
1904
1965
  columnList: e.children,
1905
1966
  option: n.option
1906
- }, Q({ _: 2 }, [
1967
+ }, G({ _: 2 }, [
1907
1968
  A(n.$slots, (s, m) => ({
1908
1969
  name: m,
1909
- fn: y((c) => [
1970
+ fn: g((c) => [
1910
1971
  C(n.$slots, m, V({ ref_for: !0 }, c || {}))
1911
1972
  ])
1912
1973
  }))
1913
1974
  ]), 1032, ["conf", "columnList", "option"]))
1914
- ], 64)) : (d(), b($, { key: 1 }, [
1975
+ ], 64)) : (d(), b(D, { key: 1 }, [
1915
1976
  n.option.table?.editMode ? (d(), b("div", {
1916
1977
  key: 0,
1917
1978
  class: I(["row", ["table-edit-" + e.key]]),
@@ -1921,31 +1982,31 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
1921
1982
  row: r,
1922
1983
  item: e
1923
1984
  }),
1924
- e.type === "input" ? (d(), h(a(x), V({
1985
+ e.type === "input" ? (d(), h(a(_), V({
1925
1986
  key: 0,
1926
1987
  modelValue: r[e.key],
1927
1988
  "onUpdate:modelValue": (s) => r[e.key] = s,
1928
1989
  disabled: n.conf.update.getDisabled(e, !0),
1929
1990
  class: "col",
1930
1991
  ref_for: !0
1931
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r))), Q({ _: 2 }, [
1992
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r))), G({ _: 2 }, [
1932
1993
  e.options?.input?.prepend ? {
1933
1994
  name: "prepend",
1934
- fn: y(() => [
1935
- D(O(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
1995
+ fn: g(() => [
1996
+ E(S(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
1936
1997
  ]),
1937
1998
  key: "0"
1938
1999
  } : void 0
1939
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), h(a(G), V({
2000
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), h(a(X), V({
1940
2001
  key: 1,
1941
2002
  modelValue: r[e.key],
1942
2003
  "onUpdate:modelValue": (s) => r[e.key] = s,
1943
2004
  disabled: n.conf.update.getDisabled(e, !0),
1944
2005
  class: "col",
1945
2006
  ref_for: !0
1946
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r))), {
1947
- default: y(() => [
1948
- (d(!0), b($, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), h(a(N), {
2007
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r))), {
2008
+ default: g(() => [
2009
+ (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), h(a(W), {
1949
2010
  key: s.value,
1950
2011
  label: s.label,
1951
2012
  value: s.value
@@ -1959,36 +2020,36 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
1959
2020
  disabled: n.conf.update.getDisabled(e, !0),
1960
2021
  class: "col",
1961
2022
  ref_for: !0
1962
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r))), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0),
2023
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r))), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0),
1963
2024
  C(n.$slots, "table-edit-right-" + e.key, {
1964
2025
  row: r,
1965
2026
  item: e
1966
2027
  })
1967
- ], 2)) : (d(), b($, { key: 1 }, [
1968
- n.conf.update.type === a(M).EDialog.Update && a(o)(e.show?.form, n.conf.update.form, a(M).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === r[n.option.table?.rowKey] && (e.type === "input" || e.type === "select") ? (d(), b($, { key: 0 }, [
1969
- e.type === "input" ? (d(), h(a(x), V({
2028
+ ], 2)) : (d(), b(D, { key: 1 }, [
2029
+ n.conf.update.type === a(M).EDialog.Update && a(o)(e.show?.form, n.conf.update.form, a(M).EDialog.Update) && n.option.table?.inlineEdit && n.conf.update.form[n.option.table?.rowKey] === r[n.option.table?.rowKey] && (e.type === "input" || e.type === "select") ? (d(), b(D, { key: 0 }, [
2030
+ e.type === "input" ? (d(), h(a(_), V({
1970
2031
  key: 0,
1971
2032
  modelValue: n.conf.update.form[e.key],
1972
2033
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
1973
2034
  disabled: n.conf.update.getDisabled(e, !0),
1974
2035
  ref_for: !0
1975
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r)), { style: { width: "100%" } }), Q({ _: 2 }, [
2036
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r)), { style: { width: "100%" } }), G({ _: 2 }, [
1976
2037
  e.options?.input?.prepend ? {
1977
2038
  name: "prepend",
1978
- fn: y(() => [
1979
- D(O(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
2039
+ fn: g(() => [
2040
+ E(S(typeof e.options?.input?.prepend == "function" ? e.options?.input?.prepend(r) : e.options?.input?.prepend), 1)
1980
2041
  ]),
1981
2042
  key: "0"
1982
2043
  } : void 0
1983
- ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), h(a(G), V({
2044
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (d(), h(a(X), V({
1984
2045
  key: 1,
1985
2046
  modelValue: n.conf.update.form[e.key],
1986
2047
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
1987
2048
  disabled: n.conf.update.getDisabled(e, !0),
1988
2049
  ref_for: !0
1989
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r)), { style: { width: "100%" } }), {
1990
- default: y(() => [
1991
- (d(!0), b($, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), h(a(N), {
2050
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r)), { style: { width: "100%" } }), {
2051
+ default: g(() => [
2052
+ (d(!0), b(D, null, A(e.options?.search?.select?.data || e.options?.select?.data, (s) => (d(), h(a(W), {
1992
2053
  key: s.value,
1993
2054
  label: s.label,
1994
2055
  value: s.value
@@ -2000,7 +2061,7 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2000
2061
  modelValue: n.conf.update.form[e.key],
2001
2062
  "onUpdate:modelValue": (s) => n.conf.update.form[e.key] = s,
2002
2063
  ref_for: !0
2003
- }, n.conf.update.getBind(e), z(n.conf.update.getOn(e, r)), {
2064
+ }, n.conf.update.getBind(e), $(n.conf.update.getOn(e, r)), {
2004
2065
  disabled: n.conf.update.getDisabled(e, !0)
2005
2066
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : v("", !0)
2006
2067
  ], 64)) : C(n.$slots, "table-" + e.key, {
@@ -2008,12 +2069,12 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2008
2069
  row: r,
2009
2070
  item: e
2010
2071
  }, () => [
2011
- a(j).customComponent[e.type ?? ""]?.table ? (d(), h(J(a(j).customComponent[e.type ?? ""]?.table), V({
2072
+ a(j).customComponent[e.type ?? ""]?.table ? (d(), h(q(a(j).customComponent[e.type ?? ""]?.table), V({
2012
2073
  key: 0,
2013
2074
  modelValue: r[e.key],
2014
2075
  "onUpdate:modelValue": (s) => r[e.key] = s,
2015
2076
  ref_for: !0
2016
- }, e.options?.[e.type ?? ""], z(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (d(), b($, { key: 1 }, [
2077
+ }, e.options?.[e.type ?? ""], $(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (d(), b(D, { key: 1 }, [
2017
2078
  e.options?.switch?.tableConfig?.change ? (d(), h(a(Z), V({
2018
2079
  key: 0,
2019
2080
  modelValue: r[e.key],
@@ -2021,16 +2082,16 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2021
2082
  loading: e.options?.switch?.loadingMap?.[r[n.option.table?.rowKey]]?.loading,
2022
2083
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, r),
2023
2084
  ref_for: !0
2024
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (d(), b("span", dt, O(r[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2085
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (d(), b("span", gt, S(r[e.key] === e.options?.switch?.activeValue ? e.options?.switch?.activeText : e.options?.switch?.inactiveText), 1))
2025
2086
  ], 64)) : (d(), b("span", {
2026
2087
  key: 2,
2027
- style: ce({
2088
+ style: ye({
2028
2089
  "--table-text-click-color": e.table?.click?.color
2029
2090
  }),
2030
2091
  class: I({ "table-text-click": e.table?.click?.callback }),
2031
2092
  onClick: (s) => e.table?.click?.callback?.(r),
2032
2093
  innerHTML: e.table?.format ? e.table?.format(r) : r[e.key]
2033
- }, null, 14, ut))
2094
+ }, null, 14, bt))
2034
2095
  ])
2035
2096
  ], 64))
2036
2097
  ], 64))
@@ -2041,110 +2102,110 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2041
2102
  ], 64))), 128);
2042
2103
  };
2043
2104
  }
2044
- }), ft = {
2105
+ }), kt = {
2045
2106
  class: "row form-item-content",
2046
2107
  style: { width: "100%" }
2047
- }, ct = { class: "col column form-item-content-item" }, mt = { class: "col" }, ht = ["innerHTML"], gt = /* @__PURE__ */ K({
2108
+ }, vt = { class: "col column form-item-content-item" }, Ct = { class: "col" }, Vt = ["innerHTML"], zt = /* @__PURE__ */ N({
2048
2109
  __name: "formColumn",
2049
2110
  props: {
2050
2111
  conf: {},
2051
2112
  item: {}
2052
2113
  },
2053
2114
  setup(i) {
2054
- return (o, p) => (d(), h(a(te), {
2115
+ return (o, f) => (d(), h(a(ae), {
2055
2116
  label: o.item.item.text?.form?.label ?? o.item.item.label,
2056
2117
  prop: o.item.item.key,
2057
2118
  "label-width": o.item.item.text?.form?.label == "" ? 0 : o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
2058
2119
  }, {
2059
- default: y(() => [
2060
- E("div", ft, [
2120
+ default: g(() => [
2121
+ U("div", kt, [
2061
2122
  C(o.$slots, "form-" + o.item.item.key + "-start", {
2062
2123
  row: o.conf.update.form,
2063
2124
  item: o.item.item
2064
2125
  }),
2065
- E("div", ct, [
2066
- E("div", mt, [
2126
+ U("div", vt, [
2127
+ U("div", Ct, [
2067
2128
  C(o.$slots, "form-" + o.item.item.key, {
2068
2129
  row: o.conf.update.form,
2069
2130
  item: o.item.item
2070
2131
  }, () => [
2071
- o.item.item.type === "input" ? (d(), h(a(x), V({
2132
+ o.item.item.type === "input" ? (d(), h(a(_), V({
2072
2133
  key: 0,
2073
2134
  modelValue: o.conf.update.form[o.item.item.key],
2074
- "onUpdate:modelValue": p[0] || (p[0] = (n) => o.conf.update.form[o.item.item.key] = n)
2075
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2135
+ "onUpdate:modelValue": f[0] || (f[0] = (n) => o.conf.update.form[o.item.item.key] = n)
2136
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2076
2137
  disabled: o.conf.update.getDisabled(o.item.item)
2077
- }), Q({ _: 2 }, [
2138
+ }), G({ _: 2 }, [
2078
2139
  o.item.item.options?.input?.prepend ? {
2079
2140
  name: "prepend",
2080
- fn: y(() => [
2081
- D(O(typeof o.item.item.options?.input?.prepend == "function" ? o.item.item.options?.input?.prepend(o.conf.update.form) : o.item.item.options?.input?.prepend), 1)
2141
+ fn: g(() => [
2142
+ E(S(typeof o.item.item.options?.input?.prepend == "function" ? o.item.item.options?.input?.prepend(o.conf.update.form) : o.item.item.options?.input?.prepend), 1)
2082
2143
  ]),
2083
2144
  key: "0"
2084
2145
  } : void 0
2085
2146
  ]), 1040, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (d(), h(a(Z), V({
2086
2147
  key: 1,
2087
2148
  modelValue: o.conf.update.form[o.item.item.key],
2088
- "onUpdate:modelValue": p[1] || (p[1] = (n) => o.conf.update.form[o.item.item.key] = n)
2089
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2149
+ "onUpdate:modelValue": f[1] || (f[1] = (n) => o.conf.update.form[o.item.item.key] = n)
2150
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2090
2151
  disabled: o.conf.update.getDisabled(o.item.item)
2091
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (d(), h(a(G), V({
2152
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (d(), h(a(X), V({
2092
2153
  key: 2,
2093
2154
  modelValue: o.conf.update.form[o.item.item.key],
2094
- "onUpdate:modelValue": p[2] || (p[2] = (n) => o.conf.update.form[o.item.item.key] = n)
2095
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2155
+ "onUpdate:modelValue": f[2] || (f[2] = (n) => o.conf.update.form[o.item.item.key] = n)
2156
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2096
2157
  disabled: o.conf.update.getDisabled(o.item.item),
2097
2158
  style: { width: "100%" }
2098
2159
  }), {
2099
- default: y(() => [
2100
- (d(!0), b($, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), h(a(N), {
2160
+ default: g(() => [
2161
+ (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), h(a(W), {
2101
2162
  key: n.value,
2102
2163
  label: n.label,
2103
2164
  value: n.value
2104
2165
  }, null, 8, ["label", "value"]))), 128))
2105
2166
  ]),
2106
2167
  _: 1
2107
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), h(a(le), V({
2168
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (d(), h(a(ie), V({
2108
2169
  key: 3,
2109
2170
  modelValue: o.conf.update.form[o.item.item.key],
2110
- "onUpdate:modelValue": p[3] || (p[3] = (n) => o.conf.update.form[o.item.item.key] = n)
2111
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2171
+ "onUpdate:modelValue": f[3] || (f[3] = (n) => o.conf.update.form[o.item.item.key] = n)
2172
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2112
2173
  disabled: o.conf.update.getDisabled(o.item.item),
2113
2174
  style: { width: "100%" }
2114
2175
  }), {
2115
- default: y(() => [
2116
- (d(!0), b($, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), h(a(ne), {
2176
+ default: g(() => [
2177
+ (d(!0), b(D, null, A(o.conf.update.getBind(o.item.item).data, (n) => (d(), h(a(re), {
2117
2178
  key: n.value,
2118
2179
  label: n.label,
2119
2180
  value: n.value
2120
2181
  }, null, 8, ["label", "value"]))), 128))
2121
2182
  ]),
2122
2183
  _: 1
2123
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), h(se, V({
2184
+ }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (d(), h(ue, V({
2124
2185
  key: 4,
2125
2186
  row: o.conf.update.form,
2126
2187
  field: o.item.item.key
2127
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2188
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2128
2189
  disabled: o.conf.update.getDisabled(o.item.item),
2129
2190
  style: { width: "100%" }
2130
- }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), h(a(pe), V({
2191
+ }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (d(), h(a(me), V({
2131
2192
  key: 5,
2132
2193
  modelValue: o.conf.update.form[o.item.item.key],
2133
- "onUpdate:modelValue": p[4] || (p[4] = (n) => o.conf.update.form[o.item.item.key] = n)
2134
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2194
+ "onUpdate:modelValue": f[4] || (f[4] = (n) => o.conf.update.form[o.item.item.key] = n)
2195
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2135
2196
  disabled: o.conf.update.getDisabled(o.item.item),
2136
2197
  style: { width: "100%" }
2137
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), h(a(ie), V({
2198
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (d(), h(a(se), V({
2138
2199
  key: 6,
2139
2200
  modelValue: o.conf.update.form[o.item.item.key],
2140
- "onUpdate:modelValue": p[5] || (p[5] = (n) => o.conf.update.form[o.item.item.key] = n)
2141
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2201
+ "onUpdate:modelValue": f[5] || (f[5] = (n) => o.conf.update.form[o.item.item.key] = n)
2202
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2142
2203
  disabled: o.conf.update.getDisabled(o.item.item)
2143
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (a(j).customComponent[o.item.item.type] || a(j).customComponent[o.item.item.type]?.form) ? (d(), h(J(a(j).customComponent[o.item.item.type]?.form || a(j).customComponent[o.item.item.type]), V({
2204
+ }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (a(j).customComponent[o.item.item.type] || a(j).customComponent[o.item.item.type]?.form) ? (d(), h(q(a(j).customComponent[o.item.item.type]?.form || a(j).customComponent[o.item.item.type]), V({
2144
2205
  key: 7,
2145
2206
  modelValue: o.conf.update.form[o.item.item.key],
2146
- "onUpdate:modelValue": p[6] || (p[6] = (n) => o.conf.update.form[o.item.item.key] = n)
2147
- }, o.conf.update.getBind(o.item.item), z(o.conf.update.getOn(o.item.item)), {
2207
+ "onUpdate:modelValue": f[6] || (f[6] = (n) => o.conf.update.form[o.item.item.key] = n)
2208
+ }, o.conf.update.getBind(o.item.item), $(o.conf.update.getOn(o.item.item)), {
2148
2209
  disabled: o.conf.update.getDisabled(o.item.item)
2149
2210
  }), null, 16, ["modelValue", "disabled"])) : v("", !0)
2150
2211
  ]),
@@ -2161,7 +2222,7 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2161
2222
  key: 0,
2162
2223
  class: "form-tip-text",
2163
2224
  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
2164
- }, null, 8, ht)) : v("", !0)
2225
+ }, null, 8, Vt)) : v("", !0)
2165
2226
  ])
2166
2227
  ]),
2167
2228
  C(o.$slots, "form-" + o.item.item.key + "-end", {
@@ -2173,31 +2234,31 @@ const lt = /* @__PURE__ */ X(tt, [["render", at]]), nt = { class: "row flex-cent
2173
2234
  _: 3
2174
2235
  }, 8, ["label", "prop", "label-width"]));
2175
2236
  }
2176
- }), yt = {}, bt = {
2237
+ }), $t = {}, Dt = {
2177
2238
  xmlns: "http://www.w3.org/2000/svg",
2178
2239
  viewBox: "64 64 896 896"
2179
2240
  };
2180
- function wt(i, o) {
2181
- return d(), b("svg", bt, o[0] || (o[0] = [
2182
- E("path", {
2241
+ function Et(i, o) {
2242
+ return d(), b("svg", Dt, o[0] || (o[0] = [
2243
+ U("path", {
2183
2244
  fill: "currentColor",
2184
2245
  d: "M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"
2185
2246
  }, null, -1)
2186
2247
  ]));
2187
2248
  }
2188
- const kt = /* @__PURE__ */ X(yt, [["render", wt]]), vt = {}, Ct = {
2249
+ const Ot = /* @__PURE__ */ Y($t, [["render", Et]]), Ut = {}, St = {
2189
2250
  xmlns: "http://www.w3.org/2000/svg",
2190
2251
  viewBox: "64 64 896 896"
2191
2252
  };
2192
- function Vt(i, o) {
2193
- return d(), b("svg", Ct, o[0] || (o[0] = [
2194
- E("path", {
2253
+ function Mt(i, o) {
2254
+ return d(), b("svg", St, o[0] || (o[0] = [
2255
+ U("path", {
2195
2256
  fill: "currentColor",
2196
2257
  d: "M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"
2197
2258
  }, null, -1)
2198
2259
  ]));
2199
2260
  }
2200
- const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2261
+ const Ft = /* @__PURE__ */ Y(Ut, [["render", Mt]]), ce = /* @__PURE__ */ N({
2201
2262
  __name: "searchField",
2202
2263
  props: {
2203
2264
  item: {},
@@ -2205,100 +2266,100 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2205
2266
  type: {}
2206
2267
  },
2207
2268
  setup(i) {
2208
- const o = i, p = me({
2269
+ const o = i, f = ge({
2209
2270
  get: () => o.conf.search.form?.[o.item?.key],
2210
2271
  set: (n) => {
2211
2272
  o.item?.key !== void 0 && (o.conf.search.form[o.item.key] = n);
2212
2273
  }
2213
2274
  });
2214
- return (n, l) => a(j).customComponent[n.type ?? ""]?.search ? (d(), h(J(a(j).customComponent[n.type ?? ""]?.search), V({
2275
+ return (n, l) => a(j).customComponent[n.type ?? ""]?.search ? (d(), h(q(a(j).customComponent[n.type ?? ""]?.search), V({
2215
2276
  key: 0,
2216
- modelValue: p.value,
2217
- "onUpdate:modelValue": l[0] || (l[0] = (t) => p.value = t)
2218
- }, n.item.options?.search?.[n.type ?? ""], z(n.item.options?.search?.[n.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : n.type === "input" ? (d(), h(a(x), V({
2277
+ modelValue: f.value,
2278
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => f.value = t)
2279
+ }, n.item.options?.search?.[n.type ?? ""], $(n.item.options?.search?.[n.type ?? ""]?.on || {})), null, 16, ["modelValue"])) : n.type === "input" ? (d(), h(a(_), V({
2219
2280
  key: 1,
2220
- modelValue: p.value,
2221
- "onUpdate:modelValue": l[1] || (l[1] = (t) => p.value = t),
2281
+ modelValue: f.value,
2282
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => f.value = t),
2222
2283
  placeholder: n.conf.search.getPlaceholder(n.item),
2223
2284
  clearable: "",
2224
2285
  disabled: n.item.disabled?.search
2225
- }, n.item.options?.search?.input || n.item.options?.input, z(n.item.options?.search?.input?.on || n.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (d(), h(a(G), V({
2286
+ }, n.item.options?.search?.input || n.item.options?.input, $(n.item.options?.search?.input?.on || n.item.options?.input?.on || {})), null, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (d(), h(a(X), V({
2226
2287
  key: 2,
2227
- modelValue: p.value,
2228
- "onUpdate:modelValue": l[2] || (l[2] = (t) => p.value = t),
2288
+ modelValue: f.value,
2289
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => f.value = t),
2229
2290
  placeholder: n.conf.search.getPlaceholder(n.item, a(w).tCurd("placeholderSelect")),
2230
2291
  clearable: "",
2231
2292
  disabled: n.item.disabled?.search
2232
- }, n.item.options?.search?.switch || n.item.options?.switch, z(n.item.options?.search?.switch?.on || n.item.options?.switch?.on || {})), {
2233
- default: y(() => [
2234
- (d(), h(a(N), {
2293
+ }, n.item.options?.search?.switch || n.item.options?.switch, $(n.item.options?.search?.switch?.on || n.item.options?.switch?.on || {})), {
2294
+ default: g(() => [
2295
+ (d(), h(a(W), {
2235
2296
  key: n.item.options?.switch?.activeValue,
2236
2297
  label: n.item.options?.switch?.activeText,
2237
2298
  value: n.item.options?.switch?.activeValue
2238
2299
  }, null, 8, ["label", "value"])),
2239
- (d(), h(a(N), {
2300
+ (d(), h(a(W), {
2240
2301
  key: n.item.options?.switch?.inactiveValue,
2241
2302
  label: n.item.options?.switch?.inactiveText,
2242
2303
  value: n.item.options?.switch?.inactiveValue
2243
2304
  }, null, 8, ["label", "value"]))
2244
2305
  ]),
2245
2306
  _: 1
2246
- }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "select" ? (d(), h(a(G), V({
2307
+ }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "select" ? (d(), h(a(X), V({
2247
2308
  key: 3,
2248
- modelValue: p.value,
2249
- "onUpdate:modelValue": l[3] || (l[3] = (t) => p.value = t),
2309
+ modelValue: f.value,
2310
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => f.value = t),
2250
2311
  placeholder: n.conf.search.getPlaceholder(n.item, a(w).tCurd("placeholderSelect")),
2251
2312
  clearable: "",
2252
2313
  disabled: n.item.disabled?.search
2253
- }, n.item.options?.search?.select || n.item.options?.select, z(n.item.options?.search?.select?.on || n.item.options?.select?.on || {})), {
2254
- default: y(() => [
2255
- (d(!0), b($, null, A(n.item.options?.search?.select?.data || n.item.options?.select?.data || [], (t) => (d(), h(a(N), {
2314
+ }, n.item.options?.search?.select || n.item.options?.select, $(n.item.options?.search?.select?.on || n.item.options?.select?.on || {})), {
2315
+ default: g(() => [
2316
+ (d(!0), b(D, null, A(n.item.options?.search?.select?.data || n.item.options?.select?.data || [], (t) => (d(), h(a(W), {
2256
2317
  key: t.value,
2257
2318
  label: t.label,
2258
2319
  value: t.value
2259
2320
  }, null, 8, ["label", "value"]))), 128))
2260
2321
  ]),
2261
2322
  _: 1
2262
- }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), h(a(le), V({
2323
+ }, 16, ["modelValue", "placeholder", "disabled"])) : n.type === "radio" ? (d(), h(a(ie), V({
2263
2324
  key: 4,
2264
- modelValue: p.value,
2265
- "onUpdate:modelValue": l[4] || (l[4] = (t) => p.value = t),
2325
+ modelValue: f.value,
2326
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => f.value = t),
2266
2327
  disabled: n.item.disabled?.search
2267
- }, n.item.options?.search?.radio || n.item.options?.radio, z(n.item.options?.search?.radio?.on || n.item.options?.radio?.on || {})), {
2268
- default: y(() => [
2269
- (d(!0), b($, null, A(n.item.options?.radio?.data, (t) => (d(), h(a(ne), {
2328
+ }, n.item.options?.search?.radio || n.item.options?.radio, $(n.item.options?.search?.radio?.on || n.item.options?.radio?.on || {})), {
2329
+ default: g(() => [
2330
+ (d(!0), b(D, null, A(n.item.options?.radio?.data, (t) => (d(), h(a(re), {
2270
2331
  key: t.value,
2271
2332
  label: t.label,
2272
2333
  value: t.value
2273
2334
  }, null, 8, ["label", "value"]))), 128))
2274
2335
  ]),
2275
2336
  _: 1
2276
- }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), h(a(ie), V({
2337
+ }, 16, ["modelValue", "disabled"])) : n.type === "datetime" ? (d(), h(a(se), V({
2277
2338
  key: 5,
2278
- modelValue: p.value,
2279
- "onUpdate:modelValue": l[5] || (l[5] = (t) => p.value = t),
2339
+ modelValue: f.value,
2340
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => f.value = t),
2280
2341
  disabled: n.item.disabled?.search
2281
- }, n.item.options?.search?.datetime || n.item.options?.datetime, z(n.item.options?.search?.datetime?.on || n.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : n.type && a(j).customComponent[n.type] ? (d(), h(J(a(j).customComponent[n.type]), V({
2342
+ }, n.item.options?.search?.datetime || n.item.options?.datetime, $(n.item.options?.search?.datetime?.on || n.item.options?.datetime?.on || {})), null, 16, ["modelValue", "disabled"])) : n.type && a(j).customComponent[n.type] ? (d(), h(q(a(j).customComponent[n.type]), V({
2282
2343
  key: 6,
2283
- modelValue: p.value,
2284
- "onUpdate:modelValue": l[6] || (l[6] = (t) => p.value = t)
2285
- }, n.item.options?.search?.[n.type] || n.item.options?.[n.type], z(n.item.options?.search?.[n.type]?.on || n.item.options?.[n.type]?.on || {}), {
2344
+ modelValue: f.value,
2345
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => f.value = t)
2346
+ }, n.item.options?.search?.[n.type] || n.item.options?.[n.type], $(n.item.options?.search?.[n.type]?.on || n.item.options?.[n.type]?.on || {}), {
2286
2347
  disabled: n.item.disabled?.search
2287
2348
  }), null, 16, ["modelValue", "disabled"])) : v("", !0);
2288
2349
  }
2289
- }), $t = {
2350
+ }), At = {
2290
2351
  key: 0,
2291
2352
  class: "relative curd-search fit-width"
2292
- }, Dt = { class: "mb-10 flex justify-between items-center fit-width" }, Ut = {
2353
+ }, Tt = { class: "mb-10 flex justify-between items-center fit-width" }, jt = {
2293
2354
  class: "flex items-center",
2294
2355
  style: { gap: "10px" }
2295
- }, Et = { key: 0 }, Ot = { key: 1 }, St = { key: 2 }, Mt = { class: "export-btn" }, Tt = {
2356
+ }, Lt = { key: 0 }, Bt = { key: 1 }, Rt = { key: 2 }, It = { class: "export-btn" }, Ht = {
2296
2357
  key: 1,
2297
2358
  class: "export-btn"
2298
- }, At = {
2359
+ }, Kt = {
2299
2360
  class: "flex items-center table-tools-right",
2300
2361
  style: { gap: "10px" }
2301
- }, Ft = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, Lt = { class: "dialog-footer" }, jt = { key: 0 }, Bt = { key: 1 }, Rt = { class: "dialog-footer" }, It = /* @__PURE__ */ K({
2362
+ }, Pt = { class: "row justify-end mt-10 mb-10 table-bottom-pagination" }, Nt = { class: "dialog-footer" }, Wt = { key: 0 }, Jt = { key: 1 }, qt = { class: "dialog-footer" }, Qt = /* @__PURE__ */ N({
2302
2363
  __name: "index",
2303
2364
  props: {
2304
2365
  /**
@@ -2306,95 +2367,107 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2306
2367
  */
2307
2368
  option: {
2308
2369
  default: {}
2370
+ },
2371
+ /**
2372
+ * 表单值对象
2373
+ */
2374
+ form: {
2375
+ default: {}
2376
+ },
2377
+ /**
2378
+ * 搜索栏值对象
2379
+ */
2380
+ searchForm: {
2381
+ default: {}
2309
2382
  }
2310
2383
  },
2311
2384
  setup(i, { expose: o }) {
2312
- const p = M.EDialog, n = i, l = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = Re(n);
2385
+ const f = M.EDialog, n = i, l = M.isFun, { conf: t, switchConfirmRef: e, ruleFormRef: r, tableRef: s } = qe(n);
2313
2386
  return o({
2314
2387
  conf: t
2315
2388
  }), (m, c) => {
2316
- const u = _("el-tooltip"), k = Ve("loading");
2389
+ const u = ee("el-tooltip"), k = Me("loading");
2317
2390
  return d(), b("div", {
2318
2391
  class: I(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
2319
2392
  }, [
2320
- E("div", {
2393
+ U("div", {
2321
2394
  class: I(["row", [i.option.table?.fitHeight ? "absolute fit" : ""]]),
2322
2395
  style: { overflow: "hidden" }
2323
2396
  }, [
2324
2397
  C(m.$slots, "box-left"),
2325
- E("div", {
2398
+ U("div", {
2326
2399
  class: I(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
2327
2400
  }, [
2328
- i.option.search?.show !== !1 ? (d(), b("div", $t, [
2329
- U(a(q), {
2401
+ i.option.search?.show !== !1 ? (d(), b("div", At, [
2402
+ O(a(Q), {
2330
2403
  model: a(t).search.form,
2331
2404
  inline: "",
2332
2405
  size: i.option.size?.search
2333
2406
  }, {
2334
- default: y(() => [
2407
+ default: g(() => [
2335
2408
  C(m.$slots, "search-start", {
2336
2409
  row: a(t).search.form
2337
2410
  }),
2338
- (d(!0), b($, null, A(a(t).search.column.list, (f) => (d(), b($, {
2339
- key: f.key
2411
+ (d(!0), b(D, null, A(a(t).search.column.list, (y) => (d(), b(D, {
2412
+ key: y.key
2340
2413
  }, [
2341
- C(m.$slots, "search-" + f.key + "-start", {
2414
+ C(m.$slots, "search-" + y.key + "-start", {
2342
2415
  row: a(t).search.form
2343
2416
  }),
2344
- (typeof f.show?.search == "function" ? f.show?.search(a(t).search.form) : f.show?.search) ? (d(), h(a(te), {
2417
+ (typeof y.show?.search == "function" ? y.show?.search(a(t).search.form) : y.show?.search) ? (d(), h(a(ae), {
2345
2418
  key: 0,
2346
- label: f.text?.search?.label ?? f.label
2419
+ label: y.text?.search?.label ?? y.label
2347
2420
  }, {
2348
- default: y(() => [
2349
- C(m.$slots, "search-" + f.key + "-left", {
2421
+ default: g(() => [
2422
+ C(m.$slots, "search-" + y.key + "-left", {
2350
2423
  row: a(t).search.form
2351
2424
  }),
2352
- C(m.$slots, "search-" + f.key, {
2425
+ C(m.$slots, "search-" + y.key, {
2353
2426
  row: a(t).search.form
2354
2427
  }, () => [
2355
- f.options?.search?.type ? (d(), h(ue, {
2428
+ y.options?.search?.type ? (d(), h(ce, {
2356
2429
  key: 0,
2357
- item: f,
2430
+ item: y,
2358
2431
  conf: a(t),
2359
- type: f.options.search.type
2360
- }, null, 8, ["item", "conf", "type"])) : (d(), h(ue, {
2432
+ type: y.options.search.type
2433
+ }, null, 8, ["item", "conf", "type"])) : (d(), h(ce, {
2361
2434
  key: 1,
2362
- item: f,
2435
+ item: y,
2363
2436
  conf: a(t),
2364
- type: f.type
2437
+ type: y.type
2365
2438
  }, null, 8, ["item", "conf", "type"]))
2366
2439
  ]),
2367
- C(m.$slots, "search-" + f.key + "-right", {
2440
+ C(m.$slots, "search-" + y.key + "-right", {
2368
2441
  row: a(t).search.form
2369
2442
  })
2370
2443
  ]),
2371
2444
  _: 2
2372
2445
  }, 1032, ["label"])) : v("", !0),
2373
- C(m.$slots, "search-" + f.key + "-end", {
2446
+ C(m.$slots, "search-" + y.key + "-end", {
2374
2447
  row: a(t).search.form
2375
2448
  })
2376
2449
  ], 64))), 128)),
2377
2450
  C(m.$slots, "search-center", {
2378
2451
  row: a(t).search.form
2379
2452
  }),
2380
- i.option.tools?.search || i.option.tools?.reset ? (d(), h(a(te), { key: 0 }, {
2381
- default: y(() => [
2382
- i.option.tools?.search ? (d(), h(a(L), {
2453
+ i.option.tools?.search || i.option.tools?.reset ? (d(), h(a(ae), { key: 0 }, {
2454
+ default: g(() => [
2455
+ i.option.tools?.search ? (d(), h(a(T), {
2383
2456
  key: 0,
2384
2457
  type: "primary",
2385
2458
  onClick: a(t).search.submit
2386
2459
  }, {
2387
- default: y(() => [
2388
- D(O(a(w).tCurd("search")), 1)
2460
+ default: g(() => [
2461
+ E(S(a(w).tCurd("search")), 1)
2389
2462
  ]),
2390
2463
  _: 1
2391
2464
  }, 8, ["onClick"])) : v("", !0),
2392
- i.option.tools?.reset ? (d(), h(a(L), {
2465
+ i.option.tools?.reset ? (d(), h(a(T), {
2393
2466
  key: 1,
2394
2467
  onClick: a(t).search.reset
2395
2468
  }, {
2396
- default: y(() => [
2397
- D(O(a(w).tCurd("reset")), 1)
2469
+ default: g(() => [
2470
+ E(S(a(w).tCurd("reset")), 1)
2398
2471
  ]),
2399
2472
  _: 1
2400
2473
  }, 8, ["onClick"])) : v("", !0)
@@ -2408,78 +2481,78 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2408
2481
  _: 3
2409
2482
  }, 8, ["model", "size"])
2410
2483
  ])) : v("", !0),
2411
- E("div", Dt, [
2412
- E("div", Ut, [
2413
- a(l)(i.option.tools?.add) ? (d(), b("div", Et, [
2414
- U(a(L), {
2484
+ U("div", Tt, [
2485
+ U("div", jt, [
2486
+ a(l)(i.option.tools?.add) ? (d(), b("div", Lt, [
2487
+ O(a(T), {
2415
2488
  type: "primary",
2416
- onClick: c[0] || (c[0] = (f) => a(t).update.open(a(p).Add)),
2489
+ onClick: c[0] || (c[0] = (y) => a(t).update.open(a(f).Add)),
2417
2490
  size: i.option.size?.search
2418
2491
  }, {
2419
- default: y(() => [
2420
- D(O(a(w).tCurd("add")), 1)
2492
+ default: g(() => [
2493
+ E(S(a(w).tCurd("add")), 1)
2421
2494
  ]),
2422
2495
  _: 1
2423
2496
  }, 8, ["size"])
2424
2497
  ])) : v("", !0),
2425
- i.option.table?.selectable && a(l)(i.option.tools?.delete) ? (d(), b("div", Ot, [
2426
- U(a(L), {
2498
+ i.option.table?.selectable && a(l)(i.option.tools?.delete) ? (d(), b("div", Bt, [
2499
+ O(a(T), {
2427
2500
  type: "danger",
2428
- onClick: c[1] || (c[1] = (f) => a(t).remove.open(a(t).table.selection.list)),
2501
+ onClick: c[1] || (c[1] = (y) => a(t).remove.open(a(t).table.selection.list)),
2429
2502
  size: i.option.size?.search
2430
2503
  }, {
2431
- default: y(() => [
2432
- D(O(a(w).tCurd("delete")), 1)
2504
+ default: g(() => [
2505
+ E(S(a(w).tCurd("delete")), 1)
2433
2506
  ]),
2434
2507
  _: 1
2435
2508
  }, 8, ["size"])
2436
2509
  ])) : v("", !0),
2437
- i.option.tools?.expand ? (d(), b("div", St, [
2438
- U(a(L), {
2510
+ i.option.tools?.expand ? (d(), b("div", Rt, [
2511
+ O(a(T), {
2439
2512
  type: "warning",
2440
- onClick: c[2] || (c[2] = (f) => a(t).table.expand.all()),
2513
+ onClick: c[2] || (c[2] = (y) => a(t).table.expand.all()),
2441
2514
  size: i.option.size?.search
2442
2515
  }, {
2443
- default: y(() => [
2444
- D(O(a(w).tCurd("expandCollapse")), 1)
2516
+ default: g(() => [
2517
+ E(S(a(w).tCurd("expandCollapse")), 1)
2445
2518
  ]),
2446
2519
  _: 1
2447
2520
  }, 8, ["size"])
2448
2521
  ])) : v("", !0),
2449
- i.option.tools?.export?.show ? (d(), b($, { key: 3 }, [
2450
- i.option.tools?.export?.dropdown?.show ? (d(), h(a(ye), {
2522
+ i.option.tools?.export?.show ? (d(), b(D, { key: 3 }, [
2523
+ i.option.tools?.export?.dropdown?.show ? (d(), h(a($e), {
2451
2524
  key: 0,
2452
2525
  onCommand: a(t).export.click
2453
2526
  }, {
2454
- dropdown: y(() => [
2455
- U(a(be), {
2527
+ dropdown: g(() => [
2528
+ O(a(De), {
2456
2529
  size: i.option.size?.search
2457
2530
  }, {
2458
- default: y(() => [
2459
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(l)(i.option.tools?.delete)) ? (d(), h(a(oe), {
2531
+ default: g(() => [
2532
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(l)(i.option.tools?.delete)) ? (d(), h(a(le), {
2460
2533
  key: 0,
2461
2534
  command: "select"
2462
2535
  }, {
2463
- default: y(() => [
2464
- D(O(a(w).tCurd("exportSelect")), 1)
2536
+ default: g(() => [
2537
+ E(S(a(w).tCurd("exportSelect")), 1)
2465
2538
  ]),
2466
2539
  _: 1
2467
2540
  })) : v("", !0),
2468
- i.option.tools?.export?.dropdown?.page ? (d(), h(a(oe), {
2541
+ i.option.tools?.export?.dropdown?.page ? (d(), h(a(le), {
2469
2542
  key: 1,
2470
2543
  command: "page"
2471
2544
  }, {
2472
- default: y(() => [
2473
- D(O(a(w).tCurd("exportPage")), 1)
2545
+ default: g(() => [
2546
+ E(S(a(w).tCurd("exportPage")), 1)
2474
2547
  ]),
2475
2548
  _: 1
2476
2549
  })) : v("", !0),
2477
- i.option.tools?.export?.dropdown?.all ? (d(), h(a(oe), {
2550
+ i.option.tools?.export?.dropdown?.all ? (d(), h(a(le), {
2478
2551
  key: 2,
2479
2552
  command: "all"
2480
2553
  }, {
2481
- default: y(() => [
2482
- D(O(a(w).tCurd("exportAll")), 1)
2554
+ default: g(() => [
2555
+ E(S(a(w).tCurd("exportAll")), 1)
2483
2556
  ]),
2484
2557
  _: 1
2485
2558
  })) : v("", !0)
@@ -2487,30 +2560,30 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2487
2560
  _: 1
2488
2561
  }, 8, ["size"])
2489
2562
  ]),
2490
- default: y(() => [
2491
- E("div", Mt, [
2492
- U(a(L), {
2563
+ default: g(() => [
2564
+ U("div", It, [
2565
+ O(a(T), {
2493
2566
  type: "warning",
2494
2567
  loading: a(t).export.loading,
2495
2568
  size: i.option.size?.search
2496
2569
  }, {
2497
- default: y(() => [
2498
- D(O(a(w).tCurd("export")), 1)
2570
+ default: g(() => [
2571
+ E(S(a(w).tCurd("export")), 1)
2499
2572
  ]),
2500
2573
  _: 1
2501
2574
  }, 8, ["loading", "size"])
2502
2575
  ])
2503
2576
  ]),
2504
2577
  _: 1
2505
- }, 8, ["onCommand"])) : (d(), b("div", Tt, [
2506
- U(a(L), {
2578
+ }, 8, ["onCommand"])) : (d(), b("div", Ht, [
2579
+ O(a(T), {
2507
2580
  type: "warning",
2508
2581
  loading: a(t).export.loading,
2509
2582
  size: i.option.size?.search,
2510
- onClick: c[3] || (c[3] = (f) => a(t).export.run.start("all"))
2583
+ onClick: c[3] || (c[3] = (y) => a(t).export.run.start("all"))
2511
2584
  }, {
2512
- default: y(() => [
2513
- D(O(a(w).tCurd("export")), 1)
2585
+ default: g(() => [
2586
+ E(S(a(w).tCurd("export")), 1)
2514
2587
  ]),
2515
2588
  _: 1
2516
2589
  }, 8, ["loading", "size"])
@@ -2518,14 +2591,14 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2518
2591
  ], 64)) : v("", !0),
2519
2592
  C(m.$slots, "tools-left")
2520
2593
  ]),
2521
- E("div", At, [
2594
+ U("div", Kt, [
2522
2595
  C(m.$slots, "tools-right"),
2523
- a(t).page.showTools ? (d(), h(a(de), V({
2596
+ a(t).page.showTools ? (d(), h(a(fe), V({
2524
2597
  key: 0,
2525
2598
  "current-page": a(t).page.num,
2526
- "onUpdate:currentPage": c[4] || (c[4] = (f) => a(t).page.num = f),
2599
+ "onUpdate:currentPage": c[4] || (c[4] = (y) => a(t).page.num = y),
2527
2600
  "page-size": a(t).page.size,
2528
- "onUpdate:pageSize": c[5] || (c[5] = (f) => a(t).page.size = f),
2601
+ "onUpdate:pageSize": c[5] || (c[5] = (y) => a(t).page.size = y),
2529
2602
  background: "",
2530
2603
  "page-sizes": a(t).page.sizeList,
2531
2604
  "pager-count": a(t).page.pagerCount,
@@ -2534,20 +2607,20 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2534
2607
  size: i.option.size?.table,
2535
2608
  onSizeChange: a(t).table.getList,
2536
2609
  onCurrentChange: a(t).table.getList
2537
- }, i.option.page?.pagination || {}, z(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0),
2610
+ }, i.option.page?.pagination || {}, $(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0),
2538
2611
  i.option.tools?.expandColumn === void 0 || i.option.tools?.expandColumn ? (d(), h(u, {
2539
2612
  key: 1,
2540
2613
  effect: "dark",
2541
2614
  content: a(t).table.header.group.expand ? a(w).tCurd("mergeColumn") : a(w).tCurd("expandColumn"),
2542
2615
  placement: "top"
2543
2616
  }, {
2544
- default: y(() => [
2545
- E("div", {
2617
+ default: g(() => [
2618
+ U("div", {
2546
2619
  class: I(["refresh-btn", [i.option.size?.search]]),
2547
2620
  onClick: c[6] || (c[6] = //@ts-ignore
2548
- (...f) => a(t).table.header.group.toggleExpandAll && a(t).table.header.group.toggleExpandAll(...f))
2621
+ (...y) => a(t).table.header.group.toggleExpandAll && a(t).table.header.group.toggleExpandAll(...y))
2549
2622
  }, [
2550
- a(t).table.header.group.expand ? (d(), h(kt, { key: 0 })) : (d(), h(zt, { key: 1 }))
2623
+ a(t).table.header.group.expand ? (d(), h(Ot, { key: 0 })) : (d(), h(Ft, { key: 1 }))
2551
2624
  ], 2)
2552
2625
  ]),
2553
2626
  _: 1
@@ -2556,19 +2629,19 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2556
2629
  key: 2,
2557
2630
  class: I(["refresh-btn", [i.option.size?.search]]),
2558
2631
  onClick: c[7] || (c[7] = //@ts-ignore
2559
- (...f) => a(t).table.getList && a(t).table.getList(...f))
2632
+ (...y) => a(t).table.getList && a(t).table.getList(...y))
2560
2633
  }, [
2561
- U(We)
2634
+ O(xe)
2562
2635
  ], 2)) : v("", !0)
2563
2636
  ])
2564
2637
  ]),
2565
- E("div", {
2638
+ U("div", {
2566
2639
  class: I(["fit-width relative form-box", [i.option.table?.fitHeight ? "col " : "", i.option.table?.editMode ? "edit-mode" : ""]])
2567
2640
  }, [
2568
- E("div", {
2641
+ U("div", {
2569
2642
  class: I(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2570
2643
  }, [
2571
- ze((d(), h(a(we), V({
2644
+ Fe((d(), h(a(Ee), V({
2572
2645
  ref_key: "tableRef",
2573
2646
  ref: s,
2574
2647
  data: a(t).table.data,
@@ -2577,9 +2650,9 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2577
2650
  onSortChange: a(t).table.sort.change,
2578
2651
  "expand-row-keys": a(t).table.expand.rowKeys,
2579
2652
  onExpandChange: a(t).table.expand.change
2580
- }, i.option.table, z(i.option.table?.on || {})), {
2581
- default: y(() => [
2582
- (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(l)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (d(), h(a(ee), V({
2653
+ }, i.option.table, $(i.option.table?.on || {})), {
2654
+ default: g(() => [
2655
+ (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(l)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (d(), h(a(oe), V({
2583
2656
  key: 0,
2584
2657
  type: "selection",
2585
2658
  width: "40",
@@ -2587,8 +2660,8 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2587
2660
  fixed: "left",
2588
2661
  "show-overflow-tooltip": !1,
2589
2662
  className: "cc1-form-selectable-column"
2590
- }, typeof i.option.table?.selectable == "object" ? i.option.table?.selectable : {}, z(typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.on || {} : {})), null, 16)) : v("", !0),
2591
- (typeof i.option.table?.index == "object" ? i.option.table?.index?.show : i.option.table?.index) ? (d(), h(a(ee), V({
2663
+ }, typeof i.option.table?.selectable == "object" ? i.option.table?.selectable : {}, $(typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.on || {} : {})), null, 16)) : v("", !0),
2664
+ (typeof i.option.table?.index == "object" ? i.option.table?.index?.show : i.option.table?.index) ? (d(), h(a(oe), V({
2592
2665
  key: 1,
2593
2666
  type: "index",
2594
2667
  fixed: "left",
@@ -2597,106 +2670,106 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2597
2670
  label: "#",
2598
2671
  "show-overflow-tooltip": !1,
2599
2672
  className: "cc1-form-index-column"
2600
- }, typeof i.option.table?.index == "object" ? i.option.table?.index : {}, z(typeof i.option.table?.index == "object" ? i.option.table?.index?.on || {} : {})), null, 16)) : v("", !0),
2601
- U(pt, {
2673
+ }, typeof i.option.table?.index == "object" ? i.option.table?.index : {}, $(typeof i.option.table?.index == "object" ? i.option.table?.index?.on || {} : {})), null, 16)) : v("", !0),
2674
+ O(wt, {
2602
2675
  conf: a(t),
2603
2676
  columnList: a(t).table.column.list,
2604
2677
  option: i.option
2605
- }, Q({ _: 2 }, [
2606
- A(m.$slots, (f, g) => ({
2607
- name: g,
2608
- fn: y((S) => [
2609
- C(m.$slots, g, $e(De(S || {})))
2678
+ }, G({ _: 2 }, [
2679
+ A(m.$slots, (y, p) => ({
2680
+ name: p,
2681
+ fn: g((z) => [
2682
+ C(m.$slots, p, Ae(Te(z || {})))
2610
2683
  ])
2611
2684
  }))
2612
2685
  ]), 1032, ["conf", "columnList", "option"]),
2613
- a(l)(i.option.table?.add) || a(l)(i.option.table?.update) || a(l)(i.option.table?.delete) || a(l)(i.option.table?.view) || m.$slots["table-op-left"] || m.$slots["table-op-right"] ? (d(), h(a(ee), V({
2686
+ a(l)(i.option.table?.add) || a(l)(i.option.table?.update) || a(l)(i.option.table?.delete) || a(l)(i.option.table?.view) || m.$slots["table-op-left"] || m.$slots["table-op-right"] ? (d(), h(a(oe), V({
2614
2687
  key: 2,
2615
2688
  width: "auto",
2616
2689
  "max-width": "200",
2617
2690
  align: "center",
2618
2691
  fixed: "right"
2619
2692
  }, i.option.table?.operate, { "show-overflow-tooltip": !1 }), {
2620
- header: y(() => [
2693
+ header: g(() => [
2621
2694
  C(m.$slots, "table-header-op", {}, () => [
2622
- D(O(a(w).tCurd("operation")), 1)
2695
+ E(S(a(w).tCurd("operation")), 1)
2623
2696
  ])
2624
2697
  ]),
2625
- default: y(({ row: f }) => [
2626
- U(a(q), {
2698
+ default: g(({ row: y }) => [
2699
+ O(a(Q), {
2627
2700
  size: i.option.size?.table
2628
2701
  }, {
2629
- default: y(() => [
2630
- C(m.$slots, "table-op-left", { row: f }),
2631
- a(t).update.type === a(p).Update && i.option.table?.inlineEdit && a(t).update.form[n.option.table?.rowKey] === f[n.option.table?.rowKey] ? (d(), b($, { key: 0 }, [
2632
- U(a(L), {
2702
+ default: g(() => [
2703
+ C(m.$slots, "table-op-left", { row: y }),
2704
+ a(t).update.type === a(f).Update && i.option.table?.inlineEdit && a(t).update.form[n.option.table?.rowKey] === y[n.option.table?.rowKey] ? (d(), b(D, { key: 0 }, [
2705
+ O(a(T), {
2633
2706
  link: "",
2634
2707
  type: "info",
2635
2708
  onClick: a(t).update.close
2636
2709
  }, {
2637
- default: y(() => [
2638
- D(O(a(w).tCurd("cancel")), 1)
2710
+ default: g(() => [
2711
+ E(S(a(w).tCurd("cancel")), 1)
2639
2712
  ]),
2640
2713
  _: 1
2641
2714
  }, 8, ["onClick"]),
2642
- U(a(L), {
2715
+ O(a(T), {
2643
2716
  link: "",
2644
2717
  type: "primary",
2645
2718
  onClick: a(t).update.submit,
2646
2719
  loading: a(t).update.loading
2647
2720
  }, {
2648
- default: y(() => [
2649
- D(O(a(w).tCurd("confirm")), 1)
2721
+ default: g(() => [
2722
+ E(S(a(w).tCurd("confirm")), 1)
2650
2723
  ]),
2651
2724
  _: 1
2652
2725
  }, 8, ["onClick", "loading"]),
2653
- C(m.$slots, "table-op-edit-right", { row: f })
2654
- ], 64)) : (d(), b($, { key: 1 }, [
2655
- a(l)(i.option.table?.add, f) ? (d(), h(a(L), {
2726
+ C(m.$slots, "table-op-edit-right", { row: y })
2727
+ ], 64)) : (d(), b(D, { key: 1 }, [
2728
+ a(l)(i.option.table?.add, y) ? (d(), h(a(T), {
2656
2729
  key: 0,
2657
2730
  link: "",
2658
2731
  type: "primary",
2659
- onClick: (g) => a(t).update.open(a(p).Add, f)
2732
+ onClick: (p) => a(t).update.open(a(f).Add, y)
2660
2733
  }, {
2661
- default: y(() => [
2662
- D(O(a(w).tCurd("add")), 1)
2734
+ default: g(() => [
2735
+ E(S(a(w).tCurd("add")), 1)
2663
2736
  ]),
2664
2737
  _: 2
2665
2738
  }, 1032, ["onClick"])) : v("", !0),
2666
- a(l)(i.option.table?.view, f) ? (d(), h(a(L), {
2739
+ a(l)(i.option.table?.view, y) ? (d(), h(a(T), {
2667
2740
  key: 1,
2668
2741
  link: "",
2669
2742
  type: "primary",
2670
- onClick: (g) => a(t).update.open(a(p).View, f)
2743
+ onClick: (p) => a(t).update.open(a(f).View, y)
2671
2744
  }, {
2672
- default: y(() => [
2673
- D(O(a(w).tCurd("view")), 1)
2745
+ default: g(() => [
2746
+ E(S(a(w).tCurd("view")), 1)
2674
2747
  ]),
2675
2748
  _: 2
2676
2749
  }, 1032, ["onClick"])) : v("", !0),
2677
- a(l)(i.option.table?.update, f) ? (d(), h(a(L), {
2750
+ a(l)(i.option.table?.update, y) ? (d(), h(a(T), {
2678
2751
  key: 2,
2679
2752
  link: "",
2680
2753
  type: "warning",
2681
- onClick: (g) => a(t).update.open(a(p).Update, f)
2754
+ onClick: (p) => a(t).update.open(a(f).Update, y)
2682
2755
  }, {
2683
- default: y(() => [
2684
- D(O(a(w).tCurd("edit")), 1)
2756
+ default: g(() => [
2757
+ E(S(a(w).tCurd("edit")), 1)
2685
2758
  ]),
2686
2759
  _: 2
2687
2760
  }, 1032, ["onClick"])) : v("", !0),
2688
- a(l)(i.option.table?.delete, f) ? (d(), h(a(L), {
2761
+ a(l)(i.option.table?.delete, y) ? (d(), h(a(T), {
2689
2762
  key: 3,
2690
2763
  link: "",
2691
2764
  type: "danger",
2692
- onClick: (g) => a(t).remove.open([f])
2765
+ onClick: (p) => a(t).remove.open([y])
2693
2766
  }, {
2694
- default: y(() => [
2695
- D(O(a(w).tCurd("delete")), 1)
2767
+ default: g(() => [
2768
+ E(S(a(w).tCurd("delete")), 1)
2696
2769
  ]),
2697
2770
  _: 2
2698
2771
  }, 1032, ["onClick"])) : v("", !0),
2699
- C(m.$slots, "table-op-right", { row: f })
2772
+ C(m.$slots, "table-op-right", { row: y })
2700
2773
  ], 64))
2701
2774
  ]),
2702
2775
  _: 2
@@ -2711,13 +2784,13 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2711
2784
  ])
2712
2785
  ], 2)
2713
2786
  ], 2),
2714
- E("div", Ft, [
2715
- (i.option.page?.show === void 0 || i.option.page?.show) && !a(t).page.showTools ? (d(), h(a(de), V({
2787
+ U("div", Pt, [
2788
+ (i.option.page?.show === void 0 || i.option.page?.show) && !a(t).page.showTools ? (d(), h(a(fe), V({
2716
2789
  key: 0,
2717
2790
  "current-page": a(t).page.num,
2718
- "onUpdate:currentPage": c[8] || (c[8] = (f) => a(t).page.num = f),
2791
+ "onUpdate:currentPage": c[8] || (c[8] = (y) => a(t).page.num = y),
2719
2792
  "page-size": a(t).page.size,
2720
- "onUpdate:pageSize": c[9] || (c[9] = (f) => a(t).page.size = f),
2793
+ "onUpdate:pageSize": c[9] || (c[9] = (y) => a(t).page.size = y),
2721
2794
  background: "",
2722
2795
  "page-sizes": a(t).page.sizeList,
2723
2796
  "pager-count": a(t).page.pagerCount,
@@ -2726,39 +2799,39 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2726
2799
  size: i.option.size?.table,
2727
2800
  onSizeChange: a(t).table.getList,
2728
2801
  onCurrentChange: a(t).table.getList
2729
- }, i.option.page?.pagination || {}, z(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0)
2802
+ }, i.option.page?.pagination || {}, $(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : v("", !0)
2730
2803
  ])
2731
2804
  ], 2),
2732
2805
  C(m.$slots, "box-right")
2733
2806
  ], 2),
2734
- U(a(ae), V({
2807
+ O(a(ne), V({
2735
2808
  modelValue: a(t).update.show,
2736
- "onUpdate:modelValue": c[10] || (c[10] = (f) => a(t).update.show = f),
2809
+ "onUpdate:modelValue": c[10] || (c[10] = (y) => a(t).update.show = y),
2737
2810
  title: a(t).update.title,
2738
2811
  "before-close": a(t).update.close
2739
2812
  }, i.option.dialog), {
2740
- footer: y(() => [
2741
- E("span", Lt, [
2742
- U(a(q), {
2813
+ footer: g(() => [
2814
+ U("span", Nt, [
2815
+ O(a(Q), {
2743
2816
  size: i.option.size?.form
2744
2817
  }, {
2745
- default: y(() => [
2746
- U(a(L), {
2818
+ default: g(() => [
2819
+ O(a(T), {
2747
2820
  onClick: a(t).update.close
2748
2821
  }, {
2749
- default: y(() => [
2750
- D(O(a(w).tCurd("close")), 1)
2822
+ default: g(() => [
2823
+ E(S(a(w).tCurd("close")), 1)
2751
2824
  ]),
2752
2825
  _: 1
2753
2826
  }, 8, ["onClick"]),
2754
- a(t).update.type !== a(p).View ? (d(), h(a(L), {
2827
+ a(t).update.type !== a(f).View ? (d(), h(a(T), {
2755
2828
  key: 0,
2756
2829
  type: "primary",
2757
2830
  onClick: a(t).update.submit,
2758
2831
  loading: a(t).update.loading
2759
2832
  }, {
2760
- default: y(() => [
2761
- D(O(a(w).tCurd("submit")), 1)
2833
+ default: g(() => [
2834
+ E(S(a(w).tCurd("submit")), 1)
2762
2835
  ]),
2763
2836
  _: 1
2764
2837
  }, 8, ["onClick", "loading"])) : v("", !0)
@@ -2767,8 +2840,8 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2767
2840
  }, 8, ["size"])
2768
2841
  ])
2769
2842
  ]),
2770
- default: y(() => [
2771
- U(a(q), {
2843
+ default: g(() => [
2844
+ O(a(Q), {
2772
2845
  ref_key: "ruleFormRef",
2773
2846
  ref: r,
2774
2847
  model: a(t).update.form,
@@ -2776,14 +2849,14 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2776
2849
  size: i.option.size?.form,
2777
2850
  class: "update-dialog-form"
2778
2851
  }, {
2779
- default: y(() => [
2780
- a(t).update.showContent ? (d(!0), b($, { key: 0 }, A(a(t).update.formColumn, (f) => (d(), b($, null, [
2852
+ default: g(() => [
2853
+ a(t).update.showContent ? (d(!0), b(D, { key: 0 }, A(a(t).update.formColumn, (y) => (d(), b(D, null, [
2781
2854
  a(l)(
2782
2855
  (() => {
2783
- const g = [], S = (B) => {
2784
- B?.item?.children ? S(B.item.children) : g.push(...B.map((F) => F.item?.show?.form));
2856
+ const p = [], z = (B) => {
2857
+ B?.item?.children ? z(B.item.children) : p.push(...B.map((L) => L.item?.show?.form));
2785
2858
  };
2786
- return S(f), g;
2859
+ return z(y), p;
2787
2860
  })(),
2788
2861
  a(t).update.form,
2789
2862
  a(t).update.type
@@ -2796,20 +2869,20 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2796
2869
  C(m.$slots, "form-start", {
2797
2870
  row: a(t).update.form
2798
2871
  }),
2799
- (d(!0), b($, null, A(f, (g) => (d(), b($, null, [
2800
- a(l)(g.item.show?.form, a(t).update.form, a(t).update.type) ? (d(), b("div", {
2872
+ (d(!0), b(D, null, A(y, (p) => (d(), b(D, null, [
2873
+ a(l)(p.item.show?.form, a(t).update.form, a(t).update.type) ? (d(), b("div", {
2801
2874
  key: 0,
2802
- class: I([g.item.form.span > 0 ? `col-${a(t).getColumnSpan(g, f)}` : "col", `form-item-col-${g.item.key}`])
2875
+ class: I([p.item.form.span > 0 ? `col-${a(t).getColumnSpan(p, y)}` : "col", `form-item-col-${p.item.key}`])
2803
2876
  }, [
2804
- (d(!0), b($, null, A(g.item.children ? g.children : [g], (S) => (d(), h(gt, {
2805
- key: S.item.key,
2877
+ (d(!0), b(D, null, A(p.item.children ? p.children : [p], (z) => (d(), h(zt, {
2878
+ key: z.item.key,
2806
2879
  conf: a(t),
2807
- item: S
2808
- }, Q({ _: 2 }, [
2809
- A(m.$slots, (B, F) => ({
2810
- name: F,
2811
- fn: y((R) => [
2812
- C(m.$slots, F, V({ ref_for: !0 }, R || {}))
2880
+ item: z
2881
+ }, G({ _: 2 }, [
2882
+ A(m.$slots, (B, L) => ({
2883
+ name: L,
2884
+ fn: g((R) => [
2885
+ C(m.$slots, L, V({ ref_for: !0 }, R || {}))
2813
2886
  ])
2814
2887
  }))
2815
2888
  ]), 1032, ["conf", "item"]))), 128))
@@ -2826,33 +2899,33 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2826
2899
  ]),
2827
2900
  _: 3
2828
2901
  }, 16, ["modelValue", "title", "before-close"]),
2829
- U(a(ae), {
2902
+ O(a(ne), {
2830
2903
  modelValue: a(t).remove.show,
2831
- "onUpdate:modelValue": c[11] || (c[11] = (f) => a(t).remove.show = f),
2904
+ "onUpdate:modelValue": c[11] || (c[11] = (y) => a(t).remove.show = y),
2832
2905
  title: a(t).remove.title,
2833
2906
  "close-on-click-modal": !1
2834
2907
  }, {
2835
- footer: y(() => [
2836
- E("span", Rt, [
2837
- U(a(q), {
2908
+ footer: g(() => [
2909
+ U("span", qt, [
2910
+ O(a(Q), {
2838
2911
  size: i.option.size?.form
2839
2912
  }, {
2840
- default: y(() => [
2841
- U(a(L), {
2913
+ default: g(() => [
2914
+ O(a(T), {
2842
2915
  onClick: a(t).remove.close
2843
2916
  }, {
2844
- default: y(() => [
2845
- D(O(a(w).tCurd("close")), 1)
2917
+ default: g(() => [
2918
+ E(S(a(w).tCurd("close")), 1)
2846
2919
  ]),
2847
2920
  _: 1
2848
2921
  }, 8, ["onClick"]),
2849
- U(a(L), {
2922
+ O(a(T), {
2850
2923
  type: "danger",
2851
2924
  onClick: a(t).remove.submit,
2852
2925
  loading: a(t).remove.loading
2853
2926
  }, {
2854
- default: y(() => [
2855
- D(O(a(w).tCurd("confirmDelete")), 1)
2927
+ default: g(() => [
2928
+ E(S(a(w).tCurd("confirmDelete")), 1)
2856
2929
  ]),
2857
2930
  _: 1
2858
2931
  }, 8, ["onClick", "loading"])
@@ -2861,17 +2934,17 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2861
2934
  }, 8, ["size"])
2862
2935
  ])
2863
2936
  ]),
2864
- default: y(() => [
2865
- i.option.dialog?.delete?.content ? (d(), b("div", jt, [
2866
- U(qe, {
2937
+ default: g(() => [
2938
+ i.option.dialog?.delete?.content ? (d(), b("div", Wt, [
2939
+ O(et, {
2867
2940
  content: i.option.dialog?.delete?.content,
2868
2941
  value: a(t).remove.items
2869
2942
  }, null, 8, ["content", "value"])
2870
- ])) : (d(), b("div", Bt, O(a(w).tCurd("confirmDeleteMessage", a(t).remove.items.length)), 1))
2943
+ ])) : (d(), b("div", Jt, S(a(w).tCurd("confirmDeleteMessage", a(t).remove.items.length)), 1))
2871
2944
  ]),
2872
2945
  _: 1
2873
2946
  }, 8, ["modelValue", "title"]),
2874
- U(He, {
2947
+ O(Ge, {
2875
2948
  ref_key: "switchConfirmRef",
2876
2949
  ref: e,
2877
2950
  size: i.option.size?.form
@@ -2880,32 +2953,32 @@ const zt = /* @__PURE__ */ X(vt, [["render", Vt]]), ue = /* @__PURE__ */ K({
2880
2953
  };
2881
2954
  }
2882
2955
  });
2883
- class Wt {
2956
+ class xt {
2884
2957
  /**
2885
2958
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2886
2959
  *
2887
2960
  * @param href - 文件的远程地址
2888
2961
  * @param name - 下载后的文件名,默认 `'download.png'`
2889
2962
  */
2890
- static async download(o, p = "download.png") {
2963
+ static async download(o, f = "download.png") {
2891
2964
  const n = document.createElement("a");
2892
- n.style.display = "none", n.href = o, n.setAttribute("download", p), typeof n.download > "u" && n.setAttribute("target", "_blank"), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(o);
2965
+ n.style.display = "none", n.href = o, n.setAttribute("download", f), typeof n.download > "u" && n.setAttribute("target", "_blank"), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(o);
2893
2966
  }
2894
2967
  /**
2895
2968
  * 将json对象或者json数组导出为json文件保存
2896
2969
  * @param data
2897
2970
  * @param name
2898
2971
  */
2899
- static exportJSONFile = (o, p) => {
2972
+ static exportJSONFile = (o, f) => {
2900
2973
  const n = new Blob([JSON.stringify(o)], { type: "application/json" }), l = URL.createObjectURL(n), t = document.createElement("a");
2901
- t.href = l, t.download = `${p || "config"}.json`, t.click();
2974
+ t.href = l, t.download = `${f || "config"}.json`, t.click();
2902
2975
  };
2903
2976
  /**
2904
2977
  * 导入文件内容,默认为json
2905
2978
  * @param param
2906
2979
  * @returns
2907
2980
  */
2908
- static importFile = async (o) => new Promise((p, n) => {
2981
+ static importFile = async (o) => new Promise((f, n) => {
2909
2982
  const l = document.createElement("input");
2910
2983
  l.type = "file";
2911
2984
  const t = o?.accept || ".json";
@@ -2918,33 +2991,33 @@ class Wt {
2918
2991
  const s = new FileReader();
2919
2992
  s.onload = async (m) => {
2920
2993
  const c = t == ".json" ? JSON.parse(m.target.result) : m.target.result;
2921
- p(c);
2994
+ f(c);
2922
2995
  }, s.onerror = () => {
2923
2996
  M.fail("文件读取失败"), n("文件读取失败");
2924
2997
  }, s.readAsText(r), document.body.removeChild(l);
2925
2998
  }, document.body.appendChild(l), l.click();
2926
2999
  });
2927
3000
  }
2928
- const Ht = (i, o) => {
2929
- if (i.component("TCurd", It), i.component("TFormList", se), i.component("TColumn", je), o?.customComponent) {
3001
+ const Gt = (i, o) => {
3002
+ if (i.component("TCurd", Qt), i.component("TFormList", ue), i.component("TColumn", We), o?.customComponent) {
2930
3003
  j.customComponent = o.customComponent;
2931
- for (const p in o.customComponent)
2932
- i.component(p, o.customComponent[p]);
3004
+ for (const f in o.customComponent)
3005
+ i.component(f, o.customComponent[f]);
2933
3006
  }
2934
- }, Jt = {
2935
- install: Ht
3007
+ }, _t = {
3008
+ install: Gt
2936
3009
  };
2937
3010
  export {
2938
3011
  P as ArrUtil,
2939
- Be as ExcelUtil,
2940
- je as TColumn,
2941
- It as TCurd,
2942
- Wt as TFile,
3012
+ Je as ExcelUtil,
3013
+ We as TColumn,
3014
+ Qt as TCurd,
3015
+ xt as TFile,
2943
3016
  j as TForm,
2944
- T as TFormConfig,
3017
+ F as TFormConfig,
2945
3018
  w as TFormI18n,
2946
- se as TFormList,
3019
+ ue as TFormList,
2947
3020
  M as TSys,
2948
- Jt as default,
2949
- Ht as install
3021
+ _t as default,
3022
+ Gt as install
2950
3023
  };