cc1-form 1.2.1 → 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,6 +1,6 @@
1
- import { ElMessage as ce, ElLoading as me, ElForm as N, ElFormItem as G, ElInput as Z, ElSwitch as X, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as ee, ElButton as T, ElTableColumn as te, ElDropdown as he, ElDropdownMenu as ye, ElDropdownItem as _, ElPagination as ie, ElTable as be } from "element-plus";
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 Y, createElementBlock as b, createCommentVNode as k, openBlock as f, renderSlot as C, createVNode as z, withCtx as m, createTextVNode as $, Fragment as S, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, createElementVNode as F, mergeProps as v, toHandlers as D, resolveDynamicComponent as q, toDisplayString as E, getCurrentInstance as ge, createSlots as oe, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
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
4
  class U {
5
5
  /**
6
6
  * Vue Router 实例,需在应用初始化时赋值
@@ -26,13 +26,13 @@ class U {
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 U {
42
42
  * 加载模块
43
43
  * @param module
44
44
  */
45
- static loadModule = async (o) => {
46
- if (!U.moduleObj[o])
47
- throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const u = await U.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 U {
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 U {
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 U {
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 U {
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);
134
+ static getImgPic = (a) => new Promise(async (u, t) => {
135
+ let r = document.getElementById(a.id);
136
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 U {
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 === U.EDialog.Add ? (u.form.parentId = o[l], u.form.sort = o.children.length + 1) : u.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), M.setOptionsData(r, "parentId", [{ [l]: "0", title: "根", children: t }]);
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;
@@ -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,7 +748,7 @@ 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
753
  const s = Y("el-button"), p = Y("el-input");
750
754
  return t.show ? (f(), b("div", ze, [
@@ -761,12 +765,12 @@ const ze = {
761
765
  _: 1
762
766
  })
763
767
  ])),
764
- (f(!0), b(S, null, L(i.row[i.field], (c) => (f(), b("div", $e, [
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), b(S, null, L(i.itemFields, (g) => (f(), h(p, {
773
+ (f(!0), b(S, null, T(i.itemFields, (g) => (f(), h(p, {
770
774
  modelValue: c[g.value],
771
775
  "onUpdate:modelValue": (n) => c[g.value] = n,
772
776
  style: fe({ width: i.inputWidth }),
@@ -808,7 +812,7 @@ const ze = {
808
812
  }), Ue = {
809
813
  class: "row form-item-content",
810
814
  style: { width: "100%" }
811
- }, Ee = { 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,7 +828,7 @@ const ze = {
824
828
  default: ""
825
829
  }
826
830
  },
827
- setup(i, { expose: o }) {
831
+ setup(i, { expose: a }) {
828
832
  const u = U.isFun, t = U.EDialog, r = H(), l = i, e = le({
829
833
  rules: {},
830
834
  show: !0,
@@ -849,15 +853,15 @@ const ze = {
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
862
  w.form = w.form || { span: g }, w.form.span = w.form.span ?? g;
859
- const A = w.form.span, B = n.reduce((Q, x) => Q + x.span, A), R = n.length;
860
- 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) {
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")
@@ -871,26 +875,26 @@ const ze = {
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), b(S, { key: 0 }, L(e.formColumn, (c, g) => (f(), b(S, { key: g }, [
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
@@ -903,14 +907,14 @@ const ze = {
903
907
  C(s.$slots, "form-start", {
904
908
  row: e.form
905
909
  }),
906
- (f(!0), b(S, null, L(c, (n) => (f(), b(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(), b("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
  }),
@@ -924,27 +928,27 @@ const ze = {
924
928
  row: e.form,
925
929
  item: n.item
926
930
  }),
927
- F("div", Ee, [
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(Z), 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(X), 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), b(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), b(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,
@@ -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,9 +1058,9 @@ 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 U.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
1065
  return u.forEach((g) => {
1062
1066
  c[g.label] = p[g.key];
@@ -1065,8 +1069,8 @@ class Te {
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 = U.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 = U.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 = U.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 = U.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
1199
  const g = t.update.formColumn.flat(), n = JSONUtil.cp(c).map((d) => (Object.keys(d).forEach((w) => {
1196
- const A = g.find((B) => B.item.key === w);
1197
- 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]));
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 = U.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 = U.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 () => {
@@ -1298,7 +1302,7 @@ const I = U.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 = U.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 = U.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 {
@@ -1375,8 +1379,8 @@ const I = U.EDialog, Le = (i) => {
1375
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 {
@@ -1390,7 +1394,7 @@ const I = U.EDialog, Le = (i) => {
1390
1394
  await u.value?.validate(async (s, p) => new Promise((c, g) => {
1391
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 = U.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
  /** 删除弹窗标题 */
@@ -1499,7 +1490,7 @@ const I = U.EDialog, Le = (i) => {
1499
1490
  let c = await s.options?.[s.type]?.dataApi?.(t.update.form, r);
1500
1491
  if (c) {
1501
1492
  const g = s.options?.[s.type]?.dataPath;
1502
- g && (c = ObjectUtil.getPathValue(c, g)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
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 = U.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 = U.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,18 +1544,22 @@ const I = U.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(g, 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, U.success(y.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
1562
+ }), U.success(y.tCurd("operationSuccess")), c.tableConfig?.loadList && (t.table.loading = !0, t.table.getList(), t.table.loading = !1), !0;
1565
1563
  } catch (g) {
1566
1564
  return console.error(g), !1;
1567
1565
  } finally {
@@ -1576,7 +1574,7 @@ const I = U.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) => !U.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, g) => c + (g.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,17 +1597,17 @@ const I = U.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;
@@ -1633,13 +1631,13 @@ const I = U.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
1643
  const s = (g) => (g?.title && (t.value = g.title), g?.content && (r.value = g.content), u.value = !0, new Promise((n, d) => {
@@ -1649,11 +1647,11 @@ const I = U.EDialog, Le = (i) => {
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
1652
  }), (g, n) => {
1655
1653
  const d = Y("el-form");
1656
- return f(), h(a(ee), {
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,
@@ -1663,14 +1661,14 @@ const I = U.EDialog, Le = (i) => {
1663
1661
  footer: m(() => [
1664
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 = U.EDialog, Le = (i) => {
1685
1683
  }, 8, ["size"])
1686
1684
  ]),
1687
1685
  default: m(() => [
1688
- F("div", null, E(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(), b("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(), b("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 = U.isFun, u = ge().type;
1730
+ const a = U.isFun, u = be().type;
1733
1731
  return (t, r) => {
1734
1732
  const l = Y("el-tooltip");
1735
- return f(!0), b(S, null, L(t.columnList, (e) => (f(), b(S, {
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(te), 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,19 +1755,19 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1757
1755
  ]),
1758
1756
  _: 2
1759
1757
  }, 1032, ["content"])) : k("", !0),
1760
- $(" " + E(e.label), 1)
1758
+ $(" " + O(e.label), 1)
1761
1759
  ])
1762
1760
  ])
1763
1761
  ]),
1764
1762
  default: m(({ row: s }) => [
1765
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
1769
  }, oe({ _: 2 }, [
1772
- L(t.$slots, (p, c) => ({
1770
+ T(t.$slots, (p, c) => ({
1773
1771
  name: c,
1774
1772
  fn: m((g) => [
1775
1773
  C(t.$slots, c, v({ ref_for: !0 }, g || {}))
@@ -1777,14 +1775,14 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1777
1775
  }))
1778
1776
  ]), 1032, ["conf", "columnList", "option"]))
1779
1777
  ], 64)) : (f(), b(S, { key: 1 }, [
1780
- a(o)(e.show?.form, t.conf.update.form, a(U).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), b(S, { key: 0 }, [
1781
- e.type === "input" ? (f(), h(a(Z), v({
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,
1785
1783
  disabled: t.conf.update.getDisabled(e),
1786
1784
  ref_for: !0
1787
- }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "select" ? (f(), h(a(W), v({
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({
1788
1786
  key: 1,
1789
1787
  modelValue: t.conf.update.form[e.key],
1790
1788
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
@@ -1792,14 +1790,14 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1792
1790
  ref_for: !0
1793
1791
  }, t.conf.update.getBind(e), D(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
1794
1792
  default: m(() => [
1795
- (f(!0), b(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), {
1796
1794
  key: p.value,
1797
1795
  label: p.label,
1798
1796
  value: p.value
1799
1797
  }, null, 8, ["label", "value"]))), 128))
1800
1798
  ]),
1801
1799
  _: 2
1802
- }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), h(a(X), v({
1800
+ }, 1040, ["modelValue", "onUpdate:modelValue", "disabled"])) : e.type === "switch" ? (f(), h(o(X), v({
1803
1801
  key: 2,
1804
1802
  modelValue: t.conf.update.form[e.key],
1805
1803
  "onUpdate:modelValue": (p) => t.conf.update.form[e.key] = p,
@@ -1812,18 +1810,19 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1812
1810
  row: s,
1813
1811
  item: e
1814
1812
  }, () => [
1815
- 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({
1816
1814
  key: 0,
1817
1815
  modelValue: s[e.key],
1818
1816
  "onUpdate:modelValue": (p) => s[e.key] = p,
1819
1817
  ref_for: !0
1820
- }, e.options?.[e.type ?? ""], D(e.options?.[e.type ?? ""]?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.type === "switch" ? (f(), h(a(X), 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({
1821
1819
  key: 1,
1822
1820
  modelValue: s[e.key],
1823
1821
  "onUpdate:modelValue": (p) => s[e.key] = p,
1822
+ loading: e.options?.switch?.loadingMap?.[s[t.option.table?.rowKey]]?.loading,
1824
1823
  "before-change": () => e.options?.switch?.tableBeforeChange?.(e.key, s),
1825
1824
  ref_for: !0
1826
- }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "before-change"])) : (f(), b("span", {
1825
+ }, e.options?.switch), null, 16, ["modelValue", "onUpdate:modelValue", "loading", "before-change"])) : (f(), b("span", {
1827
1826
  key: 2,
1828
1827
  style: fe({
1829
1828
  "--table-text-click-color": e.table?.click?.color
@@ -1850,117 +1849,117 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1850
1849
  item: {}
1851
1850
  },
1852
1851
  setup(i) {
1853
- return (o, u) => (f(), h(a(G), {
1852
+ return (a, u) => (f(), h(o(G), {
1854
1853
  class: j({
1855
- "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
1856
1855
  }),
1857
- label: typeof o.item.item.text?.form?.label == "string" ? o.item.item.text?.form?.label : o.item.item.label,
1858
- prop: o.item.item.key,
1859
- "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
1860
1859
  }, {
1861
1860
  default: m(() => [
1862
1861
  F("div", Xe, [
1863
- C(o.$slots, "form-" + o.item.item.key + "-start", {
1864
- row: o.conf.update.form,
1865
- 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
1866
1865
  }),
1867
1866
  F("div", Ye, [
1868
1867
  F("div", Ze, [
1869
- C(o.$slots, "form-" + o.item.item.key, {
1870
- row: o.conf.update.form,
1871
- item: o.item.item
1868
+ C(a.$slots, "form-" + a.item.item.key, {
1869
+ row: a.conf.update.form,
1870
+ item: a.item.item
1872
1871
  }, () => [
1873
- o.item.item.type === "input" ? (f(), h(a(Z), v({
1872
+ a.item.item.type === "input" ? (f(), h(o(Z), v({
1874
1873
  key: 0,
1875
- modelValue: o.conf.update.form[o.item.item.key],
1876
- "onUpdate:modelValue": u[0] || (u[0] = (t) => o.conf.update.form[o.item.item.key] = t)
1877
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1878
- disabled: o.conf.update.getDisabled(o.item.item)
1879
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (f(), h(a(X), 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({
1880
1879
  key: 1,
1881
- modelValue: o.conf.update.form[o.item.item.key],
1882
- "onUpdate:modelValue": u[1] || (u[1] = (t) => o.conf.update.form[o.item.item.key] = t)
1883
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1884
- disabled: o.conf.update.getDisabled(o.item.item)
1885
- }), 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({
1886
1885
  key: 2,
1887
- modelValue: o.conf.update.form[o.item.item.key],
1888
- "onUpdate:modelValue": u[2] || (u[2] = (t) => o.conf.update.form[o.item.item.key] = t)
1889
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1890
- 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),
1891
1890
  style: { width: "100%" }
1892
1891
  }), {
1893
1892
  default: m(() => [
1894
- (f(!0), b(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), {
1895
1894
  key: t.value,
1896
1895
  label: t.label,
1897
1896
  value: t.value
1898
1897
  }, null, 8, ["label", "value"]))), 128))
1899
1898
  ]),
1900
1899
  _: 1
1901
- }, 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({
1902
1901
  key: 3,
1903
- modelValue: o.conf.update.form[o.item.item.key],
1904
- "onUpdate:modelValue": u[3] || (u[3] = (t) => o.conf.update.form[o.item.item.key] = t)
1905
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1906
- 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),
1907
1906
  style: { width: "100%" }
1908
1907
  }), {
1909
1908
  default: m(() => [
1910
- (f(!0), b(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), {
1911
1910
  key: t.value,
1912
1911
  label: t.label,
1913
1912
  value: t.value
1914
1913
  }, null, 8, ["label", "value"]))), 128))
1915
1914
  ]),
1916
1915
  _: 1
1917
- }, 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({
1918
1917
  key: 4,
1919
- row: o.conf.update.form,
1920
- field: o.item.item.key
1921
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1922
- 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),
1923
1922
  style: { width: "100%" }
1924
- }), 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({
1925
1924
  key: 5,
1926
- modelValue: o.conf.update.form[o.item.item.key],
1927
- "onUpdate:modelValue": u[4] || (u[4] = (t) => o.conf.update.form[o.item.item.key] = t)
1928
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1929
- 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),
1930
1929
  style: { width: "100%" }
1931
- }), 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({
1932
1931
  key: 6,
1933
- modelValue: o.conf.update.form[o.item.item.key],
1934
- "onUpdate:modelValue": u[5] || (u[5] = (t) => o.conf.update.form[o.item.item.key] = t)
1935
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1936
- disabled: o.conf.update.getDisabled(o.item.item)
1937
- }), 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({
1938
1937
  key: 7,
1939
- modelValue: o.conf.update.form[o.item.item.key],
1940
- "onUpdate:modelValue": u[6] || (u[6] = (t) => o.conf.update.form[o.item.item.key] = t)
1941
- }, o.conf.update.getBind(o.item.item), D(o.conf.update.getOn(o.item.item)), {
1942
- 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)
1943
1942
  }), null, 16, ["modelValue", "disabled"])) : k("", !0)
1944
1943
  ]),
1945
- C(o.$slots, "form-" + o.item.item.key + "-right", {
1946
- row: o.conf.update.form,
1947
- 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
1948
1947
  })
1949
1948
  ]),
1950
- C(o.$slots, "form-" + o.item.item.key + "-tip", {
1951
- row: o.conf.update.form,
1952
- 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
1953
1952
  }, () => [
1954
- o.item.item.form?.tipText ? (f(), b("div", {
1953
+ a.item.item.form?.tipText ? (f(), b("div", {
1955
1954
  key: 0,
1956
1955
  class: "form-tip-text",
1957
- innerHTML: typeof o.item.item.form?.tipText == "function" ? o.item.item.form?.tipText(o.conf.update.form, o.conf.update.type) : o.item.item.form?.tipText
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
1958
1957
  }, null, 8, xe)) : k("", !0)
1959
1958
  ])
1960
1959
  ]),
1961
- C(o.$slots, "form-" + o.item.item.key + "-end", {
1962
- row: o.conf.update.form,
1963
- 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
1964
1963
  })
1965
1964
  ])
1966
1965
  ]),
@@ -1989,9 +1988,9 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
1989
1988
  default: {}
1990
1989
  }
1991
1990
  },
1992
- setup(i, { expose: o }) {
1993
- const u = U.EDialog, t = i, r = U.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Le(t);
1994
- 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({
1995
1994
  conf: l
1996
1995
  }), (p, c) => {
1997
1996
  const g = we("loading");
@@ -2007,19 +2006,19 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2007
2006
  class: j(["column fit-width no-wrap", [i.option.table?.fitHeight ? "col" : ""]])
2008
2007
  }, [
2009
2008
  i.option.search?.show !== !1 ? (f(), b("div", et, [
2010
- z(a(N), {
2011
- model: a(l).search.form,
2009
+ z(o(K), {
2010
+ model: o(l).search.form,
2012
2011
  inline: "",
2013
2012
  size: i.option.size?.search
2014
2013
  }, {
2015
2014
  default: m(() => [
2016
2015
  C(p.$slots, "search-start", {
2017
- row: a(l).search.form
2016
+ row: o(l).search.form
2018
2017
  }),
2019
- (f(!0), b(S, null, L(a(l).search.column.list, (n) => (f(), b(S, {
2018
+ (f(!0), b(S, null, T(o(l).search.column.list, (n) => (f(), b(S, {
2020
2019
  key: n.key
2021
2020
  }, [
2022
- (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), {
2023
2022
  key: 0,
2024
2023
  label: typeof n.text?.search?.label == "string" ? n.text?.search?.label : n.label,
2025
2024
  class: j({
@@ -2028,98 +2027,98 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2028
2027
  }, {
2029
2028
  default: m(() => [
2030
2029
  C(p.$slots, "search-" + n.key, {
2031
- row: a(l).search.form
2030
+ row: o(l).search.form
2032
2031
  }, () => [
2033
- n.type === "input" ? (f(), h(a(Z), v({
2032
+ n.type === "input" ? (f(), h(o(Z), v({
2034
2033
  key: 0,
2035
- modelValue: a(l).search.form[n.key],
2036
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2037
- 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),
2038
2037
  clearable: "",
2039
2038
  disabled: n.disabled?.search,
2040
2039
  ref_for: !0
2041
- }, 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({
2042
2041
  key: 1,
2043
- modelValue: a(l).search.form[n.key],
2044
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2045
- 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")),
2046
2045
  clearable: "",
2047
2046
  disabled: n.disabled?.search,
2048
2047
  ref_for: !0
2049
2048
  }, n.options?.search?.switch || n.options?.switch, D(n.options?.search?.switch?.on || n.options?.switch?.on || {})), {
2050
2049
  default: m(() => [
2051
- (f(), h(a(K), {
2050
+ (f(), h(o(N), {
2052
2051
  key: n.options?.switch?.activeValue,
2053
2052
  label: n.options?.switch?.activeLabel,
2054
2053
  value: n.options?.switch?.activeValue
2055
2054
  }, null, 8, ["label", "value"])),
2056
- (f(), h(a(K), {
2055
+ (f(), h(o(N), {
2057
2056
  key: n.options?.switch?.inactiveValue,
2058
2057
  label: n.options?.switch?.inactiveLabel,
2059
2058
  value: n.options?.switch?.inactiveValue
2060
2059
  }, null, 8, ["label", "value"]))
2061
2060
  ]),
2062
2061
  _: 2
2063
- }, 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({
2064
2063
  key: 2,
2065
- modelValue: a(l).search.form[n.key],
2066
- "onUpdate:modelValue": (d) => a(l).search.form[n.key] = d,
2067
- 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")),
2068
2067
  clearable: "",
2069
2068
  disabled: n.disabled?.search,
2070
2069
  ref_for: !0
2071
2070
  }, n.options?.search?.select || n.options?.select, D(n.options?.search?.select?.on || n.options?.select?.on || {})), {
2072
2071
  default: m(() => [
2073
- (f(!0), b(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), {
2074
2073
  key: d.value,
2075
2074
  label: d.label,
2076
2075
  value: d.value
2077
2076
  }, null, 8, ["label", "value"]))), 128))
2078
2077
  ]),
2079
2078
  _: 2
2080
- }, 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({
2081
2080
  key: 3,
2082
- modelValue: a(l).search.form[n.key],
2083
- "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,
2084
2083
  disabled: n.disabled?.search,
2085
2084
  ref_for: !0
2086
- }, 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({
2087
2086
  key: 4,
2088
- modelValue: a(l).search.form[n.key],
2089
- "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,
2090
2089
  ref_for: !0
2091
2090
  }, n.options?.search?.[n.type] || n.options?.[n.type], D(n.options?.search?.[n.type]?.on || n.options?.[n.type]?.on || {}), {
2092
2091
  disabled: n.disabled?.search
2093
2092
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : k("", !0)
2094
2093
  ]),
2095
2094
  C(p.$slots, "search-" + n.key + "-right", {
2096
- row: a(l).search.form
2095
+ row: o(l).search.form
2097
2096
  })
2098
2097
  ]),
2099
2098
  _: 2
2100
2099
  }, 1032, ["label", "class"])) : k("", !0)
2101
2100
  ], 64))), 128)),
2102
2101
  C(p.$slots, "search-center", {
2103
- row: a(l).search.form
2102
+ row: o(l).search.form
2104
2103
  }),
2105
- 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 }, {
2106
2105
  default: m(() => [
2107
- i.option.tools?.search ? (f(), h(a(T), {
2106
+ i.option.tools?.search ? (f(), h(o(A), {
2108
2107
  key: 0,
2109
2108
  type: "primary",
2110
- onClick: a(l).search.submit
2109
+ onClick: o(l).search.submit
2111
2110
  }, {
2112
2111
  default: m(() => [
2113
- $(E(a(y).tCurd("search")), 1)
2112
+ $(O(o(y).tCurd("search")), 1)
2114
2113
  ]),
2115
2114
  _: 1
2116
2115
  }, 8, ["onClick"])) : k("", !0),
2117
- i.option.tools?.reset ? (f(), h(a(T), {
2116
+ i.option.tools?.reset ? (f(), h(o(A), {
2118
2117
  key: 1,
2119
- onClick: a(l).search.reset
2118
+ onClick: o(l).search.reset
2120
2119
  }, {
2121
2120
  default: m(() => [
2122
- $(E(a(y).tCurd("reset")), 1)
2121
+ $(O(o(y).tCurd("reset")), 1)
2123
2122
  ]),
2124
2123
  _: 1
2125
2124
  }, 8, ["onClick"])) : k("", !0)
@@ -2127,7 +2126,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2127
2126
  _: 1
2128
2127
  })) : k("", !0),
2129
2128
  C(p.$slots, "search-end", {
2130
- row: a(l).search.form
2129
+ row: o(l).search.form
2131
2130
  })
2132
2131
  ]),
2133
2132
  _: 3
@@ -2135,76 +2134,76 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2135
2134
  ])) : k("", !0),
2136
2135
  F("div", tt, [
2137
2136
  F("div", ot, [
2138
- a(r)(i.option.tools?.add) ? (f(), b("div", at, [
2139
- z(a(T), {
2137
+ o(r)(i.option.tools?.add) ? (f(), b("div", at, [
2138
+ z(o(A), {
2140
2139
  type: "primary",
2141
- 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)),
2142
2141
  size: i.option.size?.search
2143
2142
  }, {
2144
2143
  default: m(() => [
2145
- $(E(a(y).tCurd("add")), 1)
2144
+ $(O(o(y).tCurd("add")), 1)
2146
2145
  ]),
2147
2146
  _: 1
2148
2147
  }, 8, ["size"])
2149
2148
  ])) : k("", !0),
2150
- i.option.table?.selectable && a(r)(i.option.tools?.delete) ? (f(), b("div", lt, [
2151
- z(a(T), {
2149
+ i.option.table?.selectable && o(r)(i.option.tools?.delete) ? (f(), b("div", lt, [
2150
+ z(o(A), {
2152
2151
  type: "danger",
2153
- 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)),
2154
2153
  size: i.option.size?.search
2155
2154
  }, {
2156
2155
  default: m(() => [
2157
- $(E(a(y).tCurd("delete")), 1)
2156
+ $(O(o(y).tCurd("delete")), 1)
2158
2157
  ]),
2159
2158
  _: 1
2160
2159
  }, 8, ["size"])
2161
2160
  ])) : k("", !0),
2162
2161
  i.option.tools?.expand ? (f(), b("div", nt, [
2163
- z(a(T), {
2162
+ z(o(A), {
2164
2163
  type: "warning",
2165
- onClick: c[2] || (c[2] = (n) => a(l).table.expand.all()),
2164
+ onClick: c[2] || (c[2] = (n) => o(l).table.expand.all()),
2166
2165
  size: i.option.size?.search
2167
2166
  }, {
2168
2167
  default: m(() => [
2169
- $(E(a(y).tCurd("expandCollapse")), 1)
2168
+ $(O(o(y).tCurd("expandCollapse")), 1)
2170
2169
  ]),
2171
2170
  _: 1
2172
2171
  }, 8, ["size"])
2173
2172
  ])) : k("", !0),
2174
2173
  i.option.tools?.export?.show ? (f(), b(S, { key: 3 }, [
2175
- i.option.tools?.export?.dropdown?.show ? (f(), h(a(he), {
2174
+ i.option.tools?.export?.dropdown?.show ? (f(), h(o(he), {
2176
2175
  key: 0,
2177
- onCommand: a(l).export.click
2176
+ onCommand: o(l).export.click
2178
2177
  }, {
2179
2178
  dropdown: m(() => [
2180
- z(a(ye), {
2179
+ z(o(ge), {
2181
2180
  size: i.option.size?.search
2182
2181
  }, {
2183
2182
  default: m(() => [
2184
- i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || a(r)(i.option.tools?.delete)) ? (f(), h(a(_), {
2183
+ i.option.tools?.export?.dropdown?.select && (i.option.table?.selectable || o(r)(i.option.tools?.delete)) ? (f(), h(o(_), {
2185
2184
  key: 0,
2186
2185
  command: "select"
2187
2186
  }, {
2188
2187
  default: m(() => [
2189
- $(E(a(y).tCurd("exportSelect")), 1)
2188
+ $(O(o(y).tCurd("exportSelect")), 1)
2190
2189
  ]),
2191
2190
  _: 1
2192
2191
  })) : k("", !0),
2193
- i.option.tools?.export?.dropdown?.page ? (f(), h(a(_), {
2192
+ i.option.tools?.export?.dropdown?.page ? (f(), h(o(_), {
2194
2193
  key: 1,
2195
2194
  command: "page"
2196
2195
  }, {
2197
2196
  default: m(() => [
2198
- $(E(a(y).tCurd("exportPage")), 1)
2197
+ $(O(o(y).tCurd("exportPage")), 1)
2199
2198
  ]),
2200
2199
  _: 1
2201
2200
  })) : k("", !0),
2202
- i.option.tools?.export?.dropdown?.all ? (f(), h(a(_), {
2201
+ i.option.tools?.export?.dropdown?.all ? (f(), h(o(_), {
2203
2202
  key: 2,
2204
2203
  command: "all"
2205
2204
  }, {
2206
2205
  default: m(() => [
2207
- $(E(a(y).tCurd("exportAll")), 1)
2206
+ $(O(o(y).tCurd("exportAll")), 1)
2208
2207
  ]),
2209
2208
  _: 1
2210
2209
  })) : k("", !0)
@@ -2214,13 +2213,13 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2214
2213
  ]),
2215
2214
  default: m(() => [
2216
2215
  F("div", it, [
2217
- z(a(T), {
2216
+ z(o(A), {
2218
2217
  type: "warning",
2219
- loading: a(l).export.loading,
2218
+ loading: o(l).export.loading,
2220
2219
  size: i.option.size?.search
2221
2220
  }, {
2222
2221
  default: m(() => [
2223
- $(E(a(y).tCurd("export")), 1)
2222
+ $(O(o(y).tCurd("export")), 1)
2224
2223
  ]),
2225
2224
  _: 1
2226
2225
  }, 8, ["loading", "size"])
@@ -2228,14 +2227,14 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2228
2227
  ]),
2229
2228
  _: 1
2230
2229
  }, 8, ["onCommand"])) : (f(), b("div", rt, [
2231
- z(a(T), {
2230
+ z(o(A), {
2232
2231
  type: "warning",
2233
- loading: a(l).export.loading,
2232
+ loading: o(l).export.loading,
2234
2233
  size: i.option.size?.search,
2235
- 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"))
2236
2235
  }, {
2237
2236
  default: m(() => [
2238
- $(E(a(y).tCurd("export")), 1)
2237
+ $(O(o(y).tCurd("export")), 1)
2239
2238
  ]),
2240
2239
  _: 1
2241
2240
  }, 8, ["loading", "size"])
@@ -2245,26 +2244,26 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2245
2244
  ]),
2246
2245
  F("div", st, [
2247
2246
  C(p.$slots, "tools-right"),
2248
- a(l).page.showTools ? (f(), h(a(ie), v({
2247
+ o(l).page.showTools ? (f(), h(o(ie), v({
2249
2248
  key: 0,
2250
- "current-page": a(l).page.num,
2251
- "onUpdate:currentPage": c[4] || (c[4] = (n) => a(l).page.num = n),
2252
- "page-size": a(l).page.size,
2253
- "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),
2254
2253
  background: "",
2255
- "page-sizes": a(l).page.sizeList,
2256
- "pager-count": a(l).page.pagerCount,
2257
- layout: a(l).page.layout,
2258
- 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,
2259
2258
  size: i.option.size?.table,
2260
- onSizeChange: a(l).table.getList,
2261
- onCurrentChange: a(l).table.getList
2259
+ onSizeChange: o(l).table.getList,
2260
+ onCurrentChange: o(l).table.getList
2262
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),
2263
2262
  i.option.tools?.refresh === void 0 || i.option.tools?.refresh ? (f(), b("div", {
2264
2263
  key: 1,
2265
2264
  class: j(["refresh-btn", [i.option.size?.search]]),
2266
2265
  onClick: c[6] || (c[6] = //@ts-ignore
2267
- (...n) => a(l).table.getList && a(l).table.getList(...n))
2266
+ (...n) => o(l).table.getList && o(l).table.getList(...n))
2268
2267
  }, [
2269
2268
  z(Pe)
2270
2269
  ], 2)) : k("", !0)
@@ -2276,16 +2275,16 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2276
2275
  F("div", {
2277
2276
  class: j(["column form-box-content", [i.option.table?.fitHeight ? "absolute fit" : ""]])
2278
2277
  }, [
2279
- ke((f(), h(a(be), v({
2280
- data: a(l).table.data,
2278
+ ke((f(), h(o(ye), v({
2279
+ data: o(l).table.data,
2281
2280
  border: i.option.table?.border === void 0 ? !0 : i.option.table?.border,
2282
- onSelectionChange: a(l).table.selection.change,
2283
- onSortChange: a(l).table.sort.change,
2284
- "expand-row-keys": a(l).table.expand.rowKeys,
2285
- 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
2286
2285
  }, i.option.table, D(i.option.table?.on || {})), {
2287
2286
  default: m(() => [
2288
- (typeof i.option.table?.selectable == "object" ? i.option.table?.selectable?.show : i.option.table?.selectable) || a(r)(i.option.tools?.delete) || i.option.tools?.export?.show && i.option.tools?.export?.select ? (f(), h(a(te), v({
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({
2289
2288
  key: 0,
2290
2289
  type: "selection",
2291
2290
  width: "40",
@@ -2295,99 +2294,99 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2295
2294
  className: "cc1-form-selectable-column"
2296
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),
2297
2296
  z(Ge, {
2298
- conf: a(l),
2299
- columnList: a(l).table.column.list,
2297
+ conf: o(l),
2298
+ columnList: o(l).table.column.list,
2300
2299
  option: i.option
2301
2300
  }, oe({ _: 2 }, [
2302
- L(p.$slots, (n, d) => ({
2301
+ T(p.$slots, (n, d) => ({
2303
2302
  name: d,
2304
2303
  fn: m((V) => [
2305
2304
  C(p.$slots, d, Ce(ve(V || {})))
2306
2305
  ])
2307
2306
  }))
2308
2307
  ]), 1032, ["conf", "columnList", "option"]),
2309
- a(r)(i.option.table?.add) || a(r)(i.option.table?.update) || a(r)(i.option.table?.delete) || a(r)(i.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (f(), h(a(te), v({
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({
2310
2309
  key: 1,
2311
- width: a(l).table.op.width(a(r)(i.option.table?.add), a(r)(i.option.table?.update), a(r)(i.option.table?.delete), a(r)(i.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
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"]),
2312
2311
  align: "center",
2313
2312
  fixed: "right"
2314
2313
  }, i.option.table?.operate), {
2315
2314
  header: m(() => [
2316
2315
  C(p.$slots, "table-header-op", {}, () => [
2317
- $(E(a(y).tCurd("operation")), 1)
2316
+ $(O(o(y).tCurd("operation")), 1)
2318
2317
  ])
2319
2318
  ]),
2320
2319
  default: m(({ row: n }) => [
2321
- z(a(N), {
2320
+ z(o(K), {
2322
2321
  size: i.option.size?.table
2323
2322
  }, {
2324
2323
  default: m(() => [
2325
2324
  C(p.$slots, "table-op-left", { row: n }),
2326
- i.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), b(S, { key: 0 }, [
2327
- 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), {
2328
2327
  link: "",
2329
2328
  type: "info",
2330
- onClick: a(l).inlineEdit.close
2329
+ onClick: o(l).update.close
2331
2330
  }, {
2332
2331
  default: m(() => [
2333
- $(E(a(y).tCurd("cancel")), 1)
2332
+ $(O(o(y).tCurd("cancel")), 1)
2334
2333
  ]),
2335
2334
  _: 1
2336
2335
  }, 8, ["onClick"]),
2337
- z(a(T), {
2336
+ z(o(A), {
2338
2337
  link: "",
2339
2338
  type: "primary",
2340
- onClick: a(l).update.submit,
2341
- loading: a(l).update.loading
2339
+ onClick: o(l).update.submit,
2340
+ loading: o(l).update.loading
2342
2341
  }, {
2343
2342
  default: m(() => [
2344
- $(E(a(y).tCurd("confirm")), 1)
2343
+ $(O(o(y).tCurd("confirm")), 1)
2345
2344
  ]),
2346
2345
  _: 1
2347
2346
  }, 8, ["onClick", "loading"]),
2348
2347
  C(p.$slots, "table-op-edit-right", { row: n })
2349
2348
  ], 64)) : (f(), b(S, { key: 1 }, [
2350
- a(r)(i.option.table?.add, n) ? (f(), h(a(T), {
2349
+ o(r)(i.option.table?.add, n) ? (f(), h(o(A), {
2351
2350
  key: 0,
2352
2351
  link: "",
2353
2352
  type: "primary",
2354
- onClick: (d) => a(l).update.open(a(u).Add, n)
2353
+ onClick: (d) => o(l).update.open(o(u).Add, n)
2355
2354
  }, {
2356
2355
  default: m(() => [
2357
- $(E(a(y).tCurd("add")), 1)
2356
+ $(O(o(y).tCurd("add")), 1)
2358
2357
  ]),
2359
2358
  _: 2
2360
2359
  }, 1032, ["onClick"])) : k("", !0),
2361
- a(r)(i.option.table?.view, n) ? (f(), h(a(T), {
2360
+ o(r)(i.option.table?.view, n) ? (f(), h(o(A), {
2362
2361
  key: 1,
2363
2362
  link: "",
2364
2363
  type: "primary",
2365
- onClick: (d) => a(l).update.open(a(u).View, n)
2364
+ onClick: (d) => o(l).update.open(o(u).View, n)
2366
2365
  }, {
2367
2366
  default: m(() => [
2368
- $(E(a(y).tCurd("view")), 1)
2367
+ $(O(o(y).tCurd("view")), 1)
2369
2368
  ]),
2370
2369
  _: 2
2371
2370
  }, 1032, ["onClick"])) : k("", !0),
2372
- a(r)(i.option.table?.update, n) ? (f(), h(a(T), {
2371
+ o(r)(i.option.table?.update, n) ? (f(), h(o(A), {
2373
2372
  key: 2,
2374
2373
  link: "",
2375
2374
  type: "warning",
2376
- onClick: (d) => a(l).update.open(a(u).Update, n)
2375
+ onClick: (d) => o(l).update.open(o(u).Update, n)
2377
2376
  }, {
2378
2377
  default: m(() => [
2379
- $(E(a(y).tCurd("edit")), 1)
2378
+ $(O(o(y).tCurd("edit")), 1)
2380
2379
  ]),
2381
2380
  _: 2
2382
2381
  }, 1032, ["onClick"])) : k("", !0),
2383
- a(r)(i.option.table?.delete, n) ? (f(), h(a(T), {
2382
+ o(r)(i.option.table?.delete, n) ? (f(), h(o(A), {
2384
2383
  key: 3,
2385
2384
  link: "",
2386
2385
  type: "danger",
2387
- onClick: (d) => a(l).remove.open([n])
2386
+ onClick: (d) => o(l).remove.open([n])
2388
2387
  }, {
2389
2388
  default: m(() => [
2390
- $(E(a(y).tCurd("delete")), 1)
2389
+ $(O(o(y).tCurd("delete")), 1)
2391
2390
  ]),
2392
2391
  _: 2
2393
2392
  }, 1032, ["onClick"])) : k("", !0),
@@ -2402,58 +2401,58 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2402
2401
  ]),
2403
2402
  _: 3
2404
2403
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2405
- [g, a(l).table.loading]
2404
+ [g, o(l).table.loading]
2406
2405
  ])
2407
2406
  ], 2)
2408
2407
  ], 2),
2409
2408
  F("div", dt, [
2410
- (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({
2411
2410
  key: 0,
2412
- "current-page": a(l).page.num,
2413
- "onUpdate:currentPage": c[7] || (c[7] = (n) => a(l).page.num = n),
2414
- "page-size": a(l).page.size,
2415
- "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),
2416
2415
  background: "",
2417
- "page-sizes": a(l).page.sizeList,
2418
- "pager-count": a(l).page.pagerCount,
2419
- layout: a(l).page.layout,
2420
- 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,
2421
2420
  size: i.option.size?.table,
2422
- onSizeChange: a(l).table.getList,
2423
- onCurrentChange: a(l).table.getList
2421
+ onSizeChange: o(l).table.getList,
2422
+ onCurrentChange: o(l).table.getList
2424
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)
2425
2424
  ])
2426
2425
  ], 2),
2427
2426
  C(p.$slots, "box-right")
2428
2427
  ], 2),
2429
- z(a(ee), v({
2430
- modelValue: a(l).update.show,
2431
- "onUpdate:modelValue": c[9] || (c[9] = (n) => a(l).update.show = n),
2432
- title: a(l).update.title,
2433
- "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
2434
2433
  }, i.option.dialog), {
2435
2434
  footer: m(() => [
2436
2435
  F("span", ut, [
2437
- z(a(N), {
2436
+ z(o(K), {
2438
2437
  size: i.option.size?.form
2439
2438
  }, {
2440
2439
  default: m(() => [
2441
- z(a(T), {
2442
- onClick: a(l).update.close
2440
+ z(o(A), {
2441
+ onClick: o(l).update.close
2443
2442
  }, {
2444
2443
  default: m(() => [
2445
- $(E(a(y).tCurd("close")), 1)
2444
+ $(O(o(y).tCurd("close")), 1)
2446
2445
  ]),
2447
2446
  _: 1
2448
2447
  }, 8, ["onClick"]),
2449
- a(l).update.type !== a(u).View ? (f(), h(a(T), {
2448
+ o(l).update.type !== o(u).View ? (f(), h(o(A), {
2450
2449
  key: 0,
2451
2450
  type: "primary",
2452
- onClick: a(l).update.submit,
2453
- loading: a(l).update.loading
2451
+ onClick: o(l).update.submit,
2452
+ loading: o(l).update.loading
2454
2453
  }, {
2455
2454
  default: m(() => [
2456
- $(E(a(y).tCurd("submit")), 1)
2455
+ $(O(o(y).tCurd("submit")), 1)
2457
2456
  ]),
2458
2457
  _: 1
2459
2458
  }, 8, ["onClick", "loading"])) : k("", !0)
@@ -2463,24 +2462,24 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2463
2462
  ])
2464
2463
  ]),
2465
2464
  default: m(() => [
2466
- z(a(N), {
2465
+ z(o(K), {
2467
2466
  ref_key: "ruleFormRef",
2468
2467
  ref: s,
2469
- model: a(l).update.form,
2470
- rules: a(l).update.rules,
2468
+ model: o(l).update.form,
2469
+ rules: o(l).update.rules,
2471
2470
  size: i.option.size?.form
2472
2471
  }, {
2473
2472
  default: m(() => [
2474
- a(l).update.showContent ? (f(!0), b(S, { key: 0 }, L(a(l).update.formColumn, (n) => (f(), b(S, null, [
2475
- 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)(
2476
2475
  (() => {
2477
2476
  const d = [], V = (w) => {
2478
- 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));
2479
2478
  };
2480
2479
  return V(n), d;
2481
2480
  })(),
2482
- a(l).update.form,
2483
- a(l).update.type
2481
+ o(l).update.form,
2482
+ o(l).update.type
2484
2483
  ) ? (f(), b("div", {
2485
2484
  key: 0,
2486
2485
  class: j(["row curd-row", {
@@ -2488,29 +2487,29 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2488
2487
  }])
2489
2488
  }, [
2490
2489
  C(p.$slots, "form-start", {
2491
- row: a(l).update.form
2490
+ row: o(l).update.form
2492
2491
  }),
2493
- (f(!0), b(S, null, L(n, (d) => (f(), b(S, null, [
2494
- a(r)(d.item.show?.form, a(l).update.form, a(l).update.type) ? (f(), b("div", {
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", {
2495
2494
  key: 0,
2496
- 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}`])
2497
2496
  }, [
2498
- (f(!0), b(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, {
2499
2498
  key: V.item.key,
2500
- conf: a(l),
2499
+ conf: o(l),
2501
2500
  item: V
2502
2501
  }, oe({ _: 2 }, [
2503
- L(p.$slots, (w, A) => ({
2504
- name: A,
2502
+ T(p.$slots, (w, M) => ({
2503
+ name: M,
2505
2504
  fn: m((B) => [
2506
- C(p.$slots, A, v({ ref_for: !0 }, B || {}))
2505
+ C(p.$slots, M, v({ ref_for: !0 }, B || {}))
2507
2506
  ])
2508
2507
  }))
2509
2508
  ]), 1032, ["conf", "item"]))), 128))
2510
2509
  ], 2)) : k("", !0)
2511
2510
  ], 64))), 256)),
2512
2511
  C(p.$slots, "form-end", {
2513
- row: a(l).update.form
2512
+ row: o(l).update.form
2514
2513
  })
2515
2514
  ], 2)) : k("", !0)
2516
2515
  ], 64))), 256)) : k("", !0)
@@ -2520,33 +2519,33 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2520
2519
  ]),
2521
2520
  _: 3
2522
2521
  }, 16, ["modelValue", "title", "before-close"]),
2523
- z(a(ee), {
2524
- modelValue: a(l).remove.show,
2525
- "onUpdate:modelValue": c[10] || (c[10] = (n) => a(l).remove.show = n),
2526
- 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,
2527
2526
  "close-on-click-modal": !1
2528
2527
  }, {
2529
2528
  footer: m(() => [
2530
2529
  F("span", ft, [
2531
- z(a(N), {
2530
+ z(o(K), {
2532
2531
  size: i.option.size?.form
2533
2532
  }, {
2534
2533
  default: m(() => [
2535
- z(a(T), {
2536
- onClick: a(l).remove.close
2534
+ z(o(A), {
2535
+ onClick: o(l).remove.close
2537
2536
  }, {
2538
2537
  default: m(() => [
2539
- $(E(a(y).tCurd("close")), 1)
2538
+ $(O(o(y).tCurd("close")), 1)
2540
2539
  ]),
2541
2540
  _: 1
2542
2541
  }, 8, ["onClick"]),
2543
- z(a(T), {
2542
+ z(o(A), {
2544
2543
  type: "danger",
2545
- onClick: a(l).remove.submit,
2546
- loading: a(l).remove.loading
2544
+ onClick: o(l).remove.submit,
2545
+ loading: o(l).remove.loading
2547
2546
  }, {
2548
2547
  default: m(() => [
2549
- $(E(a(y).tCurd("confirmDelete")), 1)
2548
+ $(O(o(y).tCurd("confirmDelete")), 1)
2550
2549
  ]),
2551
2550
  _: 1
2552
2551
  }, 8, ["onClick", "loading"])
@@ -2556,7 +2555,7 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2556
2555
  ])
2557
2556
  ]),
2558
2557
  default: m(() => [
2559
- F("div", null, E(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)
2560
2559
  ]),
2561
2560
  _: 1
2562
2561
  }, 8, ["modelValue", "title"]),
@@ -2569,24 +2568,24 @@ const Je = /* @__PURE__ */ pe(Ne, [["render", He]]), We = { class: "row flex-cen
2569
2568
  };
2570
2569
  }
2571
2570
  });
2572
- class bt {
2571
+ class yt {
2573
2572
  /**
2574
2573
  * 通过远程 URL 下载文件,自动创建临时 `<a>` 标签触发浏览器下载
2575
2574
  *
2576
2575
  * @param href - 文件的远程地址
2577
2576
  * @param name - 下载后的文件名,默认 `'download.png'`
2578
2577
  */
2579
- static async download(o, u = "download.png") {
2578
+ static async download(a, u = "download.png") {
2580
2579
  const t = document.createElement("a");
2581
- 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);
2582
2581
  }
2583
2582
  /**
2584
2583
  * 将json对象或者json数组导出为json文件保存
2585
2584
  * @param data
2586
2585
  * @param name
2587
2586
  */
2588
- static exportJSONFile = (o, u) => {
2589
- 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");
2590
2589
  l.href = r, l.download = `${u || "config"}.json`, l.click();
2591
2590
  };
2592
2591
  /**
@@ -2594,10 +2593,10 @@ class bt {
2594
2593
  * @param param
2595
2594
  * @returns
2596
2595
  */
2597
- static importFile = async (o) => new Promise((u, t) => {
2596
+ static importFile = async (a) => new Promise((u, t) => {
2598
2597
  const r = document.createElement("input");
2599
2598
  r.type = "file";
2600
- const l = o?.accept || ".json";
2599
+ const l = a?.accept || ".json";
2601
2600
  r.accept = l, r.style.display = "none", r.onchange = (e) => {
2602
2601
  const s = e.target.files[0];
2603
2602
  if (!s) {
@@ -2614,26 +2613,26 @@ class bt {
2614
2613
  }, document.body.appendChild(r), r.click();
2615
2614
  });
2616
2615
  }
2617
- const ct = (i, o) => {
2618
- if (i.component("TCurd", pt), i.component("TFormList", ne), i.component("TColumn", Ae), o?.customComponent) {
2619
- M.customComponent = o.customComponent;
2620
- for (const u in o.customComponent)
2621
- 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]);
2622
2621
  }
2623
- }, gt = {
2622
+ }, bt = {
2624
2623
  install: ct
2625
2624
  };
2626
2625
  export {
2627
2626
  P as ArrUtil,
2628
- Te as ExcelUtil,
2629
- Ae as TColumn,
2627
+ Ae as ExcelUtil,
2628
+ Me as TColumn,
2630
2629
  pt as TCurd,
2631
- bt as TFile,
2632
- M as TForm,
2633
- O as TFormConfig,
2630
+ yt as TFile,
2631
+ L as TForm,
2632
+ E as TFormConfig,
2634
2633
  y as TFormI18n,
2635
2634
  ne as TFormList,
2636
2635
  U as TSys,
2637
- gt as default,
2636
+ bt as default,
2638
2637
  ct as install
2639
2638
  };