cc1-form 1.1.32 → 1.1.33

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
@@ -26,13 +26,13 @@ class $ {
26
26
  * @param data 数据
27
27
  * @returns 是否显示
28
28
  */
29
- static isFun = (o, ...s) => Array.isArray(o) ? o.some((e) => typeof e == "function" ? e(...s) : e) : typeof o == "function" ? o(...s) : o;
29
+ static isFun = (t, ...s) => Array.isArray(t) ? t.some((e) => typeof e == "function" ? e(...s) : e) : typeof t == "function" ? t(...s) : t;
30
30
  /**
31
31
  * 获取路由参数,自动获取query、params中的参数, 哪个有就返回哪个
32
32
  */
33
33
  static getRouterParams = () => {
34
- const o = this.router.currentRoute.value.query || {}, s = this.router.currentRoute.value.params || {};
35
- return Object.keys(o).length ? o : Object.keys(s).length ? s : {};
34
+ const t = this.router.currentRoute.value.query || {}, s = this.router.currentRoute.value.params || {};
35
+ return Object.keys(t).length ? t : Object.keys(s).length ? s : {};
36
36
  };
37
37
  /**
38
38
  * 模块赋值
@@ -42,10 +42,10 @@ class $ {
42
42
  * 加载模块
43
43
  * @param module
44
44
  */
45
- static loadModule = async (o) => {
46
- if (!$.moduleObj[o])
47
- throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
48
- const s = await $.moduleObj[o]();
45
+ static loadModule = async (t) => {
46
+ if (!$.moduleObj[t])
47
+ throw new Error(`模块${t}未加载,请赋值如:TSys.moduleObj = { ${t}: ()=>import('${t}') }`);
48
+ const s = await $.moduleObj[t]();
49
49
  return s.default ?? s;
50
50
  };
51
51
  /**
@@ -62,19 +62,19 @@ class $ {
62
62
  * @param type 消息类型
63
63
  * @param options 其他选项
64
64
  */
65
- static showMessage(o, s, e = {}) {
65
+ static showMessage(t, s, e = {}) {
66
66
  const n = Date.now();
67
- if (!this.tipMessages[o] || n - this.tipMessages[o] > this.tipMessagesGap) {
68
- this.tipMessages[o] = n;
69
- const t = Object.assign(
67
+ if (!this.tipMessages[t] || n - this.tipMessages[t] > this.tipMessagesGap) {
68
+ this.tipMessages[t] = n;
69
+ const o = Object.assign(
70
70
  {
71
- message: o,
71
+ message: t,
72
72
  type: s
73
73
  },
74
74
  e
75
75
  );
76
- de(t), setTimeout(() => {
77
- delete this.tipMessages[o];
76
+ de(o), setTimeout(() => {
77
+ delete this.tipMessages[t];
78
78
  }, this.tipMessagesGap);
79
79
  }
80
80
  }
@@ -83,16 +83,16 @@ class $ {
83
83
  * @param content
84
84
  * @param options
85
85
  */
86
- static fail = (o, s = {}) => {
87
- this.showMessage(o, "error", s);
86
+ static fail = (t, s = {}) => {
87
+ this.showMessage(t, "error", s);
88
88
  };
89
89
  /**
90
90
  * 成功提示
91
91
  * @param content
92
92
  * @param options
93
93
  */
94
- static success = (o, s = {}) => {
95
- this.showMessage(o, "success", s);
94
+ static success = (t, s = {}) => {
95
+ this.showMessage(t, "success", s);
96
96
  };
97
97
  static loadingObj = null;
98
98
  static loadingTimer = null;
@@ -101,9 +101,9 @@ class $ {
101
101
  * @param show
102
102
  * @param text
103
103
  */
104
- static loading = (o = !0, s = "Loading...") => {
104
+ static loading = (t = !0, s = "Loading...") => {
105
105
  Timer.un(this.loadingTimer), this.loadingTimer = Timer.once(() => {
106
- o ? this.loadingObj = ue.service({
106
+ t ? this.loadingObj = ue.service({
107
107
  lock: !0,
108
108
  text: s,
109
109
  background: "rgba(0, 0, 0, 0.3)"
@@ -115,34 +115,34 @@ class $ {
115
115
  * @param url 地址
116
116
  * @param isCenter 是否居中
117
117
  */
118
- static openUrl = (o, s = !0) => {
118
+ static openUrl = (t, s = !0) => {
119
119
  if (s) {
120
120
  let e = screen.width / 2 - 500, n = screen.height / 2 - 800 / 2 - 30;
121
121
  window.open(
122
- o,
122
+ t,
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=" + n + ", left=" + e
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(t, "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 (s, e) => {
135
- let n = document.getElementById(o.id);
136
- const t = await $.loadModule("html2canvas");
134
+ static getImgPic = (t) => new Promise(async (s, e) => {
135
+ let n = document.getElementById(t.id);
136
+ const o = await $.loadModule("html2canvas");
137
137
  try {
138
- t(n, {
138
+ o(n, {
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: t.windowWidth,
143
+ height: t.windowHeight,
144
+ windowWidth: t.windowWidth,
145
+ windowHeight: t.windowHeight,
146
146
  useCORS: !0,
147
147
  backgroundColor: "#ffffff00"
148
148
  }).then(function(a) {
@@ -463,8 +463,8 @@ class V {
463
463
  *
464
464
  * @param config - 需要覆盖的配置项(深度 Partial)
465
465
  */
466
- static setConfig = (o) => {
467
- V.config = ObjectUtil.deepMerge(V.config, o);
466
+ static setConfig = (t) => {
467
+ V.config = ObjectUtil.deepMerge(V.config, t);
468
468
  };
469
469
  }
470
470
  class T {
@@ -484,8 +484,8 @@ class T {
484
484
  * @param field - 字段的 key 值
485
485
  * @returns 该字段对应类型的 options 配置,如 select 类型返回 `options.select`
486
486
  */
487
- static findOptions = (o, s) => {
488
- const e = o.column.find((t) => t.key === s), n = (t) => t.replace(/-([a-z])/g, (a, d) => d.toUpperCase());
487
+ static findOptions = (t, s) => {
488
+ const e = t.column.find((o) => o.key === s), n = (o) => o.replace(/-([a-z])/g, (a, d) => d.toUpperCase());
489
489
  if (e)
490
490
  return e.options[n(e.type)];
491
491
  };
@@ -505,8 +505,8 @@ class T {
505
505
  }))
506
506
  )
507
507
  */
508
- static setOptionsData = (o, s, e) => {
509
- const n = T.findOptions(o, s);
508
+ static setOptionsData = (t, s, e) => {
509
+ const n = T.findOptions(t, s);
510
510
  n && (n.data = e);
511
511
  };
512
512
  static form = {
@@ -518,9 +518,9 @@ class T {
518
518
  * @param treeData 树形数据
519
519
  * @param option 组件配置
520
520
  */
521
- parentId: (o, s, e, n) => {
522
- const t = V.config.table.rowKey;
523
- o ? s.type === $.EDialog.Insert ? (s.form.parentId = o[t], s.form.sort = o.children.length + 1) : s.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = e.length + 1), T.setOptionsData(n, "parentId", [{ [t]: "0", title: "根", children: e }]);
521
+ parentId: (t, s, e, n) => {
522
+ const o = V.config.table.rowKey;
523
+ t ? s.type === $.EDialog.Insert ? (s.form.parentId = t[o], s.form.sort = t.children.length + 1) : s.form.parentId = t.parentId.substring(t.parentId.lastIndexOf(",") + 1) : (s.form.parentId = "0", s.form.sort = e.length + 1), T.setOptionsData(n, "parentId", [{ [o]: "0", title: "根", children: e }]);
524
524
  }
525
525
  }
526
526
  };
@@ -535,14 +535,14 @@ class R {
535
535
  * @param field 字段名
536
536
  * @param row 行数据
537
537
  */
538
- static setId = (o, s, e) => {
539
- s[o] || (s[o] = []);
538
+ static setId = (t, s, e) => {
539
+ s[t] || (s[t] = []);
540
540
  const n = V.config.table.rowKey;
541
- s[o].forEach((t) => {
541
+ s[t].forEach((o) => {
542
542
  e.forEach((a) => {
543
543
  let d = a.default ?? "";
544
- a.type === "number" && (d = a.default ?? 0), a.type === "boolean" && (d = a.default ?? !1), a.type === "time" && (d = a.default ?? /* @__PURE__ */ new Date()), t[a.value] === void 0 && (t[a.value] = d);
545
- }), t[n] || (t[n] = R.getIdFun());
544
+ a.type === "number" && (d = a.default ?? 0), a.type === "boolean" && (d = a.default ?? !1), a.type === "time" && (d = a.default ?? /* @__PURE__ */ new Date()), o[a.value] === void 0 && (o[a.value] = d);
545
+ }), o[n] || (o[n] = R.getIdFun());
546
546
  });
547
547
  };
548
548
  /**
@@ -552,12 +552,12 @@ class R {
552
552
  * @param itemFields 元素字段-如:[{label:'',value:''}]
553
553
  * @param callback 回调函数
554
554
  */
555
- static add = (o, s, e, n) => {
556
- const t = JSONUtil.cp(e);
557
- R.setId(o, s, e);
555
+ static add = (t, s, e, n) => {
556
+ const o = JSONUtil.cp(e);
557
+ R.setId(t, s, e);
558
558
  const a = V.config.table.rowKey;
559
- s[o].push(
560
- t.reduce(
559
+ s[t].push(
560
+ o.reduce(
561
561
  (d, p) => {
562
562
  let m = p.default ?? "";
563
563
  return p.type === "number" && (m = p.default ?? 0), p.type === "boolean" && (m = p.default ?? !1), p.type === "time" && (m = p.default ?? /* @__PURE__ */ new Date()), d[p.value] = m, d;
@@ -573,9 +573,9 @@ class R {
573
573
  * @param item 元素-如:{_id:''}
574
574
  * @param callback 回调函数
575
575
  */
576
- static remove = (o, s, e, n) => {
577
- const t = V.config.table.rowKey;
578
- s[o] = s[o].filter((a) => a[t] !== e[t]), n?.(s);
576
+ static remove = (t, s, e, n) => {
577
+ const o = V.config.table.rowKey;
578
+ s[t] = s[t].filter((a) => a[o] !== e[o]), n?.(s);
579
579
  };
580
580
  /**
581
581
  * 获取没有id的数据
@@ -583,10 +583,10 @@ class R {
583
583
  * @param childernField 子级字段-如:list、children
584
584
  * @returns 没有id的数据
585
585
  */
586
- static getNoIdData = (o, s) => {
587
- const e = JSONUtil.cp(o), n = V.config.table.rowKey;
588
- return e.forEach((t) => {
589
- t[n] && delete t[n], s && t[s] && R.getNoIdData(t[s], s);
586
+ static getNoIdData = (t, s) => {
587
+ const e = JSONUtil.cp(t), n = V.config.table.rowKey;
588
+ return e.forEach((o) => {
589
+ o[n] && delete o[n], s && o[s] && R.getNoIdData(o[s], s);
590
590
  }), e;
591
591
  };
592
592
  }
@@ -632,16 +632,16 @@ const Ee = {
632
632
  }
633
633
  },
634
634
  emits: ["change"],
635
- setup(r, { emit: o }) {
635
+ setup(r, { emit: t }) {
636
636
  const s = r, e = oe({
637
637
  show: !1,
638
- add: (t, a, d) => {
639
- R.add(t, a, d, () => {
638
+ add: (o, a, d) => {
639
+ R.add(o, a, d, () => {
640
640
  n("change");
641
641
  });
642
642
  },
643
- remove: (t, a, d) => {
644
- R.remove(t, a, d, () => {
643
+ remove: (o, a, d) => {
644
+ R.remove(o, a, d, () => {
645
645
  n("change");
646
646
  });
647
647
  }
@@ -649,11 +649,11 @@ const Ee = {
649
649
  ne(() => {
650
650
  R.setId(s.field, s.row, s.itemFields), e.show = !0;
651
651
  });
652
- const n = o;
653
- return (t, a) => {
652
+ const n = t;
653
+ return (o, a) => {
654
654
  const d = x("el-button"), p = x("el-input");
655
655
  return e.show ? (c(), g("div", Ee, [
656
- k(t.$slots, "list-start", { row: r.row }),
656
+ k(o.$slots, "list-start", { row: r.row }),
657
657
  O("div", null, [
658
658
  D(d, {
659
659
  link: "",
@@ -667,7 +667,7 @@ const Ee = {
667
667
  })
668
668
  ]),
669
669
  (c(!0), g(S, null, I(r.row[r.field], (m) => (c(), g("div", De, [
670
- k(t.$slots, "item-start", {
670
+ k(o.$slots, "item-start", {
671
671
  item: m,
672
672
  row: r.row
673
673
  }),
@@ -679,7 +679,7 @@ const Ee = {
679
679
  placeholder: u[r.label] || u[r.value],
680
680
  onChange: a[1] || (a[1] = (i) => n("change"))
681
681
  }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "class", "placeholder"]))), 256)),
682
- k(t.$slots, "item-end", {
682
+ k(o.$slots, "item-end", {
683
683
  item: m,
684
684
  row: r.row
685
685
  }),
@@ -694,7 +694,7 @@ const Ee = {
694
694
  _: 2
695
695
  }, 1032, ["onClick"])
696
696
  ]))), 256)),
697
- k(t.$slots, "list-end", { row: r.row })
697
+ k(o.$slots, "list-end", { row: r.row })
698
698
  ])) : C("", !0);
699
699
  };
700
700
  }
@@ -714,18 +714,18 @@ const Ee = {
714
714
  default: ""
715
715
  }
716
716
  },
717
- setup(r, { expose: o }) {
718
- const s = $.isFun, e = $.EDialog, n = B(), t = r, a = oe({
717
+ setup(r, { expose: t }) {
718
+ const s = $.isFun, e = $.EDialog, n = B(), o = r, a = oe({
719
719
  rules: {},
720
720
  show: !0,
721
721
  form: {},
722
722
  formDefault: {},
723
723
  formColumn: [],
724
- getDisabled: (d) => d.disabled?.[(t.type || e.Insert) === e.Insert ? "create" : "update"],
724
+ getDisabled: (d) => d.disabled?.[(o.type || e.Insert) === e.Insert ? "create" : "update"],
725
725
  initColumnForm: async () => {
726
- const d = t.option;
726
+ const d = o.option;
727
727
  a.formColumn = [];
728
- const p = [], m = t.option.form?.maxSpan || 12, u = t.option.form?.defaultSpan || m;
728
+ const p = [], m = o.option.form?.maxSpan || 12, u = o.option.form?.defaultSpan || m;
729
729
  let i = [];
730
730
  const f = (w) => {
731
731
  if (a.formDefault[w.key] = w.value, w.isForm) {
@@ -743,7 +743,7 @@ const Ee = {
743
743
  a.show = !1, await ye(), a.initColumnForm();
744
744
  }
745
745
  });
746
- return a.initColumnForm(), o({
746
+ return a.initColumnForm(), t({
747
747
  ref: n,
748
748
  conf: a
749
749
  }), (d, p) => (c(), b(l(Q), {
@@ -892,19 +892,19 @@ const Ue = {
892
892
  };
893
893
  class y {
894
894
  /** 解析国际化值:函数则执行并返回字符串,字符串则替换 `{key}` 占位符 */
895
- static t(o, ...s) {
896
- if (typeof o == "function")
897
- return o(...s);
898
- o = String(o);
895
+ static t(t, ...s) {
896
+ if (typeof t == "function")
897
+ return t(...s);
898
+ t = String(t);
899
899
  let e = 0;
900
- return o.replace(/{([^}]+)}/g, (n, t) => e < s.length ? String(s[e++]) : `{${t}}`);
900
+ return t.replace(/{([^}]+)}/g, (n, o) => e < s.length ? String(s[e++]) : `{${o}}`);
901
901
  }
902
- static setI18n = (o) => {
903
- y.curd = ObjectUtil.deepMerge(y.curd, o);
902
+ static setI18n = (t) => {
903
+ y.curd = ObjectUtil.deepMerge(y.curd, t);
904
904
  };
905
905
  /** 解析curd国际化值 */
906
- static tCurd(o, ...s) {
907
- return this.t(this.curd[o], ...s);
906
+ static tCurd(t, ...s) {
907
+ return this.t(this.curd[t], ...s);
908
908
  }
909
909
  /** curd表单 */
910
910
  static curd = Ue;
@@ -917,19 +917,19 @@ class Oe {
917
917
  * @param columns - 列配置数组,需包含 `key`(数据字段)和 `label`(Excel 表头)
918
918
  * @param fileName - 文件名(不含扩展名),支持字符串或返回字符串的函数;默认生成「导出数据_日期_时间戳」
919
919
  */
920
- static exportToExcel = async (o, s, e) => {
921
- if (!o || o.length === 0) return;
922
- const n = await $.loadModule("xlsx"), t = o.map((p) => {
920
+ static exportToExcel = async (t, s, e) => {
921
+ if (!t || t.length === 0) return;
922
+ const n = await $.loadModule("xlsx"), o = t.map((p) => {
923
923
  const m = {};
924
924
  return s.forEach((u) => {
925
925
  m[u.label] = p[u.key];
926
926
  }), m;
927
- }), a = n.utils.json_to_sheet(t), d = n.utils.book_new();
927
+ }), a = n.utils.json_to_sheet(o), d = n.utils.book_new();
928
928
  n.utils.book_append_sheet(d, a, "Sheet1"), e ? typeof e == "function" && (e = e()) : e = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, n.writeFile(d, `${e}.xlsx`);
929
929
  };
930
930
  }
931
931
  const K = $.EDialog, Fe = (r) => {
932
- const o = B(), s = B(), e = oe({
932
+ const t = B(), s = B(), e = oe({
933
933
  option: r.option,
934
934
  /** 查询区域相关配置对象 */
935
935
  search: {
@@ -943,21 +943,21 @@ const K = $.EDialog, Fe = (r) => {
943
943
  /** 搜索表单默认值 */
944
944
  formDefault: {},
945
945
  /** 获取占位符 */
946
- getPlaceholder: (n, t = y.tCurd("placeholderInput")) => n.text?.search?.placeholder === void 0 ? `${t}${n.label}` : n.text?.search?.placeholder,
946
+ getPlaceholder: (n, o = y.tCurd("placeholderInput")) => n.text?.search?.placeholder === void 0 ? `${o}${n.label}` : n.text?.search?.placeholder,
947
947
  /** 组装实际要搜索的数据对象 */
948
948
  getFormData: () => {
949
949
  let n = {};
950
950
  r.option.column.forEach((a) => {
951
951
  (typeof a.show?.search == "function" ? a.show?.search(e.search.form) : a.show?.search) && (n[a.key] = e.search.form[a.key]);
952
952
  });
953
- const t = r.option.search?.before?.(n);
954
- return t && (n = t), n;
953
+ const o = r.option.search?.before?.(n);
954
+ return o && (n = o), n;
955
955
  },
956
956
  /** 重置搜索表单 */
957
957
  reset: () => {
958
958
  const n = e.search.formDefault;
959
- Object.keys(n).forEach((t) => {
960
- r.option.search?.resetMode === "none" ? n[t] = void 0 : n[t] = e.search.formDefault[t];
959
+ Object.keys(n).forEach((o) => {
960
+ r.option.search?.resetMode === "none" ? n[o] = void 0 : n[o] = e.search.formDefault[o];
961
961
  }), e.search.form = JSONUtil.cp(n), e.page.num = 1, r.option.init !== !1 && e.table.getList();
962
962
  },
963
963
  /** 提交搜索表单 */
@@ -998,16 +998,16 @@ const K = $.EDialog, Fe = (r) => {
998
998
  /** 已经展开的行key集合 */
999
999
  rowKeys: [],
1000
1000
  /** 行展开触发变更函数 */
1001
- change: (n, t) => {
1001
+ change: (n, o) => {
1002
1002
  },
1003
1003
  /** 全部展开/收起 */
1004
1004
  all: () => {
1005
1005
  if (e.table.expand.isExpand)
1006
1006
  e.table.expand.rowKeys = [];
1007
1007
  else {
1008
- const n = (t) => {
1008
+ const n = (o) => {
1009
1009
  let a = [];
1010
- return t.forEach((d) => {
1010
+ return o.forEach((d) => {
1011
1011
  a.push(d[r.option.table.rowKey]), d.children && d.children.length > 0 && (a = a.concat(n(d.children)));
1012
1012
  }), a;
1013
1013
  };
@@ -1034,10 +1034,10 @@ const K = $.EDialog, Fe = (r) => {
1034
1034
  const n = r.option.api.list;
1035
1035
  try {
1036
1036
  await e.initApiData("init");
1037
- let t = {};
1037
+ let o = {};
1038
1038
  if (e.table.sort.prop) {
1039
1039
  const { props: f, order: w } = V.config.table.sort;
1040
- t = {
1040
+ o = {
1041
1041
  [f.field]: e.table.sort.prop,
1042
1042
  [w.field]: e.table.sort.order
1043
1043
  };
@@ -1046,7 +1046,7 @@ const K = $.EDialog, Fe = (r) => {
1046
1046
  [V.config.page.size]: e.page.size,
1047
1047
  [V.config.page.num]: e.page.num,
1048
1048
  ...e.search.getFormData(),
1049
- ...t
1049
+ ...o
1050
1050
  }), d = V.config.result, p = a.data || { [d.list]: a };
1051
1051
  let m = (Array.isArray(p[d.list]), p[d.list]);
1052
1052
  const u = e.update.formColumn.flat(), i = JSONUtil.cp(m).map((f) => (Object.keys(f).forEach((L) => {
@@ -1054,8 +1054,8 @@ const K = $.EDialog, Fe = (r) => {
1054
1054
  j && ["select", "radio"].includes(j.item.type) && (j.item.table.format || (j.item.table.format = (z) => j.item.options[j.item.type].data?.find((P) => P.value == z[L])?.label || z[L]));
1055
1055
  }), f));
1056
1056
  e.table.data = r.option.data ? await r.option.data(i, m) : i, e.page.total = p[d.total] || 0;
1057
- } catch (t) {
1058
- console.error(t);
1057
+ } catch (o) {
1058
+ console.error(o);
1059
1059
  } finally {
1060
1060
  e.table.loading = !1;
1061
1061
  }
@@ -1078,12 +1078,12 @@ const K = $.EDialog, Fe = (r) => {
1078
1078
  /** 排序变更回调 */
1079
1079
  change: (n) => {
1080
1080
  V.config.table.sort.resetPage && (e.page.num = 1);
1081
- const t = V.config.table.sort;
1082
- if (t.change) {
1083
- t.change(n, e);
1081
+ const o = V.config.table.sort;
1082
+ if (o.change) {
1083
+ o.change(n, e);
1084
1084
  return;
1085
1085
  }
1086
- e.table.sort.prop = n.prop, n.order === null ? e.table.sort.order = "" : e.table.sort.order = n.order === "ascending" ? t.order.asc : t.order.desc, e.table.getList();
1086
+ e.table.sort.prop = n.prop, n.order === null ? e.table.sort.order = "" : e.table.sort.order = n.order === "ascending" ? o.order.asc : o.order.desc, e.table.getList();
1087
1087
  }
1088
1088
  }
1089
1089
  },
@@ -1093,9 +1093,9 @@ const K = $.EDialog, Fe = (r) => {
1093
1093
  run: {
1094
1094
  /** 执行指定方式的导出(如select、page、all) */
1095
1095
  start: async (n) => {
1096
- let t = await e.export.run[n](), a = r.option.column;
1096
+ let o = await e.export.run[n](), a = r.option.column;
1097
1097
  const d = JSONUtil.cp({
1098
- data: t,
1098
+ data: o,
1099
1099
  columns: a
1100
1100
  }), p = r.option.tools?.export || {};
1101
1101
  p.before && p.before(d), Oe.exportToExcel(d.data, d.columns, p.fileName);
@@ -1124,11 +1124,11 @@ const K = $.EDialog, Fe = (r) => {
1124
1124
  });
1125
1125
  return;
1126
1126
  }
1127
- const n = r.option.api.list, t = await n({
1127
+ const n = r.option.api.list, o = await n({
1128
1128
  [V.config.page.size]: 999999,
1129
1129
  [V.config.page.num]: 1
1130
1130
  });
1131
- return (t.data || { [V.config.result.list]: t })[V.config.result.list];
1131
+ return (o.data || { [V.config.result.list]: o })[V.config.result.list];
1132
1132
  } catch (n) {
1133
1133
  console.error(n);
1134
1134
  } finally {
@@ -1173,27 +1173,27 @@ const K = $.EDialog, Fe = (r) => {
1173
1173
  getApiData: (n) => {
1174
1174
  if (r.option.form?.editAll)
1175
1175
  return n;
1176
- let t = {
1176
+ let o = {
1177
1177
  [r.option.table?.rowKey]: e.update.edit.data[r.option.table?.rowKey]
1178
1178
  };
1179
1179
  return Object.keys(e.update.edit.data).forEach((a) => {
1180
- n[a] !== e.update.edit.data[a] && (t[a] = n[a]);
1181
- }), t;
1180
+ n[a] !== e.update.edit.data[a] && (o[a] = n[a]);
1181
+ }), o;
1182
1182
  }
1183
1183
  },
1184
1184
  view: {},
1185
1185
  /** 打开增改弹窗 */
1186
- open: (n, t) => {
1186
+ open: (n, o) => {
1187
1187
  e.update.showContent || FunUtil.throttle(async () => {
1188
1188
  $.loading(!0);
1189
1189
  try {
1190
1190
  await e.initApiData("update");
1191
1191
  const a = n === K.Insert;
1192
1192
  if (!a && r.option.table?.inlineEdit) {
1193
- e.inlineEdit.open(t);
1193
+ e.inlineEdit.open(o);
1194
1194
  return;
1195
1195
  }
1196
- e.update.type = n, e.update.edit.data = t, e.update.title = y.tCurd(a ? "add" : n === K.View ? "view" : "edit"), e.update.form = JSONUtil.cp(a ? e.update.formDefault : t), await r.option.form?.openBefore?.(t, e.update), e.update.show = !0, e.update.showContent = !0, r.option.form?.openAfter?.(t, e.update);
1196
+ e.update.type = n, e.update.edit.data = o, e.update.title = y.tCurd(a ? "add" : n === K.View ? "view" : "edit"), e.update.form = JSONUtil.cp(a ? e.update.formDefault : o), await r.option.form?.openBefore?.(o, e.update), e.update.show = !0, e.update.showContent = !0, r.option.form?.openAfter?.(o, e.update);
1197
1197
  } catch (a) {
1198
1198
  console.error(a);
1199
1199
  } finally {
@@ -1208,20 +1208,20 @@ const K = $.EDialog, Fe = (r) => {
1208
1208
  d || ($.fail(y.tCurd("checkFormData")), u(!1)), m();
1209
1209
  })), e.update.loading = !0;
1210
1210
  const n = e.update.type === K.Insert ? r.option.api.create : r.option.api.update;
1211
- let t = JSONUtil.cp(e.update.form);
1212
- delete t.children, await r.option.form?.submitBefore?.(t, e.update);
1211
+ let o = JSONUtil.cp(e.update.form);
1212
+ delete o.children, await r.option.form?.submitBefore?.(o, e.update);
1213
1213
  const a = new Set(r.option.column.filter((d) => d.type === "datetime").map((d) => d.key));
1214
- Object.keys(t).forEach((d) => {
1215
- if (a.has(d) && t[d] != null) {
1216
- const p = new Date(t[d]).getTime();
1217
- isNaN(p) || (t[d] = p);
1214
+ Object.keys(o).forEach((d) => {
1215
+ if (a.has(d) && o[d] != null) {
1216
+ const p = new Date(o[d]).getTime();
1217
+ isNaN(p) || (o[d] = p);
1218
1218
  }
1219
1219
  });
1220
1220
  try {
1221
1221
  if (!n) return;
1222
1222
  await n({
1223
- ...t
1224
- }), e.update.close(), await e.table.getList(), r.option.form?.submitAfter?.(t, e.update);
1223
+ ...o
1224
+ }), e.update.close(), await e.table.getList(), r.option.form?.submitAfter?.(o, e.update);
1225
1225
  } catch (d) {
1226
1226
  console.error(d);
1227
1227
  } finally {
@@ -1257,11 +1257,11 @@ const K = $.EDialog, Fe = (r) => {
1257
1257
  FunUtil.throttle(async () => {
1258
1258
  e.inlineEdit.loading = !0;
1259
1259
  const n = r.option.api.update;
1260
- let t = JSONUtil.cp(e.inlineEdit.form);
1261
- delete t.children;
1260
+ let o = JSONUtil.cp(e.inlineEdit.form);
1261
+ delete o.children;
1262
1262
  try {
1263
1263
  if (!n) return;
1264
- await n({ ...t }), e.inlineEdit.close(), await e.table.getList(), $.success(y.tCurd("operationSuccess"));
1264
+ await n({ ...o }), e.inlineEdit.close(), await e.table.getList(), $.success(y.tCurd("operationSuccess"));
1265
1265
  } catch (a) {
1266
1266
  console.error(a);
1267
1267
  } finally {
@@ -1300,11 +1300,11 @@ const K = $.EDialog, Fe = (r) => {
1300
1300
  try {
1301
1301
  if (!n) return;
1302
1302
  await n({
1303
- [r.option.table?.rowKey]: e.remove.items.map((t) => t[r.option.table?.rowKey]),
1303
+ [r.option.table?.rowKey]: e.remove.items.map((o) => o[r.option.table?.rowKey]),
1304
1304
  items: e.remove.items
1305
1305
  }), $.success(y.tCurd("operationSuccess")), e.table.data.length <= 1 && e.page.num > 1 && (e.page.num -= 1), e.remove.close(), await e.table.getList();
1306
- } catch (t) {
1307
- console.error(t);
1306
+ } catch (o) {
1307
+ console.error(o);
1308
1308
  } finally {
1309
1309
  e.remove.loading = !1;
1310
1310
  }
@@ -1319,7 +1319,7 @@ const K = $.EDialog, Fe = (r) => {
1319
1319
  apiDataMap: {},
1320
1320
  /** 获取并绑定curd中所有下拉数据等远程依赖 */
1321
1321
  initApiData: async (n) => {
1322
- const t = [], a = (d) => {
1322
+ const o = [], a = (d) => {
1323
1323
  if (d.children && d.children.length) {
1324
1324
  d.children.forEach((p) => a(p));
1325
1325
  return;
@@ -1336,20 +1336,20 @@ const K = $.EDialog, Fe = (r) => {
1336
1336
  } catch {
1337
1337
  }
1338
1338
  })();
1339
- t.push(p);
1339
+ o.push(p);
1340
1340
  }
1341
1341
  };
1342
1342
  return r.option.column.forEach((d) => {
1343
1343
  a(d);
1344
- }), await Promise.all(t), !0;
1344
+ }), await Promise.all(o), !0;
1345
1345
  },
1346
1346
  /** 初始化curd配置(option默认值合并等) */
1347
1347
  initCurdConfig: () => {
1348
1348
  const n = JSONUtil.cp(V.config);
1349
1349
  n.table.emptyText = y.tCurd("noData");
1350
- const t = ObjectUtil.deepMerge(n, r.option || {});
1351
- Object.keys(t).forEach((a) => {
1352
- r.option[a] = t[a];
1350
+ const o = ObjectUtil.deepMerge(n, r.option || {});
1351
+ Object.keys(o).forEach((a) => {
1352
+ r.option[a] = o[a];
1353
1353
  });
1354
1354
  },
1355
1355
  /**
@@ -1365,17 +1365,17 @@ const K = $.EDialog, Fe = (r) => {
1365
1365
  inactiveLabel: y.tCurd("switchOff")
1366
1366
  }
1367
1367
  });
1368
- const t = (a) => {
1368
+ const o = (a) => {
1369
1369
  if (a.table = ObjectUtil.deepMerge(n.table, a.table || {}), a.children) {
1370
1370
  a.children.forEach((d) => {
1371
- t(d);
1371
+ o(d);
1372
1372
  });
1373
1373
  return;
1374
1374
  }
1375
1375
  a.options = ObjectUtil.deepMerge(n.options, a.options || {}), a.form = ObjectUtil.deepMerge(n.form, a.form || {}), a.show = ObjectUtil.deepMerge(n.show, a.show || {}), a.sort = ObjectUtil.deepMerge(n.sort, a.sort || {}), a.type = a.type || n.type, a.type === "switch" && (a.options.switch.tableBeforeChange = async (d, p) => {
1376
1376
  const m = a.options?.switch;
1377
1377
  try {
1378
- await o.value?.open({
1378
+ await t.value?.open({
1379
1379
  title: y.tCurd("confirmModify"),
1380
1380
  content: y.tCurd("confirmSwitchMessage")
1381
1381
  }), e.table.loading = !0;
@@ -1397,11 +1397,11 @@ const K = $.EDialog, Fe = (r) => {
1397
1397
  }
1398
1398
  }), a.type === "tree-select" && (a.options.treeSelect.rowKey = r.option.table?.rowKey, a.options.treeSelect.nodeKey = r.option.table?.rowKey);
1399
1399
  };
1400
- r.option.column.forEach(t), r.option.table?.column?.forEach(t);
1400
+ r.option.column.forEach(o), r.option.table?.column?.forEach(o);
1401
1401
  },
1402
- getColumnSpan: (n, t) => {
1402
+ getColumnSpan: (n, o) => {
1403
1403
  if (n.item.form?.spanCol) {
1404
- const a = V.config.form.defaultSpan, p = t.filter((m) => !$.isFun(m.item.show?.form, e.update.form, e.update.type)).reduce((m, u) => m + (u.item.form?.span || a), 0);
1404
+ const a = V.config.form.defaultSpan, p = o.filter((m) => !$.isFun(m.item.show?.form, e.update.form, e.update.type)).reduce((m, u) => m + (u.item.form?.span || a), 0);
1405
1405
  return (n.item?.form.span || a) + p;
1406
1406
  }
1407
1407
  return n.item.form.span;
@@ -1413,7 +1413,7 @@ const K = $.EDialog, Fe = (r) => {
1413
1413
  list: [],
1414
1414
  listSource: []
1415
1415
  };
1416
- const t = [], a = r.option.form?.maxSpan || 12, d = r.option.form?.defaultSpan || a / 2;
1416
+ const o = [], a = r.option.form?.maxSpan || 12, d = r.option.form?.defaultSpan || a / 2;
1417
1417
  let p = [];
1418
1418
  const m = (f) => {
1419
1419
  if (f.children) {
@@ -1426,7 +1426,7 @@ const K = $.EDialog, Fe = (r) => {
1426
1426
  f.form = f.form || { span: d }, f.form.span = f.form.span ?? d;
1427
1427
  let w = f.form.span, L = p.reduce((z, P) => z + P.span, w);
1428
1428
  const j = p.length;
1429
- if (p.push({ item: f, span: w }), (j === 1 && p[0].span === 0 || L >= a || w === 0 && j > 1) && (t.push(p), p = []), f.rules) {
1429
+ if (p.push({ item: f, span: w }), (j === 1 && p[0].span === 0 || L >= a || w === 0 && j > 1) && (o.push(p), p = []), f.rules) {
1430
1430
  const z = {
1431
1431
  input: y.tCurd("placeholderInput"),
1432
1432
  select: y.tCurd("placeholderSelect")
@@ -1447,7 +1447,7 @@ const K = $.EDialog, Fe = (r) => {
1447
1447
  f.isForm = !0, u(f, !0), m(f);
1448
1448
  }), r.option.table?.column?.forEach((f) => {
1449
1449
  u(f, !1), m(f);
1450
- }), e.search.column.list = n.column.concat(n.table?.column || []), e.table.column.list = e.search.column.list.filter((f) => f.table?.table), e.search.column.list.sort((f, w) => f.sort?.search - w.sort?.search), e.table.column.list.sort((f, w) => f.sort?.table - w.sort?.table), p.length > 0 && t.push(p), e.update.formColumn = t;
1450
+ }), e.search.column.list = n.column.concat(n.table?.column || []), e.table.column.list = e.search.column.list.filter((f) => f.table?.table), e.search.column.list.sort((f, w) => f.sort?.search - w.sort?.search), e.table.column.list.sort((f, w) => f.sort?.table - w.sort?.table), p.length > 0 && o.push(p), e.update.formColumn = o;
1451
1451
  const i = r.option.search?.formDefault;
1452
1452
  i && Object.keys(i).forEach((f) => {
1453
1453
  e.search.formDefault[f] = i[f];
@@ -1458,20 +1458,20 @@ const K = $.EDialog, Fe = (r) => {
1458
1458
  });
1459
1459
  return e.init(), ne(() => {
1460
1460
  r.option.init !== !1 && e.table.getList();
1461
- }), { conf: e, switchConfirmRef: o, ruleFormRef: s };
1461
+ }), { conf: e, switchConfirmRef: t, ruleFormRef: s };
1462
1462
  }, Me = { class: "dialog-footer" }, Ie = /* @__PURE__ */ J({
1463
1463
  __name: "switchConfirm",
1464
- setup(r, { expose: o }) {
1464
+ setup(r, { expose: t }) {
1465
1465
  const s = B(!1), e = B("确认修改"), n = B("确认要修改状态吗?");
1466
- let t = null, a = null;
1466
+ let o = null, a = null;
1467
1467
  const d = (u) => (u?.title && (e.value = u.title), u?.content && (n.value = u.content), s.value = !0, new Promise((i, f) => {
1468
- t = i, a = f;
1468
+ o = i, a = f;
1469
1469
  })), p = () => {
1470
- s.value = !1, t?.(!0), t = null, a = null;
1470
+ s.value = !1, o?.(!0), o = null, a = null;
1471
1471
  }, m = () => {
1472
- s.value = !1, a?.(new Error("用户取消操作")), t = null, a = null;
1472
+ s.value = !1, a?.(new Error("用户取消操作")), o = null, a = null;
1473
1473
  };
1474
- return o({
1474
+ return t({
1475
1475
  open: d
1476
1476
  }), (u, i) => (c(), b(l(Y), {
1477
1477
  modelValue: s.value,
@@ -1505,17 +1505,17 @@ const K = $.EDialog, Fe = (r) => {
1505
1505
  _: 1
1506
1506
  }, 8, ["modelValue", "title"]));
1507
1507
  }
1508
- }), re = (r, o) => {
1508
+ }), re = (r, t) => {
1509
1509
  const s = r.__vccOpts || r;
1510
- for (const [e, n] of o)
1510
+ for (const [e, n] of t)
1511
1511
  s[e] = n;
1512
1512
  return s;
1513
1513
  }, Le = {}, je = {
1514
1514
  xmlns: "http://www.w3.org/2000/svg",
1515
1515
  viewBox: "0 0 1024 1024"
1516
1516
  };
1517
- function ze(r, o) {
1518
- return c(), g("svg", je, o[0] || (o[0] = [
1517
+ function ze(r, t) {
1518
+ return c(), g("svg", je, t[0] || (t[0] = [
1519
1519
  O("path", {
1520
1520
  fill: "currentColor",
1521
1521
  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"
@@ -1527,8 +1527,8 @@ const Te = /* @__PURE__ */ re(Le, [["render", ze]]), Re = {}, Pe = {
1527
1527
  xmlns: "http://www.w3.org/2000/svg",
1528
1528
  viewBox: "0 0 1024 1024"
1529
1529
  };
1530
- function Ae(r, o) {
1531
- return c(), g("svg", Pe, o[0] || (o[0] = [
1530
+ function Ae(r, t) {
1531
+ return c(), g("svg", Pe, t[0] || (t[0] = [
1532
1532
  O("path", {
1533
1533
  fill: "currentColor",
1534
1534
  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"
@@ -1543,9 +1543,9 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1543
1543
  option: {}
1544
1544
  },
1545
1545
  setup(r) {
1546
- const o = $.isFun, s = ge().type;
1546
+ const t = $.isFun, s = ge().type;
1547
1547
  return (e, n) => {
1548
- const t = x("el-tooltip");
1548
+ const o = x("el-tooltip");
1549
1549
  return c(!0), g(S, null, I(e.columnList, (a) => (c(), g(S, {
1550
1550
  key: a.key
1551
1551
  }, [
@@ -1558,7 +1558,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1558
1558
  header: h(() => [
1559
1559
  k(e.$slots, "table-header-" + a.key, { item: a }, () => [
1560
1560
  O("div", Ne, [
1561
- a.table?.tooltip ? (c(), b(t, {
1561
+ a.table?.tooltip ? (c(), b(o, {
1562
1562
  key: 0,
1563
1563
  effect: "dark",
1564
1564
  content: a.table?.tooltip,
@@ -1591,7 +1591,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1591
1591
  }))
1592
1592
  ]), 1032, ["conf", "columnList", "option"]))
1593
1593
  ], 64)) : (c(), g(S, { key: 1 }, [
1594
- l(o)(a.show?.form, e.conf.inlineEdit.form, l($).EDialog.Update) && e.option.table?.inlineEdit && e.conf.inlineEdit.row === d && (a.type === "input" || a.type === "select") ? (c(), g(S, { key: 0 }, [
1594
+ l(t)(a.show?.form, e.conf.inlineEdit.form, l($).EDialog.Update) && e.option.table?.inlineEdit && e.conf.inlineEdit.row === d && (a.type === "input" || a.type === "select") ? (c(), g(S, { key: 0 }, [
1595
1595
  a.type === "input" ? (c(), b(l(q), v({
1596
1596
  key: 0,
1597
1597
  modelValue: e.conf.inlineEdit.form[a.key],
@@ -1657,117 +1657,117 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1657
1657
  item: {}
1658
1658
  },
1659
1659
  setup(r) {
1660
- return (o, s) => (c(), b(l(H), {
1660
+ return (t, s) => (c(), b(l(H), {
1661
1661
  class: A({
1662
- "hide-label": typeof o.item.item.text?.form?.label == "boolean" ? !o.item.item.text?.form?.label : !1
1662
+ "hide-label": typeof t.item.item.text?.form?.label == "boolean" ? !t.item.item.text?.form?.label : !1
1663
1663
  }),
1664
- label: typeof o.item.item.text?.form?.label == "string" ? o.item.item.text?.form?.label : o.item.item.label,
1665
- prop: o.item.item.key,
1666
- "label-width": o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
1664
+ label: typeof t.item.item.text?.form?.label == "string" ? t.item.item.text?.form?.label : t.item.item.label,
1665
+ prop: t.item.item.key,
1666
+ "label-width": t.item.item.form?.labelWidth || t.conf.option.form?.labelWidth || t.conf.option.form?.labelWidth
1667
1667
  }, {
1668
1668
  default: h(() => [
1669
1669
  O("div", He, [
1670
- k(o.$slots, "form-" + o.item.item.key + "-start", {
1671
- row: o.conf.update.form,
1672
- item: o.item.item
1670
+ k(t.$slots, "form-" + t.item.item.key + "-start", {
1671
+ row: t.conf.update.form,
1672
+ item: t.item.item
1673
1673
  }),
1674
1674
  O("div", qe, [
1675
1675
  O("div", Ge, [
1676
- k(o.$slots, "form-" + o.item.item.key, {
1677
- row: o.conf.update.form,
1678
- item: o.item.item
1676
+ k(t.$slots, "form-" + t.item.item.key, {
1677
+ row: t.conf.update.form,
1678
+ item: t.item.item
1679
1679
  }, () => [
1680
- o.item.item.type === "input" ? (c(), b(l(q), v({
1680
+ t.item.item.type === "input" ? (c(), b(l(q), v({
1681
1681
  key: 0,
1682
- modelValue: o.conf.update.form[o.item.item.key],
1683
- "onUpdate:modelValue": s[0] || (s[0] = (e) => o.conf.update.form[o.item.item.key] = e)
1684
- }, o.item.item.options?.input, F(o.item.item.options?.input?.on || {}), {
1685
- disabled: o.conf.update.getDisabled(o.item.item)
1686
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "switch" ? (c(), b(l(ee), v({
1682
+ modelValue: t.conf.update.form[t.item.item.key],
1683
+ "onUpdate:modelValue": s[0] || (s[0] = (e) => t.conf.update.form[t.item.item.key] = e)
1684
+ }, t.item.item.options?.input, F(t.item.item.options?.input?.on || {}), {
1685
+ disabled: t.conf.update.getDisabled(t.item.item)
1686
+ }), null, 16, ["modelValue", "disabled"])) : t.item.item.type === "switch" ? (c(), b(l(ee), v({
1687
1687
  key: 1,
1688
- modelValue: o.conf.update.form[o.item.item.key],
1689
- "onUpdate:modelValue": s[1] || (s[1] = (e) => o.conf.update.form[o.item.item.key] = e)
1690
- }, o.item.item.options?.switch, {
1691
- disabled: o.conf.update.getDisabled(o.item.item)
1692
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "select" ? (c(), b(l(W), v({
1688
+ modelValue: t.conf.update.form[t.item.item.key],
1689
+ "onUpdate:modelValue": s[1] || (s[1] = (e) => t.conf.update.form[t.item.item.key] = e)
1690
+ }, t.item.item.options?.switch, {
1691
+ disabled: t.conf.update.getDisabled(t.item.item)
1692
+ }), null, 16, ["modelValue", "disabled"])) : t.item.item.type === "select" ? (c(), b(l(W), v({
1693
1693
  key: 2,
1694
- modelValue: o.conf.update.form[o.item.item.key],
1695
- "onUpdate:modelValue": s[2] || (s[2] = (e) => o.conf.update.form[o.item.item.key] = e)
1696
- }, o.item.item.options?.select, F(o.item.item.options?.select?.on || {}), {
1697
- disabled: o.conf.update.getDisabled(o.item.item),
1694
+ modelValue: t.conf.update.form[t.item.item.key],
1695
+ "onUpdate:modelValue": s[2] || (s[2] = (e) => t.conf.update.form[t.item.item.key] = e)
1696
+ }, t.item.item.options?.select, F(t.item.item.options?.select?.on || {}), {
1697
+ disabled: t.conf.update.getDisabled(t.item.item),
1698
1698
  style: { width: "100%" }
1699
1699
  }), {
1700
1700
  default: h(() => [
1701
- (c(!0), g(S, null, I(o.item.item.options?.select?.data, (e) => (c(), b(l(N), {
1701
+ (c(!0), g(S, null, I(t.item.item.options?.select?.data, (e) => (c(), b(l(N), {
1702
1702
  key: e.value,
1703
1703
  label: e.label,
1704
1704
  value: e.value
1705
1705
  }, null, 8, ["label", "value"]))), 128))
1706
1706
  ]),
1707
1707
  _: 1
1708
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "radio" ? (c(), b(l(ce), v({
1708
+ }, 16, ["modelValue", "disabled"])) : t.item.item.type === "radio" ? (c(), b(l(ce), v({
1709
1709
  key: 3,
1710
- modelValue: o.conf.update.form[o.item.item.key],
1711
- "onUpdate:modelValue": s[3] || (s[3] = (e) => o.conf.update.form[o.item.item.key] = e)
1712
- }, o.item.item.options?.radio, F(o.item.item.options?.radio?.on || {}), {
1713
- disabled: o.conf.update.getDisabled(o.item.item),
1710
+ modelValue: t.conf.update.form[t.item.item.key],
1711
+ "onUpdate:modelValue": s[3] || (s[3] = (e) => t.conf.update.form[t.item.item.key] = e)
1712
+ }, t.item.item.options?.radio, F(t.item.item.options?.radio?.on || {}), {
1713
+ disabled: t.conf.update.getDisabled(t.item.item),
1714
1714
  style: { width: "100%" }
1715
1715
  }), {
1716
1716
  default: h(() => [
1717
- (c(!0), g(S, null, I(o.item.item.options?.radio?.data, (e) => (c(), b(l(fe), {
1717
+ (c(!0), g(S, null, I(t.item.item.options?.radio?.data, (e) => (c(), b(l(fe), {
1718
1718
  key: e.value,
1719
1719
  label: e.label,
1720
1720
  value: e.value
1721
1721
  }, null, 8, ["label", "value"]))), 128))
1722
1722
  ]),
1723
1723
  _: 1
1724
- }, 16, ["modelValue", "disabled"])) : o.item.item.type === "list" ? (c(), b(le, v({
1724
+ }, 16, ["modelValue", "disabled"])) : t.item.item.type === "list" ? (c(), b(le, v({
1725
1725
  key: 4,
1726
- row: o.conf.update.form,
1727
- field: o.item.item.key
1728
- }, o.item.item.options?.list, F(o.item.item.options?.list?.on || {}), {
1729
- disabled: o.conf.update.getDisabled(o.item.item),
1726
+ row: t.conf.update.form,
1727
+ field: t.item.item.key
1728
+ }, t.item.item.options?.list, F(t.item.item.options?.list?.on || {}), {
1729
+ disabled: t.conf.update.getDisabled(t.item.item),
1730
1730
  style: { width: "100%" }
1731
- }), null, 16, ["row", "field", "disabled"])) : o.item.item.type === "tree-select" ? (c(), b(l(ae), v({
1731
+ }), null, 16, ["row", "field", "disabled"])) : t.item.item.type === "tree-select" ? (c(), b(l(ae), v({
1732
1732
  key: 5,
1733
- modelValue: o.conf.update.form[o.item.item.key],
1734
- "onUpdate:modelValue": s[4] || (s[4] = (e) => o.conf.update.form[o.item.item.key] = e)
1735
- }, o.item.item.options?.treeSelect, F(o.item.item.options?.treeSelect?.on || {}), {
1736
- disabled: o.conf.update.getDisabled(o.item.item),
1733
+ modelValue: t.conf.update.form[t.item.item.key],
1734
+ "onUpdate:modelValue": s[4] || (s[4] = (e) => t.conf.update.form[t.item.item.key] = e)
1735
+ }, t.item.item.options?.treeSelect, F(t.item.item.options?.treeSelect?.on || {}), {
1736
+ disabled: t.conf.update.getDisabled(t.item.item),
1737
1737
  style: { width: "100%" }
1738
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type === "datetime" ? (c(), b(l(te), v({
1738
+ }), null, 16, ["modelValue", "disabled"])) : t.item.item.type === "datetime" ? (c(), b(l(te), v({
1739
1739
  key: 6,
1740
- modelValue: o.conf.update.form[o.item.item.key],
1741
- "onUpdate:modelValue": s[5] || (s[5] = (e) => o.conf.update.form[o.item.item.key] = e)
1742
- }, o.item.item.options?.datetime, F(o.item.item.options?.datetime?.on || {}), {
1743
- disabled: o.conf.update.getDisabled(o.item.item)
1744
- }), null, 16, ["modelValue", "disabled"])) : o.item.item.type && l(T).customComponent[o.item.item.type] ? (c(), b(G(l(T).customComponent[o.item.item.type]), v({
1740
+ modelValue: t.conf.update.form[t.item.item.key],
1741
+ "onUpdate:modelValue": s[5] || (s[5] = (e) => t.conf.update.form[t.item.item.key] = e)
1742
+ }, t.item.item.options?.datetime, F(t.item.item.options?.datetime?.on || {}), {
1743
+ disabled: t.conf.update.getDisabled(t.item.item)
1744
+ }), null, 16, ["modelValue", "disabled"])) : t.item.item.type && l(T).customComponent[t.item.item.type] ? (c(), b(G(l(T).customComponent[t.item.item.type]), v({
1745
1745
  key: 7,
1746
- modelValue: o.conf.update.form[o.item.item.key],
1747
- "onUpdate:modelValue": s[6] || (s[6] = (e) => o.conf.update.form[o.item.item.key] = e)
1748
- }, o.item.item.options?.[o.item.item.type], F(o.item.item.options?.[o.item.item.type]?.on || {}), {
1749
- disabled: o.conf.update.getDisabled(o.item.item)
1746
+ modelValue: t.conf.update.form[t.item.item.key],
1747
+ "onUpdate:modelValue": s[6] || (s[6] = (e) => t.conf.update.form[t.item.item.key] = e)
1748
+ }, t.item.item.options?.[t.item.item.type], F(t.item.item.options?.[t.item.item.type]?.on || {}), {
1749
+ disabled: t.conf.update.getDisabled(t.item.item)
1750
1750
  }), null, 16, ["modelValue", "disabled"])) : C("", !0)
1751
1751
  ]),
1752
- k(o.$slots, "form-" + o.item.item.key + "-right", {
1753
- row: o.conf.update.form,
1754
- item: o.item.item
1752
+ k(t.$slots, "form-" + t.item.item.key + "-right", {
1753
+ row: t.conf.update.form,
1754
+ item: t.item.item
1755
1755
  })
1756
1756
  ]),
1757
- k(o.$slots, "form-" + o.item.item.key + "-tip", {
1758
- row: o.conf.update.form,
1759
- item: o.item.item
1757
+ k(t.$slots, "form-" + t.item.item.key + "-tip", {
1758
+ row: t.conf.update.form,
1759
+ item: t.item.item
1760
1760
  }, () => [
1761
- o.item.item.form?.tipText ? (c(), g("div", {
1761
+ t.item.item.form?.tipText ? (c(), g("div", {
1762
1762
  key: 0,
1763
1763
  class: "form-tip-text",
1764
- innerHTML: o.item.item.form?.tipText
1764
+ innerHTML: t.item.item.form?.tipText
1765
1765
  }, null, 8, Xe)) : C("", !0)
1766
1766
  ])
1767
1767
  ]),
1768
- k(o.$slots, "form-" + o.item.item.key + "-end", {
1769
- row: o.conf.update.form,
1770
- item: o.item.item
1768
+ k(t.$slots, "form-" + t.item.item.key + "-end", {
1769
+ row: t.conf.update.form,
1770
+ item: t.item.item
1771
1771
  })
1772
1772
  ])
1773
1773
  ]),
@@ -1796,10 +1796,10 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1796
1796
  default: {}
1797
1797
  }
1798
1798
  },
1799
- setup(r, { expose: o }) {
1800
- const s = $.EDialog, e = r, n = $.isFun, { conf: t, switchConfirmRef: a, ruleFormRef: d } = Fe(e);
1801
- return o({
1802
- conf: t
1799
+ setup(r, { expose: t }) {
1800
+ const s = $.EDialog, e = r, n = $.isFun, { conf: o, switchConfirmRef: a, ruleFormRef: d } = Fe(e);
1801
+ return t({
1802
+ conf: o
1803
1803
  }), (p, m) => {
1804
1804
  const u = ke("loading");
1805
1805
  return c(), g("div", Ye, [
@@ -1808,17 +1808,17 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1808
1808
  O("div", xe, [
1809
1809
  r.option.search?.show !== !1 ? (c(), g("div", _e, [
1810
1810
  D(l(Q), {
1811
- model: l(t).search.form,
1811
+ model: l(o).search.form,
1812
1812
  inline: ""
1813
1813
  }, {
1814
1814
  default: h(() => [
1815
1815
  k(p.$slots, "search-start", {
1816
- row: l(t).search.form
1816
+ row: l(o).search.form
1817
1817
  }),
1818
- (c(!0), g(S, null, I(l(t).search.column.list, (i) => (c(), g(S, {
1818
+ (c(!0), g(S, null, I(l(o).search.column.list, (i) => (c(), g(S, {
1819
1819
  key: i.key
1820
1820
  }, [
1821
- (typeof i.show?.search == "function" ? i.show?.search(l(t).search.form) : i.show?.search) ? (c(), b(l(H), {
1821
+ (typeof i.show?.search == "function" ? i.show?.search(l(o).search.form) : i.show?.search) ? (c(), b(l(H), {
1822
1822
  key: 0,
1823
1823
  label: typeof i.text?.search?.label == "string" ? i.text?.search?.label : i.label,
1824
1824
  class: A({
@@ -1827,21 +1827,21 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1827
1827
  }, {
1828
1828
  default: h(() => [
1829
1829
  k(p.$slots, "search-" + i.key, {
1830
- row: l(t).search.form
1830
+ row: l(o).search.form
1831
1831
  }, () => [
1832
1832
  i.type === "input" ? (c(), b(l(q), v({
1833
1833
  key: 0,
1834
- modelValue: l(t).search.form[i.key],
1835
- "onUpdate:modelValue": (f) => l(t).search.form[i.key] = f,
1836
- placeholder: l(t).search.getPlaceholder(i),
1834
+ modelValue: l(o).search.form[i.key],
1835
+ "onUpdate:modelValue": (f) => l(o).search.form[i.key] = f,
1836
+ placeholder: l(o).search.getPlaceholder(i),
1837
1837
  clearable: "",
1838
1838
  disabled: i.disabled?.search,
1839
1839
  ref_for: !0
1840
1840
  }, i.options?.search?.input || i.options?.input, F(i.options?.search?.input?.on || i.options?.input?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : i.type === "switch" ? (c(), b(l(W), v({
1841
1841
  key: 1,
1842
- modelValue: l(t).search.form[i.key],
1843
- "onUpdate:modelValue": (f) => l(t).search.form[i.key] = f,
1844
- placeholder: l(t).search.getPlaceholder(i, l(y).tCurd("placeholderSelect")),
1842
+ modelValue: l(o).search.form[i.key],
1843
+ "onUpdate:modelValue": (f) => l(o).search.form[i.key] = f,
1844
+ placeholder: l(o).search.getPlaceholder(i, l(y).tCurd("placeholderSelect")),
1845
1845
  clearable: "",
1846
1846
  disabled: i.disabled?.search,
1847
1847
  ref_for: !0
@@ -1861,9 +1861,9 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1861
1861
  _: 2
1862
1862
  }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : i.type === "select" ? (c(), b(l(W), v({
1863
1863
  key: 2,
1864
- modelValue: l(t).search.form[i.key],
1865
- "onUpdate:modelValue": (f) => l(t).search.form[i.key] = f,
1866
- placeholder: l(t).search.getPlaceholder(i, l(y).tCurd("placeholderSelect")),
1864
+ modelValue: l(o).search.form[i.key],
1865
+ "onUpdate:modelValue": (f) => l(o).search.form[i.key] = f,
1866
+ placeholder: l(o).search.getPlaceholder(i, l(y).tCurd("placeholderSelect")),
1867
1867
  clearable: "",
1868
1868
  disabled: i.disabled?.search,
1869
1869
  ref_for: !0
@@ -1878,35 +1878,35 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1878
1878
  _: 2
1879
1879
  }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : i.type === "datetime" ? (c(), b(l(te), v({
1880
1880
  key: 3,
1881
- modelValue: l(t).search.form[i.key],
1882
- "onUpdate:modelValue": (f) => l(t).search.form[i.key] = f,
1881
+ modelValue: l(o).search.form[i.key],
1882
+ "onUpdate:modelValue": (f) => l(o).search.form[i.key] = f,
1883
1883
  disabled: i.disabled?.search,
1884
1884
  ref_for: !0
1885
1885
  }, i.options?.search?.datetime || i.options?.datetime, F(i.options?.search?.datetime?.on || i.options?.datetime?.on || {})), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : i.type && l(T).customComponent[i.type] ? (c(), b(G(l(T).customComponent[i.type]), v({
1886
1886
  key: 4,
1887
- modelValue: l(t).search.form[i.key],
1888
- "onUpdate:modelValue": (f) => l(t).search.form[i.key] = f,
1887
+ modelValue: l(o).search.form[i.key],
1888
+ "onUpdate:modelValue": (f) => l(o).search.form[i.key] = f,
1889
1889
  ref_for: !0
1890
1890
  }, i.options?.search?.[i.type] || i.options?.[i.type], F(i.options?.search?.[i.type]?.on || i.options?.[i.type]?.on || {}), {
1891
1891
  disabled: i.disabled?.search
1892
1892
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])) : C("", !0)
1893
1893
  ]),
1894
1894
  k(p.$slots, "search-" + i.key + "-right", {
1895
- row: l(t).search.form
1895
+ row: l(o).search.form
1896
1896
  })
1897
1897
  ]),
1898
1898
  _: 2
1899
1899
  }, 1032, ["label", "class"])) : C("", !0)
1900
1900
  ], 64))), 128)),
1901
1901
  k(p.$slots, "search-center", {
1902
- row: l(t).search.form
1902
+ row: l(o).search.form
1903
1903
  }),
1904
1904
  r.option.tools?.search || r.option.tools?.reset ? (c(), b(l(H), { key: 0 }, {
1905
1905
  default: h(() => [
1906
1906
  r.option.tools?.search ? (c(), b(l(M), {
1907
1907
  key: 0,
1908
1908
  type: "primary",
1909
- onClick: l(t).search.submit
1909
+ onClick: l(o).search.submit
1910
1910
  }, {
1911
1911
  default: h(() => [
1912
1912
  E(U(l(y).tCurd("search")), 1)
@@ -1915,7 +1915,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1915
1915
  }, 8, ["onClick"])) : C("", !0),
1916
1916
  r.option.tools?.reset ? (c(), b(l(M), {
1917
1917
  key: 1,
1918
- onClick: l(t).search.reset
1918
+ onClick: l(o).search.reset
1919
1919
  }, {
1920
1920
  default: h(() => [
1921
1921
  E(U(l(y).tCurd("reset")), 1)
@@ -1926,7 +1926,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1926
1926
  _: 1
1927
1927
  })) : C("", !0),
1928
1928
  k(p.$slots, "search-end", {
1929
- row: l(t).search.form
1929
+ row: l(o).search.form
1930
1930
  })
1931
1931
  ]),
1932
1932
  _: 3
@@ -1937,7 +1937,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1937
1937
  l(n)(r.option.tools?.add) ? (c(), g("div", ot, [
1938
1938
  D(l(M), {
1939
1939
  type: "primary",
1940
- onClick: m[0] || (m[0] = (i) => l(t).update.open(l(s).Insert))
1940
+ onClick: m[0] || (m[0] = (i) => l(o).update.open(l(s).Insert))
1941
1941
  }, {
1942
1942
  default: h(() => [
1943
1943
  E(U(l(y).tCurd("add")), 1)
@@ -1948,7 +1948,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1948
1948
  r.option.table?.selectable && l(n)(r.option.tools?.delete) ? (c(), g("div", lt, [
1949
1949
  D(l(M), {
1950
1950
  type: "danger",
1951
- onClick: m[1] || (m[1] = (i) => l(t).remove.open(l(t).table.selection.list))
1951
+ onClick: m[1] || (m[1] = (i) => l(o).remove.open(l(o).table.selection.list))
1952
1952
  }, {
1953
1953
  default: h(() => [
1954
1954
  E(U(l(y).tCurd("delete")), 1)
@@ -1959,7 +1959,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1959
1959
  r.option.tools?.expand ? (c(), g("div", at, [
1960
1960
  D(l(M), {
1961
1961
  type: "warning",
1962
- onClick: m[2] || (m[2] = (i) => l(t).table.expand.all())
1962
+ onClick: m[2] || (m[2] = (i) => l(o).table.expand.all())
1963
1963
  }, {
1964
1964
  default: h(() => [
1965
1965
  E(U(l(y).tCurd("expandCollapse")), 1)
@@ -1969,7 +1969,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
1969
1969
  ])) : C("", !0),
1970
1970
  r.option.tools?.export?.show ? (c(), b(l(pe), {
1971
1971
  key: 3,
1972
- onCommand: l(t).export.click
1972
+ onCommand: l(o).export.click
1973
1973
  }, {
1974
1974
  dropdown: h(() => [
1975
1975
  D(l(me), null, {
@@ -2003,7 +2003,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2003
2003
  O("div", nt, [
2004
2004
  D(l(M), {
2005
2005
  type: "warning",
2006
- loading: l(t).export.loading
2006
+ loading: l(o).export.loading
2007
2007
  }, {
2008
2008
  default: h(() => [
2009
2009
  E(U(l(y).tCurd("export")), 1)
@@ -2022,7 +2022,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2022
2022
  key: 0,
2023
2023
  class: "refresh-btn",
2024
2024
  onClick: m[3] || (m[3] = //@ts-ignore
2025
- (...i) => l(t).table.getList && l(t).table.getList(...i))
2025
+ (...i) => l(o).table.getList && l(o).table.getList(...i))
2026
2026
  }, [
2027
2027
  D(Te)
2028
2028
  ])) : C("", !0)
@@ -2031,12 +2031,12 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2031
2031
  O("div", rt, [
2032
2032
  O("div", st, [
2033
2033
  Ce((c(), b(l(he), v({
2034
- data: l(t).table.data,
2034
+ data: l(o).table.data,
2035
2035
  border: r.option.table?.border === void 0 ? !0 : r.option.table?.border,
2036
- onSelectionChange: l(t).table.selection.change,
2037
- onSortChange: l(t).table.sort.change,
2038
- "expand-row-keys": l(t).table.expand.rowKeys,
2039
- onExpandChange: l(t).table.expand.change
2036
+ onSelectionChange: l(o).table.selection.change,
2037
+ onSortChange: l(o).table.sort.change,
2038
+ "expand-row-keys": l(o).table.expand.rowKeys,
2039
+ onExpandChange: l(o).table.expand.change
2040
2040
  }, r.option.table, F(r.option.table?.on || {})), {
2041
2041
  default: h(() => [
2042
2042
  r.option.table?.selectable || l(n)(r.option.tools?.delete) || r.option.tools?.export?.show ? (c(), b(l(Z), {
@@ -2049,8 +2049,8 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2049
2049
  "show-overflow-tooltip": !1
2050
2050
  }, null, 8, ["selectable"])) : C("", !0),
2051
2051
  D(We, {
2052
- conf: l(t),
2053
- columnList: l(t).table.column.list,
2052
+ conf: l(o),
2053
+ columnList: l(o).table.column.list,
2054
2054
  option: r.option
2055
2055
  }, _({ _: 2 }, [
2056
2056
  I(p.$slots, (i, f) => ({
@@ -2062,7 +2062,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2062
2062
  ]), 1032, ["conf", "columnList", "option"]),
2063
2063
  l(n)(r.option.table?.add) || l(n)(r.option.table?.update) || l(n)(r.option.table?.delete) || l(n)(r.option.table?.view) || p.$slots["table-op-left"] || p.$slots["table-op-right"] ? (c(), b(l(Z), v({
2064
2064
  key: 1,
2065
- width: l(t).table.op.width(l(n)(r.option.table?.add), l(n)(r.option.table?.update), l(n)(r.option.table?.delete), l(n)(r.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2065
+ width: l(o).table.op.width(l(n)(r.option.table?.add), l(n)(r.option.table?.update), l(n)(r.option.table?.delete), l(n)(r.option.table?.view), p.$slots["table-op-left"], p.$slots["table-op-right"]),
2066
2066
  align: "center",
2067
2067
  fixed: "right"
2068
2068
  }, r.option.table?.operate), {
@@ -2073,11 +2073,11 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2073
2073
  ]),
2074
2074
  default: h(({ row: i }) => [
2075
2075
  k(p.$slots, "table-op-left", { row: i }),
2076
- r.option.table?.inlineEdit && l(t).inlineEdit.row === i ? (c(), g(S, { key: 0 }, [
2076
+ r.option.table?.inlineEdit && l(o).inlineEdit.row === i ? (c(), g(S, { key: 0 }, [
2077
2077
  D(l(M), {
2078
2078
  link: "",
2079
2079
  type: "info",
2080
- onClick: l(t).inlineEdit.close
2080
+ onClick: l(o).inlineEdit.close
2081
2081
  }, {
2082
2082
  default: h(() => [
2083
2083
  E(U(l(y).tCurd("cancel")), 1)
@@ -2087,8 +2087,8 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2087
2087
  D(l(M), {
2088
2088
  link: "",
2089
2089
  type: "primary",
2090
- onClick: l(t).inlineEdit.submit,
2091
- loading: l(t).inlineEdit.loading
2090
+ onClick: l(o).inlineEdit.submit,
2091
+ loading: l(o).inlineEdit.loading
2092
2092
  }, {
2093
2093
  default: h(() => [
2094
2094
  E(U(l(y).tCurd("confirm")), 1)
@@ -2101,7 +2101,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2101
2101
  key: 0,
2102
2102
  link: "",
2103
2103
  type: "primary",
2104
- onClick: (f) => l(t).update.open(l(s).Insert, i)
2104
+ onClick: (f) => l(o).update.open(l(s).Insert, i)
2105
2105
  }, {
2106
2106
  default: h(() => [
2107
2107
  E(U(l(y).tCurd("add")), 1)
@@ -2112,7 +2112,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2112
2112
  key: 1,
2113
2113
  link: "",
2114
2114
  type: "primary",
2115
- onClick: (f) => l(t).update.open(l(s).View, i)
2115
+ onClick: (f) => l(o).update.open(l(s).View, i)
2116
2116
  }, {
2117
2117
  default: h(() => [
2118
2118
  E(U(l(y).tCurd("view")), 1)
@@ -2123,7 +2123,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2123
2123
  key: 2,
2124
2124
  link: "",
2125
2125
  type: "warning",
2126
- onClick: (f) => l(t).update.open(l(s).Update, i)
2126
+ onClick: (f) => l(o).update.open(l(s).Update, i)
2127
2127
  }, {
2128
2128
  default: h(() => [
2129
2129
  E(U(l(y).tCurd("edit")), 1)
@@ -2134,7 +2134,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2134
2134
  key: 3,
2135
2135
  link: "",
2136
2136
  type: "danger",
2137
- onClick: (f) => l(t).remove.open([i])
2137
+ onClick: (f) => l(o).remove.open([i])
2138
2138
  }, {
2139
2139
  default: h(() => [
2140
2140
  E(U(l(y).tCurd("delete")), 1)
@@ -2149,50 +2149,50 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2149
2149
  ]),
2150
2150
  _: 3
2151
2151
  }, 16, ["data", "border", "onSelectionChange", "onSortChange", "expand-row-keys", "onExpandChange"])), [
2152
- [u, l(t).table.loading]
2152
+ [u, l(o).table.loading]
2153
2153
  ])
2154
2154
  ])
2155
2155
  ]),
2156
2156
  O("div", dt, [
2157
2157
  r.option.page?.show === void 0 || r.option.page?.show ? (c(), b(l(be), v({
2158
2158
  key: 0,
2159
- "current-page": l(t).page.num,
2160
- "onUpdate:currentPage": m[4] || (m[4] = (i) => l(t).page.num = i),
2161
- "page-size": l(t).page.size,
2162
- "onUpdate:pageSize": m[5] || (m[5] = (i) => l(t).page.size = i),
2159
+ "current-page": l(o).page.num,
2160
+ "onUpdate:currentPage": m[4] || (m[4] = (i) => l(o).page.num = i),
2161
+ "page-size": l(o).page.size,
2162
+ "onUpdate:pageSize": m[5] || (m[5] = (i) => l(o).page.size = i),
2163
2163
  background: "",
2164
- "page-sizes": l(t).page.sizeList,
2165
- "pager-count": l(t).page.pagerCount,
2166
- layout: l(t).page.layout,
2167
- total: l(t).page.total,
2168
- onSizeChange: l(t).table.getList,
2169
- onCurrentChange: l(t).table.getList
2164
+ "page-sizes": l(o).page.sizeList,
2165
+ "pager-count": l(o).page.pagerCount,
2166
+ layout: l(o).page.layout,
2167
+ total: l(o).page.total,
2168
+ onSizeChange: l(o).table.getList,
2169
+ onCurrentChange: l(o).table.getList
2170
2170
  }, r.option.page?.pagination || {}, F(r.option.page?.pagination?.on || {})), null, 16, ["current-page", "page-size", "page-sizes", "pager-count", "layout", "total", "onSizeChange", "onCurrentChange"])) : C("", !0)
2171
2171
  ])
2172
2172
  ]),
2173
2173
  k(p.$slots, "box-right")
2174
2174
  ]),
2175
2175
  D(l(Y), v({
2176
- modelValue: l(t).update.show,
2177
- "onUpdate:modelValue": m[6] || (m[6] = (i) => l(t).update.show = i),
2178
- title: l(t).update.title,
2179
- "before-close": l(t).update.close
2176
+ modelValue: l(o).update.show,
2177
+ "onUpdate:modelValue": m[6] || (m[6] = (i) => l(o).update.show = i),
2178
+ title: l(o).update.title,
2179
+ "before-close": l(o).update.close
2180
2180
  }, r.option.dialog), {
2181
2181
  footer: h(() => [
2182
2182
  O("span", ut, [
2183
2183
  D(l(M), {
2184
- onClick: l(t).update.close
2184
+ onClick: l(o).update.close
2185
2185
  }, {
2186
2186
  default: h(() => [
2187
2187
  E(U(l(y).tCurd("close")), 1)
2188
2188
  ]),
2189
2189
  _: 1
2190
2190
  }, 8, ["onClick"]),
2191
- l(t).update.type !== l(s).View ? (c(), b(l(M), {
2191
+ l(o).update.type !== l(s).View ? (c(), b(l(M), {
2192
2192
  key: 0,
2193
2193
  type: "primary",
2194
- onClick: l(t).update.submit,
2195
- loading: l(t).update.loading
2194
+ onClick: l(o).update.submit,
2195
+ loading: l(o).update.loading
2196
2196
  }, {
2197
2197
  default: h(() => [
2198
2198
  E(U(l(y).tCurd("submit")), 1)
@@ -2205,11 +2205,11 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2205
2205
  D(l(Q), {
2206
2206
  ref_key: "ruleFormRef",
2207
2207
  ref: d,
2208
- model: l(t).update.form,
2209
- rules: l(t).update.rules
2208
+ model: l(o).update.form,
2209
+ rules: l(o).update.rules
2210
2210
  }, {
2211
2211
  default: h(() => [
2212
- l(t).update.showContent ? (c(!0), g(S, { key: 0 }, I(l(t).update.formColumn, (i) => (c(), g(S, null, [
2212
+ l(o).update.showContent ? (c(!0), g(S, { key: 0 }, I(l(o).update.formColumn, (i) => (c(), g(S, null, [
2213
2213
  l(n)(
2214
2214
  (() => {
2215
2215
  const f = [], w = (L) => {
@@ -2217,8 +2217,8 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2217
2217
  };
2218
2218
  return w(i), f;
2219
2219
  })(),
2220
- l(t).update.form,
2221
- l(t).update.type
2220
+ l(o).update.form,
2221
+ l(o).update.type
2222
2222
  ) ? (c(), g("div", {
2223
2223
  key: 0,
2224
2224
  class: A(["row curd-row", {
@@ -2226,16 +2226,16 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2226
2226
  }])
2227
2227
  }, [
2228
2228
  k(p.$slots, "form-start", {
2229
- row: l(t).update.form
2229
+ row: l(o).update.form
2230
2230
  }),
2231
2231
  (c(!0), g(S, null, I(i, (f) => (c(), g(S, null, [
2232
- l(n)(f.item.show?.form, l(t).update.form, l(t).update.type) ? (c(), g("div", {
2232
+ l(n)(f.item.show?.form, l(o).update.form, l(o).update.type) ? (c(), g("div", {
2233
2233
  key: 0,
2234
- class: A([f.item.form.span > 0 ? `col-${l(t).getColumnSpan(f, i)}` : "col", `form-item-col-${f.item.key}`])
2234
+ class: A([f.item.form.span > 0 ? `col-${l(o).getColumnSpan(f, i)}` : "col", `form-item-col-${f.item.key}`])
2235
2235
  }, [
2236
2236
  (c(!0), g(S, null, I(f.item.children ? f.children : [f], (w) => (c(), b(Qe, {
2237
2237
  key: w.item.key,
2238
- conf: l(t),
2238
+ conf: l(o),
2239
2239
  item: w
2240
2240
  }, _({ _: 2 }, [
2241
2241
  I(p.$slots, (L, j) => ({
@@ -2248,7 +2248,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2248
2248
  ], 2)) : C("", !0)
2249
2249
  ], 64))), 256)),
2250
2250
  k(p.$slots, "form-end", {
2251
- row: l(t).update.form
2251
+ row: l(o).update.form
2252
2252
  })
2253
2253
  ], 2)) : C("", !0)
2254
2254
  ], 64))), 256)) : C("", !0)
@@ -2259,15 +2259,15 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2259
2259
  _: 3
2260
2260
  }, 16, ["modelValue", "title", "before-close"]),
2261
2261
  D(l(Y), {
2262
- modelValue: l(t).remove.show,
2263
- "onUpdate:modelValue": m[7] || (m[7] = (i) => l(t).remove.show = i),
2264
- title: l(t).remove.title,
2262
+ modelValue: l(o).remove.show,
2263
+ "onUpdate:modelValue": m[7] || (m[7] = (i) => l(o).remove.show = i),
2264
+ title: l(o).remove.title,
2265
2265
  "close-on-click-modal": !1
2266
2266
  }, {
2267
2267
  footer: h(() => [
2268
2268
  O("span", ct, [
2269
2269
  D(l(M), {
2270
- onClick: l(t).remove.close
2270
+ onClick: l(o).remove.close
2271
2271
  }, {
2272
2272
  default: h(() => [
2273
2273
  E(U(l(y).tCurd("close")), 1)
@@ -2276,8 +2276,8 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2276
2276
  }, 8, ["onClick"]),
2277
2277
  D(l(M), {
2278
2278
  type: "danger",
2279
- onClick: l(t).remove.submit,
2280
- loading: l(t).remove.loading
2279
+ onClick: l(o).remove.submit,
2280
+ loading: l(o).remove.loading
2281
2281
  }, {
2282
2282
  default: h(() => [
2283
2283
  E(U(l(y).tCurd("confirmDelete")), 1)
@@ -2287,7 +2287,7 @@ const Ke = /* @__PURE__ */ re(Re, [["render", Ae]]), Ne = { class: "row flex-cen
2287
2287
  ])
2288
2288
  ]),
2289
2289
  default: h(() => [
2290
- O("div", null, U(l(y).tCurd("confirmDeleteMessage", l(t).remove.items.length)), 1)
2290
+ O("div", null, U(l(y).tCurd("confirmDeleteMessage", l(o).remove.items.length)), 1)
2291
2291
  ]),
2292
2292
  _: 1
2293
2293
  }, 8, ["modelValue", "title"]),
@@ -2306,29 +2306,29 @@ class yt {
2306
2306
  * @param href - 文件的远程地址
2307
2307
  * @param name - 下载后的文件名,默认 `'download.png'`
2308
2308
  */
2309
- static async download(o, s = "download.png") {
2309
+ static async download(t, s = "download.png") {
2310
2310
  const e = document.createElement("a");
2311
- e.style.display = "none", e.href = o, e.setAttribute("download", s), typeof e.download > "u" && e.setAttribute("target", "_blank"), document.body.appendChild(e), e.click(), document.body.removeChild(e), window.URL.revokeObjectURL(o);
2311
+ e.style.display = "none", e.href = t, e.setAttribute("download", s), typeof e.download > "u" && e.setAttribute("target", "_blank"), document.body.appendChild(e), e.click(), document.body.removeChild(e), window.URL.revokeObjectURL(t);
2312
2312
  }
2313
2313
  /**
2314
2314
  * 将json对象或者json数组导出为json文件保存
2315
2315
  * @param data
2316
2316
  * @param name
2317
2317
  */
2318
- static exportJSONFile = (o, s) => {
2319
- const e = new Blob([JSON.stringify(o)], { type: "application/json" }), n = URL.createObjectURL(e), t = document.createElement("a");
2320
- t.href = n, t.download = `${s || "config"}.json`, t.click();
2318
+ static exportJSONFile = (t, s) => {
2319
+ const e = new Blob([JSON.stringify(t)], { type: "application/json" }), n = URL.createObjectURL(e), o = document.createElement("a");
2320
+ o.href = n, o.download = `${s || "config"}.json`, o.click();
2321
2321
  };
2322
2322
  /**
2323
2323
  * 导入文件内容,默认为json
2324
2324
  * @param param
2325
2325
  * @returns
2326
2326
  */
2327
- static importFile = async (o) => new Promise((s, e) => {
2327
+ static importFile = async (t) => new Promise((s, e) => {
2328
2328
  const n = document.createElement("input");
2329
2329
  n.type = "file";
2330
- const t = o?.accept || ".json";
2331
- n.accept = t, n.style.display = "none", n.onchange = (a) => {
2330
+ const o = t?.accept || ".json";
2331
+ n.accept = o, n.style.display = "none", n.onchange = (a) => {
2332
2332
  const d = a.target.files[0];
2333
2333
  if (!d) {
2334
2334
  $.fail("未选择文件"), e("未选择文件");
@@ -2336,7 +2336,7 @@ class yt {
2336
2336
  }
2337
2337
  const p = new FileReader();
2338
2338
  p.onload = async (m) => {
2339
- const u = t == ".json" ? JSON.parse(m.target.result) : m.target.result;
2339
+ const u = o == ".json" ? JSON.parse(m.target.result) : m.target.result;
2340
2340
  s(u);
2341
2341
  }, p.onerror = () => {
2342
2342
  $.fail("文件读取失败"), e("文件读取失败");
@@ -2344,11 +2344,11 @@ class yt {
2344
2344
  }, document.body.appendChild(n), n.click();
2345
2345
  });
2346
2346
  }
2347
- const pt = (r, o) => {
2348
- if (r.component("TCurd", ft), r.component("TFormList", le), r.component("TColumn", Se), o?.customComponent) {
2349
- T.customComponent = o.customComponent;
2350
- for (const s in o.customComponent)
2351
- r.component(s, o.customComponent[s]);
2347
+ const pt = (r, t) => {
2348
+ if (r.component("TCurd", ft), r.component("TFormList", le), r.component("TColumn", Se), t?.customComponent) {
2349
+ T.customComponent = t.customComponent;
2350
+ for (const s in t.customComponent)
2351
+ r.component(s, t.customComponent[s]);
2352
2352
  }
2353
2353
  }, gt = {
2354
2354
  install: pt