cc1-form 1.1.34 → 1.1.36

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