cc1-form 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cc1-form.js CHANGED
@@ -1,7 +1,7 @@
1
- import { ElMessage as ce, ElLoading as me, ElForm as N, ElFormItem as G, ElInput as Y, ElSwitch as oe, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as _, ElButton as T, ElTableColumn as ee, ElDropdown as he, ElDropdownMenu as ye, ElDropdownItem as x, ElPagination as ie, ElTable as ge } from "element-plus";
1
+ import { ElMessage as ce, ElLoading as me, ElForm as K, ElFormItem as G, ElInput as Z, ElSwitch as X, ElSelect as W, ElOption as N, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as ee, ElButton as A, ElTableColumn as te, ElDropdown as he, ElDropdownMenu as ge, ElDropdownItem as _, ElPagination as ie, ElTable as ye } from "element-plus";
2
2
  import "vue-router";
3
- import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as X, createElementBlock as g, createCommentVNode as k, openBlock as f, renderSlot as C, createVNode as z, withCtx as m, createTextVNode as $, Fragment as S, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, createElementVNode as F, mergeProps as v, toHandlers as D, resolveDynamicComponent as q, toDisplayString as U, getCurrentInstance as be, createSlots as te, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
4
- class E {
3
+ import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as Y, createElementBlock as b, createCommentVNode as k, openBlock as f, renderSlot as C, createVNode as z, withCtx as m, createTextVNode as $, Fragment as S, renderList as T, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as o, createElementVNode as F, mergeProps as v, toHandlers as D, resolveDynamicComponent as q, toDisplayString as O, getCurrentInstance as be, createSlots as oe, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
4
+ class U {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
7
7
  */
@@ -26,13 +26,13 @@ class E {
26
26
  * @param data 数据
27
27
  * @returns 是否显示
28
28
  */
29
- static isFun = (o, ...u) => Array.isArray(o) ? o.some((t) => typeof t == "function" ? t(...u) : t) : typeof o == "function" ? o(...u) : o;
29
+ static isFun = (a, ...u) => Array.isArray(a) ? a.some((t) => typeof t == "function" ? t(...u) : t) : typeof a == "function" ? a(...u) : a;
30
30
  /**
31
31
  * 获取路由参数,自动获取query、params中的参数, 哪个有就返回哪个
32
32
  */
33
33
  static getRouterParams = () => {
34
- const o = this.router.currentRoute.value.query || {}, u = this.router.currentRoute.value.params || {};
35
- return Object.keys(o).length ? o : Object.keys(u).length ? u : {};
34
+ const a = this.router.currentRoute.value.query || {}, u = this.router.currentRoute.value.params || {};
35
+ return Object.keys(a).length ? a : Object.keys(u).length ? u : {};
36
36
  };
37
37
  /**
38
38
  * 模块赋值
@@ -42,10 +42,10 @@ class E {
42
42
  * 加载模块
43
43
  * @param module
44
44
  */
45
- static loadModule = async (o) => {
46
- if (!E.moduleObj[o])
47
- throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const u = await E.moduleObj[o]();
45
+ static loadModule = async (a) => {
46
+ if (!U.moduleObj[a])
47
+ throw new Error(`模块${a}未加载,请赋值如:TSys.moduleObj = { ${a}: ()=>import('${a}') }`);
48
+ const u = await U.moduleObj[a]();
49
49
  return u.default ?? u;
50
50
  };
51
51
  /**
@@ -62,19 +62,19 @@ class E {
62
62
  * @param type 消息类型
63
63
  * @param options 其他选项
64
64
  */
65
- static showMessage(o, u, t = {}) {
65
+ static showMessage(a, u, t = {}) {
66
66
  const r = Date.now();
67
- if (!this.tipMessages[o] || r - this.tipMessages[o] > this.tipMessagesGap) {
68
- this.tipMessages[o] = r;
67
+ if (!this.tipMessages[a] || r - this.tipMessages[a] > this.tipMessagesGap) {
68
+ this.tipMessages[a] = r;
69
69
  const l = Object.assign(
70
70
  {
71
- message: o,
71
+ message: a,
72
72
  type: u
73
73
  },
74
74
  t
75
75
  );
76
76
  ce(l), setTimeout(() => {
77
- delete this.tipMessages[o];
77
+ delete this.tipMessages[a];
78
78
  }, this.tipMessagesGap);
79
79
  }
80
80
  }
@@ -83,16 +83,16 @@ class E {
83
83
  * @param content
84
84
  * @param options
85
85
  */
86
- static fail = (o, u = {}) => {
87
- this.showMessage(o, "error", u);
86
+ static fail = (a, u = {}) => {
87
+ this.showMessage(a, "error", u);
88
88
  };
89
89
  /**
90
90
  * 成功提示
91
91
  * @param content
92
92
  * @param options
93
93
  */
94
- static success = (o, u = {}) => {
95
- this.showMessage(o, "success", u);
94
+ static success = (a, u = {}) => {
95
+ this.showMessage(a, "success", u);
96
96
  };
97
97
  static loadingObj = null;
98
98
  static loadingTimer = null;
@@ -101,9 +101,9 @@ class E {
101
101
  * @param show
102
102
  * @param text
103
103
  */
104
- static loading = (o = !0, u = "Loading...") => {
104
+ static loading = (a = !0, u = "Loading...") => {
105
105
  Timer.un(this.loadingTimer), this.loadingTimer = Timer.once(() => {
106
- o ? this.loadingObj = me.service({
106
+ a ? this.loadingObj = me.service({
107
107
  lock: !0,
108
108
  text: u,
109
109
  background: "rgba(0, 0, 0, 0.3)"
@@ -115,34 +115,34 @@ class E {
115
115
  * @param url 地址
116
116
  * @param isCenter 是否居中
117
117
  */
118
- static openUrl = (o, u = !0) => {
118
+ static openUrl = (a, u = !0) => {
119
119
  if (u) {
120
120
  let t = screen.width / 2 - 500, r = screen.height / 2 - 800 / 2 - 30;
121
121
  window.open(
122
- o,
122
+ a,
123
123
  "_blank",
124
124
  "toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=1000, height=800, top=" + r + ", left=" + t
125
125
  );
126
126
  } else
127
- window.open(o, "DescriptiveWindowName" + StrUtil.getId(), "resizable,scrollbars=yes,status=1,width=1024, height=600, top=0, left=0");
127
+ window.open(a, "DescriptiveWindowName" + StrUtil.getId(), "resizable,scrollbars=yes,status=1,width=1024, height=600, top=0, left=0");
128
128
  };
129
129
  /**
130
130
  * 根据dom id截图并返回图片数据
131
131
  * @param param
132
132
  * @returns
133
133
  */
134
- static getImgPic = (o) => new Promise(async (u, t) => {
135
- let r = document.getElementById(o.id);
136
- const l = await E.loadModule("html2canvas");
134
+ static getImgPic = (a) => new Promise(async (u, t) => {
135
+ let r = document.getElementById(a.id);
136
+ const l = await U.loadModule("html2canvas");
137
137
  try {
138
138
  l(r, {
139
139
  logging: !1,
140
140
  allowTaint: !0,
141
141
  scale: window.devicePixelRatio,
142
- width: o.windowWidth,
143
- height: o.windowHeight,
144
- windowWidth: o.windowWidth,
145
- windowHeight: o.windowHeight,
142
+ width: a.windowWidth,
143
+ height: a.windowHeight,
144
+ windowWidth: a.windowWidth,
145
+ windowHeight: a.windowHeight,
146
146
  useCORS: !0,
147
147
  backgroundColor: "#ffffff00"
148
148
  }).then(function(e) {
@@ -154,7 +154,7 @@ class E {
154
154
  }
155
155
  });
156
156
  }
157
- class O {
157
+ class E {
158
158
  /**
159
159
  * 全局配置对象
160
160
  */
@@ -455,9 +455,13 @@ class O {
455
455
  options: {
456
456
  switch: {
457
457
  activeValue: !0,
458
- // activeLabel: TFormI18n.tCurd('switchOn'),
459
- inactiveValue: !1
460
- // inactiveLabel: TFormI18n.tCurd('switchOff'),
458
+ // activeText: TFormI18n.tCurd('switchOn'),
459
+ inactiveValue: !1,
460
+ // inactiveText: TFormI18n.tCurd('switchOff'),
461
+ tableConfig: {
462
+ confirm: !0,
463
+ loadList: !0
464
+ }
461
465
  },
462
466
  treeSelect: {
463
467
  // rowKey: props.option.table?.rowKey,
@@ -502,11 +506,11 @@ class O {
502
506
  *
503
507
  * @param config - 需要覆盖的配置项(深度 Partial)
504
508
  */
505
- static setConfig = (o) => {
506
- O.config = ObjectUtil.deepMerge(O.config, o);
509
+ static setConfig = (a) => {
510
+ E.config = ObjectUtil.deepMerge(E.config, a);
507
511
  };
508
512
  }
509
- class M {
513
+ class L {
510
514
  /**
511
515
  * 自定义组件映射表,key 为组件名(同时作为 column.type 值),value 为 Vue 组件定义
512
516
  *
@@ -524,8 +528,8 @@ class M {
524
528
  * @param field - 字段的 key 值
525
529
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
526
530
  */
527
- static findOptions = (o, u) => {
528
- const t = o.column.find((l) => l.key === u), r = (l) => l.replace(/-([a-z])/g, (e, s) => s.toUpperCase());
531
+ static findOptions = (a, u) => {
532
+ const t = a.column.find((l) => l.key === u), r = (l) => l.replace(/-([a-z])/g, (e, s) => s.toUpperCase());
529
533
  if (t)
530
534
  return t.options[r(t.type)];
531
535
  };
@@ -545,8 +549,8 @@ class M {
545
549
  }))
546
550
  )
547
551
  */
548
- static setOptionsData = (o, u, t) => {
549
- const r = M.findOptions(o, u);
552
+ static setOptionsData = (a, u, t) => {
553
+ const r = L.findOptions(a, u);
550
554
  r && (r.data = t);
551
555
  };
552
556
  static form = {
@@ -558,9 +562,9 @@ class M {
558
562
  * @param treeData 树形数据
559
563
  * @param option 组件配置
560
564
  */
561
- parentId: (o, u, t, r) => {
562
- const l = O.config.table.rowKey;
563
- o ? u.type === E.EDialog.Add ? (u.form.parentId = o[l], u.form.sort = o.children.length + 1) : u.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), M.setOptionsData(r, "parentId", [{ [l]: "0", title: "根", children: t }]);
565
+ parentId: (a, u, t, r) => {
566
+ const l = E.config.table.rowKey;
567
+ a ? u.type === U.EDialog.Add ? (u.form.parentId = a[l], u.form.sort = a.children.length + 1) : u.form.parentId = a.parentId.substring(a.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), L.setOptionsData(r, "parentId", [{ [l]: "0", title: "根", children: t }]);
564
568
  }
565
569
  }
566
570
  };
@@ -600,19 +604,19 @@ const Ve = {
600
604
  };
601
605
  class y {
602
606
  /** 解析国际化值:函数则执行并返回字符串,字符串则替换 `{key}` 占位符 */
603
- static t(o, ...u) {
604
- if (typeof o == "function")
605
- return o(...u);
606
- o = String(o);
607
+ static t(a, ...u) {
608
+ if (typeof a == "function")
609
+ return a(...u);
610
+ a = String(a);
607
611
  let t = 0;
608
- return o.replace(/{([^}]+)}/g, (r, l) => t < u.length ? String(u[t++]) : `{${l}}`);
612
+ return a.replace(/{([^}]+)}/g, (r, l) => t < u.length ? String(u[t++]) : `{${l}}`);
609
613
  }
610
- static setI18n = (o) => {
611
- y.curd = ObjectUtil.deepMerge(y.curd, o);
614
+ static setI18n = (a) => {
615
+ y.curd = ObjectUtil.deepMerge(y.curd, a);
612
616
  };
613
617
  /** 解析curd国际化值 */
614
- static tCurd(o, ...u) {
615
- return this.t(this.curd[o], ...u);
618
+ static tCurd(a, ...u) {
619
+ return this.t(this.curd[a], ...u);
616
620
  }
617
621
  /** curd表单 */
618
622
  static curd = Ve;
@@ -627,10 +631,10 @@ class P {
627
631
  * @param field 字段名
628
632
  * @param row 行数据
629
633
  */
630
- static setId = (o, u, t) => {
631
- u[o] || (u[o] = []);
632
- const r = O.config.table.rowKey;
633
- u[o].forEach((l) => {
634
+ static setId = (a, u, t) => {
635
+ u[a] || (u[a] = []);
636
+ const r = E.config.table.rowKey;
637
+ u[a].forEach((l) => {
634
638
  t.forEach((e) => {
635
639
  let s = e.default ?? "";
636
640
  e.type === "number" && (s = e.default ?? 0), e.type === "boolean" && (s = e.default ?? !1), e.type === "time" && (s = e.default ?? /* @__PURE__ */ new Date()), l[e.value] === void 0 && (l[e.value] = s);
@@ -644,11 +648,11 @@ class P {
644
648
  * @param itemFields 元素字段-如:[{label:'',value:''}]
645
649
  * @param callback 回调函数
646
650
  */
647
- static add = (o, u, t, r) => {
651
+ static add = (a, u, t, r) => {
648
652
  const l = JSONUtil.cp(t);
649
- P.setId(o, u, t);
650
- const e = O.config.table.rowKey;
651
- u[o].push(
653
+ P.setId(a, u, t);
654
+ const e = E.config.table.rowKey;
655
+ u[a].push(
652
656
  l.reduce(
653
657
  (s, p) => {
654
658
  let c = p.default ?? "";
@@ -665,9 +669,9 @@ class P {
665
669
  * @param item 元素-如:{_id:''}
666
670
  * @param callback 回调函数
667
671
  */
668
- static remove = (o, u, t, r) => {
669
- const l = O.config.table.rowKey;
670
- u[o] = u[o].filter((e) => e[l] !== t[l]), r?.(u);
672
+ static remove = (a, u, t, r) => {
673
+ const l = E.config.table.rowKey;
674
+ u[a] = u[a].filter((e) => e[l] !== t[l]), r?.(u);
671
675
  };
672
676
  /**
673
677
  * 获取没有id的数据
@@ -675,8 +679,8 @@ class P {
675
679
  * @param childernField 子级字段-如:list、children
676
680
  * @returns 没有id的数据
677
681
  */
678
- static getNoIdData = (o, u) => {
679
- const t = JSONUtil.cp(o), r = O.config.table.rowKey;
682
+ static getNoIdData = (a, u) => {
683
+ const t = JSONUtil.cp(a), r = E.config.table.rowKey;
680
684
  return t.forEach((l) => {
681
685
  l[r] && delete l[r], u && l[u] && P.getNoIdData(l[u], u);
682
686
  }), t;
@@ -686,7 +690,7 @@ const ze = {
686
690
  key: 0,
687
691
  class: "column curd-form-com-list",
688
692
  style: { width: "100%", gap: "10px" }
689
- }, $e = { key: 0 }, De = {
693
+ }, De = { key: 0 }, $e = {
690
694
  class: "row items-center",
691
695
  style: { gap: "10px", width: "100%" }
692
696
  }, Se = { key: 1 }, ne = /* @__PURE__ */ J({
@@ -727,7 +731,7 @@ const ze = {
727
731
  }
728
732
  },
729
733
  emits: ["change"],
730
- setup(i, { emit: o }) {
734
+ setup(i, { emit: a }) {
731
735
  const u = i, t = le({
732
736
  show: !1,
733
737
  add: (l, e, s) => {
@@ -744,12 +748,12 @@ const ze = {
744
748
  ue(() => {
745
749
  P.setId(u.field, u.row, u.itemFields), t.show = !0;
746
750
  });
747
- const r = o;
751
+ const r = a;
748
752
  return (l, e) => {
749
- const s = X("el-button"), p = X("el-input");
750
- return t.show ? (f(), g("div", ze, [
753
+ const s = Y("el-button"), p = Y("el-input");
754
+ return t.show ? (f(), b("div", ze, [
751
755
  C(l.$slots, "list-start", { row: i.row }),
752
- i.addBottom ? k("", !0) : (f(), g("div", $e, [
756
+ i.addBottom ? k("", !0) : (f(), b("div", De, [
753
757
  z(s, {
754
758
  link: "",
755
759
  type: "primary",
@@ -761,17 +765,17 @@ const ze = {
761
765
  _: 1
762
766
  })
763
767
  ])),
764
- (f(!0), g(S, null, L(i.row[i.field], (c) => (f(), g("div", De, [
768
+ (f(!0), b(S, null, T(i.row[i.field], (c) => (f(), b("div", $e, [
765
769
  C(l.$slots, "item-start", {
766
770
  item: c,
767
771
  row: i.row
768
772
  }),
769
- (f(!0), g(S, null, L(i.itemFields, (b) => (f(), h(p, {
770
- modelValue: c[b.value],
771
- "onUpdate:modelValue": (n) => c[b.value] = n,
773
+ (f(!0), b(S, null, T(i.itemFields, (g) => (f(), h(p, {
774
+ modelValue: c[g.value],
775
+ "onUpdate:modelValue": (n) => c[g.value] = n,
772
776
  style: fe({ width: i.inputWidth }),
773
777
  class: j(i.inputClass),
774
- placeholder: b[i.label] || b[i.value],
778
+ placeholder: g[i.label] || g[i.value],
775
779
  onChange: e[1] || (e[1] = (n) => r("change"))
776
780
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
777
781
  C(l.$slots, "item-end", {
@@ -781,7 +785,7 @@ const ze = {
781
785
  z(s, {
782
786
  link: "",
783
787
  type: "danger",
784
- onClick: (b) => t.remove(i.field, i.row, c)
788
+ onClick: (g) => t.remove(i.field, i.row, c)
785
789
  }, {
786
790
  default: m(() => e[4] || (e[4] = [
787
791
  $("删除")
@@ -789,7 +793,7 @@ const ze = {
789
793
  _: 2
790
794
  }, 1032, ["onClick"])
791
795
  ]))), 256)),
792
- i.addBottom ? (f(), g("div", Se, [
796
+ i.addBottom ? (f(), b("div", Se, [
793
797
  z(s, {
794
798
  link: "",
795
799
  type: "primary",
@@ -805,10 +809,10 @@ const ze = {
805
809
  ])) : k("", !0);
806
810
  };
807
811
  }
808
- }), Ee = {
812
+ }), Ue = {
809
813
  class: "row form-item-content",
810
814
  style: { width: "100%" }
811
- }, Ue = { class: "col" }, Oe = { class: "col" }, Fe = ["innerHTML"], Ae = /* @__PURE__ */ J({
815
+ }, Oe = { class: "col" }, Ee = { class: "col" }, Fe = ["innerHTML"], Me = /* @__PURE__ */ J({
812
816
  __name: "column",
813
817
  props: {
814
818
  /**
@@ -824,8 +828,8 @@ const ze = {
824
828
  default: ""
825
829
  }
826
830
  },
827
- setup(i, { expose: o }) {
828
- const u = E.isFun, t = E.EDialog, r = H(), l = i, e = le({
831
+ setup(i, { expose: a }) {
832
+ const u = U.isFun, t = U.EDialog, r = H(), l = i, e = le({
829
833
  rules: {},
830
834
  show: !0,
831
835
  form: {},
@@ -837,64 +841,64 @@ const ze = {
837
841
  getOn: (s) => s.options?.[e.type === t.Add ? "formAdd" : "formUpdate"]?.[s.type]?.on || s.options?.[s.type]?.on || {},
838
842
  getColumnSpan: (s, p) => {
839
843
  if (s.item.form?.spanCol) {
840
- const c = l.option.form?.maxSpan || 12, b = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !E.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || b), 0);
841
- return (s.item.form?.span || b) + d;
844
+ const c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !U.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || g), 0);
845
+ return (s.item.form?.span || g) + d;
842
846
  }
843
847
  return s.item.form?.span;
844
848
  },
845
849
  initColumnForm: () => {
846
850
  const s = l.option;
847
851
  e.formColumn = [], e.rules = {}, e.formDefault = {};
848
- const p = [], c = l.option.form?.maxSpan || 12, b = l.option.form?.defaultSpan || c / 2;
852
+ const p = [], c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2;
849
853
  let n = [];
850
854
  const d = (w) => {
851
855
  if (w.children) {
852
- w.children.forEach((A) => {
853
- d(A);
856
+ w.children.forEach((M) => {
857
+ d(M);
854
858
  });
855
859
  return;
856
860
  }
857
861
  if (e.formDefault[w.key] = w.value, w.isForm && (typeof w.show?.form != "boolean" || w.show?.form)) {
858
- w.form = w.form || { span: b }, w.form.span = w.form.span ?? b;
859
- const A = w.form.span, B = n.reduce((Q, Z) => Q + Z.span, A), R = n.length;
860
- if (n.push({ item: w, span: A }), (R === 1 && n[0].span === 0 || B >= c || A === 0 && R > 1) && (p.push(n), n = []), w.rules) {
862
+ w.form = w.form || { span: g }, w.form.span = w.form.span ?? g;
863
+ const M = w.form.span, B = n.reduce((Q, x) => Q + x.span, M), I = n.length;
864
+ if (n.push({ item: w, span: M }), (I === 1 && n[0].span === 0 || B >= c || M === 0 && I > 1) && (p.push(n), n = []), w.rules) {
861
865
  const Q = {
862
866
  input: y.tCurd("placeholderInput"),
863
867
  select: y.tCurd("placeholderSelect")
864
- }, Z = (Q[w.type] || Q.input) + w.label;
868
+ }, x = (Q[w.type] || Q.input) + w.label;
865
869
  e.rules[w.key] = typeof w.rules == "boolean" ? [
866
870
  {
867
871
  required: !0,
868
- message: Z,
872
+ message: x,
869
873
  trigger: "blur"
870
874
  }
871
875
  ] : w.rules;
872
876
  }
873
877
  }
874
- }, V = (w, A) => {
875
- w.isForm = A, Array.isArray(w.children) && w.children.forEach((B) => V(B, A));
878
+ }, V = (w, M) => {
879
+ w.isForm = M, Array.isArray(w.children) && w.children.forEach((B) => V(B, M));
876
880
  };
877
881
  s.column.forEach((w) => {
878
882
  V(w, !0), d(w);
879
883
  }), n.length > 0 && p.push(n), e.formColumn = p, e.form = JSONUtil.cp(e.formDefault);
880
884
  }
881
885
  });
882
- return e.initColumnForm(), o({
886
+ return e.initColumnForm(), a({
883
887
  ref: r,
884
888
  conf: e
885
- }), (s, p) => (f(), h(a(N), {
889
+ }), (s, p) => (f(), h(o(K), {
886
890
  ref_key: "ruleFormRef",
887
891
  ref: r,
888
892
  model: e.form,
889
893
  rules: e.rules
890
894
  }, {
891
895
  default: m(() => [
892
- e.show ? (f(!0), g(S, { key: 0 }, L(e.formColumn, (c, b) => (f(), g(S, { key: b }, [
893
- a(u)(
896
+ e.show ? (f(!0), b(S, { key: 0 }, T(e.formColumn, (c, g) => (f(), b(S, { key: g }, [
897
+ o(u)(
894
898
  c.map((n) => n.item?.show?.form),
895
899
  e.form,
896
900
  e.type
897
- ) ? (f(), g("div", {
901
+ ) ? (f(), b("div", {
898
902
  key: 0,
899
903
  class: j(["row curd-row", {
900
904
  stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
@@ -903,14 +907,14 @@ const ze = {
903
907
  C(s.$slots, "form-start", {
904
908
  row: e.form
905
909
  }),
906
- (f(!0), g(S, null, L(c, (n) => (f(), g(S, {
910
+ (f(!0), b(S, null, T(c, (n) => (f(), b(S, {
907
911
  key: n.item.key
908
912
  }, [
909
- a(u)(n.item.show?.form, e.form, e.type) ? (f(), g("div", {
913
+ o(u)(n.item.show?.form, e.form, e.type) ? (f(), b("div", {
910
914
  key: 0,
911
915
  class: j([n.item.form.span > 0 ? `col-${e.getColumnSpan(n, c)}` : "col", `form-item-col-${n.item.key}`])
912
916
  }, [
913
- z(a(G), {
917
+ z(o(G), {
914
918
  class: j({
915
919
  "hide-label": typeof n.item.text?.form?.label == "boolean" ? !n.item.text?.form?.label : !1
916
920
  }),
@@ -919,32 +923,32 @@ const ze = {
919
923
  "label-width": n.item.form?.labelWidth || i.option.form?.labelWidth || "100px"
920
924
  }, {
921
925
  default: m(() => [
922
- F("div", Ee, [
926
+ F("div", Ue, [
923
927
  C(s.$slots, "form-" + n.item.key + "-start", {
924
928
  row: e.form,
925
929
  item: n.item
926
930
  }),
927
- F("div", Ue, [
928
- F("div", Oe, [
931
+ F("div", Oe, [
932
+ F("div", Ee, [
929
933
  C(s.$slots, "form-" + n.item.key, {
930
934
  row: e.form,
931
935
  item: n.item
932
936
  }, () => [
933
- n.item.type === "input" ? (f(), h(a(Y), v({
937
+ n.item.type === "input" ? (f(), h(o(Z), v({
934
938
  key: 0,
935
939
  modelValue: e.form[n.item.key],
936
940
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
937
941
  ref_for: !0
938
942
  }, e.getBind(n.item), D(e.getOn(n.item)), {
939
943
  disabled: e.getDisabled(n.item)
940
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "switch" ? (f(), h(a(oe), v({
944
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "switch" ? (f(), h(o(X), v({
941
945
  key: 1,
942
946
  modelValue: e.form[n.item.key],
943
947
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
944
948
  ref_for: !0
945
949
  }, e.getBind(n.item), D(e.getOn(n.item)), {
946
950
  disabled: e.getDisabled(n.item)
947
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "select" ? (f(), h(a(W), v({
951
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "select" ? (f(), h(o(W), v({
948
952
  key: 2,
949
953
  modelValue: e.form[n.item.key],
950
954
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
@@ -954,14 +958,14 @@ const ze = {
954
958
  style: { width: "100%" }
955
959
  }), {
956
960
  default: m(() => [
957
- (f(!0), g(S, null, L(n.item.options?.select?.data, (d) => (f(), h(a(K), {
961
+ (f(!0), b(S, null, T(n.item.options?.select?.data, (d) => (f(), h(o(N), {
958
962
  key: d.value,
959
963
  label: d.label,
960
964
  value: d.value
961
965
  }, null, 8, ["label", "value"]))), 128))
962
966
  ]),
963
967
  _: 2
964
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "radio" ? (f(), h(a(re), v({
968
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "radio" ? (f(), h(o(re), v({
965
969
  key: 3,
966
970
  modelValue: e.form[n.item.key],
967
971
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
@@ -971,7 +975,7 @@ const ze = {
971
975
  style: { width: "100%" }
972
976
  }), {
973
977
  default: m(() => [
974
- (f(!0), g(S, null, L(n.item.options?.radio?.data, (d) => (f(), h(a(se), {
978
+ (f(!0), b(S, null, T(n.item.options?.radio?.data, (d) => (f(), h(o(se), {
975
979
  key: d.value,
976
980
  label: d.label,
977
981
  value: d.value
@@ -986,7 +990,7 @@ const ze = {
986
990
  }, e.getBind(n.item), D(e.getOn(n.item)), {
987
991
  disabled: e.getDisabled(n.item),
988
992
  style: { width: "100%" }
989
- }), null, 16, ["row", "field", "disabled"])) : n.item.type === "treeSelect" ? (f(), h(a(de), v({
993
+ }), null, 16, ["row", "field", "disabled"])) : n.item.type === "treeSelect" ? (f(), h(o(de), v({
990
994
  key: 5,
991
995
  modelValue: e.form[n.item.key],
992
996
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
@@ -994,14 +998,14 @@ const ze = {
994
998
  }, e.getBind(n.item), D(e.getOn(n.item)), {
995
999
  disabled: e.getDisabled(n.item),
996
1000
  style: { width: "100%" }
997
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "datetime" ? (f(), h(a(ae), v({
1001
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type === "datetime" ? (f(), h(o(ae), v({
998
1002
  key: 6,
999
1003
  modelValue: e.form[n.item.key],
1000
1004
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
1001
1005
  ref_for: !0
1002
1006
  }, e.getBind(n.item), D(e.getOn(n.item)), {
1003
1007
  disabled: e.getDisabled(n.item)
1004
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type && (a(M).customComponent[n.item.type] || a(M).customComponent[n.item.type]?.form) ? (f(), h(q(a(M).customComponent[n.item.type]?.form || a(M).customComponent[n.item.type]), v({
1008
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.item.type && (o(L).customComponent[n.item.type] || o(L).customComponent[n.item.type]?.form) ? (f(), h(q(o(L).customComponent[n.item.type]?.form || o(L).customComponent[n.item.type]), v({
1005
1009
  key: 7,
1006
1010
  modelValue: e.form[n.item.key],
1007
1011
  "onUpdate:modelValue": (d) => e.form[n.item.key] = d,
@@ -1019,7 +1023,7 @@ const ze = {
1019
1023
  row: e.form,
1020
1024
  item: n.item
1021
1025
  }, () => [
1022
- n.item.form?.tipText ? (f(), g("div", {
1026
+ n.item.form?.tipText ? (f(), b("div", {
1023
1027
  key: 0,
1024
1028
  class: "form-tip-text",
1025
1029
  innerHTML: typeof n.item.form?.tipText == "function" ? n.item.form?.tipText(e.form, e.type) : n.item.form?.tipText
@@ -1046,7 +1050,7 @@ const ze = {
1046
1050
  }, 8, ["model", "rules"]));
1047
1051
  }
1048
1052
  });
1049
- class Te {
1053
+ class Ae {
1050
1054
  /**
1051
1055
  * 导出数据为 Excel 文件(.xlsx),自动触发浏览器下载
1052
1056
  *
@@ -1054,19 +1058,19 @@ class Te {
1054
1058
  * @param columns - 列配置数组,需包含 `key`(数据字段)和 `label`(Excel 表头)
1055
1059
  * @param fileName - 文件名(不含扩展名),支持字符串或返回字符串的函数;默认生成「导出数据_日期_时间戳」
1056
1060
  */
1057
- static exportToExcel = async (o, u, t) => {
1058
- if (!o || o.length === 0) return;
1059
- const r = await E.loadModule("xlsx"), l = o.map((p) => {
1061
+ static exportToExcel = async (a, u, t) => {
1062
+ if (!a || a.length === 0) return;
1063
+ const r = await U.loadModule("xlsx"), l = a.map((p) => {
1060
1064
  const c = {};
1061
- return u.forEach((b) => {
1062
- c[b.label] = p[b.key];
1065
+ return u.forEach((g) => {
1066
+ c[g.label] = p[g.key];
1063
1067
  }), c;
1064
1068
  }), e = r.utils.json_to_sheet(l), s = r.utils.book_new();
1065
1069
  r.utils.book_append_sheet(s, e, "Sheet1"), t ? typeof t == "function" && (t = t()) : t = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, r.writeFile(s, `${t}.xlsx`);
1066
1070
  };
1067
1071
  }
1068
- const I = E.EDialog, Le = (i) => {
1069
- const o = H(), u = H(), t = le({
1072
+ const R = U.EDialog, Te = (i) => {
1073
+ const a = H(), u = H(), t = le({
1070
1074
  option: i.option,
1071
1075
  /** 查询区域相关配置对象 */
1072
1076
  search: {
@@ -1109,19 +1113,19 @@ const I = E.EDialog, Le = (i) => {
1109
1113
  /** 总条数 */
1110
1114
  total: 0,
1111
1115
  /** 分页控件的布局方式 */
1112
- layout: i.option.page?.layout || O.config.pagination.layout,
1116
+ layout: i.option.page?.layout || E.config.pagination.layout,
1113
1117
  /** 是否显示到工具栏 默认不显示 配置后show属性无效 */
1114
- showTools: i.option.page?.showTools || O.config.pagination.showTools,
1118
+ showTools: i.option.page?.showTools || E.config.pagination.showTools,
1115
1119
  /** 当前每页条数 */
1116
- size: i.option.page?.size || O.config.pagination.size,
1120
+ size: i.option.page?.size || E.config.pagination.size,
1117
1121
  /** 支持切换的每页条数选项 */
1118
- sizeList: i.option.page?.sizeList || O.config.pagination.pageSizes,
1122
+ sizeList: i.option.page?.sizeList || E.config.pagination.pageSizes,
1119
1123
  /** 分页器计数 */
1120
- pagerCount: i.option.page?.pagerCount || O.config.pagination.pagerCount,
1124
+ pagerCount: i.option.page?.pagerCount || E.config.pagination.pagerCount,
1121
1125
  /** 获取分页查询参数 */
1122
1126
  getQuery: (r = {}) => ({
1123
- [O.config.field.page.size]: r.size || t.page.size,
1124
- [O.config.field.page.num]: r.num || t.page.num,
1127
+ [E.config.field.page.size]: r.size || t.page.size,
1128
+ [E.config.field.page.num]: r.num || t.page.num,
1125
1129
  ...t.search.getFormData()
1126
1130
  })
1127
1131
  },
@@ -1181,7 +1185,7 @@ const I = E.EDialog, Le = (i) => {
1181
1185
  await t.initApiData("init");
1182
1186
  let l = {};
1183
1187
  if (t.table.sort.prop) {
1184
- const { props: d, order: V } = O.config.table.sort;
1188
+ const { props: d, order: V } = E.config.table.sort;
1185
1189
  l = {
1186
1190
  [d.field]: t.table.sort.prop,
1187
1191
  [V.field]: t.table.sort.order
@@ -1190,11 +1194,11 @@ const I = E.EDialog, Le = (i) => {
1190
1194
  const e = await r({
1191
1195
  ...t.page.getQuery(),
1192
1196
  ...l
1193
- }), s = O.config.field.result, p = e.data || { [s.list]: e };
1197
+ }), s = E.config.field.result, p = e.data || { [s.list]: e };
1194
1198
  let c = (Array.isArray(p[s.list]), p[s.list]);
1195
- const b = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1196
- const A = b.find((B) => B.item.key === w);
1197
- A && ["select", "radio"].includes(A.item.type) && (A.item.table.format || (A.item.table.format = (B) => A.item.options[A.item.type].data?.find((R) => R.value == B[w])?.label || B[w]));
1199
+ const g = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1200
+ const M = g.find((B) => B.item.key === w);
1201
+ M && ["select", "radio"].includes(M.item.type) && (M.item.table.format || (M.item.table.format = (B) => M.item.options[M.item.type].data?.find((I) => I.value == B[w])?.label || B[w]));
1198
1202
  }), d));
1199
1203
  t.table.data = i.option.data ? await i.option.data(n, c) : n, t.page.total = p[s.total] || 0;
1200
1204
  } catch (l) {
@@ -1220,8 +1224,8 @@ const I = E.EDialog, Le = (i) => {
1220
1224
  order: "",
1221
1225
  /** 排序变更回调 */
1222
1226
  change: (r) => {
1223
- O.config.table.sort.resetPage && (t.page.num = 1);
1224
- const l = O.config.table.sort;
1227
+ E.config.table.sort.resetPage && (t.page.num = 1);
1228
+ const l = E.config.table.sort;
1225
1229
  if (l.change) {
1226
1230
  l.change(r, t);
1227
1231
  return;
@@ -1241,7 +1245,7 @@ const I = E.EDialog, Le = (i) => {
1241
1245
  data: l,
1242
1246
  columns: e
1243
1247
  }), p = i.option.tools?.export || {};
1244
- p.before && p.before(s), Te.exportToExcel(s.data, s.columns, p.fileName);
1248
+ p.before && p.before(s), Ae.exportToExcel(s.data, s.columns, p.fileName);
1245
1249
  },
1246
1250
  /** 获取当前选中项进行导出 */
1247
1251
  select: async () => {
@@ -1255,7 +1259,7 @@ const I = E.EDialog, Le = (i) => {
1255
1259
  return;
1256
1260
  }
1257
1261
  if (t.table.selection.list.length === 0)
1258
- throw E.fail(y.tCurd("selectDataToExport")), new Error(y.tCurd("selectDataToExport"));
1262
+ throw U.fail(y.tCurd("selectDataToExport")), new Error(y.tCurd("selectDataToExport"));
1259
1263
  return t.table.selection.list;
1260
1264
  } catch (r) {
1261
1265
  console.error(r);
@@ -1274,7 +1278,7 @@ const I = E.EDialog, Le = (i) => {
1274
1278
  return;
1275
1279
  }
1276
1280
  if (t.table.data.length === 0)
1277
- throw E.fail(y.tCurd("noData")), new Error(y.tCurd("noData"));
1281
+ throw U.fail(y.tCurd("noData")), new Error(y.tCurd("noData"));
1278
1282
  return t.table.data;
1279
1283
  } catch (r) {
1280
1284
  console.error(r);
@@ -1298,7 +1302,7 @@ const I = E.EDialog, Le = (i) => {
1298
1302
  num: 1
1299
1303
  })
1300
1304
  });
1301
- return (l.data || { [O.config.field.result.list]: l })[O.config.field.result.list];
1305
+ return (l.data || { [E.config.field.result.list]: l })[E.config.field.result.list];
1302
1306
  } catch (r) {
1303
1307
  console.error(r);
1304
1308
  } finally {
@@ -1326,7 +1330,7 @@ const I = E.EDialog, Le = (i) => {
1326
1330
  /** 弹窗loading */
1327
1331
  loading: !1,
1328
1332
  /** 当前操作类型,插入或修改 */
1329
- type: I.Add,
1333
+ type: R.Add,
1330
1334
  /** 当前操作表单数据 */
1331
1335
  form: {},
1332
1336
  /** 表单默认值 */
@@ -1334,11 +1338,11 @@ const I = E.EDialog, Le = (i) => {
1334
1338
  /** 表单所有列,二维数组结构按行分组 */
1335
1339
  formColumn: [],
1336
1340
  /** 判断是否禁用当前字段 */
1337
- getDisabled: (r) => t.update.type === I.View ? r.disabled?.view === void 0 ? !0 : r.disabled?.view : r.disabled?.[t.update.type === I.Add ? "create" : "update"],
1341
+ getDisabled: (r) => t.update.type === R.View ? r.disabled?.view === void 0 ? !0 : r.disabled?.view : r.disabled?.[t.update.type === R.Add ? "create" : "update"],
1338
1342
  /** 获取表单组件绑定属性 */
1339
- getBind: (r) => r.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[r.type] || r.options?.[r.type] || {},
1343
+ getBind: (r) => r.options?.[t.update.type === R.Add ? "formAdd" : "formUpdate"]?.[r.type] || r.options?.[r.type] || {},
1340
1344
  /** 获取表单组件事件属性 */
1341
- getOn: (r) => r.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[r.type]?.on || r.options?.[r.type]?.on || {},
1345
+ getOn: (r) => r.options?.[t.update.type === R.Add ? "formAdd" : "formUpdate"]?.[r.type]?.on || r.options?.[r.type]?.on || {},
1342
1346
  /** 获取表单组件绑定属性和事件 */
1343
1347
  getOptions: (r) => {
1344
1348
  try {
@@ -1372,25 +1376,25 @@ const I = E.EDialog, Le = (i) => {
1372
1376
  /** 打开增改弹窗 */
1373
1377
  open: (r, l) => {
1374
1378
  t.update.showContent || FunUtil.throttle(async () => {
1375
- E.loading(!0);
1379
+ U.loading(!0);
1376
1380
  try {
1377
1381
  t.update.type = r, await t.initApiData("update");
1378
- const e = r === I.Add;
1379
- t.update.edit.data = l, t.update.title = y.tCurd(e ? "add" : r === I.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await i.option.form?.openBefore?.(t.update.form, t.update), !e && i.option.table?.inlineEdit ? t.inlineEdit.open(l) : (t.update.show = !0, t.update.showContent = !0), i.option.form?.openAfter?.(t.update.form, t.update);
1382
+ const e = r === R.Add;
1383
+ t.update.edit.data = l, t.update.title = y.tCurd(e ? "add" : r === R.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await i.option.form?.openBefore?.(t.update.form, t.update), (!i.option.table?.inlineEdit || e) && (t.update.show = !0, t.update.showContent = !0), i.option.form?.openAfter?.(t.update.form, t.update);
1380
1384
  } catch (e) {
1381
1385
  console.error(e);
1382
1386
  } finally {
1383
- E.loading(!1);
1387
+ U.loading(!1);
1384
1388
  }
1385
1389
  });
1386
1390
  },
1387
1391
  /** 提交增改表单操作 */
1388
1392
  submit: () => {
1389
1393
  FunUtil.throttle(async () => {
1390
- await u.value?.validate(async (s, p) => new Promise((c, b) => {
1391
- s || (E.fail(y.tCurd("checkFormData")), b(!1)), c();
1394
+ await u.value?.validate(async (s, p) => new Promise((c, g) => {
1395
+ s || (U.fail(y.tCurd("checkFormData")), g(!1)), c();
1392
1396
  })), t.update.loading = !0;
1393
- const r = t.update.type === I.Add ? i.option.api.create : i.option.api.update;
1397
+ const r = t.update.type === R.Add ? i.option.api.create : i.option.api.update;
1394
1398
  try {
1395
1399
  await i.option.form?.submitBefore?.(t.update.form, t.update);
1396
1400
  } catch {
@@ -1420,24 +1424,11 @@ const I = E.EDialog, Le = (i) => {
1420
1424
  },
1421
1425
  /** 关闭弹窗和内容 */
1422
1426
  close: () => {
1423
- t.update.show = !1, setTimeout(() => {
1427
+ t.update.show = !1, i.option.table?.inlineEdit && (t.update.form = {}), setTimeout(() => {
1424
1428
  t.update.showContent = !1;
1425
1429
  }, 350);
1426
1430
  }
1427
1431
  },
1428
- /** 行内编辑相关对象 */
1429
- inlineEdit: {
1430
- /** 行内编辑当前行对象 */
1431
- data: null,
1432
- /** 打开行内编辑 */
1433
- open: (r) => {
1434
- t.inlineEdit.data = r, t.update.open(I.Update, r);
1435
- },
1436
- /** 关闭行内编辑 */
1437
- close: () => {
1438
- t.inlineEdit.data = null, t.update.close();
1439
- }
1440
- },
1441
1432
  /** 删除操作弹窗与数据对象 */
1442
1433
  remove: {
1443
1434
  /** 删除弹窗标题 */
@@ -1455,7 +1446,7 @@ const I = E.EDialog, Le = (i) => {
1455
1446
  /** 打开删除弹窗并设置待删除项 */
1456
1447
  open: (r) => {
1457
1448
  if (r.length === 0) {
1458
- E.fail(y.tCurd("selectDataToDelete"));
1449
+ U.fail(y.tCurd("selectDataToDelete"));
1459
1450
  return;
1460
1451
  }
1461
1452
  t.remove.items = r, t.remove.show = !0;
@@ -1470,7 +1461,7 @@ const I = E.EDialog, Le = (i) => {
1470
1461
  await r({
1471
1462
  [i.option.table?.rowKey]: t.remove.items.map((l) => l[i.option.table?.rowKey]),
1472
1463
  items: t.remove.items
1473
- }), E.success(y.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
1464
+ }), U.success(y.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
1474
1465
  } catch (l) {
1475
1466
  console.error(l);
1476
1467
  } finally {
@@ -1498,8 +1489,8 @@ const I = E.EDialog, Le = (i) => {
1498
1489
  try {
1499
1490
  let c = await s.options?.[s.type]?.dataApi?.(t.update.form, r);
1500
1491
  if (c) {
1501
- const b = s.options?.[s.type]?.dataPath;
1502
- b && (c = ObjectUtil.getPathValue(c, b)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
1492
+ const g = s.options?.[s.type]?.dataPath;
1493
+ !Array.isArray(c) && g && (c = ObjectUtil.getPathValue(c, g)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
1503
1494
  }
1504
1495
  } catch {
1505
1496
  }
@@ -1513,7 +1504,7 @@ const I = E.EDialog, Le = (i) => {
1513
1504
  },
1514
1505
  /** 初始化curd配置(option默认值合并等) */
1515
1506
  initCurdConfig: () => {
1516
- const r = JSONUtil.cp(O.config);
1507
+ const r = JSONUtil.cp(E.config);
1517
1508
  r.table.emptyText = y.tCurd("noData"), i.option.size = i.option.size || {}, r.table.size = i.option.size.table || r.size.table, r.form.size = i.option.size.form || r.size.form, r.size.search = i.option.size.search || r.size.search;
1518
1509
  const l = ObjectUtil.deepMerge(r, i.option || {});
1519
1510
  Object.keys(l).forEach((e) => {
@@ -1526,13 +1517,16 @@ const I = E.EDialog, Le = (i) => {
1526
1517
  * @returns
1527
1518
  */
1528
1519
  initColumnOptions: () => {
1529
- let r = JSONUtil.cp(O.config.columnConfig);
1530
- r.options = ObjectUtil.deepMerge(r.options, {
1531
- switch: {
1532
- activeLabel: y.tCurd("switchOn"),
1533
- inactiveLabel: y.tCurd("switchOff")
1534
- }
1535
- });
1520
+ let r = JSONUtil.cp(E.config.columnConfig);
1521
+ r.options = ObjectUtil.deepMerge(
1522
+ {
1523
+ switch: {
1524
+ activeText: y.tCurd("switchOn"),
1525
+ inactiveText: y.tCurd("switchOff")
1526
+ }
1527
+ },
1528
+ r.options
1529
+ );
1536
1530
  const l = (e) => {
1537
1531
  for (const s in r) {
1538
1532
  if (s === "table") {
@@ -1550,20 +1544,24 @@ const I = E.EDialog, Le = (i) => {
1550
1544
  e.type === "switch" && (e.options.switch.tableBeforeChange = async (s, p) => {
1551
1545
  const c = e.options?.switch;
1552
1546
  try {
1553
- await o.value?.open({
1547
+ c.tableConfig?.confirm && await a.value?.open({
1554
1548
  title: y.tCurd("confirmModify"),
1555
1549
  content: y.tCurd("confirmSwitchMessage")
1556
- }), t.table.loading = !0;
1550
+ });
1557
1551
  try {
1558
- return i.option.api.update ? (await i.option.api.update({
1559
- [i.option.table?.rowKey]: p[i.option.table?.rowKey],
1560
- [s]: p[s] === c.activeValue ? c.inactiveValue : c.activeValue,
1561
- final(b, n, d) {
1562
- t.table.loading = !1;
1552
+ if (!i.option.api.update) return;
1553
+ const g = p[i.option.table?.rowKey];
1554
+ c.loadingMap || (c.loadingMap = {}), c.loadingMap[g] || (c.loadingMap[g] = { loading: !1 }), c.loadingMap[g].loading = !0;
1555
+ const n = p[s] === c.activeValue ? c.inactiveValue : c.activeValue;
1556
+ return await i.option.api.update({
1557
+ ...p,
1558
+ [s]: n,
1559
+ final(d, V, w) {
1560
+ c.loadingMap[g].loading = !1;
1563
1561
  }
1564
- }), t.table.loading = !1, E.success(y.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
1565
- } catch (b) {
1566
- return console.error(b), !1;
1562
+ }), U.success(y.tCurd("operationSuccess")), c.tableConfig?.loadList && (t.table.loading = !0, t.table.getList(), t.table.loading = !1), !0;
1563
+ } catch (g) {
1564
+ return console.error(g), !1;
1567
1565
  } finally {
1568
1566
  t.table.loading = !1;
1569
1567
  }
@@ -1576,7 +1574,7 @@ const I = E.EDialog, Le = (i) => {
1576
1574
  },
1577
1575
  getColumnSpan: (r, l) => {
1578
1576
  if (r.item.form?.spanCol) {
1579
- const e = O.config.form.defaultSpan, p = l.filter((c) => !E.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, b) => c + (b.item.form?.span || e), 0);
1577
+ const e = E.config.form.defaultSpan, p = l.filter((c) => !U.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, g) => c + (g.item.form?.span || e), 0);
1580
1578
  return (r.item?.form.span || e) + p;
1581
1579
  }
1582
1580
  return r.item.form.span;
@@ -1599,29 +1597,29 @@ const I = E.EDialog, Le = (i) => {
1599
1597
  }
1600
1598
  if (t.update.formDefault[d.key] = d.value, d.table.table && (d.show.table && t.table.column.show.list.push(d.key), d.table.table && t.table.column.show.listSource.push(d.key)), !(d.isForm && typeof d.show?.form == "boolean") || d.show?.form) {
1601
1599
  d.form = d.form || { span: s }, d.form.span = d.form.span ?? s;
1602
- let V = d.form.span, w = p.reduce((B, R) => B + R.span, V);
1603
- const A = p.length;
1604
- if (p.push({ item: d, span: V }), (A === 1 && p[0].span === 0 || w >= e || V === 0 && A > 1) && (l.push(p), p = []), d.rules) {
1600
+ let V = d.form.span, w = p.reduce((B, I) => B + I.span, V);
1601
+ const M = p.length;
1602
+ if (p.push({ item: d, span: V }), (M === 1 && p[0].span === 0 || w >= e || V === 0 && M > 1) && (l.push(p), p = []), d.rules) {
1605
1603
  const B = {
1606
1604
  input: y.tCurd("placeholderInput"),
1607
1605
  select: y.tCurd("placeholderSelect")
1608
- }, R = (B[d.type] || B.input) + d.label;
1606
+ }, I = (B[d.type] || B.input) + d.label;
1609
1607
  t.update.rules[d.key] = typeof d.rules == "boolean" ? [
1610
1608
  {
1611
1609
  required: !0,
1612
- message: R,
1610
+ message: I,
1613
1611
  trigger: "blur"
1614
1612
  }
1615
1613
  ] : d.rules;
1616
1614
  }
1617
1615
  }
1618
- }, b = (d, V) => {
1619
- d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => b(w, V));
1616
+ }, g = (d, V) => {
1617
+ d.isForm = V, Array.isArray(d.children) && d.children.forEach((w) => g(w, V));
1620
1618
  };
1621
1619
  r.column.forEach((d) => {
1622
- d.isForm = !0, b(d, !0), c(d);
1620
+ d.isForm = !0, g(d, !0), c(d);
1623
1621
  }), i.option.table?.column?.forEach((d) => {
1624
- b(d, !1), c(d);
1622
+ g(d, !1), c(d);
1625
1623
  }), t.search.column.list = r.column.concat(r.table?.column || []), t.table.column.list = t.search.column.list.filter((d) => d.table?.table), t.search.column.list.sort((d, V) => d.sort?.search - V.sort?.search), t.table.column.list.sort((d, V) => d.sort?.table - V.sort?.table), p.length > 0 && l.push(p), t.update.formColumn = l;
1626
1624
  const n = i.option.search?.formDefault;
1627
1625
  n && Object.keys(n).forEach((d) => {
@@ -1633,27 +1631,27 @@ const I = E.EDialog, Le = (i) => {
1633
1631
  });
1634
1632
  return t.init(), ue(() => {
1635
1633
  i.option.init !== !1 && t.table.getList();
1636
- }), { conf: t, switchConfirmRef: o, ruleFormRef: u };
1637
- }, Me = { class: "dialog-footer" }, Be = /* @__PURE__ */ J({
1634
+ }), { conf: t, switchConfirmRef: a, ruleFormRef: u };
1635
+ }, Le = { class: "dialog-footer" }, Be = /* @__PURE__ */ J({
1638
1636
  __name: "switchConfirm",
1639
1637
  props: {
1640
1638
  size: {}
1641
1639
  },
1642
- setup(i, { expose: o }) {
1640
+ setup(i, { expose: a }) {
1643
1641
  const u = H(!1), t = H("确认修改"), r = H("确认要修改状态吗?");
1644
1642
  let l = null, e = null;
1645
- const s = (b) => (b?.title && (t.value = b.title), b?.content && (r.value = b.content), u.value = !0, new Promise((n, d) => {
1643
+ const s = (g) => (g?.title && (t.value = g.title), g?.content && (r.value = g.content), u.value = !0, new Promise((n, d) => {
1646
1644
  l = n, e = d;
1647
1645
  })), p = () => {
1648
1646
  u.value = !1, l?.(!0), l = null, e = null;
1649
1647
  }, c = () => {
1650
1648
  u.value = !1, e?.(new Error("用户取消操作")), l = null, e = null;
1651
1649
  };
1652
- return o({
1650
+ return a({
1653
1651
  open: s
1654
- }), (b, n) => {
1655
- const d = X("el-form");
1656
- return f(), h(a(_), {
1652
+ }), (g, n) => {
1653
+ const d = Y("el-form");
1654
+ return f(), h(o(ee), {
1657
1655
  modelValue: u.value,
1658
1656
  "onUpdate:modelValue": n[0] || (n[0] = (V) => u.value = V),
1659
1657
  title: t.value,
@@ -1661,16 +1659,16 @@ const I = E.EDialog, Le = (i) => {
1661
1659
  width: "400px"
1662
1660
  }, {
1663
1661
  footer: m(() => [
1664
- z(d, { size: b.size }, {
1662
+ z(d, { size: g.size }, {
1665
1663
  default: m(() => [
1666
- F("span", Me, [
1667
- z(a(T), { onClick: c }, {
1664
+ F("span", Le, [
1665
+ z(o(A), { onClick: c }, {
1668
1666
  default: m(() => n[1] || (n[1] = [
1669
1667
  $("取消")
1670
1668
  ])),
1671
1669
  _: 1
1672
1670
  }),
1673
- z(a(T), {
1671
+ z(o(A), {
1674
1672
  type: "primary",
1675
1673
  onClick: p
1676
1674
  }, {
@@ -1685,43 +1683,43 @@ const I = E.EDialog, Le = (i) => {
1685
1683
  }, 8, ["size"])
1686
1684
  ]),
1687
1685
  default: m(() => [
1688
- F("div", null, U(r.value), 1)
1686
+ F("div", null, O(r.value), 1)
1689
1687
  ]),
1690
1688
  _: 1
1691
1689
  }, 8, ["modelValue", "title"]);
1692
1690
  };
1693
1691
  }
1694
- }), pe = (i, o) => {
1692
+ }), pe = (i, a) => {
1695
1693
  const u = i.__vccOpts || i;
1696
- for (const [t, r] of o)
1694
+ for (const [t, r] of a)
1697
1695
  u[t] = r;
1698
1696
  return u;
1699
1697
  }, je = {}, Ie = {
1700
1698
  xmlns: "http://www.w3.org/2000/svg",
1701
1699
  viewBox: "0 0 1024 1024"
1702
1700
  };
1703
- function Re(i, o) {
1704
- return f(), g("svg", Ie, o[0] || (o[0] = [
1701
+ function Re(i, a) {
1702
+ return f(), b("svg", Ie, a[0] || (a[0] = [
1705
1703
  F("path", {
1706
1704
  fill: "currentColor",
1707
1705
  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"
1708
1706
  }, null, -1)
1709
1707
  ]));
1710
1708
  }
1711
- const Pe = /* @__PURE__ */ pe(je, [["render", Re]]), Ne = {}, Ke = {
1709
+ const Pe = /* @__PURE__ */ pe(je, [["render", Re]]), Ke = {}, Ne = {
1712
1710
  "data-v-58697b5c": "",
1713
1711
  xmlns: "http://www.w3.org/2000/svg",
1714
1712
  viewBox: "0 0 1024 1024"
1715
1713
  };
1716
- function He(i, o) {
1717
- return f(), g("svg", Ke, o[0] || (o[0] = [
1714
+ function He(i, a) {
1715
+ return f(), b("svg", Ne, a[0] || (a[0] = [
1718
1716
  F("path", {
1719
1717
  fill: "currentColor",
1720
1718
  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"
1721
1719
  }, null, -1)
1722
1720
  ]));
1723
1721
  }
1724
- const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-center table-header-label inline" }, qe = { class: "table-header-tooltip" }, Qe = ["onClick", "innerHTML"], Ge = /* @__PURE__ */ J({
1722
+ const Je = /* @__PURE__ */ pe(Ke, [["render", He]]), We = { class: "row flex-center table-header-label inline" }, qe = { class: "table-header-tooltip" }, Qe = ["onClick", "innerHTML"], Ge = /* @__PURE__ */ J({
1725
1723
  __name: "tableColumn",
1726
1724
  props: {
1727
1725
  conf: {},
@@ -1729,13 +1727,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1729
1727
  option: {}
1730
1728
  },
1731
1729
  setup(i) {
1732
- const o = E.isFun, u = be().type;
1730
+ const a = U.isFun, u = be().type;
1733
1731
  return (t, r) => {
1734
- const l = X("el-tooltip");
1735
- return f(!0), g(S, null, L(t.columnList, (e) => (f(), g(S, {
1732
+ const l = Y("el-tooltip");
1733
+ return f(!0), b(S, null, T(t.columnList, (e) => (f(), b(S, {
1736
1734
  key: e.key
1737
1735
  }, [
1738
- t.conf.table.column.show.list.includes(e.key) ? (f(), h(a(ee), v({
1736
+ t.conf.table.column.show.list.includes(e.key) ? (f(), h(o(te), v({
1739
1737
  key: 0,
1740
1738
  prop: e.key,
1741
1739
  label: e.label,
@@ -1757,64 +1755,74 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1757
1755
  ]),
1758
1756
  _: 2
1759
1757
  }, 1032, ["content"])) : k("", !0),
1760
- $(" " + U(e.label), 1)
1758
+ $(" " + O(e.label), 1)
1761
1759
  ])
1762
1760
  ])
1763
1761
  ]),
1764
1762
  default: m(({ row: s }) => [
1765
- e.children ? (f(), g(S, { key: 0 }, [
1763
+ e.children ? (f(), b(S, { key: 0 }, [
1766
1764
  r[0] || (r[0] = $("   ")),
1767
- (f(), h(q(a(u)), {
1765
+ (f(), h(q(o(u)), {
1768
1766
  conf: t.conf,
1769
1767
  columnList: e.children,
1770
1768
  option: t.option
1771
- }, te({ _: 2 }, [
1772
- L(t.$slots, (p, c) => ({
1769
+ }, oe({ _: 2 }, [
1770
+ T(t.$slots, (p, c) => ({
1773
1771
  name: c,
1774
- fn: m((b) => [
1775
- C(t.$slots, c, v({ ref_for: !0 }, b || {}))
1772
+ fn: m((g) => [
1773
+ C(t.$slots, c, v({ ref_for: !0 }, g || {}))
1776
1774
  ])
1777
1775
  }))
1778
1776
  ]), 1032, ["conf", "columnList", "option"]))
1779
- ], 64)) : (f(), g(S, { key: 1 }, [
1780
- a(o)(e.show?.form, t.conf.update.form, a(E).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), g(S, { key: 0 }, [
1781
- e.type === "input" ? (f(), h(a(Y), v({
1777
+ ], 64)) : (f(), b(S, { key: 1 }, [
1778
+ t.conf.update.type === o(U).EDialog.Update && o(a)(e.show?.form, t.conf.update.form, o(U).EDialog.Update) && t.option.table?.inlineEdit && t.conf.update.form[t.option.table?.rowKey] === s[t.option.table?.rowKey] && (e.type === "input" || e.type === "select") ? (f(), b(S, { key: 0 }, [
1779
+ e.type === "input" ? (f(), h(o(Z), v({
1782
1780
  key: 0,
1783
1781
  modelValue: t.conf.update.form[e.key],
1784
1782
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1783
+ disabled: t.conf.update.getDisabled(e),
1785
1784
  ref_for: !0
1786
- }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "select" ? (f(), h(a(W), v({
1785
+ }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (f(), h(o(W), v({
1787
1786
  key: 1,
1788
1787
  modelValue: t.conf.update.form[e.key],
1789
1788
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1789
+ disabled: t.conf.update.getDisabled(e),
1790
1790
  ref_for: !0
1791
1791
  }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
1792
1792
  default: m(() => [
1793
- (f(!0), g(S, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
1793
+ (f(!0), b(S, null, T(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(o(N), {
1794
1794
  key: p.value,
1795
1795
  label: p.label,
1796
1796
  value: p.value
1797
1797
  }, null, 8, ["label", "value"]))), 128))
1798
1798
  ]),
1799
1799
  _: 2
1800
- }, 1040, ["modelValue", "onUpdate:modelValue"])) : k("", !0)
1800
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), h(o(X), v({
1801
+ key: 2,
1802
+ modelValue: t.conf.update.form[e.key],
1803
+ "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
1804
+ ref_for: !0
1805
+ }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), {
1806
+ disabled: t.conf.update.getDisabled(e)
1807
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
1801
1808
  ], 64)) : C(t.$slots, "table-" + e.key, {
1802
1809
  key: 1,
1803
1810
  row: s,
1804
1811
  item: e
1805
1812
  }, () => [
1806
- a(M).customComponent[e.type ?? ""]?.table ? (f(), h(q(a(M).customComponent[e.type ?? ""]?.table), v({
1813
+ o(L).customComponent[e.type ?? ""]?.table ? (f(), h(q(o(L).customComponent[e.type ?? ""]?.table), v({
1807
1814
  key: 0,
1808
1815
  modelValue: s[e.key],
1809
1816
  "onUpdate:modelValue": (p) => s[e.key] = p,
1810
1817
  ref_for: !0
1811
- }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(oe), v({
1818
+ }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(o(X), v({
1812
1819
  key: 1,
1813
1820
  modelValue: s[e.key],
1814
1821
  "onUpdate:modelValue": (p) => s[e.key] = p,
1822
+ loading: e.options?.switch?.loadingMap?.[s[t.option.table?.rowKey]]?.loading,
1815
1823
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, s),
1816
1824
  ref_for: !0
1817
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), g("span", {
1825
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (f(), b("span", {
1818
1826
  key: 2,
1819
1827
  style: fe({
1820
1828
  "--table-text-click-color": e.table?.click?.color
@@ -1841,117 +1849,117 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1841
1849
  item: {}
1842
1850
  },
1843
1851
  setup(i) {
1844
- return (o, u) => (f(), h(a(G), {
1852
+ return (a, u) => (f(), h(o(G), {
1845
1853
  class: j({
1846
- "hide-label": typeof o.item.item.text?.form?.label == "boolean" ? !o.item.item.text?.form?.label : !1
1854
+ "hide-label": typeof a.item.item.text?.form?.label == "boolean" ? !a.item.item.text?.form?.label : !1
1847
1855
  }),
1848
- label: typeof o.item.item.text?.form?.label == "string" ? o.item.item.text?.form?.label : o.item.item.label,
1849
- prop: o.item.item.key,
1850
- "label-width": o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
1856
+ label: typeof a.item.item.text?.form?.label == "string" ? a.item.item.text?.form?.label : a.item.item.label,
1857
+ prop: a.item.item.key,
1858
+ "label-width": a.item.item.form?.labelWidth || a.conf.option.form?.labelWidth
1851
1859
  }, {
1852
1860
  default: m(() => [
1853
1861
  F("div", Xe, [
1854
- C(o.$slots, "form-" + o.item.item.key + "-start", {
1855
- row: o.conf.update.form,
1856
- item: o.item.item
1862
+ C(a.$slots, "form-" + a.item.item.key + "-start", {
1863
+ row: a.conf.update.form,
1864
+ item: a.item.item
1857
1865
  }),
1858
1866
  F("div", Ye, [
1859
1867
  F("div", Ze, [
1860
- C(o.$slots, "form-" + o.item.item.key, {
1861
- row: o.conf.update.form,
1862
- item: o.item.item
1868
+ C(a.$slots, "form-" + a.item.item.key, {
1869
+ row: a.conf.update.form,
1870
+ item: a.item.item
1863
1871
  }, () => [
1864
- o.item.item.type === "input" ? (f(), h(a(Y), v({
1872
+ a.item.item.type === "input" ? (f(), h(o(Z), v({
1865
1873
  key: 0,
1866
- modelValue: o.conf.update.form[o.item.item.key],
1867
- "onUpdate:modelValue": u[0] || (u[0] = (t) => o.conf.update.form[o.item.item.key] = t)
1868
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1869
- disabled: o.conf.update.getDisabled(o.item.item)
1870
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (f(), h(a(oe), v({
1874
+ modelValue: a.conf.update.form[a.item.item.key],
1875
+ "onUpdate:modelValue": u[0] || (u[0] = (t) => a.conf.update.form[a.item.item.key] = t)
1876
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1877
+ disabled: a.conf.update.getDisabled(a.item.item)
1878
+ }), null, 16, ["modelValue", "disabled"])) : a.item.item.type === "switch" ? (f(), h(o(X), v({
1871
1879
  key: 1,
1872
- modelValue: o.conf.update.form[o.item.item.key],
1873
- "onUpdate:modelValue": u[1] || (u[1] = (t) => o.conf.update.form[o.item.item.key] = t)
1874
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1875
- disabled: o.conf.update.getDisabled(o.item.item)
1876
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (f(), h(a(W), v({
1880
+ modelValue: a.conf.update.form[a.item.item.key],
1881
+ "onUpdate:modelValue": u[1] || (u[1] = (t) => a.conf.update.form[a.item.item.key] = t)
1882
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1883
+ disabled: a.conf.update.getDisabled(a.item.item)
1884
+ }), null, 16, ["modelValue", "disabled"])) : a.item.item.type === "select" ? (f(), h(o(W), v({
1877
1885
  key: 2,
1878
- modelValue: o.conf.update.form[o.item.item.key],
1879
- "onUpdate:modelValue": u[2] || (u[2] = (t) => o.conf.update.form[o.item.item.key] = t)
1880
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1881
- disabled: o.conf.update.getDisabled(o.item.item),
1886
+ modelValue: a.conf.update.form[a.item.item.key],
1887
+ "onUpdate:modelValue": u[2] || (u[2] = (t) => a.conf.update.form[a.item.item.key] = t)
1888
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1889
+ disabled: a.conf.update.getDisabled(a.item.item),
1882
1890
  style: { width: "100%" }
1883
1891
  }), {
1884
1892
  default: m(() => [
1885
- (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
1893
+ (f(!0), b(S, null, T(a.conf.update.getBind(a.item.item).data, (t) => (f(), h(o(N), {
1886
1894
  key: t.value,
1887
1895
  label: t.label,
1888
1896
  value: t.value
1889
1897
  }, null, 8, ["label", "value"]))), 128))
1890
1898
  ]),
1891
1899
  _: 1
1892
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (f(), h(a(re), v({
1900
+ }, 16, ["modelValue", "disabled"])) : a.item.item.type === "radio" ? (f(), h(o(re), v({
1893
1901
  key: 3,
1894
- modelValue: o.conf.update.form[o.item.item.key],
1895
- "onUpdate:modelValue": u[3] || (u[3] = (t) => o.conf.update.form[o.item.item.key] = t)
1896
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1897
- disabled: o.conf.update.getDisabled(o.item.item),
1902
+ modelValue: a.conf.update.form[a.item.item.key],
1903
+ "onUpdate:modelValue": u[3] || (u[3] = (t) => a.conf.update.form[a.item.item.key] = t)
1904
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1905
+ disabled: a.conf.update.getDisabled(a.item.item),
1898
1906
  style: { width: "100%" }
1899
1907
  }), {
1900
1908
  default: m(() => [
1901
- (f(!0), g(S, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
1909
+ (f(!0), b(S, null, T(a.conf.update.getBind(a.item.item).data, (t) => (f(), h(o(se), {
1902
1910
  key: t.value,
1903
1911
  label: t.label,
1904
1912
  value: t.value
1905
1913
  }, null, 8, ["label", "value"]))), 128))
1906
1914
  ]),
1907
1915
  _: 1
1908
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (f(), h(ne, v({
1916
+ }, 16, ["modelValue", "disabled"])) : a.item.item.type === "list" ? (f(), h(ne, v({
1909
1917
  key: 4,
1910
- row: o.conf.update.form,
1911
- field: o.item.item.key
1912
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1913
- disabled: o.conf.update.getDisabled(o.item.item),
1918
+ row: a.conf.update.form,
1919
+ field: a.item.item.key
1920
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1921
+ disabled: a.conf.update.getDisabled(a.item.item),
1914
1922
  style: { width: "100%" }
1915
- }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "treeSelect" ? (f(), h(a(de), v({
1923
+ }), null, 16, ["row", "field", "disabled"])) : a.item.item.type === "treeSelect" ? (f(), h(o(de), v({
1916
1924
  key: 5,
1917
- modelValue: o.conf.update.form[o.item.item.key],
1918
- "onUpdate:modelValue": u[4] || (u[4] = (t) => o.conf.update.form[o.item.item.key] = t)
1919
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1920
- disabled: o.conf.update.getDisabled(o.item.item),
1925
+ modelValue: a.conf.update.form[a.item.item.key],
1926
+ "onUpdate:modelValue": u[4] || (u[4] = (t) => a.conf.update.form[a.item.item.key] = t)
1927
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1928
+ disabled: a.conf.update.getDisabled(a.item.item),
1921
1929
  style: { width: "100%" }
1922
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (f(), h(a(ae), v({
1930
+ }), null, 16, ["modelValue", "disabled"])) : a.item.item.type === "datetime" ? (f(), h(o(ae), v({
1923
1931
  key: 6,
1924
- modelValue: o.conf.update.form[o.item.item.key],
1925
- "onUpdate:modelValue": u[5] || (u[5] = (t) => o.conf.update.form[o.item.item.key] = t)
1926
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1927
- disabled: o.conf.update.getDisabled(o.item.item)
1928
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && (a(M).customComponent[o.item.item.type] || a(M).customComponent[o.item.item.type]?.form) ? (f(), h(q(a(M).customComponent[o.item.item.type]?.form || a(M).customComponent[o.item.item.type]), v({
1932
+ modelValue: a.conf.update.form[a.item.item.key],
1933
+ "onUpdate:modelValue": u[5] || (u[5] = (t) => a.conf.update.form[a.item.item.key] = t)
1934
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1935
+ disabled: a.conf.update.getDisabled(a.item.item)
1936
+ }), null, 16, ["modelValue", "disabled"])) : a.item.item.type && (o(L).customComponent[a.item.item.type] || o(L).customComponent[a.item.item.type]?.form) ? (f(), h(q(o(L).customComponent[a.item.item.type]?.form || o(L).customComponent[a.item.item.type]), v({
1929
1937
  key: 7,
1930
- modelValue: o.conf.update.form[o.item.item.key],
1931
- "onUpdate:modelValue": u[6] || (u[6] = (t) => o.conf.update.form[o.item.item.key] = t)
1932
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1933
- disabled: o.conf.update.getDisabled(o.item.item)
1938
+ modelValue: a.conf.update.form[a.item.item.key],
1939
+ "onUpdate:modelValue": u[6] || (u[6] = (t) => a.conf.update.form[a.item.item.key] = t)
1940
+ }, a.conf.update.getBind(a.item.item), D(a.conf.update.getOn(a.item.item)), {
1941
+ disabled: a.conf.update.getDisabled(a.item.item)
1934
1942
  }), null, 16, ["modelValue", "disabled"])) : k("", !0)
1935
1943
  ]),
1936
- C(o.$slots, "form-" + o.item.item.key + "-right", {
1937
- row: o.conf.update.form,
1938
- item: o.item.item
1944
+ C(a.$slots, "form-" + a.item.item.key + "-right", {
1945
+ row: a.conf.update.form,
1946
+ item: a.item.item
1939
1947
  })
1940
1948
  ]),
1941
- C(o.$slots, "form-" + o.item.item.key + "-tip", {
1942
- row: o.conf.update.form,
1943
- item: o.item.item
1949
+ C(a.$slots, "form-" + a.item.item.key + "-tip", {
1950
+ row: a.conf.update.form,
1951
+ item: a.item.item
1944
1952
  }, () => [
1945
- o.item.item.form?.tipText ? (f(), g("div", {
1953
+ a.item.item.form?.tipText ? (f(), b("div", {
1946
1954
  key: 0,
1947
1955
  class: "form-tip-text",
1948
- innerHTML: typeof o.item.item.form?.tipText == "function" ? o.item.item.form?.tipText(o.conf.update.form, o.conf.update.type) : o.item.item.form?.tipText
1956
+ innerHTML: typeof a.item.item.form?.tipText == "function" ? a.item.item.form?.tipText(a.conf.update.form, a.conf.update.type) : a.item.item.form?.tipText
1949
1957
  }, null, 8, xe)) : k("", !0)
1950
1958
  ])
1951
1959
  ]),
1952
- C(o.$slots, "form-" + o.item.item.key + "-end", {
1953
- row: o.conf.update.form,
1954
- item: o.item.item
1960
+ C(a.$slots, "form-" + a.item.item.key + "-end", {
1961
+ row: a.conf.update.form,
1962
+ item: a.item.item
1955
1963
  })
1956
1964
  ])
1957
1965
  ]),
@@ -1980,13 +1988,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1980
1988
  default: {}
1981
1989
  }
1982
1990
  },
1983
- setup(i, { expose: o }) {
1984
- const u = E.EDialog, t = i, r = E.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Le(t);
1985
- return o({
1991
+ setup(i, { expose: a }) {
1992
+ const u = U.EDialog, t = i, r = U.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Te(t);
1993
+ return a({
1986
1994
  conf: l
1987
1995
  }), (p, c) => {
1988
- const b = we("loading");
1989
- return f(), g("div", {
1996
+ const g = we("loading");
1997
+ return f(), b("div", {
1990
1998
  class: j(["relative cc1-form-box", [i.option.table?.fitHeight ? "col" : "no-min-height"]])
1991
1999
  }, [
1992
2000
  F("div", {
@@ -1997,20 +2005,20 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1997
2005
  F("div", {
1998
2006
  class: j(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
1999
2007
  }, [
2000
- i.option.search?.show !== !1 ? (f(), g("div", et, [
2001
- z(a(N), {
2002
- model: a(l).search.form,
2008
+ i.option.search?.show !== !1 ? (f(), b("div", et, [
2009
+ z(o(K), {
2010
+ model: o(l).search.form,
2003
2011
  inline: "",
2004
2012
  size: i.option.size?.search
2005
2013
  }, {
2006
2014
  default: m(() => [
2007
2015
  C(p.$slots, "search-start", {
2008
- row: a(l).search.form
2016
+ row: o(l).search.form
2009
2017
  }),
2010
- (f(!0), g(S, null, L(a(l).search.column.list, (n) => (f(), g(S, {
2018
+ (f(!0), b(S, null, T(o(l).search.column.list, (n) => (f(), b(S, {
2011
2019
  key: n.key
2012
2020
  }, [
2013
- (typeof n.show?.search == "function" ? n.show?.search(a(l).search.form) : n.show?.search) ? (f(), h(a(G), {
2021
+ (typeof n.show?.search == "function" ? n.show?.search(o(l).search.form) : n.show?.search) ? (f(), h(o(G), {
2014
2022
  key: 0,
2015
2023
  label: typeof n.text?.search?.label == "string" ? n.text?.search?.label : n.label,
2016
2024
  class: j({
@@ -2019,98 +2027,98 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2019
2027
  }, {
2020
2028
  default: m(() => [
2021
2029
  C(p.$slots, "search-" + n.key, {
2022
- row: a(l).search.form
2030
+ row: o(l).search.form
2023
2031
  }, () => [
2024
- n.type === "input" ? (f(), h(a(Y), v({
2032
+ n.type === "input" ? (f(), h(o(Z), v({
2025
2033
  key: 0,
2026
- modelValue: a(l).search.form[n.key],
2027
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2028
- placeholder: a(l).search.getPlaceholder(n),
2034
+ modelValue: o(l).search.form[n.key],
2035
+ "onUpdate:modelValue": (d) => o(l).search.form[n.key] = d,
2036
+ placeholder: o(l).search.getPlaceholder(n),
2029
2037
  clearable: "",
2030
2038
  disabled: n.disabled?.search,
2031
2039
  ref_for: !0
2032
- }, n.options?.search?.input || n.options?.input, D(n.options?.search?.input?.on || n.options?.input?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (f(), h(a(W), v({
2040
+ }, n.options?.search?.input || n.options?.input, D(n.options?.search?.input?.on || n.options?.input?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "switch" ? (f(), h(o(W), v({
2033
2041
  key: 1,
2034
- modelValue: a(l).search.form[n.key],
2035
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2036
- placeholder: a(l).search.getPlaceholder(n, a(y).tCurd("placeholderSelect")),
2042
+ modelValue: o(l).search.form[n.key],
2043
+ "onUpdate:modelValue": (d) => o(l).search.form[n.key] = d,
2044
+ placeholder: o(l).search.getPlaceholder(n, o(y).tCurd("placeholderSelect")),
2037
2045
  clearable: "",
2038
2046
  disabled: n.disabled?.search,
2039
2047
  ref_for: !0
2040
2048
  }, n.options?.search?.switch || n.options?.switch, D(n.options?.search?.switch?.on || n.options?.switch?.on || {})), {
2041
2049
  default: m(() => [
2042
- (f(), h(a(K), {
2050
+ (f(), h(o(N), {
2043
2051
  key: n.options?.switch?.activeValue,
2044
2052
  label: n.options?.switch?.activeLabel,
2045
2053
  value: n.options?.switch?.activeValue
2046
2054
  }, null, 8, ["label", "value"])),
2047
- (f(), h(a(K), {
2055
+ (f(), h(o(N), {
2048
2056
  key: n.options?.switch?.inactiveValue,
2049
2057
  label: n.options?.switch?.inactiveLabel,
2050
2058
  value: n.options?.switch?.inactiveValue
2051
2059
  }, null, 8, ["label", "value"]))
2052
2060
  ]),
2053
2061
  _: 2
2054
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "select" ? (f(), h(a(W), v({
2062
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "select" ? (f(), h(o(W), v({
2055
2063
  key: 2,
2056
- modelValue: a(l).search.form[n.key],
2057
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2058
- placeholder: a(l).search.getPlaceholder(n, a(y).tCurd("placeholderSelect")),
2064
+ modelValue: o(l).search.form[n.key],
2065
+ "onUpdate:modelValue": (d) => o(l).search.form[n.key] = d,
2066
+ placeholder: o(l).search.getPlaceholder(n, o(y).tCurd("placeholderSelect")),
2059
2067
  clearable: "",
2060
2068
  disabled: n.disabled?.search,
2061
2069
  ref_for: !0
2062
2070
  }, n.options?.search?.select || n.options?.select, D(n.options?.search?.select?.on || n.options?.select?.on || {})), {
2063
2071
  default: m(() => [
2064
- (f(!0), g(S, null, L(n.options?.select?.data, (d) => (f(), h(a(K), {
2072
+ (f(!0), b(S, null, T(n.options?.select?.data, (d) => (f(), h(o(N), {
2065
2073
  key: d.value,
2066
2074
  label: d.label,
2067
2075
  value: d.value
2068
2076
  }, null, 8, ["label", "value"]))), 128))
2069
2077
  ]),
2070
2078
  _: 2
2071
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "datetime" ? (f(), h(a(ae), v({
2079
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : n.type === "datetime" ? (f(), h(o(ae), v({
2072
2080
  key: 3,
2073
- modelValue: a(l).search.form[n.key],
2074
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2081
+ modelValue: o(l).search.form[n.key],
2082
+ "onUpdate:modelValue": (d) => o(l).search.form[n.key] = d,
2075
2083
  disabled: n.disabled?.search,
2076
2084
  ref_for: !0
2077
- }, n.options?.search?.datetime || n.options?.datetime, D(n.options?.search?.datetime?.on || n.options?.datetime?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.type && a(M).customComponent[n.type] ? (f(), h(q(a(M).customComponent[n.type]), v({
2085
+ }, n.options?.search?.datetime || n.options?.datetime, D(n.options?.search?.datetime?.on || n.options?.datetime?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : n.type && o(L).customComponent[n.type] ? (f(), h(q(o(L).customComponent[n.type]), v({
2078
2086
  key: 4,
2079
- modelValue: a(l).search.form[n.key],
2080
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2087
+ modelValue: o(l).search.form[n.key],
2088
+ "onUpdate:modelValue": (d) => o(l).search.form[n.key] = d,
2081
2089
  ref_for: !0
2082
2090
  }, n.options?.search?.[n.type] || n.options?.[n.type], D(n.options?.search?.[n.type]?.on || n.options?.[n.type]?.on || {}), {
2083
2091
  disabled: n.disabled?.search
2084
2092
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
2085
2093
  ]),
2086
2094
  C(p.$slots, "search-" + n.key + "-right", {
2087
- row: a(l).search.form
2095
+ row: o(l).search.form
2088
2096
  })
2089
2097
  ]),
2090
2098
  _: 2
2091
2099
  }, 1032, ["label", "class"])) : k("", !0)
2092
2100
  ], 64))), 128)),
2093
2101
  C(p.$slots, "search-center", {
2094
- row: a(l).search.form
2102
+ row: o(l).search.form
2095
2103
  }),
2096
- i.option.tools?.search || i.option.tools?.reset ? (f(), h(a(G), { key: 0 }, {
2104
+ i.option.tools?.search || i.option.tools?.reset ? (f(), h(o(G), { key: 0 }, {
2097
2105
  default: m(() => [
2098
- i.option.tools?.search ? (f(), h(a(T), {
2106
+ i.option.tools?.search ? (f(), h(o(A), {
2099
2107
  key: 0,
2100
2108
  type: "primary",
2101
- onClick: a(l).search.submit
2109
+ onClick: o(l).search.submit
2102
2110
  }, {
2103
2111
  default: m(() => [
2104
- $(U(a(y).tCurd("search")), 1)
2112
+ $(O(o(y).tCurd("search")), 1)
2105
2113
  ]),
2106
2114
  _: 1
2107
2115
  }, 8, ["onClick"])) : k("", !0),
2108
- i.option.tools?.reset ? (f(), h(a(T), {
2116
+ i.option.tools?.reset ? (f(), h(o(A), {
2109
2117
  key: 1,
2110
- onClick: a(l).search.reset
2118
+ onClick: o(l).search.reset
2111
2119
  }, {
2112
2120
  default: m(() => [
2113
- $(U(a(y).tCurd("reset")), 1)
2121
+ $(O(o(y).tCurd("reset")), 1)
2114
2122
  ]),
2115
2123
  _: 1
2116
2124
  }, 8, ["onClick"])) : k("", !0)
@@ -2118,7 +2126,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2118
2126
  _: 1
2119
2127
  })) : k("", !0),
2120
2128
  C(p.$slots, "search-end", {
2121
- row: a(l).search.form
2129
+ row: o(l).search.form
2122
2130
  })
2123
2131
  ]),
2124
2132
  _: 3
@@ -2126,76 +2134,76 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2126
2134
  ])) : k("", !0),
2127
2135
  F("div", tt, [
2128
2136
  F("div", ot, [
2129
- a(r)(i.option.tools?.add) ? (f(), g("div", at, [
2130
- z(a(T), {
2137
+ o(r)(i.option.tools?.add) ? (f(), b("div", at, [
2138
+ z(o(A), {
2131
2139
  type: "primary",
2132
- onClick: c[0] || (c[0] = (n) => a(l).update.open(a(u).Add)),
2140
+ onClick: c[0] || (c[0] = (n) => o(l).update.open(o(u).Add)),
2133
2141
  size: i.option.size?.search
2134
2142
  }, {
2135
2143
  default: m(() => [
2136
- $(U(a(y).tCurd("add")), 1)
2144
+ $(O(o(y).tCurd("add")), 1)
2137
2145
  ]),
2138
2146
  _: 1
2139
2147
  }, 8, ["size"])
2140
2148
  ])) : k("", !0),
2141
- i.option.table?.selectable && a(r)(i.option.tools?.delete) ? (f(), g("div", lt, [
2142
- z(a(T), {
2149
+ i.option.table?.selectable && o(r)(i.option.tools?.delete) ? (f(), b("div", lt, [
2150
+ z(o(A), {
2143
2151
  type: "danger",
2144
- onClick: c[1] || (c[1] = (n) => a(l).remove.open(a(l).table.selection.list)),
2152
+ onClick: c[1] || (c[1] = (n) => o(l).remove.open(o(l).table.selection.list)),
2145
2153
  size: i.option.size?.search
2146
2154
  }, {
2147
2155
  default: m(() => [
2148
- $(U(a(y).tCurd("delete")), 1)
2156
+ $(O(o(y).tCurd("delete")), 1)
2149
2157
  ]),
2150
2158
  _: 1
2151
2159
  }, 8, ["size"])
2152
2160
  ])) : k("", !0),
2153
- i.option.tools?.expand ? (f(), g("div", nt, [
2154
- z(a(T), {
2161
+ i.option.tools?.expand ? (f(), b("div", nt, [
2162
+ z(o(A), {
2155
2163
  type: "warning",
2156
- onClick: c[2] || (c[2] = (n) => a(l).table.expand.all()),
2164
+ onClick: c[2] || (c[2] = (n) => o(l).table.expand.all()),
2157
2165
  size: i.option.size?.search
2158
2166
  }, {
2159
2167
  default: m(() => [
2160
- $(U(a(y).tCurd("expandCollapse")), 1)
2168
+ $(O(o(y).tCurd("expandCollapse")), 1)
2161
2169
  ]),
2162
2170
  _: 1
2163
2171
  }, 8, ["size"])
2164
2172
  ])) : k("", !0),
2165
- i.option.tools?.export?.show ? (f(), g(S, { key: 3 }, [
2166
- i.option.tools?.export?.dropdown?.show ? (f(), h(a(he), {
2173
+ i.option.tools?.export?.show ? (f(), b(S, { key: 3 }, [
2174
+ i.option.tools?.export?.dropdown?.show ? (f(), h(o(he), {
2167
2175
  key: 0,
2168
- onCommand: a(l).export.click
2176
+ onCommand: o(l).export.click
2169
2177
  }, {
2170
2178
  dropdown: m(() => [
2171
- z(a(ye), {
2179
+ z(o(ge), {
2172
2180
  size: i.option.size?.search
2173
2181
  }, {
2174
2182
  default: m(() => [
2175
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(r)(i.option.tools?.delete)) ? (f(), h(a(x), {
2183
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || o(r)(i.option.tools?.delete)) ? (f(), h(o(_), {
2176
2184
  key: 0,
2177
2185
  command: "select"
2178
2186
  }, {
2179
2187
  default: m(() => [
2180
- $(U(a(y).tCurd("exportSelect")), 1)
2188
+ $(O(o(y).tCurd("exportSelect")), 1)
2181
2189
  ]),
2182
2190
  _: 1
2183
2191
  })) : k("", !0),
2184
- i.option.tools?.export?.dropdown?.page ? (f(), h(a(x), {
2192
+ i.option.tools?.export?.dropdown?.page ? (f(), h(o(_), {
2185
2193
  key: 1,
2186
2194
  command: "page"
2187
2195
  }, {
2188
2196
  default: m(() => [
2189
- $(U(a(y).tCurd("exportPage")), 1)
2197
+ $(O(o(y).tCurd("exportPage")), 1)
2190
2198
  ]),
2191
2199
  _: 1
2192
2200
  })) : k("", !0),
2193
- i.option.tools?.export?.dropdown?.all ? (f(), h(a(x), {
2201
+ i.option.tools?.export?.dropdown?.all ? (f(), h(o(_), {
2194
2202
  key: 2,
2195
2203
  command: "all"
2196
2204
  }, {
2197
2205
  default: m(() => [
2198
- $(U(a(y).tCurd("exportAll")), 1)
2206
+ $(O(o(y).tCurd("exportAll")), 1)
2199
2207
  ]),
2200
2208
  _: 1
2201
2209
  })) : k("", !0)
@@ -2205,28 +2213,28 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2205
2213
  ]),
2206
2214
  default: m(() => [
2207
2215
  F("div", it, [
2208
- z(a(T), {
2216
+ z(o(A), {
2209
2217
  type: "warning",
2210
- loading: a(l).export.loading,
2218
+ loading: o(l).export.loading,
2211
2219
  size: i.option.size?.search
2212
2220
  }, {
2213
2221
  default: m(() => [
2214
- $(U(a(y).tCurd("export")), 1)
2222
+ $(O(o(y).tCurd("export")), 1)
2215
2223
  ]),
2216
2224
  _: 1
2217
2225
  }, 8, ["loading", "size"])
2218
2226
  ])
2219
2227
  ]),
2220
2228
  _: 1
2221
- }, 8, ["onCommand"])) : (f(), g("div", rt, [
2222
- z(a(T), {
2229
+ }, 8, ["onCommand"])) : (f(), b("div", rt, [
2230
+ z(o(A), {
2223
2231
  type: "warning",
2224
- loading: a(l).export.loading,
2232
+ loading: o(l).export.loading,
2225
2233
  size: i.option.size?.search,
2226
- onClick: c[3] || (c[3] = (n) => a(l).export.run.start("all"))
2234
+ onClick: c[3] || (c[3] = (n) => o(l).export.run.start("all"))
2227
2235
  }, {
2228
2236
  default: m(() => [
2229
- $(U(a(y).tCurd("export")), 1)
2237
+ $(O(o(y).tCurd("export")), 1)
2230
2238
  ]),
2231
2239
  _: 1
2232
2240
  }, 8, ["loading", "size"])
@@ -2236,26 +2244,26 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2236
2244
  ]),
2237
2245
  F("div", st, [
2238
2246
  C(p.$slots, "tools-right"),
2239
- a(l).page.showTools ? (f(), h(a(ie), v({
2247
+ o(l).page.showTools ? (f(), h(o(ie), v({
2240
2248
  key: 0,
2241
- "current-page": a(l).page.num,
2242
- "onUpdate:currentPage": c[4] || (c[4] = (n) => a(l).page.num = n),
2243
- "page-size": a(l).page.size,
2244
- "onUpdate:pageSize": c[5] || (c[5] = (n) => a(l).page.size = n),
2249
+ "current-page": o(l).page.num,
2250
+ "onUpdate:currentPage": c[4] || (c[4] = (n) => o(l).page.num = n),
2251
+ "page-size": o(l).page.size,
2252
+ "onUpdate:pageSize": c[5] || (c[5] = (n) => o(l).page.size = n),
2245
2253
  background: "",
2246
- "page-sizes": a(l).page.sizeList,
2247
- "pager-count": a(l).page.pagerCount,
2248
- layout: a(l).page.layout,
2249
- total: a(l).page.total,
2254
+ "page-sizes": o(l).page.sizeList,
2255
+ "pager-count": o(l).page.pagerCount,
2256
+ layout: o(l).page.layout,
2257
+ total: o(l).page.total,
2250
2258
  size: i.option.size?.table,
2251
- onSizeChange: a(l).table.getList,
2252
- onCurrentChange: a(l).table.getList
2259
+ onSizeChange: o(l).table.getList,
2260
+ onCurrentChange: o(l).table.getList
2253
2261
  }, i.option.page?.pagination || {}, D(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : k("", !0),
2254
- i.option.tools?.refresh === void 0 || i.option.tools?.refresh ? (f(), g("div", {
2262
+ i.option.tools?.refresh === void 0 || i.option.tools?.refresh ? (f(), b("div", {
2255
2263
  key: 1,
2256
2264
  class: j(["refresh-btn", [i.option.size?.search]]),
2257
2265
  onClick: c[6] || (c[6] = //@ts-ignore
2258
- (...n) => a(l).table.getList && a(l).table.getList(...n))
2266
+ (...n) => o(l).table.getList && o(l).table.getList(...n))
2259
2267
  }, [
2260
2268
  z(Pe)
2261
2269
  ], 2)) : k("", !0)
@@ -2267,16 +2275,16 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2267
2275
  F("div", {
2268
2276
  class: j(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2269
2277
  }, [
2270
- ke((f(), h(a(ge), v({
2271
- data: a(l).table.data,
2278
+ ke((f(), h(o(ye), v({
2279
+ data: o(l).table.data,
2272
2280
  border: i.option.table?.border === void 0 ? !0 : i.option.table?.border,
2273
- onSelectionChange: a(l).table.selection.change,
2274
- onSortChange: a(l).table.sort.change,
2275
- "expand-row-keys": a(l).table.expand.rowKeys,
2276
- onExpandChange: a(l).table.expand.change
2281
+ onSelectionChange: o(l).table.selection.change,
2282
+ onSortChange: o(l).table.sort.change,
2283
+ "expand-row-keys": o(l).table.expand.rowKeys,
2284
+ onExpandChange: o(l).table.expand.change
2277
2285
  }, i.option.table, D(i.option.table?.on || {})), {
2278
2286
  default: m(() => [
2279
- (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(r)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (f(), h(a(ee), v({
2287
+ (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || o(r)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (f(), h(o(te), v({
2280
2288
  key: 0,
2281
2289
  type: "selection",
2282
2290
  width: "40",
@@ -2286,99 +2294,99 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2286
2294
  className: "cc1-form-selectable-column"
2287
2295
  }, typeof i.option.table?.selectable == "object" ? i.option.table?.selectable : {}, D(typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.on || {} : {})), null, 16)) : k("", !0),
2288
2296
  z(Ge, {
2289
- conf: a(l),
2290
- columnList: a(l).table.column.list,
2297
+ conf: o(l),
2298
+ columnList: o(l).table.column.list,
2291
2299
  option: i.option
2292
- }, te({ _: 2 }, [
2293
- L(p.$slots, (n, d) => ({
2300
+ }, oe({ _: 2 }, [
2301
+ T(p.$slots, (n, d) => ({
2294
2302
  name: d,
2295
2303
  fn: m((V) => [
2296
2304
  C(p.$slots, d, Ce(ve(V || {})))
2297
2305
  ])
2298
2306
  }))
2299
2307
  ]), 1032, ["conf", "columnList", "option"]),
2300
- a(r)(i.option.table?.add) || a(r)(i.option.table?.update) || a(r)(i.option.table?.delete) || a(r)(i.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(a(ee), v({
2308
+ o(r)(i.option.table?.add) || o(r)(i.option.table?.update) || o(r)(i.option.table?.delete) || o(r)(i.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(o(te), v({
2301
2309
  key: 1,
2302
- width: a(l).table.op.width(a(r)(i.option.table?.add), a(r)(i.option.table?.update), a(r)(i.option.table?.delete), a(r)(i.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2310
+ width: o(l).table.op.width(o(r)(i.option.table?.add), o(r)(i.option.table?.update), o(r)(i.option.table?.delete), o(r)(i.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2303
2311
  align: "center",
2304
2312
  fixed: "right"
2305
2313
  }, i.option.table?.operate), {
2306
2314
  header: m(() => [
2307
2315
  C(p.$slots, "table-header-op", {}, () => [
2308
- $(U(a(y).tCurd("operation")), 1)
2316
+ $(O(o(y).tCurd("operation")), 1)
2309
2317
  ])
2310
2318
  ]),
2311
2319
  default: m(({ row: n }) => [
2312
- z(a(N), {
2320
+ z(o(K), {
2313
2321
  size: i.option.size?.table
2314
2322
  }, {
2315
2323
  default: m(() => [
2316
2324
  C(p.$slots, "table-op-left", { row: n }),
2317
- i.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), g(S, { key: 0 }, [
2318
- z(a(T), {
2325
+ o(l).update.type === o(u).Update && i.option.table?.inlineEdit && o(l).update.form[t.option.table?.rowKey] === n[t.option.table?.rowKey] ? (f(), b(S, { key: 0 }, [
2326
+ z(o(A), {
2319
2327
  link: "",
2320
2328
  type: "info",
2321
- onClick: a(l).inlineEdit.close
2329
+ onClick: o(l).update.close
2322
2330
  }, {
2323
2331
  default: m(() => [
2324
- $(U(a(y).tCurd("cancel")), 1)
2332
+ $(O(o(y).tCurd("cancel")), 1)
2325
2333
  ]),
2326
2334
  _: 1
2327
2335
  }, 8, ["onClick"]),
2328
- z(a(T), {
2336
+ z(o(A), {
2329
2337
  link: "",
2330
2338
  type: "primary",
2331
- onClick: a(l).update.submit,
2332
- loading: a(l).update.loading
2339
+ onClick: o(l).update.submit,
2340
+ loading: o(l).update.loading
2333
2341
  }, {
2334
2342
  default: m(() => [
2335
- $(U(a(y).tCurd("confirm")), 1)
2343
+ $(O(o(y).tCurd("confirm")), 1)
2336
2344
  ]),
2337
2345
  _: 1
2338
2346
  }, 8, ["onClick", "loading"]),
2339
2347
  C(p.$slots, "table-op-edit-right", { row: n })
2340
- ], 64)) : (f(), g(S, { key: 1 }, [
2341
- a(r)(i.option.table?.add, n) ? (f(), h(a(T), {
2348
+ ], 64)) : (f(), b(S, { key: 1 }, [
2349
+ o(r)(i.option.table?.add, n) ? (f(), h(o(A), {
2342
2350
  key: 0,
2343
2351
  link: "",
2344
2352
  type: "primary",
2345
- onClick: (d) => a(l).update.open(a(u).Add, n)
2353
+ onClick: (d) => o(l).update.open(o(u).Add, n)
2346
2354
  }, {
2347
2355
  default: m(() => [
2348
- $(U(a(y).tCurd("add")), 1)
2356
+ $(O(o(y).tCurd("add")), 1)
2349
2357
  ]),
2350
2358
  _: 2
2351
2359
  }, 1032, ["onClick"])) : k("", !0),
2352
- a(r)(i.option.table?.view, n) ? (f(), h(a(T), {
2360
+ o(r)(i.option.table?.view, n) ? (f(), h(o(A), {
2353
2361
  key: 1,
2354
2362
  link: "",
2355
2363
  type: "primary",
2356
- onClick: (d) => a(l).update.open(a(u).View, n)
2364
+ onClick: (d) => o(l).update.open(o(u).View, n)
2357
2365
  }, {
2358
2366
  default: m(() => [
2359
- $(U(a(y).tCurd("view")), 1)
2367
+ $(O(o(y).tCurd("view")), 1)
2360
2368
  ]),
2361
2369
  _: 2
2362
2370
  }, 1032, ["onClick"])) : k("", !0),
2363
- a(r)(i.option.table?.update, n) ? (f(), h(a(T), {
2371
+ o(r)(i.option.table?.update, n) ? (f(), h(o(A), {
2364
2372
  key: 2,
2365
2373
  link: "",
2366
2374
  type: "warning",
2367
- onClick: (d) => a(l).update.open(a(u).Update, n)
2375
+ onClick: (d) => o(l).update.open(o(u).Update, n)
2368
2376
  }, {
2369
2377
  default: m(() => [
2370
- $(U(a(y).tCurd("edit")), 1)
2378
+ $(O(o(y).tCurd("edit")), 1)
2371
2379
  ]),
2372
2380
  _: 2
2373
2381
  }, 1032, ["onClick"])) : k("", !0),
2374
- a(r)(i.option.table?.delete, n) ? (f(), h(a(T), {
2382
+ o(r)(i.option.table?.delete, n) ? (f(), h(o(A), {
2375
2383
  key: 3,
2376
2384
  link: "",
2377
2385
  type: "danger",
2378
- onClick: (d) => a(l).remove.open([n])
2386
+ onClick: (d) => o(l).remove.open([n])
2379
2387
  }, {
2380
2388
  default: m(() => [
2381
- $(U(a(y).tCurd("delete")), 1)
2389
+ $(O(o(y).tCurd("delete")), 1)
2382
2390
  ]),
2383
2391
  _: 2
2384
2392
  }, 1032, ["onClick"])) : k("", !0),
@@ -2393,58 +2401,58 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2393
2401
  ]),
2394
2402
  _: 3
2395
2403
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2396
- [b, a(l).table.loading]
2404
+ [g, o(l).table.loading]
2397
2405
  ])
2398
2406
  ], 2)
2399
2407
  ], 2),
2400
2408
  F("div", dt, [
2401
- (i.option.page?.show === void 0 || i.option.page?.show) && !a(l).page.showTools ? (f(), h(a(ie), v({
2409
+ (i.option.page?.show === void 0 || i.option.page?.show) && !o(l).page.showTools ? (f(), h(o(ie), v({
2402
2410
  key: 0,
2403
- "current-page": a(l).page.num,
2404
- "onUpdate:currentPage": c[7] || (c[7] = (n) => a(l).page.num = n),
2405
- "page-size": a(l).page.size,
2406
- "onUpdate:pageSize": c[8] || (c[8] = (n) => a(l).page.size = n),
2411
+ "current-page": o(l).page.num,
2412
+ "onUpdate:currentPage": c[7] || (c[7] = (n) => o(l).page.num = n),
2413
+ "page-size": o(l).page.size,
2414
+ "onUpdate:pageSize": c[8] || (c[8] = (n) => o(l).page.size = n),
2407
2415
  background: "",
2408
- "page-sizes": a(l).page.sizeList,
2409
- "pager-count": a(l).page.pagerCount,
2410
- layout: a(l).page.layout,
2411
- total: a(l).page.total,
2416
+ "page-sizes": o(l).page.sizeList,
2417
+ "pager-count": o(l).page.pagerCount,
2418
+ layout: o(l).page.layout,
2419
+ total: o(l).page.total,
2412
2420
  size: i.option.size?.table,
2413
- onSizeChange: a(l).table.getList,
2414
- onCurrentChange: a(l).table.getList
2421
+ onSizeChange: o(l).table.getList,
2422
+ onCurrentChange: o(l).table.getList
2415
2423
  }, i.option.page?.pagination || {}, D(i.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "size", "onSizeChange", "onCurrentChange"])) : k("", !0)
2416
2424
  ])
2417
2425
  ], 2),
2418
2426
  C(p.$slots, "box-right")
2419
2427
  ], 2),
2420
- z(a(_), v({
2421
- modelValue: a(l).update.show,
2422
- "onUpdate:modelValue": c[9] || (c[9] = (n) => a(l).update.show = n),
2423
- title: a(l).update.title,
2424
- "before-close": a(l).update.close
2428
+ z(o(ee), v({
2429
+ modelValue: o(l).update.show,
2430
+ "onUpdate:modelValue": c[9] || (c[9] = (n) => o(l).update.show = n),
2431
+ title: o(l).update.title,
2432
+ "before-close": o(l).update.close
2425
2433
  }, i.option.dialog), {
2426
2434
  footer: m(() => [
2427
2435
  F("span", ut, [
2428
- z(a(N), {
2436
+ z(o(K), {
2429
2437
  size: i.option.size?.form
2430
2438
  }, {
2431
2439
  default: m(() => [
2432
- z(a(T), {
2433
- onClick: a(l).update.close
2440
+ z(o(A), {
2441
+ onClick: o(l).update.close
2434
2442
  }, {
2435
2443
  default: m(() => [
2436
- $(U(a(y).tCurd("close")), 1)
2444
+ $(O(o(y).tCurd("close")), 1)
2437
2445
  ]),
2438
2446
  _: 1
2439
2447
  }, 8, ["onClick"]),
2440
- a(l).update.type !== a(u).View ? (f(), h(a(T), {
2448
+ o(l).update.type !== o(u).View ? (f(), h(o(A), {
2441
2449
  key: 0,
2442
2450
  type: "primary",
2443
- onClick: a(l).update.submit,
2444
- loading: a(l).update.loading
2451
+ onClick: o(l).update.submit,
2452
+ loading: o(l).update.loading
2445
2453
  }, {
2446
2454
  default: m(() => [
2447
- $(U(a(y).tCurd("submit")), 1)
2455
+ $(O(o(y).tCurd("submit")), 1)
2448
2456
  ]),
2449
2457
  _: 1
2450
2458
  }, 8, ["onClick", "loading"])) : k("", !0)
@@ -2454,54 +2462,54 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2454
2462
  ])
2455
2463
  ]),
2456
2464
  default: m(() => [
2457
- z(a(N), {
2465
+ z(o(K), {
2458
2466
  ref_key: "ruleFormRef",
2459
2467
  ref: s,
2460
- model: a(l).update.form,
2461
- rules: a(l).update.rules,
2468
+ model: o(l).update.form,
2469
+ rules: o(l).update.rules,
2462
2470
  size: i.option.size?.form
2463
2471
  }, {
2464
2472
  default: m(() => [
2465
- a(l).update.showContent ? (f(!0), g(S, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), g(S, null, [
2466
- a(r)(
2473
+ o(l).update.showContent ? (f(!0), b(S, { key: 0 }, T(o(l).update.formColumn, (n) => (f(), b(S, null, [
2474
+ o(r)(
2467
2475
  (() => {
2468
2476
  const d = [], V = (w) => {
2469
- w?.item?.children ? V(w.item.children) : d.push(...w.map((A) => A.item?.show?.form));
2477
+ w?.item?.children ? V(w.item.children) : d.push(...w.map((M) => M.item?.show?.form));
2470
2478
  };
2471
2479
  return V(n), d;
2472
2480
  })(),
2473
- a(l).update.form,
2474
- a(l).update.type
2475
- ) ? (f(), g("div", {
2481
+ o(l).update.form,
2482
+ o(l).update.type
2483
+ ) ? (f(), b("div", {
2476
2484
  key: 0,
2477
2485
  class: j(["row curd-row", {
2478
2486
  stripe: i.option.form?.stripe === void 0 ? !0 : i.option.form?.stripe
2479
2487
  }])
2480
2488
  }, [
2481
2489
  C(p.$slots, "form-start", {
2482
- row: a(l).update.form
2490
+ row: o(l).update.form
2483
2491
  }),
2484
- (f(!0), g(S, null, L(n, (d) => (f(), g(S, null, [
2485
- a(r)(d.item.show?.form, a(l).update.form, a(l).update.type) ? (f(), g("div", {
2492
+ (f(!0), b(S, null, T(n, (d) => (f(), b(S, null, [
2493
+ o(r)(d.item.show?.form, o(l).update.form, o(l).update.type) ? (f(), b("div", {
2486
2494
  key: 0,
2487
- class: j([d.item.form.span > 0 ? `col-${a(l).getColumnSpan(d, n)}` : "col", `form-item-col-${d.item.key}`])
2495
+ class: j([d.item.form.span > 0 ? `col-${o(l).getColumnSpan(d, n)}` : "col", `form-item-col-${d.item.key}`])
2488
2496
  }, [
2489
- (f(!0), g(S, null, L(d.item.children ? d.children : [d], (V) => (f(), h(_e, {
2497
+ (f(!0), b(S, null, T(d.item.children ? d.children : [d], (V) => (f(), h(_e, {
2490
2498
  key: V.item.key,
2491
- conf: a(l),
2499
+ conf: o(l),
2492
2500
  item: V
2493
- }, te({ _: 2 }, [
2494
- L(p.$slots, (w, A) => ({
2495
- name: A,
2501
+ }, oe({ _: 2 }, [
2502
+ T(p.$slots, (w, M) => ({
2503
+ name: M,
2496
2504
  fn: m((B) => [
2497
- C(p.$slots, A, v({ ref_for: !0 }, B || {}))
2505
+ C(p.$slots, M, v({ ref_for: !0 }, B || {}))
2498
2506
  ])
2499
2507
  }))
2500
2508
  ]), 1032, ["conf", "item"]))), 128))
2501
2509
  ], 2)) : k("", !0)
2502
2510
  ], 64))), 256)),
2503
2511
  C(p.$slots, "form-end", {
2504
- row: a(l).update.form
2512
+ row: o(l).update.form
2505
2513
  })
2506
2514
  ], 2)) : k("", !0)
2507
2515
  ], 64))), 256)) : k("", !0)
@@ -2511,33 +2519,33 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2511
2519
  ]),
2512
2520
  _: 3
2513
2521
  }, 16, ["modelValue", "title", "before-close"]),
2514
- z(a(_), {
2515
- modelValue: a(l).remove.show,
2516
- "onUpdate:modelValue": c[10] || (c[10] = (n) => a(l).remove.show = n),
2517
- title: a(l).remove.title,
2522
+ z(o(ee), {
2523
+ modelValue: o(l).remove.show,
2524
+ "onUpdate:modelValue": c[10] || (c[10] = (n) => o(l).remove.show = n),
2525
+ title: o(l).remove.title,
2518
2526
  "close-on-click-modal": !1
2519
2527
  }, {
2520
2528
  footer: m(() => [
2521
2529
  F("span", ft, [
2522
- z(a(N), {
2530
+ z(o(K), {
2523
2531
  size: i.option.size?.form
2524
2532
  }, {
2525
2533
  default: m(() => [
2526
- z(a(T), {
2527
- onClick: a(l).remove.close
2534
+ z(o(A), {
2535
+ onClick: o(l).remove.close
2528
2536
  }, {
2529
2537
  default: m(() => [
2530
- $(U(a(y).tCurd("close")), 1)
2538
+ $(O(o(y).tCurd("close")), 1)
2531
2539
  ]),
2532
2540
  _: 1
2533
2541
  }, 8, ["onClick"]),
2534
- z(a(T), {
2542
+ z(o(A), {
2535
2543
  type: "danger",
2536
- onClick: a(l).remove.submit,
2537
- loading: a(l).remove.loading
2544
+ onClick: o(l).remove.submit,
2545
+ loading: o(l).remove.loading
2538
2546
  }, {
2539
2547
  default: m(() => [
2540
- $(U(a(y).tCurd("confirmDelete")), 1)
2548
+ $(O(o(y).tCurd("confirmDelete")), 1)
2541
2549
  ]),
2542
2550
  _: 1
2543
2551
  }, 8, ["onClick", "loading"])
@@ -2547,7 +2555,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2547
2555
  ])
2548
2556
  ]),
2549
2557
  default: m(() => [
2550
- F("div", null, U(a(y).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
2558
+ F("div", null, O(o(y).tCurd("confirmDeleteMessage", o(l).remove.items.length)), 1)
2551
2559
  ]),
2552
2560
  _: 1
2553
2561
  }, 8, ["modelValue", "title"]),
@@ -2560,24 +2568,24 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2560
2568
  };
2561
2569
  }
2562
2570
  });
2563
- class gt {
2571
+ class yt {
2564
2572
  /**
2565
2573
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2566
2574
  *
2567
2575
  * @param href - 文件的远程地址
2568
2576
  * @param name - 下载后的文件名,默认 `'download.png'`
2569
2577
  */
2570
- static async download(o, u = "download.png") {
2578
+ static async download(a, u = "download.png") {
2571
2579
  const t = document.createElement("a");
2572
- t.style.display = "none", t.href = o, t.setAttribute("download", u), typeof t.download > "u" && t.setAttribute("target", "_blank"), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(o);
2580
+ t.style.display = "none", t.href = a, t.setAttribute("download", u), typeof t.download > "u" && t.setAttribute("target", "_blank"), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(a);
2573
2581
  }
2574
2582
  /**
2575
2583
  * 将json对象或者json数组导出为json文件保存
2576
2584
  * @param data
2577
2585
  * @param name
2578
2586
  */
2579
- static exportJSONFile = (o, u) => {
2580
- const t = new Blob([JSON.stringify(o)], { type: "application/json" }), r = URL.createObjectURL(t), l = document.createElement("a");
2587
+ static exportJSONFile = (a, u) => {
2588
+ const t = new Blob([JSON.stringify(a)], { type: "application/json" }), r = URL.createObjectURL(t), l = document.createElement("a");
2581
2589
  l.href = r, l.download = `${u || "config"}.json`, l.click();
2582
2590
  };
2583
2591
  /**
@@ -2585,46 +2593,46 @@ class gt {
2585
2593
  * @param param
2586
2594
  * @returns
2587
2595
  */
2588
- static importFile = async (o) => new Promise((u, t) => {
2596
+ static importFile = async (a) => new Promise((u, t) => {
2589
2597
  const r = document.createElement("input");
2590
2598
  r.type = "file";
2591
- const l = o?.accept || ".json";
2599
+ const l = a?.accept || ".json";
2592
2600
  r.accept = l, r.style.display = "none", r.onchange = (e) => {
2593
2601
  const s = e.target.files[0];
2594
2602
  if (!s) {
2595
- E.fail("未选择文件"), t("未选择文件");
2603
+ U.fail("未选择文件"), t("未选择文件");
2596
2604
  return;
2597
2605
  }
2598
2606
  const p = new FileReader();
2599
2607
  p.onload = async (c) => {
2600
- const b = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2601
- u(b);
2608
+ const g = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
2609
+ u(g);
2602
2610
  }, p.onerror = () => {
2603
- E.fail("文件读取失败"), t("文件读取失败");
2611
+ U.fail("文件读取失败"), t("文件读取失败");
2604
2612
  }, p.readAsText(s), document.body.removeChild(r);
2605
2613
  }, document.body.appendChild(r), r.click();
2606
2614
  });
2607
2615
  }
2608
- const ct = (i, o) => {
2609
- if (i.component("TCurd", pt), i.component("TFormList", ne), i.component("TColumn", Ae), o?.customComponent) {
2610
- M.customComponent = o.customComponent;
2611
- for (const u in o.customComponent)
2612
- i.component(u, o.customComponent[u]);
2616
+ const ct = (i, a) => {
2617
+ if (i.component("TCurd", pt), i.component("TFormList", ne), i.component("TColumn", Me), a?.customComponent) {
2618
+ L.customComponent = a.customComponent;
2619
+ for (const u in a.customComponent)
2620
+ i.component(u, a.customComponent[u]);
2613
2621
  }
2614
2622
  }, bt = {
2615
2623
  install: ct
2616
2624
  };
2617
2625
  export {
2618
2626
  P as ArrUtil,
2619
- Te as ExcelUtil,
2620
- Ae as TColumn,
2627
+ Ae as ExcelUtil,
2628
+ Me as TColumn,
2621
2629
  pt as TCurd,
2622
- gt as TFile,
2623
- M as TForm,
2624
- O as TFormConfig,
2630
+ yt as TFile,
2631
+ L as TForm,
2632
+ E as TFormConfig,
2625
2633
  y as TFormI18n,
2626
2634
  ne as TFormList,
2627
- E as TSys,
2635
+ U as TSys,
2628
2636
  bt as default,
2629
2637
  ct as install
2630
2638
  };