gzhr-ui 1.1.20 → 1.1.21

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.
@@ -13,27 +13,27 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
13
13
  },
14
14
  emits: ["FilterSearch"],
15
15
  setup(n, { emit: t }) {
16
- const e = n, r = t, a = ref(""), o = ref(""), l = ref(!1), i = ref(), d = ref(), c = ref(), u = computed(() => {
17
- var y, w;
18
- const s = ((w = (y = e.column.filters) == null ? void 0 : y[0]) == null ? void 0 : w.data) || [];
16
+ const e = n, r = t, a = ref(""), o = ref(""), l = ref(!1), i = ref(), m = ref(), c = ref(), u = computed(() => {
17
+ var f, b;
18
+ const s = ((b = (f = e.column.filters) == null ? void 0 : f[0]) == null ? void 0 : b.data) || [];
19
19
  return Array.isArray(s) && s.length === 2 && s[0] && s[1] ? `${s[0]} 至 ${s[1]}` : "";
20
20
  });
21
21
  onMounted(() => {
22
- var y, w;
23
- const s = ((w = (y = e.column.filters) == null ? void 0 : y[0]) == null ? void 0 : w.data) || [];
24
- Array.isArray(s) && s.length === 2 && (a.value = s[0] || "", o.value = s[1] || ""), document.addEventListener("click", f);
22
+ var f, b;
23
+ const s = ((b = (f = e.column.filters) == null ? void 0 : f[0]) == null ? void 0 : b.data) || [];
24
+ Array.isArray(s) && s.length === 2 && (a.value = s[0] || "", o.value = s[1] || ""), document.addEventListener("click", d);
25
25
  }), onBeforeUnmount(() => {
26
- document.removeEventListener("click", f);
26
+ document.removeEventListener("click", d);
27
27
  });
28
- const g = () => {
28
+ const _ = () => {
29
29
  l.value = !l.value;
30
- }, f = (s) => {
31
- var j, $;
30
+ }, d = (s) => {
31
+ var V, D;
32
32
  if (!l.value) return;
33
- const y = s.target, w = c.value, S = ($ = (j = d.value) == null ? void 0 : j.popperRef) == null ? void 0 : $.contentRef;
34
- w && w.contains(y) || S && S.contains(y) || (l.value = !1);
33
+ const f = s.target, b = c.value, C = (D = (V = m.value) == null ? void 0 : V.popperRef) == null ? void 0 : D.contentRef;
34
+ b && b.contains(f) || C && C.contains(f) || (l.value = !1);
35
35
  };
36
- function m() {
36
+ function k() {
37
37
  if (!a.value && !o.value)
38
38
  e.column.filters[0].data = [];
39
39
  else if (!a.value || !o.value) {
@@ -43,10 +43,10 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
43
43
  e.column.filters[0].data = [a.value, o.value];
44
44
  l.value = !1, r("FilterSearch", e.column);
45
45
  }
46
- function v() {
46
+ function p() {
47
47
  a.value = "", o.value = "", e.column.filters[0].data = [];
48
48
  }
49
- return (s, y) => (openBlock(), createElementBlock("div", {
49
+ return (s, f) => (openBlock(), createElementBlock("div", {
50
50
  class: "size-full",
51
51
  title: u.value,
52
52
  ref_key: "wrapperRef",
@@ -57,16 +57,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
57
57
  ref: i,
58
58
  value: u.value,
59
59
  readonly: "",
60
- onClick: g
60
+ onClick: _
61
61
  }, null, 8, ["value"]),
62
62
  createVNode(unref(ElPopover), {
63
63
  ref_key: "popoverRef",
64
- ref: d,
64
+ ref: m,
65
65
  "virtual-ref": i.value,
66
66
  "virtual-triggering": "",
67
67
  trigger: "manual",
68
68
  visible: l.value,
69
- "onUpdate:visible": y[2] || (y[2] = (w) => l.value = w),
69
+ "onUpdate:visible": f[2] || (f[2] = (b) => l.value = b),
70
70
  "hide-after": 0,
71
71
  width: "140",
72
72
  "popper-class": "date-filter-popper"
@@ -75,7 +75,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
75
75
  createElementVNode("div", _hoisted_2$7, [
76
76
  createVNode(unref(ElDatePicker), {
77
77
  modelValue: a.value,
78
- "onUpdate:modelValue": y[0] || (y[0] = (w) => a.value = w),
78
+ "onUpdate:modelValue": f[0] || (f[0] = (b) => a.value = b),
79
79
  type: "date",
80
80
  "value-format": "YYYY-MM-DD",
81
81
  placeholder: "开始日期",
@@ -85,7 +85,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
85
85
  }, null, 8, ["modelValue"]),
86
86
  createVNode(unref(ElDatePicker), {
87
87
  modelValue: o.value,
88
- "onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
88
+ "onUpdate:modelValue": f[1] || (f[1] = (b) => o.value = b),
89
89
  type: "date",
90
90
  "value-format": "YYYY-MM-DD",
91
91
  placeholder: "结束日期",
@@ -98,9 +98,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
98
98
  size: "small",
99
99
  type: "primary",
100
100
  class: "btn-confirm",
101
- onClick: m
101
+ onClick: k
102
102
  }, {
103
- default: withCtx(() => y[3] || (y[3] = [
103
+ default: withCtx(() => f[3] || (f[3] = [
104
104
  createTextVNode(" 确认 ")
105
105
  ])),
106
106
  _: 1
@@ -108,9 +108,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
108
108
  createVNode(unref(ElButton), {
109
109
  size: "small",
110
110
  class: "btn-reset",
111
- onClick: v
111
+ onClick: p
112
112
  }, {
113
- default: withCtx(() => y[4] || (y[4] = [
113
+ default: withCtx(() => f[4] || (f[4] = [
114
114
  createTextVNode(" 重置 ")
115
115
  ])),
116
116
  _: 1
@@ -133,13 +133,13 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
133
133
  emits: ["FilterSearch"],
134
134
  setup(n, { emit: t }) {
135
135
  const e = n, r = ref([]), a = computed(() => e.column.filters[0].data.length ? e.column.filters[0].data.map((u) => u ? "是" : "否").join(",") : ""), o = ref(), l = ref(), i = () => {
136
- var u, g;
137
- (g = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || g.call(u);
138
- }, d = t;
136
+ var u, _;
137
+ (_ = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || _.call(u);
138
+ }, m = t;
139
139
  function c() {
140
140
  r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
141
141
  }
142
- return (u, g) => (openBlock(), createElementBlock("div", {
142
+ return (u, _) => (openBlock(), createElementBlock("div", {
143
143
  class: "size-full",
144
144
  title: a.value
145
145
  }, [
@@ -148,7 +148,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
148
148
  ref: o,
149
149
  value: a.value,
150
150
  readonly: "",
151
- onKeyup: g[0] || (g[0] = withKeys((f) => d("FilterSearch", n.column), ["enter"]))
151
+ onKeyup: _[0] || (_[0] = withKeys((d) => m("FilterSearch", n.column), ["enter"]))
152
152
  }, null, 8, ["value"]), [
153
153
  [unref(ClickOutside), i]
154
154
  ]),
@@ -164,7 +164,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
164
164
  createVNode(unref(ElCheckboxGroup), {
165
165
  class: "flex flex-col",
166
166
  modelValue: r.value,
167
- "onUpdate:modelValue": g[1] || (g[1] = (f) => r.value = f),
167
+ "onUpdate:modelValue": _[1] || (_[1] = (d) => r.value = d),
168
168
  onChange: c
169
169
  }, {
170
170
  default: withCtx(() => [
@@ -197,16 +197,16 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
197
197
  const e = n, r = ref([]);
198
198
  ref("");
199
199
  const a = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.map((u) => {
200
- var g;
201
- return (g = e.column.params.options.find((f) => f.value === u)) == null ? void 0 : g.label;
200
+ var _;
201
+ return (_ = e.column.params.options.find((d) => d.value === u)) == null ? void 0 : _.label;
202
202
  }).join(",") : ""), o = ref(), l = ref(), i = () => {
203
- var u, g;
204
- (g = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || g.call(u);
205
- }, d = t;
203
+ var u, _;
204
+ (_ = (u = unref(l).popperRef) == null ? void 0 : u.delayHide) == null || _.call(u);
205
+ }, m = t;
206
206
  function c() {
207
207
  r.value.length ? e.column.filters[0].data = [...r.value] : e.column.filters[0].data = [];
208
208
  }
209
- return (u, g) => (openBlock(), createElementBlock("div", {
209
+ return (u, _) => (openBlock(), createElementBlock("div", {
210
210
  class: "size-full",
211
211
  title: a.value
212
212
  }, [
@@ -215,7 +215,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
215
215
  ref: o,
216
216
  value: a.value,
217
217
  readonly: "",
218
- onKeyup: g[0] || (g[0] = withKeys((f) => d("FilterSearch", n.column), ["enter"]))
218
+ onKeyup: _[0] || (_[0] = withKeys((d) => m("FilterSearch", n.column), ["enter"]))
219
219
  }, null, 8, ["value"]), [
220
220
  [unref(ClickOutside), i]
221
221
  ]),
@@ -232,14 +232,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
232
232
  key: 0,
233
233
  class: "flex flex-col",
234
234
  modelValue: r.value,
235
- "onUpdate:modelValue": g[1] || (g[1] = (f) => r.value = f),
235
+ "onUpdate:modelValue": _[1] || (_[1] = (d) => r.value = d),
236
236
  onChange: c
237
237
  }, {
238
238
  default: withCtx(() => [
239
- (openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.params.options, (f) => (openBlock(), createBlock(unref(ElCheckbox), {
240
- key: f.value,
241
- label: f.label,
242
- value: f.value
239
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.params.options, (d) => (openBlock(), createBlock(unref(ElCheckbox), {
240
+ key: d.value,
241
+ label: d.label,
242
+ value: d.value
243
243
  }, null, 8, ["label", "value"]))), 128))
244
244
  ]),
245
245
  _: 1
@@ -248,14 +248,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
248
248
  key: 1,
249
249
  class: "flex flex-col",
250
250
  modelValue: r.value,
251
- "onUpdate:modelValue": g[2] || (g[2] = (f) => r.value = f),
251
+ "onUpdate:modelValue": _[2] || (_[2] = (d) => r.value = d),
252
252
  onChange: c
253
253
  }, {
254
254
  default: withCtx(() => [
255
- (openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.params.options, (f) => (openBlock(), createBlock(unref(ElCheckbox), {
256
- key: f.value,
257
- label: f.label,
258
- value: f.value
255
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.params.options, (d) => (openBlock(), createBlock(unref(ElCheckbox), {
256
+ key: d.value,
257
+ label: d.label,
258
+ value: d.value
259
259
  }, null, 8, ["label", "value"]))), 128))
260
260
  ]),
261
261
  _: 1
@@ -281,28 +281,28 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
281
281
  children: "children"
282
282
  });
283
283
  if (!e.column.params.TreeData) {
284
- const { options: c, ParentNodeField: u, NodeKeyField: g } = e.column.params;
285
- e.column.params.TreeData = buildTree(deepClone(c), u, g);
284
+ const { options: c, ParentNodeField: u, NodeKeyField: _ } = e.column.params;
285
+ e.column.params.TreeData = buildTree(deepClone(c), u, _);
286
286
  }
287
287
  onMounted(() => {
288
288
  r.value = e.column.params.TreeData;
289
289
  });
290
290
  const i = t;
291
- function d() {
291
+ function m() {
292
292
  a.value ? e.column.filters[0].data = [a.value] : e.column.filters[0].data = [];
293
293
  }
294
294
  return (c, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
295
295
  clearable: "",
296
296
  modelValue: a.value,
297
- "onUpdate:modelValue": u[0] || (u[0] = (g) => a.value = g),
297
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a.value = _),
298
298
  data: r.value,
299
299
  "render-after-expand": !1,
300
300
  placeholder: "",
301
- onChange: d,
301
+ onChange: m,
302
302
  multiple: o.value,
303
303
  "show-checkbox": o.value,
304
304
  props: l.value,
305
- onKeyup: u[1] || (u[1] = withKeys((g) => i("FilterSearch", n.column), ["enter"]))
305
+ onKeyup: u[1] || (u[1] = withKeys((_) => i("FilterSearch", n.column), ["enter"]))
306
306
  }, null, 8, ["modelValue", "data", "multiple", "show-checkbox", "props"]));
307
307
  }
308
308
  }, _sfc_main$v = {
@@ -321,8 +321,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
321
321
  children: "children"
322
322
  });
323
323
  if (!e.column.params.TreeData) {
324
- const { options: c, ParentNodeField: u, NodeKeyField: g } = e.column.params;
325
- e.column.params.TreeData = buildTree(deepClone(c), u, g);
324
+ const { options: c, ParentNodeField: u, NodeKeyField: _ } = e.column.params;
325
+ e.column.params.TreeData = buildTree(deepClone(c), u, _);
326
326
  }
327
327
  onMounted(() => {
328
328
  r.value = e.column.params.TreeData;
@@ -331,14 +331,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
331
331
  function i() {
332
332
  a.value ? e.column.filters[0].data = a.value : e.column.filters[0].data = [];
333
333
  }
334
- function d(c) {
334
+ function m(c) {
335
335
  cleanUpTreeFilterRows(), l("FilterSearch", e.column);
336
336
  }
337
337
  return (c, u) => (openBlock(), createBlock(unref(ElTreeSelect), {
338
338
  "popper-class": "tree-filter-row",
339
339
  clearable: "",
340
340
  modelValue: a.value,
341
- "onUpdate:modelValue": u[0] || (u[0] = (g) => a.value = g),
341
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a.value = _),
342
342
  data: r.value,
343
343
  placeholder: "",
344
344
  onChange: i,
@@ -346,7 +346,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
346
346
  "show-checkbox": "",
347
347
  "collapse-tags": "",
348
348
  "collapse-tags-tooltip": "",
349
- onKeyup: withKeys(d, ["enter"]),
349
+ onKeyup: withKeys(m, ["enter"]),
350
350
  props: o.value
351
351
  }, null, 8, ["modelValue", "data", "props"]));
352
352
  }
@@ -361,9 +361,9 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
361
361
  emits: ["FilterSearch"],
362
362
  setup(n, { emit: t }) {
363
363
  const e = n, r = ref([null, null]), a = computed(() => e.column.filters && e.column.filters[0].data.length ? e.column.filters[0].data.join(" 至 ") : ""), o = ref(), l = ref(), i = () => {
364
- var g, f;
365
- (f = (g = unref(l).popperRef) == null ? void 0 : g.delayHide) == null || f.call(g);
366
- }, d = t;
364
+ var _, d;
365
+ (d = (_ = unref(l).popperRef) == null ? void 0 : _.delayHide) == null || d.call(_);
366
+ }, m = t;
367
367
  function c() {
368
368
  if (!r.value[0] && !r.value[1])
369
369
  e.column.filters[0].data = [];
@@ -372,12 +372,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
372
372
  return;
373
373
  } else
374
374
  e.column.filters[0].data = [...r.value];
375
- l.value.hide(), d("FilterSearch", e.column);
375
+ l.value.hide(), m("FilterSearch", e.column);
376
376
  }
377
377
  function u() {
378
378
  r.value = [null, null];
379
379
  }
380
- return (g, f) => (openBlock(), createElementBlock("div", {
380
+ return (_, d) => (openBlock(), createElementBlock("div", {
381
381
  class: "size-full",
382
382
  title: a.value
383
383
  }, [
@@ -386,7 +386,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
386
386
  ref: o,
387
387
  value: a.value,
388
388
  readonly: "",
389
- onKeyup: f[0] || (f[0] = withKeys((m) => d("FilterSearch", n.column), ["enter"]))
389
+ onKeyup: d[0] || (d[0] = withKeys((k) => m("FilterSearch", n.column), ["enter"]))
390
390
  }, null, 8, ["value"]), [
391
391
  [unref(ClickOutside), i]
392
392
  ]),
@@ -403,12 +403,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
403
403
  createVNode(unref(ElInputNumber), {
404
404
  class: "w-full",
405
405
  modelValue: r.value[0],
406
- "onUpdate:modelValue": f[1] || (f[1] = (m) => r.value[0] = m)
406
+ "onUpdate:modelValue": d[1] || (d[1] = (k) => r.value[0] = k)
407
407
  }, null, 8, ["modelValue"]),
408
408
  createVNode(unref(ElInputNumber), {
409
409
  class: "w-full",
410
410
  modelValue: r.value[1],
411
- "onUpdate:modelValue": f[2] || (f[2] = (m) => r.value[1] = m)
411
+ "onUpdate:modelValue": d[2] || (d[2] = (k) => r.value[1] = k)
412
412
  }, null, 8, ["modelValue"])
413
413
  ]),
414
414
  createElementVNode("div", _hoisted_3$4, [
@@ -417,7 +417,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
417
417
  type: "primary",
418
418
  onClick: c
419
419
  }, {
420
- default: withCtx(() => f[3] || (f[3] = [
420
+ default: withCtx(() => d[3] || (d[3] = [
421
421
  createTextVNode("确认")
422
422
  ])),
423
423
  _: 1
@@ -426,7 +426,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
426
426
  size: "small",
427
427
  onClick: u
428
428
  }, {
429
- default: withCtx(() => f[4] || (f[4] = [
429
+ default: withCtx(() => d[4] || (d[4] = [
430
430
  createTextVNode("重置")
431
431
  ])),
432
432
  _: 1
@@ -458,8 +458,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
458
458
  let a = ref(0);
459
459
  onMounted(() => {
460
460
  if (e.column.params.filter) {
461
- const d = document.querySelector(`[colid=${e.column.id}]`);
462
- useElementClientSize(d, ({ clientHeight: c }) => {
461
+ const m = document.querySelector(`[colid=${e.column.id}]`);
462
+ useElementClientSize(m, ({ clientHeight: c }) => {
463
463
  a.value = c <= 40 ? 65 : c;
464
464
  });
465
465
  } else
@@ -467,31 +467,31 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
467
467
  r.value = e.column.params.TreeData;
468
468
  });
469
469
  const o = t;
470
- function l(d) {
471
- if (d === "search") {
470
+ function l(m) {
471
+ if (m === "search") {
472
472
  const c = e.gridRef.getColumns();
473
473
  o("FilterSearch", e.column, c);
474
- } else if (d === "clear") {
474
+ } else if (m === "clear") {
475
475
  e.column.filters.forEach((u) => {
476
476
  Array.isArray(u.data) ? u.data = [] : u.data = "";
477
477
  });
478
478
  const c = e.gridRef.getColumns();
479
479
  o("FilterSearch", e.column, c);
480
- } else if (d === "clearAll") {
480
+ } else if (m === "clearAll") {
481
481
  const c = e.gridRef.getColumns();
482
482
  c.forEach((u) => {
483
- u.filters && u.filters.forEach((g) => {
484
- Array.isArray(g.data) ? g.data = [] : g.data = "";
483
+ u.filters && u.filters.forEach((_) => {
484
+ Array.isArray(_.data) ? _.data = [] : _.data = "";
485
485
  });
486
486
  }), o("FilterSearch", e.column, c);
487
487
  }
488
488
  }
489
489
  function i() {
490
- var d, c;
491
- (d = e.column.params) != null && d.IsVirtualField || ((c = e.column).params ?? (c.params = {}), e.column.params.sortStatus === "asc" ? e.column.params.sortStatus = "desc" : e.column.params.sortStatus === "desc" ? e.column.params.sortStatus = null : e.column.params.sortStatus = "asc", o("SortChange", e.column, e.gridRef.getColumns()));
490
+ var m, c;
491
+ (m = e.column.params) != null && m.IsVirtualField || ((c = e.column).params ?? (c.params = {}), e.column.params.sortStatus === "asc" ? e.column.params.sortStatus = "desc" : e.column.params.sortStatus === "desc" ? e.column.params.sortStatus = null : e.column.params.sortStatus = "asc", o("SortChange", e.column, e.gridRef.getColumns()));
492
492
  }
493
- return (d, c) => {
494
- var u, g, f;
493
+ return (m, c) => {
494
+ var u, _, d;
495
495
  return openBlock(), createElementBlock("div", {
496
496
  class: "flex flex-col filter-header",
497
497
  title: n.column.title,
@@ -505,14 +505,14 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
505
505
  style: normalizeStyle({ color: n.column.params.Required ? "red" : "" }),
506
506
  class: "whitespace-nowrap overflow-hidden text-ellipsis"
507
507
  }, toDisplayString(n.column.title), 5),
508
- (g = n.column.params) != null && g.sortable && ((f = n.column.params) != null && f.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
508
+ (_ = n.column.params) != null && _.sortable && ((d = n.column.params) != null && d.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
509
509
  default: withCtx(() => {
510
- var m, v;
510
+ var k, p;
511
511
  return [
512
- ((m = n.column.params) == null ? void 0 : m.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
512
+ ((k = n.column.params) == null ? void 0 : k.sortStatus) === "asc" ? (openBlock(), createBlock(unref(HrIcon), {
513
513
  key: 0,
514
514
  icon: "ep:caret-top"
515
- })) : ((v = n.column.params) == null ? void 0 : v.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
515
+ })) : ((p = n.column.params) == null ? void 0 : p.sortStatus) === "desc" ? (openBlock(), createBlock(unref(HrIcon), {
516
516
  key: 1,
517
517
  icon: "ep:caret-bottom"
518
518
  })) : createCommentVNode("", !0)
@@ -525,31 +525,31 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
525
525
  ["radio_Table", "bool"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$y, {
526
526
  key: 0,
527
527
  column: n.column,
528
- onFilterSearch: c[0] || (c[0] = (m) => l("search"))
528
+ onFilterSearch: c[0] || (c[0] = (k) => l("search"))
529
529
  }, null, 8, ["column"])) : ["select", "check"].includes(n.column.params.FieldType) ? (openBlock(), createBlock(_sfc_main$x, {
530
530
  key: 1,
531
531
  column: n.column,
532
- onFilterSearch: c[1] || (c[1] = (m) => l("search"))
532
+ onFilterSearch: c[1] || (c[1] = (k) => l("search"))
533
533
  }, null, 8, ["column"])) : n.column.params.FieldType === "date" ? (openBlock(), createBlock(FilterDate, {
534
534
  key: 2,
535
535
  column: n.column,
536
- onFilterSearch: c[2] || (c[2] = (m) => l("search"))
536
+ onFilterSearch: c[2] || (c[2] = (k) => l("search"))
537
537
  }, null, 8, ["column"])) : n.column.params.FieldType === "tree" ? (openBlock(), createBlock(_sfc_main$w, {
538
538
  key: 3,
539
539
  column: n.column,
540
- onFilterSearch: c[3] || (c[3] = (m) => l("search"))
540
+ onFilterSearch: c[3] || (c[3] = (k) => l("search"))
541
541
  }, null, 8, ["column"])) : n.column.params.FieldType === "TreeMultipleSelect" ? (openBlock(), createBlock(_sfc_main$v, {
542
542
  key: 4,
543
543
  column: n.column,
544
- onFilterSearch: c[4] || (c[4] = (m) => l("search"))
544
+ onFilterSearch: c[4] || (c[4] = (k) => l("search"))
545
545
  }, null, 8, ["column"])) : n.column.params.FieldType === "inputNumber" ? (openBlock(), createBlock(_sfc_main$u, {
546
546
  key: 5,
547
547
  column: n.column,
548
- onFilterSearch: c[5] || (c[5] = (m) => l("search"))
549
- }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(n.column.filters, (m, v) => (openBlock(), createBlock(unref(ElInput), {
550
- key: v,
551
- modelValue: m.data,
552
- "onUpdate:modelValue": (s) => m.data = s,
548
+ onFilterSearch: c[5] || (c[5] = (k) => l("search"))
549
+ }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(n.column.filters, (k, p) => (openBlock(), createBlock(unref(ElInput), {
550
+ key: p,
551
+ modelValue: k.data,
552
+ "onUpdate:modelValue": (s) => k.data = s,
553
553
  onKeyup: c[6] || (c[6] = withKeys((s) => l("search"), ["enter"])),
554
554
  disabled: ["colorPicker", "iconPicker", "progress"].includes(n.column.params.FieldType)
555
555
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]))), 128)),
@@ -653,18 +653,18 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
653
653
  });
654
654
  }
655
655
  return (l, i) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
656
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(r), (d) => withDirectives((openBlock(), createBlock(unref(ElButton), {
657
- key: d.Name,
656
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(r), (m) => withDirectives((openBlock(), createBlock(unref(ElButton), {
657
+ key: m.Name,
658
658
  class: "!text-[12px]",
659
659
  link: "",
660
- onClick: (c) => o(d)
660
+ onClick: (c) => o(m)
661
661
  }, {
662
662
  default: withCtx(() => [
663
- createTextVNode(toDisplayString(d.Name), 1)
663
+ createTextVNode(toDisplayString(m.Name), 1)
664
664
  ]),
665
665
  _: 2
666
666
  }, 1032, ["onClick"])), [
667
- [vShow, d.hide !== !0]
667
+ [vShow, m.hide !== !0]
668
668
  ])), 128))
669
669
  ]));
670
670
  }
@@ -696,13 +696,13 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
696
696
  typeof e.row[e.column.field] != "boolean" ? r.value = !!e.row[e.column.field] : r.value = e.row[e.column.field];
697
697
  });
698
698
  const a = t;
699
- function o(l, i, d) {
700
- i[d.field] = l, a("change", l, i, d);
699
+ function o(l, i, m) {
700
+ i[m.field] = l, a("change", l, i, m);
701
701
  }
702
702
  return (l, i) => {
703
- var d;
703
+ var m;
704
704
  return openBlock(), createBlock(unref(ElCheckbox), {
705
- disabled: (d = n.column.params) == null ? void 0 : d.disabled,
705
+ disabled: (m = n.column.params) == null ? void 0 : m.disabled,
706
706
  modelValue: r.value,
707
707
  "onUpdate:modelValue": i[0] || (i[0] = (c) => r.value = c),
708
708
  onChange: i[1] || (i[1] = (c) => o(c, n.row, n.column))
@@ -758,96 +758,96 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
758
758
  });
759
759
  function o(u) {
760
760
  if (!u) return;
761
- let g, f, m, v = 1;
761
+ let _, d, k, p = 1;
762
762
  if (u.startsWith("#"))
763
- u = u.slice(1), u.length === 3 ? (g = parseInt(u[0] + u[0], 16), f = parseInt(u[1] + u[1], 16), m = parseInt(u[2] + u[2], 16)) : u.length === 6 && (g = parseInt(u.slice(0, 2), 16), f = parseInt(u.slice(2, 4), 16), m = parseInt(u.slice(4, 6), 16));
763
+ u = u.slice(1), u.length === 3 ? (_ = parseInt(u[0] + u[0], 16), d = parseInt(u[1] + u[1], 16), k = parseInt(u[2] + u[2], 16)) : u.length === 6 && (_ = parseInt(u.slice(0, 2), 16), d = parseInt(u.slice(2, 4), 16), k = parseInt(u.slice(4, 6), 16));
764
764
  else if (u.startsWith("rgb")) {
765
765
  const s = u.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
766
- s && (g = parseInt(s[1]), f = parseInt(s[2]), m = parseInt(s[3]), s[4] && (v = parseFloat(s[4])));
766
+ s && (_ = parseInt(s[1]), d = parseInt(s[2]), k = parseInt(s[3]), s[4] && (p = parseFloat(s[4])));
767
767
  } else if (u.startsWith("hsl")) {
768
768
  const s = u.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
769
769
  if (s) {
770
- const y = parseInt(s[1]) / 360, w = parseInt(s[2]) / 100, S = parseInt(s[3]) / 100;
771
- if (s[4] && (v = parseFloat(s[4])), w === 0)
772
- g = f = m = S * 255;
770
+ const f = parseInt(s[1]) / 360, b = parseInt(s[2]) / 100, C = parseInt(s[3]) / 100;
771
+ if (s[4] && (p = parseFloat(s[4])), b === 0)
772
+ _ = d = k = C * 255;
773
773
  else {
774
- const j = (B, M, N) => (N < 0 && (N += 1), N > 1 && (N -= 1), N < 0.16666666666666666 ? B + (M - B) * 6 * N : N < 0.5 ? M : N < 0.6666666666666666 ? B + (M - B) * (0.6666666666666666 - N) * 6 : B), $ = S < 0.5 ? S * (1 + w) : S + w - S * w, V = 2 * S - $;
775
- g = j(V, $, y + 1 / 3) * 255, f = j(V, $, y) * 255, m = j(V, $, y - 1 / 3) * 255;
774
+ const V = (B, N, $) => ($ < 0 && ($ += 1), $ > 1 && ($ -= 1), $ < 0.16666666666666666 ? B + (N - B) * 6 * $ : $ < 0.5 ? N : $ < 0.6666666666666666 ? B + (N - B) * (0.6666666666666666 - $) * 6 : B), D = C < 0.5 ? C * (1 + b) : C + b - C * b, E = 2 * C - D;
775
+ _ = V(E, D, f + 1 / 3) * 255, d = V(E, D, f) * 255, k = V(E, D, f - 1 / 3) * 255;
776
776
  }
777
777
  }
778
778
  }
779
- return { r: g, g: f, b: m, a: v };
780
- }
781
- function l(u, g, f) {
782
- u /= 255, g /= 255, f /= 255;
783
- const m = Math.max(u, g, f), v = Math.min(u, g, f);
784
- let s, y, w = (m + v) / 2;
785
- if (m === v)
786
- s = y = 0;
779
+ return { r: _, g: d, b: k, a: p };
780
+ }
781
+ function l(u, _, d) {
782
+ u /= 255, _ /= 255, d /= 255;
783
+ const k = Math.max(u, _, d), p = Math.min(u, _, d);
784
+ let s, f, b = (k + p) / 2;
785
+ if (k === p)
786
+ s = f = 0;
787
787
  else {
788
- const S = m - v;
789
- switch (y = w > 0.5 ? S / (2 - m - v) : S / (m + v), m) {
788
+ const C = k - p;
789
+ switch (f = b > 0.5 ? C / (2 - k - p) : C / (k + p), k) {
790
790
  case u:
791
- s = (g - f) / S + (g < f ? 6 : 0);
791
+ s = (_ - d) / C + (_ < d ? 6 : 0);
792
792
  break;
793
- case g:
794
- s = (f - u) / S + 2;
793
+ case _:
794
+ s = (d - u) / C + 2;
795
795
  break;
796
- case f:
797
- s = (u - g) / S + 4;
796
+ case d:
797
+ s = (u - _) / C + 4;
798
798
  break;
799
799
  }
800
800
  s /= 6;
801
801
  }
802
- return { h: s, s: y, l: w };
802
+ return { h: s, s: f, l: b };
803
803
  }
804
- function i(u, g, f) {
805
- let m, v, s;
806
- if (g === 0)
807
- m = v = s = f;
804
+ function i(u, _, d) {
805
+ let k, p, s;
806
+ if (_ === 0)
807
+ k = p = s = d;
808
808
  else {
809
- const y = (j, $, V) => (V < 0 && (V += 1), V > 1 && (V -= 1), V < 0.16666666666666666 ? j + ($ - j) * 6 * V : V < 0.5 ? $ : V < 0.6666666666666666 ? j + ($ - j) * (0.6666666666666666 - V) * 6 : j), w = f < 0.5 ? f * (1 + g) : f + g - f * g, S = 2 * f - w;
810
- m = y(S, w, u + 1 / 3), v = y(S, w, u), s = y(S, w, u - 1 / 3);
809
+ const f = (V, D, E) => (E < 0 && (E += 1), E > 1 && (E -= 1), E < 0.16666666666666666 ? V + (D - V) * 6 * E : E < 0.5 ? D : E < 0.6666666666666666 ? V + (D - V) * (0.6666666666666666 - E) * 6 : V), b = d < 0.5 ? d * (1 + _) : d + _ - d * _, C = 2 * d - b;
810
+ k = f(C, b, u + 1 / 3), p = f(C, b, u), s = f(C, b, u - 1 / 3);
811
811
  }
812
- return { r: Math.round(m * 255), g: Math.round(v * 255), b: Math.round(s * 255) };
812
+ return { r: Math.round(k * 255), g: Math.round(p * 255), b: Math.round(s * 255) };
813
813
  }
814
- function d(u, g) {
814
+ function m(u, _) {
815
815
  if (!u) return;
816
- let { r: f, g: m, b: v } = o(u), { h: s, s: y, l: w } = l(f, m, v);
817
- w = Math.max(0, w - g);
818
- const { r: S, g: j, b: $ } = i(s, y, w);
819
- return `rgb(${S}, ${j}, ${$})`;
816
+ let { r: d, g: k, b: p } = o(u), { h: s, s: f, l: b } = l(d, k, p);
817
+ b = Math.max(0, b - _);
818
+ const { r: C, g: V, b: D } = i(s, f, b);
819
+ return `rgb(${C}, ${V}, ${D})`;
820
820
  }
821
821
  function c() {
822
- function u(s, y) {
823
- return Math.floor(Math.random() * (y - s + 1)) + s;
822
+ function u(s, f) {
823
+ return Math.floor(Math.random() * (f - s + 1)) + s;
824
824
  }
825
- const g = u(200, 255), f = u(200, 255), m = u(200, 255);
826
- return `#${g.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}`;
825
+ const _ = u(200, 255), d = u(200, 255), k = u(200, 255);
826
+ return `#${_.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}${k.toString(16).padStart(2, "0")}`;
827
827
  }
828
- return (u, g) => {
829
- const f = resolveComponent("hr-icon");
828
+ return (u, _) => {
829
+ const d = resolveComponent("hr-icon");
830
830
  return r.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
831
831
  a.value ? (openBlock(), createBlock(unref(ElTag), {
832
832
  key: 0,
833
833
  color: a.value.Color,
834
834
  size: "small",
835
- style: normalizeStyle({ borderColor: d(a.value.Color, "0.03") })
835
+ style: normalizeStyle({ borderColor: m(a.value.Color, "0.03") })
836
836
  }, {
837
837
  default: withCtx(() => [
838
- a.value.LeftIcon ? (openBlock(), createBlock(f, {
838
+ a.value.LeftIcon ? (openBlock(), createBlock(d, {
839
839
  key: 0,
840
840
  class: "mr0.25 v-middle mt0.15",
841
841
  size: "13",
842
- color: d(a.value.Color, "0.3"),
842
+ color: m(a.value.Color, "0.3"),
843
843
  icon: a.value.LeftIcon
844
844
  }, null, 8, ["color", "icon"])) : createCommentVNode("", !0),
845
845
  createElementVNode("span", _hoisted_2$4, toDisplayString(n.displayValue === void 0 ? r.value : n.displayValue), 1),
846
- a.value.RightIcon ? (openBlock(), createBlock(f, {
846
+ a.value.RightIcon ? (openBlock(), createBlock(d, {
847
847
  key: 1,
848
848
  class: "ml0.25 v-middle mt0.15",
849
849
  size: "13",
850
- color: d(a.value.Color, "0.3"),
850
+ color: m(a.value.Color, "0.3"),
851
851
  icon: a.value.RightIcon
852
852
  }, null, 8, ["color", "icon"])) : createCommentVNode("", !0)
853
853
  ]),
@@ -988,19 +988,19 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
988
988
  a.value = isColor(e.row[e.column.field]) ? e.row[e.column.field] : null;
989
989
  });
990
990
  const o = t;
991
- function l(i, d, c) {
992
- d[c.field] = i, o("change", i, d, c);
991
+ function l(i, m, c) {
992
+ m[c.field] = i, o("change", i, m, c);
993
993
  }
994
- return (i, d) => {
994
+ return (i, m) => {
995
995
  var c;
996
996
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
997
997
  createVNode(unref(ElColorPicker), {
998
998
  disabled: (c = n.column.params) == null ? void 0 : c.disabled,
999
999
  class: "size-full",
1000
1000
  modelValue: a.value,
1001
- "onUpdate:modelValue": d[0] || (d[0] = (u) => a.value = u),
1001
+ "onUpdate:modelValue": m[0] || (m[0] = (u) => a.value = u),
1002
1002
  predefine: r.value,
1003
- onChange: d[1] || (d[1] = (u) => l(u, n.row, n.column))
1003
+ onChange: m[1] || (m[1] = (u) => l(u, n.row, n.column))
1004
1004
  }, null, 8, ["disabled", "modelValue", "predefine"])
1005
1005
  ]);
1006
1006
  };
@@ -1042,12 +1042,12 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1042
1042
  setup(n) {
1043
1043
  dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
1044
1044
  const t = n, e = computed(() => {
1045
- var w, S, j;
1046
- const m = ((w = t.column.params) == null ? void 0 : w.DateType) || "date", v = (S = t.column.params) == null ? void 0 : S.formats, s = (j = t.row) == null ? void 0 : j[t.column.field], y = o(s, m);
1047
- return y ? m === "time" ? y.format("HH:mm:ss") : m === "date" ? y.format("YYYY-MM-DD") : m === "datetime" ? y.format("YYYY-MM-DD HH:mm:ss") : i(y, m, v) : "";
1045
+ var C, V, D;
1046
+ const p = ((C = t.column.params) == null ? void 0 : C.DateType) || "date", s = (V = t.column.params) == null ? void 0 : V.formats, f = (D = t.row) == null ? void 0 : D[t.column.field], b = l(f, p);
1047
+ return b ? p === "time" ? b.format(s || "HH:mm:ss") : p === "date" ? b.format(s || "YYYY-MM-DD") : p === "datetime" ? b.format(s || "YYYY-MM-DD HH:mm:ss") : m(b, p, s) : "";
1048
1048
  });
1049
- function r(m) {
1050
- switch (m) {
1049
+ function r(p) {
1050
+ switch (p) {
1051
1051
  case "week":
1052
1052
  return "YYYY年第WW周";
1053
1053
  case "month":
@@ -1060,115 +1060,138 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1060
1060
  return "";
1061
1061
  }
1062
1062
  }
1063
- function a(m, v) {
1064
- if (typeof v == "string" && v.trim()) {
1065
- const s = v.trim();
1066
- return m === "month" && s.includes("MM") || m === "week" && s.includes("WW") || m === "quarter" && (s.includes("QCN") || s.includes("Q")) || m === "year" && s.includes("YYYY") ? s : (console.warn(`[DatePickerRender] invalid formats for ${m}: "${s}". Fallback to default.`), r(m));
1063
+ function a(p, s) {
1064
+ if (typeof s == "string" && s.trim()) {
1065
+ const f = s.trim();
1066
+ return p === "month" && f.includes("MM") || p === "week" && f.includes("WW") || p === "quarter" && (f.includes("QCN") || f.includes("Q")) || p === "year" && f.includes("YYYY") ? f : (console.warn(`[DatePickerRender] invalid formats for ${p}: "${f}". Fallback to default.`), r(p));
1067
1067
  }
1068
- return r(m);
1068
+ return r(p);
1069
1069
  }
1070
- function o(m, v) {
1071
- if (m == null || m === "") return null;
1072
- if (m instanceof Date) {
1073
- const w = dayjs(m);
1074
- return w.isValid() ? l(w, v) : null;
1070
+ computed({
1071
+ get() {
1072
+ var b, C, V, D;
1073
+ const p = ((C = (b = t.column) == null ? void 0 : b.params) == null ? void 0 : C.DateType) || "date", s = (D = t.row) == null ? void 0 : D[(V = t.column) == null ? void 0 : V.field], f = l(s, p);
1074
+ return f ? f.toDate() : null;
1075
+ },
1076
+ set(p) {
1077
+ var C, V, D;
1078
+ const s = (C = t.column) == null ? void 0 : C.field;
1079
+ if (!s) return;
1080
+ const f = ((D = (V = t.column) == null ? void 0 : V.params) == null ? void 0 : D.DateType) || "date", b = o(p, f);
1081
+ try {
1082
+ t.row && t.row[s] !== b && (t.row[s] = b);
1083
+ } catch (E) {
1084
+ console.error("[DatePickerRender] writeback failed:", E);
1085
+ }
1075
1086
  }
1076
- const s = String(m).trim();
1077
- if (!s) return null;
1078
- if (v === "date") {
1079
- const w = dayjs(s, "YYYY-MM-DD", !0);
1080
- return w.isValid() ? w.startOf("day") : null;
1087
+ });
1088
+ function o(p, s) {
1089
+ if (p == null || p === "") return "";
1090
+ const f = dayjs(p);
1091
+ return f.isValid() ? s === "date" ? f.format("YYYY-MM-DD") : s === "datetime" ? f.format("YYYY-MM-DD HH:mm:ss") : s === "time" ? f.format("HH:mm:ss") : s === "week" ? f.startOf("isoWeek").format("YYYY-MM-DD") : s === "month" ? f.startOf("month").format("YYYY-MM-DD") : s === "quarter" ? f.startOf("quarter").format("YYYY-MM-DD") : s === "year" ? f.startOf("year").format("YYYY-MM-DD") : f.format("YYYY-MM-DD HH:mm:ss") : "";
1092
+ }
1093
+ function l(p, s) {
1094
+ if (p == null || p === "") return null;
1095
+ if (p instanceof Date) {
1096
+ const C = dayjs(p);
1097
+ return C.isValid() ? i(C, s) : null;
1081
1098
  }
1082
- if (v === "datetime") {
1083
- const w = dayjs(s, "YYYY-MM-DD HH:mm:ss", !0);
1084
- return w.isValid() ? w : null;
1099
+ const f = String(p).trim();
1100
+ if (!f) return null;
1101
+ if (s === "date") {
1102
+ const C = dayjs(f, ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss"], !0);
1103
+ return C.isValid() ? C.startOf("day") : null;
1085
1104
  }
1086
- if (v === "time") {
1087
- const w = dayjs(`1970-01-01 ${s}`, "YYYY-MM-DD HH:mm:ss", !0);
1088
- return w.isValid() ? w : null;
1105
+ if (s === "datetime") {
1106
+ const C = dayjs(f, ["YYYY-MM-DD HH:mm:ss", "YYYY-MM-DD"], !0);
1107
+ return C.isValid() ? C : null;
1089
1108
  }
1090
- if (v === "week") return c(s);
1091
- if (v === "month") return u(s);
1092
- if (v === "quarter") return g(s);
1093
- if (v === "year") return f(s);
1094
- const y = dayjs(s);
1095
- return y.isValid() ? l(y, v) : null;
1096
- }
1097
- function l(m, v) {
1098
- switch (v) {
1109
+ if (s === "time") {
1110
+ const C = dayjs(`1970-01-01 ${f}`, "YYYY-MM-DD HH:mm:ss", !0);
1111
+ return C.isValid() ? C : null;
1112
+ }
1113
+ if (s === "week") return u(f);
1114
+ if (s === "month") return _(f);
1115
+ if (s === "quarter") return d(f);
1116
+ if (s === "year") return k(f);
1117
+ const b = dayjs(f);
1118
+ return b.isValid() ? i(b, s) : null;
1119
+ }
1120
+ function i(p, s) {
1121
+ switch (s) {
1099
1122
  case "week":
1100
- return m.startOf("isoWeek");
1123
+ return p.startOf("isoWeek");
1101
1124
  case "month":
1102
- return m.startOf("month");
1125
+ return p.startOf("month");
1103
1126
  case "quarter":
1104
- return m.startOf("quarter");
1127
+ return p.startOf("quarter");
1105
1128
  case "year":
1106
- return m.startOf("year");
1129
+ return p.startOf("year");
1107
1130
  default:
1108
- return m;
1131
+ return p;
1109
1132
  }
1110
1133
  }
1111
- function i(m, v, s) {
1112
- const y = a(v, s);
1113
- if (!y) return "";
1114
- const w = String(m.year()), S = String(m.isoWeekYear ? m.isoWeekYear() : m.year()), j = String(m.month() + 1).padStart(2, "0"), $ = String(m.isoWeek()).padStart(2, "0"), V = String(m.quarter()), B = ["第一", "第二", "第三", "第四"][m.quarter() - 1];
1115
- return y.replace(/QCN/g, B).replace(/YYYY/g, v === "week" ? S : w).replace(/MM/g, j).replace(/WW/g, $).replace(/Q/g, V);
1116
- }
1117
- function d(m, v) {
1118
- if (!m || !v) return null;
1119
- const s = dayjs(`${m}-01-04`, "YYYY-MM-DD", !0);
1120
- return s.isValid() ? s.isoWeek(Number(v)).startOf("isoWeek") : null;
1121
- }
1122
- function c(m) {
1123
- const v = String(m).trim();
1124
- let s = v.match(/^(\d{4})年(?:第)?(\d{1,2})周$/);
1125
- if (s || (s = v.match(/^(\d{4})[-]?W?(\d{1,2})$/i), s)) return d(Number(s[1]), Number(s[2]));
1126
- if (/^\d{4}-\d{2}-\d{2}$/.test(v)) {
1127
- const y = dayjs(v, "YYYY-MM-DD", !0);
1128
- return y.isValid() ? y.startOf("isoWeek") : null;
1134
+ function m(p, s, f) {
1135
+ const b = a(s, f);
1136
+ if (!b) return "";
1137
+ const C = String(p.year()), V = String(p.isoWeekYear ? p.isoWeekYear() : p.year()), D = String(p.month() + 1).padStart(2, "0"), E = String(p.isoWeek()).padStart(2, "0"), B = String(p.quarter()), N = ["第一", "第二", "第三", "第四"][p.quarter() - 1];
1138
+ return b.replace(/QCN/g, N).replace(/YYYY/g, s === "week" ? V : C).replace(/MM/g, D).replace(/WW/g, E).replace(/Q/g, B);
1139
+ }
1140
+ function c(p, s) {
1141
+ if (!p || !s) return null;
1142
+ const f = dayjs(`${p}-01-04`, "YYYY-MM-DD", !0);
1143
+ return f.isValid() ? f.isoWeek(Number(s)).startOf("isoWeek") : null;
1144
+ }
1145
+ function u(p) {
1146
+ const s = String(p).trim();
1147
+ let f = s.match(/^(\d{4})年(?:第)?(\d{1,2})周$/);
1148
+ if (f || (f = s.match(/^(\d{4})[-]?W?(\d{1,2})$/i), f)) return c(Number(f[1]), Number(f[2]));
1149
+ if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
1150
+ const b = dayjs(s, "YYYY-MM-DD", !0);
1151
+ return b.isValid() ? b.startOf("isoWeek") : null;
1129
1152
  }
1130
1153
  return null;
1131
1154
  }
1132
- function u(m) {
1133
- const v = String(m).trim();
1134
- let s = v.match(/^(\d{4})年(\d{1,2})月$/);
1135
- if (s) return dayjs(`${s[1]}-${String(s[2]).padStart(2, "0")}-01`, "YYYY-MM-DD", !0);
1136
- if (s = v.match(/^(\d{4})-(\d{1,2})$/), s) return dayjs(`${s[1]}-${String(s[2]).padStart(2, "0")}-01`, "YYYY-MM-DD", !0);
1137
- if (/^\d{4}-\d{2}-\d{2}$/.test(v)) {
1138
- const y = dayjs(v, "YYYY-MM-DD", !0);
1139
- return y.isValid() ? y.startOf("month") : null;
1155
+ function _(p) {
1156
+ const s = String(p).trim();
1157
+ let f = s.match(/^(\d{4})年(\d{1,2})月$/);
1158
+ if (f) return dayjs(`${f[1]}-${String(f[2]).padStart(2, "0")}-01`, "YYYY-MM-DD", !0);
1159
+ if (f = s.match(/^(\d{4})-(\d{1,2})$/), f) return dayjs(`${f[1]}-${String(f[2]).padStart(2, "0")}-01`, "YYYY-MM-DD", !0);
1160
+ if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
1161
+ const b = dayjs(s, "YYYY-MM-DD", !0);
1162
+ return b.isValid() ? b.startOf("month") : null;
1140
1163
  }
1141
1164
  return null;
1142
1165
  }
1143
- function g(m) {
1144
- const v = String(m).trim();
1145
- let s = v.match(/^(\d{4})年第([1-4])季度$/);
1146
- if (s) return dayjs(`${s[1]}-01-01`, "YYYY-MM-DD", !0).quarter(Number(s[2]));
1147
- if (s = v.match(/^(\d{4})年(第一|第二|第三|第四)季度$/), s) {
1148
- const y = { 第一: 1, 第二: 2, 第三: 3, 第四: 4 };
1149
- return dayjs(`${s[1]}-01-01`, "YYYY-MM-DD", !0).quarter(y[s[2]]);
1166
+ function d(p) {
1167
+ const s = String(p).trim();
1168
+ let f = s.match(/^(\d{4})年第([1-4])季度$/);
1169
+ if (f) return dayjs(`${f[1]}-01-01`, "YYYY-MM-DD", !0).quarter(Number(f[2]));
1170
+ if (f = s.match(/^(\d{4})年(第一|第二|第三|第四)季度$/), f) {
1171
+ const b = { 第一: 1, 第二: 2, 第三: 3, 第四: 4 };
1172
+ return dayjs(`${f[1]}-01-01`, "YYYY-MM-DD", !0).quarter(b[f[2]]);
1150
1173
  }
1151
- if (s = v.match(/^(\d{4})[-]?Q?([1-4])$/i), s) return dayjs(`${s[1]}-01-01`, "YYYY-MM-DD", !0).quarter(Number(s[2]));
1152
- if (/^\d{4}-\d{2}-\d{2}$/.test(v)) {
1153
- const y = dayjs(v, "YYYY-MM-DD", !0);
1154
- return y.isValid() ? y.startOf("quarter") : null;
1174
+ if (f = s.match(/^(\d{4})[-]?Q?([1-4])$/i), f) return dayjs(`${f[1]}-01-01`, "YYYY-MM-DD", !0).quarter(Number(f[2]));
1175
+ if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
1176
+ const b = dayjs(s, "YYYY-MM-DD", !0);
1177
+ return b.isValid() ? b.startOf("quarter") : null;
1155
1178
  }
1156
1179
  return null;
1157
1180
  }
1158
- function f(m) {
1159
- const v = String(m).trim();
1160
- let s = v.match(/^(\d{4})年$/);
1161
- if (s) return dayjs(`${s[1]}-01-01`, "YYYY-MM-DD", !0);
1162
- if (s = v.match(/^(\d{4})$/), s) return dayjs(`${s[1]}-01-01`, "YYYY-MM-DD", !0);
1163
- if (/^\d{4}-\d{2}-\d{2}$/.test(v)) {
1164
- const y = dayjs(v, "YYYY-MM-DD", !0);
1165
- return y.isValid() ? y.startOf("year") : null;
1181
+ function k(p) {
1182
+ const s = String(p).trim();
1183
+ let f = s.match(/^(\d{4})年$/);
1184
+ if (f) return dayjs(`${f[1]}-01-01`, "YYYY-MM-DD", !0);
1185
+ if (f = s.match(/^(\d{4})$/), f) return dayjs(`${f[1]}-01-01`, "YYYY-MM-DD", !0);
1186
+ if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
1187
+ const b = dayjs(s, "YYYY-MM-DD", !0);
1188
+ return b.isValid() ? b.startOf("year") : null;
1166
1189
  }
1167
1190
  return null;
1168
1191
  }
1169
- return (m, v) => {
1170
- var s;
1171
- return (s = t.column.params) != null && s.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1192
+ return (p, s) => {
1193
+ var f;
1194
+ return (f = t.column.params) != null && f.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: e.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1172
1195
  key: 1,
1173
1196
  title: e.value
1174
1197
  }, toDisplayString(e.value), 9, _hoisted_1$9));
@@ -1207,7 +1230,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1207
1230
  return (a, o) => {
1208
1231
  const l = resolveDirective("viewer");
1209
1232
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$8, [
1210
- (openBlock(!0), createElementBlock(Fragment, null, renderList(n.row[n.column.field], (i, d) => (openBlock(), createElementBlock("div", {
1233
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(n.row[n.column.field], (i, m) => (openBlock(), createElementBlock("div", {
1211
1234
  class: "Link flex",
1212
1235
  title: i.FileName
1213
1236
  }, [
@@ -1228,7 +1251,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1228
1251
  createElementVNode("a", {
1229
1252
  href: i.FilePath,
1230
1253
  download: i.FileName
1231
- }, toDisplayString(d + 1) + "." + toDisplayString(i.FileType), 9, _hoisted_4$1)
1254
+ }, toDisplayString(m + 1) + "." + toDisplayString(i.FileType), 9, _hoisted_4$1)
1232
1255
  ], 8, _hoisted_2$3))), 256))
1233
1256
  ])), [
1234
1257
  [
@@ -1268,8 +1291,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1268
1291
  e("change", o, l, i);
1269
1292
  }
1270
1293
  function a(o, l) {
1271
- var d;
1272
- if ((d = l.params) != null && d.disable) return;
1294
+ var m;
1295
+ if ((m = l.params) != null && m.disable) return;
1273
1296
  let i = layer.open({
1274
1297
  type: 2,
1275
1298
  title: "图标选择",
@@ -1317,25 +1340,25 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1317
1340
  setup(n, { emit: t }) {
1318
1341
  const e = n, r = t;
1319
1342
  function a(o, l) {
1320
- var v;
1321
- if ((v = l.params) != null && v.disabled) return;
1343
+ var p;
1344
+ if ((p = l.params) != null && p.disabled) return;
1322
1345
  let {
1323
1346
  PickPeopleType: i,
1324
- PickPeopleCheckType: d,
1347
+ PickPeopleCheckType: m,
1325
1348
  PickPeopleIsAll: c,
1326
1349
  PickPeopleStatus: u,
1327
- StoredValueField: g,
1328
- ReturnValueField: f,
1329
- BackfillField: m
1350
+ StoredValueField: _,
1351
+ ReturnValueField: d,
1352
+ BackfillField: k
1330
1353
  } = e.column.params;
1331
1354
  openChoosePeople({
1332
1355
  Type: i,
1333
- Choose: d,
1356
+ Choose: m,
1334
1357
  IsAll: c,
1335
1358
  Status: u
1336
1359
  }, (s) => {
1337
- isEmpty(g) ? o[l.field] = s.Name || null : (Array.isArray(g) || (g = [g]), Array.isArray(f) || (f = [f]), g.forEach((y, w) => o[y] = s[f[w]] || null)), r("change", s, o, l);
1338
- }, m ? o[m] : null);
1360
+ isEmpty(_) ? o[l.field] = s.Name || null : (Array.isArray(_) || (_ = [_]), Array.isArray(d) || (d = [d]), _.forEach((f, b) => o[f] = s[d[b]] || null)), r("change", s, o, l);
1361
+ }, k ? o[k] : null);
1339
1362
  }
1340
1363
  return (o, l) => (openBlock(), createElementBlock("div", _hoisted_1$7, [
1341
1364
  createVNode(unref(ElButton), {
@@ -1413,8 +1436,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1413
1436
  setup(n, { emit: t }) {
1414
1437
  const e = n, r = t;
1415
1438
  function a(o, l, i) {
1416
- e.gridRef.getTableData().tableData.filter((d) => d !== l).forEach((d) => {
1417
- d[i.field] && (d[i.field] = !1);
1439
+ e.gridRef.getTableData().tableData.filter((m) => m !== l).forEach((m) => {
1440
+ m[i.field] && (m[i.field] = !1);
1418
1441
  }), r("change", o, l, i);
1419
1442
  }
1420
1443
  return (o, l) => {
@@ -1422,8 +1445,8 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1422
1445
  return openBlock(), createBlock(unref(ElRadioGroup), {
1423
1446
  disabled: (i = n.column.params) == null ? void 0 : i.disabled,
1424
1447
  modelValue: n.row[n.column.field],
1425
- "onUpdate:modelValue": l[0] || (l[0] = (d) => n.row[n.column.field] = d),
1426
- onChange: l[1] || (l[1] = (d) => a(d, n.row, n.column))
1448
+ "onUpdate:modelValue": l[0] || (l[0] = (m) => n.row[n.column.field] = m),
1449
+ onChange: l[1] || (l[1] = (m) => a(m, n.row, n.column))
1427
1450
  }, {
1428
1451
  default: withCtx(() => [
1429
1452
  createVNode(unref(ElRadio), { value: !0 })
@@ -1464,17 +1487,17 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1464
1487
  var l;
1465
1488
  return ((l = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : l.options) || t.column.params.options;
1466
1489
  }), r = computed(() => {
1467
- var i, d;
1490
+ var i, m;
1468
1491
  const l = t.row[t.column.field];
1469
1492
  if (l && l.length > 1) {
1470
1493
  let c = [];
1471
1494
  return l.split(",").map((u) => {
1472
- var f, m;
1473
- const g = (m = (f = e.value) == null ? void 0 : f.find((v) => v.value == u)) == null ? void 0 : m.label;
1474
- g !== void 0 && c.push(g);
1495
+ var d, k;
1496
+ const _ = (k = (d = e.value) == null ? void 0 : d.find((p) => p.value == u)) == null ? void 0 : k.label;
1497
+ _ !== void 0 && c.push(_);
1475
1498
  }), c.join(",");
1476
1499
  } else
1477
- return ((d = (i = e.value) == null ? void 0 : i.find((c) => c.value == l)) == null ? void 0 : d.label) || "";
1500
+ return ((m = (i = e.value) == null ? void 0 : i.find((c) => c.value == l)) == null ? void 0 : m.label) || "";
1478
1501
  });
1479
1502
  return (l, i) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, normalizeProps(mergeProps({ key: 0 }, { ...t, displayValue: r.value })), null, 16)) : (openBlock(), createElementBlock("span", {
1480
1503
  key: 1,
@@ -1514,7 +1537,7 @@ const _hoisted_1$j = ["title"], _hoisted_2$7 = { class: "date-filter-popover" },
1514
1537
  return ((l = t.column.params[t.gridRef.getRowid(t.row)]) == null ? void 0 : l.options) || t.column.params.options;
1515
1538
  }), r = computed(() => {
1516
1539
  var l, i;
1517
- return ((i = (l = e.value) == null ? void 0 : l.find((d) => d.value == t.row[t.column.field])) == null ? void 0 : i.label) || "";
1540
+ return ((i = (l = e.value) == null ? void 0 : l.find((m) => m.value == t.row[t.column.field])) == null ? void 0 : i.label) || "";
1518
1541
  });
1519
1542
  return (l, i) => t.column.params.IsLabel ? (openBlock(), createBlock(_sfc_main$q, mergeProps({ key: 0 }, { ...t, displayValue: r.value }, { title: r.value }), null, 16, ["title"])) : (openBlock(), createElementBlock("span", {
1520
1543
  key: 1,
@@ -1618,8 +1641,8 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
1618
1641
  setup(n, { emit: t }) {
1619
1642
  dayjs.extend(isoWeek), dayjs.extend(quarterOfYear), dayjs.extend(customParseFormat);
1620
1643
  const e = n, r = t, a = computed(() => {
1621
- var h, k;
1622
- return ((k = (h = e.column) == null ? void 0 : h.params) == null ? void 0 : k.DateType) || "date";
1644
+ var v, w;
1645
+ return ((w = (v = e.column) == null ? void 0 : v.params) == null ? void 0 : w.DateType) || "date";
1623
1646
  }), o = computed(() => {
1624
1647
  switch (a.value) {
1625
1648
  case "year":
@@ -1641,18 +1664,18 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
1641
1664
  function i() {
1642
1665
  l.value = dayjs();
1643
1666
  }
1644
- const d = computed(() => {
1645
- var h, k;
1646
- return (k = (h = e.column) == null ? void 0 : h.params) == null ? void 0 : k.minDate;
1667
+ const m = computed(() => {
1668
+ var v, w;
1669
+ return (w = (v = e.column) == null ? void 0 : v.params) == null ? void 0 : w.minDate;
1647
1670
  }), c = computed(() => {
1648
- var h, k;
1649
- return (k = (h = e.column) == null ? void 0 : h.params) == null ? void 0 : k.maxDate;
1671
+ var v, w;
1672
+ return (w = (v = e.column) == null ? void 0 : v.params) == null ? void 0 : w.maxDate;
1650
1673
  });
1651
- function u(h) {
1652
- return h == null || h === "" ? null : typeof h == "string" && h.trim() !== "" && !Number.isNaN(Number(h)) ? Number(h) : h;
1674
+ function u(v) {
1675
+ return v == null || v === "" ? null : typeof v == "string" && v.trim() !== "" && !Number.isNaN(Number(v)) ? Number(v) : v;
1653
1676
  }
1654
- function g(h) {
1655
- switch (h) {
1677
+ function _(v) {
1678
+ switch (v) {
1656
1679
  case "week":
1657
1680
  return "week";
1658
1681
  case "month":
@@ -1667,102 +1690,102 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
1667
1690
  return "day";
1668
1691
  }
1669
1692
  }
1670
- function f(h, k) {
1671
- switch (k) {
1693
+ function d(v, w) {
1694
+ switch (w) {
1672
1695
  case "week":
1673
- return h.startOf("isoWeek");
1696
+ return v.startOf("isoWeek");
1674
1697
  case "month":
1675
- return h.startOf("month");
1698
+ return v.startOf("month");
1676
1699
  case "quarter":
1677
- return h.startOf("quarter");
1700
+ return v.startOf("quarter");
1678
1701
  case "year":
1679
- return h.startOf("year");
1702
+ return v.startOf("year");
1680
1703
  case "date":
1681
- return h.startOf("day");
1704
+ return v.startOf("day");
1682
1705
  default:
1683
- return h;
1706
+ return v;
1684
1707
  }
1685
1708
  }
1686
- function m(h, k, R) {
1687
- const D = u(h);
1688
- if (D === null) return null;
1689
- const T = f(l.value, k), Y = g(k);
1690
- if (typeof D == "number" && !Number.isNaN(D))
1691
- return D < 0 ? f(T.add(D, Y), k) : f(R === "min" ? T.subtract(D, Y) : T.add(D, Y), k);
1692
- if (typeof D == "string" || D instanceof Date) {
1693
- const P = N(D, k);
1694
- return P ? f(dayjs(P), k) : null;
1709
+ function k(v, w, R) {
1710
+ const Y = u(v);
1711
+ if (Y === null) return null;
1712
+ const T = d(l.value, w), P = _(w);
1713
+ if (typeof Y == "number" && !Number.isNaN(Y))
1714
+ return Y < 0 ? d(T.add(Y, P), w) : d(R === "min" ? T.subtract(Y, P) : T.add(Y, P), w);
1715
+ if (typeof Y == "string" || Y instanceof Date) {
1716
+ const M = $(Y, w);
1717
+ return M ? d(dayjs(M), w) : null;
1695
1718
  }
1696
1719
  return null;
1697
1720
  }
1698
- const v = computed(() => {
1699
- const h = a.value;
1721
+ const p = computed(() => {
1722
+ const v = a.value;
1700
1723
  return {
1701
- min: m(d.value, h, "min"),
1702
- max: m(c.value, h, "max")
1724
+ min: k(m.value, v, "min"),
1725
+ max: k(c.value, v, "max")
1703
1726
  };
1704
- }), s = computed(() => v.value.min ? v.value.min.toDate() : null), y = computed(() => v.value.max ? v.value.max.toDate() : null);
1705
- function w({ date: h }) {
1706
- const { min: k, max: R } = v.value, D = f(dayjs(h), a.value);
1707
- return !!(k && D.isBefore(k) || R && D.isAfter(R));
1727
+ }), s = computed(() => p.value.min ? p.value.min.toDate() : null), f = computed(() => p.value.max ? p.value.max.toDate() : null);
1728
+ function b({ date: v }) {
1729
+ const { min: w, max: R } = p.value, Y = d(dayjs(v), a.value);
1730
+ return !!(w && Y.isBefore(w) || R && Y.isAfter(R));
1708
1731
  }
1709
- const S = ref(N(e.row[e.column.field], a.value)), j = ref(S.value);
1732
+ const C = ref($(e.row[e.column.field], a.value)), V = ref(C.value);
1710
1733
  watch(
1711
1734
  () => e.row[e.column.field],
1712
- (h) => {
1713
- const k = N(h, a.value);
1714
- S.value = k, j.value = k;
1735
+ (v) => {
1736
+ const w = $(v, a.value);
1737
+ C.value = w, V.value = w;
1715
1738
  }
1716
1739
  );
1717
- function $(h, k) {
1718
- if (h == null || h === "") return null;
1719
- if (k === "time") {
1720
- const T = dayjs(`1970-01-01 ${String(h)}`, "YYYY-MM-DD HH:mm:ss", !0);
1740
+ function D(v, w) {
1741
+ if (v == null || v === "") return null;
1742
+ if (w === "time") {
1743
+ const T = dayjs(`1970-01-01 ${String(v)}`, "YYYY-MM-DD HH:mm:ss", !0);
1721
1744
  return T.isValid() ? T : null;
1722
1745
  }
1723
- if (k === "date" || k === "datetime") {
1724
- const T = h instanceof Date ? dayjs(h) : dayjs(String(h));
1725
- return T.isValid() ? f(T, k) : null;
1746
+ if (w === "date" || w === "datetime") {
1747
+ const T = v instanceof Date ? dayjs(v) : dayjs(String(v));
1748
+ return T.isValid() ? d(T, w) : null;
1726
1749
  }
1727
- const R = N(h, k);
1750
+ const R = $(v, w);
1728
1751
  if (!R) return null;
1729
- const D = dayjs(R, "YYYY-MM-DD", !0);
1730
- return D.isValid() ? f(D, k) : null;
1731
- }
1732
- function V(h) {
1733
- const k = $(h, a.value);
1734
- if (!k) return !1;
1735
- const { min: R, max: D } = v.value;
1736
- return !!(R && k.isBefore(R) || D && k.isAfter(D));
1737
- }
1738
- function B(h) {
1739
- const k = h && typeof h == "object" && "value" in h ? h.value : h;
1740
- if (k == null || k === "") {
1741
- j.value = k, r("change", k);
1752
+ const Y = dayjs(R, "YYYY-MM-DD", !0);
1753
+ return Y.isValid() ? d(Y, w) : null;
1754
+ }
1755
+ function E(v) {
1756
+ const w = D(v, a.value);
1757
+ if (!w) return !1;
1758
+ const { min: R, max: Y } = p.value;
1759
+ return !!(R && w.isBefore(R) || Y && w.isAfter(Y));
1760
+ }
1761
+ function B(v) {
1762
+ const w = v && typeof v == "object" && "value" in v ? v.value : v;
1763
+ if (w == null || w === "") {
1764
+ V.value = w, r("change", w);
1742
1765
  return;
1743
1766
  }
1744
- if (i(), V(k)) {
1745
- S.value = j.value;
1767
+ if (i(), E(w)) {
1768
+ C.value = V.value;
1746
1769
  return;
1747
1770
  }
1748
- j.value = k, r("change", k);
1771
+ V.value = w, r("change", w);
1749
1772
  }
1750
- function M() {
1751
- j.value = null, r("change", null);
1773
+ function N() {
1774
+ V.value = null, r("change", null);
1752
1775
  }
1753
1776
  onBeforeUnmount(() => {
1754
- const h = a.value, k = S.value;
1755
- k && (h === "year" ? e.row[e.column.field] = dayjs(k).format("YYYY年") : h === "month" ? e.row[e.column.field] = dayjs(k).format("YYYY年MM月") : h === "quarter" ? e.row[e.column.field] = dayjs(k).format("YYYY年第Q季度") : h === "week" ? e.row[e.column.field] = dayjs(k).format("YYYY年第WW周") : h === "datetime" ? e.row[e.column.field] = dayjs(k).format("YYYY-MM-DD HH:mm:ss") : h === "time" ? e.row[e.column.field] = dayjs(`1970-01-01 ${String(k)}`, "YYYY-MM-DD HH:mm:ss").format("HH:mm:ss") : e.row[e.column.field] = dayjs(k).format("YYYY-MM-DD"));
1777
+ const v = a.value, w = C.value;
1778
+ w && (v === "year" ? e.row[e.column.field] = dayjs(w).format("YYYY年") : v === "month" ? e.row[e.column.field] = dayjs(w).format("YYYY年MM月") : v === "quarter" ? e.row[e.column.field] = dayjs(w).format("YYYY年第Q季度") : v === "week" ? e.row[e.column.field] = dayjs(w).format("YYYY年第WW周") : v === "datetime" ? e.row[e.column.field] = dayjs(w).format("YYYY-MM-DD HH:mm:ss") : v === "time" ? e.row[e.column.field] = dayjs(`1970-01-01 ${String(w)}`, "YYYY-MM-DD HH:mm:ss").format("HH:mm:ss") : e.row[e.column.field] = dayjs(w).format("YYYY-MM-DD"));
1756
1779
  });
1757
- function N(h, k) {
1758
- if (!h) return null;
1759
- const R = String(h).trim();
1760
- if (k === "month") {
1780
+ function $(v, w) {
1781
+ if (!v) return null;
1782
+ const R = String(v).trim();
1783
+ if (w === "month") {
1761
1784
  if (/^\d{4}-\d{2}$/.test(R)) return `${R}-01`;
1762
- const P = R.match(/^(\d{4})年(\d{1,2})月$/);
1763
- if (P) {
1764
- const H = P[1], L = String(P[2]).padStart(2, "0");
1765
- return `${H}-${L}-01`;
1785
+ const M = R.match(/^(\d{4})年(\d{1,2})月$/);
1786
+ if (M) {
1787
+ const H = M[1], q = String(M[2]).padStart(2, "0");
1788
+ return `${H}-${q}-01`;
1766
1789
  }
1767
1790
  }
1768
1791
  const T = {
@@ -1773,68 +1796,68 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
1773
1796
  month: "YYYY-MM",
1774
1797
  quarter: "YYYY-Q",
1775
1798
  year: "YYYY"
1776
- }[k];
1799
+ }[w];
1777
1800
  if (!T) throw new Error("Unsupported date type");
1778
- let Y = dayjs(R, T);
1779
- if (!Y.isValid() && k === "week") {
1780
- const P = R.match(/^(\d{4})年第(\d{1,2})周$/);
1781
- if (P) {
1782
- const [, H, L] = P;
1783
- Y = dayjs(`${H}-01-01`).isoWeek(Number(L));
1801
+ let P = dayjs(R, T);
1802
+ if (!P.isValid() && w === "week") {
1803
+ const M = R.match(/^(\d{4})年第(\d{1,2})周$/);
1804
+ if (M) {
1805
+ const [, H, q] = M;
1806
+ P = dayjs(`${H}-01-01`).isoWeek(Number(q));
1784
1807
  }
1785
- } else if (!Y.isValid() && k === "quarter") {
1786
- const P = R.match(/^(\d{4})年第(\d)季度$/);
1787
- if (P) {
1788
- const [, H, L] = P;
1789
- Y = dayjs(`${H}-01-01`).quarter(Number(L));
1808
+ } else if (!P.isValid() && w === "quarter") {
1809
+ const M = R.match(/^(\d{4})年第(\d)季度$/);
1810
+ if (M) {
1811
+ const [, H, q] = M;
1812
+ P = dayjs(`${H}-01-01`).quarter(Number(q));
1790
1813
  }
1791
- } else if (!Y.isValid() && k === "year") {
1792
- const P = R.match(/^(\d{4})年$/);
1793
- P && (Y = dayjs(`${P[1]}-01-01`));
1814
+ } else if (!P.isValid() && w === "year") {
1815
+ const M = R.match(/^(\d{4})年$/);
1816
+ M && (P = dayjs(`${M[1]}-01-01`));
1794
1817
  }
1795
- if (!Y.isValid()) {
1796
- const P = R instanceof Date ? dayjs(R) : dayjs(R);
1797
- if (!P.isValid()) return null;
1798
- Y = P;
1818
+ if (!P.isValid()) {
1819
+ const M = R instanceof Date ? dayjs(R) : dayjs(R);
1820
+ if (!M.isValid()) return null;
1821
+ P = M;
1799
1822
  }
1800
- return K(Y, k);
1823
+ return K(P, w);
1801
1824
  }
1802
- function K(h, k) {
1803
- switch (k) {
1825
+ function K(v, w) {
1826
+ switch (w) {
1804
1827
  case "time":
1805
- return h.format("HH:mm:ss");
1828
+ return v.format("HH:mm:ss");
1806
1829
  case "date":
1807
- return h.format("YYYY-MM-DD");
1830
+ return v.format("YYYY-MM-DD");
1808
1831
  case "datetime":
1809
- return h.format("YYYY-MM-DD HH:mm:ss");
1832
+ return v.format("YYYY-MM-DD HH:mm:ss");
1810
1833
  case "week":
1811
- return h.startOf("isoWeek").format("YYYY-MM-DD");
1834
+ return v.startOf("isoWeek").format("YYYY-MM-DD");
1812
1835
  case "month":
1813
- return h.startOf("month").format("YYYY-MM-DD");
1836
+ return v.startOf("month").format("YYYY-MM-DD");
1814
1837
  case "quarter":
1815
- return h.startOf("quarter").format("YYYY-MM-DD");
1838
+ return v.startOf("quarter").format("YYYY-MM-DD");
1816
1839
  case "year":
1817
- return h.startOf("year").format("YYYY-MM-DD");
1840
+ return v.startOf("year").format("YYYY-MM-DD");
1818
1841
  default:
1819
1842
  return null;
1820
1843
  }
1821
1844
  }
1822
- return (h, k) => {
1845
+ return (v, w) => {
1823
1846
  const R = resolveComponent("vxe-input");
1824
1847
  return openBlock(), createBlock(R, {
1825
- modelValue: S.value,
1826
- "onUpdate:modelValue": k[0] || (k[0] = (D) => S.value = D),
1848
+ modelValue: C.value,
1849
+ "onUpdate:modelValue": w[0] || (w[0] = (Y) => C.value = Y),
1827
1850
  type: a.value,
1828
1851
  clearable: "",
1829
1852
  transfer: "",
1830
1853
  "label-format": o.value,
1831
1854
  "min-date": s.value,
1832
- "max-date": y.value,
1833
- "disabled-method": w,
1855
+ "max-date": f.value,
1856
+ "disabled-method": b,
1834
1857
  onFocus: i,
1835
1858
  onClick: i,
1836
1859
  onChange: B,
1837
- onClear: M
1860
+ onClear: N
1838
1861
  }, null, 8, ["modelValue", "type", "label-format", "min-date", "max-date"]);
1839
1862
  };
1840
1863
  }
@@ -1945,7 +1968,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
1945
1968
  t.row[t.column.field] = e.value;
1946
1969
  const o = t.column.params.LabelStoreField;
1947
1970
  if (o) {
1948
- const i = (l = a.value.find((d) => d.value === e.value)) == null ? void 0 : l.label;
1971
+ const i = (l = a.value.find((m) => m.value === e.value)) == null ? void 0 : l.label;
1949
1972
  i !== void 0 ? t.row[o] = i : e.value === void 0 ? t.row[o] = null : e.value !== void 0 && i === void 0 && (t.row[o] = e.value);
1950
1973
  }
1951
1974
  }), (o, l) => (openBlock(), createBlock(unref(ElSelect), {
@@ -2004,7 +2027,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
2004
2027
  t.row[t.column.field] = o;
2005
2028
  const l = t.column.params.LabelStoreField;
2006
2029
  if (l) {
2007
- const i = r.value.filter((d) => a.value.includes(d.value)).map((d) => d.label).join(",");
2030
+ const i = r.value.filter((m) => a.value.includes(m.value)).map((m) => m.label).join(",");
2008
2031
  t.row[l] = i;
2009
2032
  }
2010
2033
  });
@@ -2066,20 +2089,20 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
2066
2089
  loading: !1
2067
2090
  });
2068
2091
  onBeforeUnmount(() => {
2069
- const { StoredValueField: i, ReturnValueField: d } = o;
2092
+ const { StoredValueField: i, ReturnValueField: m } = o;
2070
2093
  i && i.length ? i.forEach((c, u) => {
2071
- const g = o.options.find((f) => f._value === a.value);
2072
- g && (r.row[c] = g[d[u]]);
2094
+ const _ = o.options.find((d) => d._value === a.value);
2095
+ _ && (r.row[c] = _[m[u]]);
2073
2096
  }) : r.row[r.column.field] = a.value;
2074
2097
  });
2075
2098
  function l(i) {
2076
- const { DataAPIOID: d, SearchField: c } = o;
2077
- i ? (o.loading = !0, e("remoteMethod", { DataAPIOID: d, SearchField: c, query: i, params: o })) : r.row[r.column.field] = null;
2099
+ const { DataAPIOID: m, SearchField: c } = o;
2100
+ i ? (o.loading = !0, e("remoteMethod", { DataAPIOID: m, SearchField: c, query: i, params: o })) : r.row[r.column.field] = null;
2078
2101
  }
2079
- return (i, d) => (openBlock(), createBlock(unref(ElSelect), {
2102
+ return (i, m) => (openBlock(), createBlock(unref(ElSelect), {
2080
2103
  class: "z-1 vxe-table--ignore-clear",
2081
2104
  modelValue: a.value,
2082
- "onUpdate:modelValue": d[0] || (d[0] = (c) => a.value = c),
2105
+ "onUpdate:modelValue": m[0] || (m[0] = (c) => a.value = c),
2083
2106
  "allow-create": "",
2084
2107
  "automatic-dropdown": "",
2085
2108
  filterable: "",
@@ -2227,7 +2250,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "DatePickerEditor" },
2227
2250
  indent: 12
2228
2251
  }, {
2229
2252
  label: withCtx(({ label: l, value: i }) => [
2230
- createElementVNode("span", null, toDisplayString(n.column.params.options.find((d) => d[r.value.value] === i) ? l : ""), 1)
2253
+ createElementVNode("span", null, toDisplayString(n.column.params.options.find((m) => m[r.value.value] === i) ? l : ""), 1)
2231
2254
  ]),
2232
2255
  _: 1
2233
2256
  }, 8, ["modelValue", "data", "props"]));
@@ -2314,7 +2337,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2314
2337
  function l() {
2315
2338
  o("pageChange", e.pagination);
2316
2339
  }
2317
- return (i, d) => (openBlock(), createElementBlock("div", {
2340
+ return (i, m) => (openBlock(), createElementBlock("div", {
2318
2341
  ref_key: "pagingDom",
2319
2342
  ref: r,
2320
2343
  class: "flex items-center w-full h-12 border border-solid border-[#e8eaec] box-border"
@@ -2324,9 +2347,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2324
2347
  class: "w-full !h-full",
2325
2348
  background: "",
2326
2349
  "current-page": n.pagination.Page,
2327
- "onUpdate:currentPage": d[0] || (d[0] = (c) => n.pagination.Page = c),
2350
+ "onUpdate:currentPage": m[0] || (m[0] = (c) => n.pagination.Page = c),
2328
2351
  "page-size": n.pagination.PageSize,
2329
- "onUpdate:pageSize": d[1] || (d[1] = (c) => n.pagination.PageSize = c),
2352
+ "onUpdate:pageSize": m[1] || (m[1] = (c) => n.pagination.PageSize = c),
2330
2353
  total: n.pagination.Total,
2331
2354
  layouts: a.value,
2332
2355
  onPageChange: l,
@@ -2339,9 +2362,9 @@ function useFixedColumnPanel(n) {
2339
2362
  function t() {
2340
2363
  const l = n.value;
2341
2364
  if (!l) return;
2342
- const i = getFixableColumns(l), d = new Map(i.map((f) => [f.field, f.fixed || ""])), c = i.filter((f) => d.get(f.field)).map((f) => f.field);
2365
+ const i = getFixableColumns(l), m = new Map(i.map((d) => [d.field, d.fixed || ""])), c = i.filter((d) => m.get(d.field)).map((d) => d.field);
2343
2366
  let u = "left";
2344
- const g = `
2367
+ const _ = `
2345
2368
  <div style="padding:12px 14px;">
2346
2369
  <div style="margin-bottom:10px;">
2347
2370
  <label style="margin-right:12px;">
@@ -2353,12 +2376,12 @@ function useFixedColumnPanel(n) {
2353
2376
  </div>
2354
2377
 
2355
2378
  <div style="max-height:320px;overflow:auto;border:1px solid #eee;padding:8px;border-radius:6px;">
2356
- ${i.map((f) => {
2357
- const m = String(f.title ?? f.field), v = c.includes(f.field) ? "checked" : "", s = d.get(f.field) === "left" ? "左固定" : d.get(f.field) === "right" ? "右固定" : "";
2379
+ ${i.map((d) => {
2380
+ const k = String(d.title ?? d.field), p = c.includes(d.field) ? "checked" : "", s = m.get(d.field) === "left" ? "左固定" : m.get(d.field) === "right" ? "右固定" : "";
2358
2381
  return `
2359
2382
  <div style="display:flex;align-items:center;gap:8px;margin:6px 0;">
2360
- <input type="checkbox" class="fix-col" value="${f.field}" ${v} />
2361
- <span>${escapeHtml(m)}</span>
2383
+ <input type="checkbox" class="fix-col" value="${d.field}" ${p} />
2384
+ <span>${escapeHtml(k)}</span>
2362
2385
  <span style="margin-left:auto;color:#999;font-size:12px;">${s}</span>
2363
2386
  </div>
2364
2387
  `;
@@ -2370,65 +2393,65 @@ function useFixedColumnPanel(n) {
2370
2393
  type: 1,
2371
2394
  title: "<b>固定列设置</b>",
2372
2395
  area: ["520px", "520px"],
2373
- content: g,
2396
+ content: _,
2374
2397
  // 你想要的:不持久化,只要本次页面生效
2375
2398
  btn: ["应用", "取消全部固定", "关闭"],
2376
- success: function(f) {
2377
- f[0].querySelectorAll('input[name="fixSide"]').forEach((v) => {
2378
- v.addEventListener("change", () => {
2379
- u = v.value === "right" ? "right" : "left";
2399
+ success: function(d) {
2400
+ d[0].querySelectorAll('input[name="fixSide"]').forEach((p) => {
2401
+ p.addEventListener("change", () => {
2402
+ u = p.value === "right" ? "right" : "left";
2380
2403
  });
2381
2404
  });
2382
2405
  },
2383
2406
  // 应用
2384
- btn1: function(f, m) {
2385
- const v = Array.from(m[0].querySelectorAll("input.fix-col:checked")).map(
2407
+ btn1: function(d, k) {
2408
+ const p = Array.from(k[0].querySelectorAll("input.fix-col:checked")).map(
2386
2409
  (s) => s.value
2387
2410
  );
2388
- applyFixed(l, i, v, u), window.layer.close(f);
2411
+ applyFixed(l, i, p, u), window.layer.close(d);
2389
2412
  },
2390
2413
  // 取消全部固定
2391
- btn2: function(f) {
2392
- return e(), window.layer.close(f), !1;
2414
+ btn2: function(d) {
2415
+ return e(), window.layer.close(d), !1;
2393
2416
  },
2394
2417
  // 关闭
2395
- btn3: function(f) {
2396
- window.layer.close(f);
2418
+ btn3: function(d) {
2419
+ window.layer.close(d);
2397
2420
  }
2398
2421
  });
2399
2422
  }
2400
2423
  function e() {
2401
- var d;
2424
+ var m;
2402
2425
  const l = n.value;
2403
2426
  if (!l) return;
2404
2427
  getFixableColumns(l).forEach((c) => {
2405
2428
  var u;
2406
2429
  return (u = l.setColumnFixed) == null ? void 0 : u.call(l, c, null);
2407
- }), (d = l.refreshColumn) == null || d.call(l);
2430
+ }), (m = l.refreshColumn) == null || m.call(l);
2408
2431
  }
2409
2432
  function r(l) {
2410
2433
  var u;
2411
2434
  const i = n.value;
2412
2435
  if (!i || !l) return;
2413
- const d = getFixableColumns(i), c = o(d, l);
2414
- c < 0 || (d.forEach((g, f) => {
2415
- var m;
2416
- (m = i.setColumnFixed) == null || m.call(i, g, f <= c ? "left" : null);
2436
+ const m = getFixableColumns(i), c = o(m, l);
2437
+ c < 0 || (m.forEach((_, d) => {
2438
+ var k;
2439
+ (k = i.setColumnFixed) == null || k.call(i, _, d <= c ? "left" : null);
2417
2440
  }), (u = i.refreshColumn) == null || u.call(i));
2418
2441
  }
2419
2442
  function a(l) {
2420
2443
  var u;
2421
2444
  const i = n.value;
2422
2445
  if (!i || !l) return;
2423
- const d = getFixableColumns(i), c = o(d, l);
2424
- c < 0 || (d.forEach((g, f) => {
2425
- var m;
2426
- (m = i.setColumnFixed) == null || m.call(i, g, f >= c ? "right" : null);
2446
+ const m = getFixableColumns(i), c = o(m, l);
2447
+ c < 0 || (m.forEach((_, d) => {
2448
+ var k;
2449
+ (k = i.setColumnFixed) == null || k.call(i, _, d >= c ? "right" : null);
2427
2450
  }), (u = i.refreshColumn) == null || u.call(i));
2428
2451
  }
2429
2452
  function o(l, i) {
2430
- const d = (i == null ? void 0 : i.field) || (i == null ? void 0 : i.property);
2431
- return d ? l.findIndex((c) => ((c == null ? void 0 : c.field) || (c == null ? void 0 : c.property)) === d) : -1;
2453
+ const m = (i == null ? void 0 : i.field) || (i == null ? void 0 : i.property);
2454
+ return m ? l.findIndex((c) => ((c == null ? void 0 : c.field) || (c == null ? void 0 : c.property)) === m) : -1;
2432
2455
  }
2433
2456
  return {
2434
2457
  openFixPanel: t,
@@ -2500,46 +2523,46 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2500
2523
  "tableSelectRemote"
2501
2524
  ],
2502
2525
  setup(n, { expose: t, emit: e }) {
2503
- const r = n, a = e, o = ref(), { openFixPanel: l, clearAllFixed: i, freezeToLeft: d, freezeToRight: c } = useFixedColumnPanel(o), u = reactive(r.config);
2526
+ const r = n, a = e, o = ref(), { openFixPanel: l, clearAllFixed: i, freezeToLeft: m, freezeToRight: c } = useFixedColumnPanel(o), u = reactive(r.config);
2504
2527
  reactive(r.config.columns);
2505
- let g = ref(!1), f = null;
2528
+ let _ = ref(!1), d = null;
2506
2529
  onMounted(() => {
2507
2530
  document.addEventListener("click", Z, !0);
2508
2531
  }), onBeforeUnmount(() => {
2509
2532
  document.removeEventListener("click", Z, !0), Q();
2510
2533
  });
2511
2534
  const {
2512
- CheckboxRender: m,
2513
- ColorPickerRender: v,
2535
+ CheckboxRender: k,
2536
+ ColorPickerRender: p,
2514
2537
  IconPickerRender: s,
2515
- RadioRender: y,
2516
- ProgressRender: w,
2517
- ActionRender: S,
2518
- SelectRender: j,
2519
- TreeSelectRender: $,
2520
- SelectMultipleRender: V,
2538
+ RadioRender: f,
2539
+ ProgressRender: b,
2540
+ ActionRender: C,
2541
+ SelectRender: V,
2542
+ TreeSelectRender: D,
2543
+ SelectMultipleRender: E,
2521
2544
  TreeMultipleSelectRender: B,
2522
- ChooseFrameRender: M,
2523
- PickPeopleRender: N,
2545
+ ChooseFrameRender: N,
2546
+ PickPeopleRender: $,
2524
2547
  FileRender: K,
2525
- CustomRender: h,
2526
- DatePickerRender: k,
2548
+ CustomRender: v,
2549
+ DatePickerRender: w,
2527
2550
  LabelRender: R
2528
2551
  } = comps$1, {
2529
- InputEditor: D,
2552
+ InputEditor: Y,
2530
2553
  TreeSelectEditor: T,
2531
- SelectEditor: Y,
2532
- TextareaEditor: P,
2554
+ SelectEditor: P,
2555
+ TextareaEditor: M,
2533
2556
  DatePickerEditor: H,
2534
- SelectMultipleEditor: L,
2557
+ SelectMultipleEditor: q,
2535
2558
  TreeMultipleSelectEditor: te,
2536
2559
  InputNumberEditor: le,
2537
2560
  SelectRemoteEditor: oe
2538
2561
  } = comps, re = computed(() => {
2539
- var b, C;
2540
- return ((((b = r.pagination) == null ? void 0 : b.Page) || 1) - 1) * (((C = r.pagination) == null ? void 0 : C.PageSize) || 1e3);
2562
+ var y, x;
2563
+ return ((((y = r.pagination) == null ? void 0 : y.Page) || 1) - 1) * (((x = r.pagination) == null ? void 0 : x.PageSize) || 1e3);
2541
2564
  }), J = computed(() => {
2542
- var C, p, _, x;
2565
+ var x, g, h, S;
2543
2566
  if (u.Number)
2544
2567
  if (u.columns.some(
2545
2568
  (O) => O.type === "seq" || O.children && O.children.some((F) => F.type === "seq")
@@ -2576,11 +2599,11 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2576
2599
  };
2577
2600
  I();
2578
2601
  }
2579
- let b = {
2602
+ let y = {
2580
2603
  keepSource: !0,
2581
2604
  showOverflow: "title",
2582
2605
  seqConfig: {
2583
- seqMethod: (E) => re.value + E.$rowIndex + 1
2606
+ seqMethod: (j) => re.value + j.$rowIndex + 1
2584
2607
  },
2585
2608
  exportConfig: {},
2586
2609
  importConfig: {},
@@ -2589,7 +2612,7 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2589
2612
  ...r.config,
2590
2613
  // data: [...props.data], //不需要开启,目前是通过异步加载数据,开启会导致数据被当前配置覆盖
2591
2614
  // ✅ 关键:开启“单元格选中”,才会出现 col--selected / col--current 等 class
2592
- mouseConfig: r.dblEditEnabled ? { selected: !0 } : (C = r.config) == null ? void 0 : C.mouseConfig,
2615
+ mouseConfig: r.dblEditEnabled ? { selected: !0 } : (x = r.config) == null ? void 0 : x.mouseConfig,
2593
2616
  // ✅ 开单元格高亮(不同版本字段名可能是 highlightCell)
2594
2617
  highlightCell: !0,
2595
2618
  highlightCurrentRow: !0,
@@ -2601,22 +2624,22 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2601
2624
  // 只对 keep-source 开启有效,是否显示单元格新增与修改状态
2602
2625
  showIcon: !1,
2603
2626
  // 因为对过滤行进行了修改 该属性必须为false
2604
- ...(p = r.config) == null ? void 0 : p.editConfig,
2627
+ ...(g = r.config) == null ? void 0 : g.editConfig,
2605
2628
  // ⭐ 最终由父组件 dblEditEnabled 决定
2606
- trigger: r.dblEditEnabled ? "dblclick" : ((x = (_ = r.config) == null ? void 0 : _.editConfig) == null ? void 0 : x.trigger) || "click"
2629
+ trigger: r.dblEditEnabled ? "dblclick" : ((S = (h = r.config) == null ? void 0 : h.editConfig) == null ? void 0 : S.trigger) || "click"
2607
2630
  },
2608
2631
  showFooter: u["Total-Row"],
2609
2632
  // 启用表尾统计
2610
2633
  // showFooter: true, // 启用统计行
2611
- footerMethod({ columns: E, data: O }) {
2634
+ footerMethod({ columns: j, data: O }) {
2612
2635
  var F;
2613
2636
  if (!(!u["Total-Field"] || !((F = u["Total-Field"]) != null && F.length)))
2614
2637
  return [
2615
- E.map((I, z) => z == 0 || (typeof u["Total-Field"] == "string" ? I.field === u["Total-Field"] : Array.isArray(u["Total-Field"]) && u["Total-Field"].includes(I.field)) ? z === 0 ? "合计" : u["Total-Field"].includes(I.field) ? ee(O, I.field).toLocaleString("zh-CN") : "" : void 0)
2638
+ j.map((I, z) => z == 0 || (typeof u["Total-Field"] == "string" ? I.field === u["Total-Field"] : Array.isArray(u["Total-Field"]) && u["Total-Field"].includes(I.field)) ? z === 0 ? "合计" : u["Total-Field"].includes(I.field) ? ee(O, I.field).toLocaleString("zh-CN") : "" : void 0)
2616
2639
  ];
2617
2640
  }
2618
2641
  };
2619
- return u.BodyMenu && (b.menuConfig = {
2642
+ return u.BodyMenu && (y.menuConfig = {
2620
2643
  body: {
2621
2644
  options: [[
2622
2645
  { type: "print", name: "打印", prefixConfig: { icon: "vxe-icon-print" } },
@@ -2624,72 +2647,72 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2624
2647
  { type: "myBtn2", name: "导出全部", prefixConfig: { icon: "vxe-icon-send-fill" } }
2625
2648
  ]]
2626
2649
  }
2627
- }), b;
2650
+ }), y;
2628
2651
  }), G = ref(!1);
2629
- let q = null;
2630
- function ne(b) {
2631
- const C = b.clipboardData;
2632
- if (!C) return null;
2633
- const p = C.getData("text/html");
2634
- if (p && /<table/i.test(p)) {
2635
- const F = new DOMParser().parseFromString(p, "text/html").querySelector("table");
2652
+ let L = null;
2653
+ function ne(y) {
2654
+ const x = y.clipboardData;
2655
+ if (!x) return null;
2656
+ const g = x.getData("text/html");
2657
+ if (g && /<table/i.test(g)) {
2658
+ const F = new DOMParser().parseFromString(g, "text/html").querySelector("table");
2636
2659
  if (F)
2637
2660
  return Array.from(F.querySelectorAll("tr")).map((z) => Array.from(z.querySelectorAll("th,td")).map((A) => (Array.from(A.querySelectorAll("br")).forEach((W) => W.replaceWith(`
2638
2661
  `)), (A.textContent || "").replace(/\u00A0/g, " ").trimEnd())));
2639
2662
  }
2640
- const _ = C.getData("text/plain") || "";
2641
- if (!_) return null;
2642
- const E = _.replace(/\r\n/g, `
2663
+ const h = x.getData("text/plain") || "";
2664
+ if (!h) return null;
2665
+ const j = h.replace(/\r\n/g, `
2643
2666
  `).replace(/\r/g, `
2644
2667
  `).split(`
2645
2668
  `);
2646
- for (; E.length && E[E.length - 1] === ""; ) E.pop();
2647
- return E.map((O) => O.split(" "));
2669
+ for (; j.length && j[j.length - 1] === ""; ) j.pop();
2670
+ return j.map((O) => O.split(" "));
2648
2671
  }
2649
2672
  function ae() {
2650
- q || (q = (b) => {
2651
- var p, _, x;
2673
+ L || (L = (y) => {
2674
+ var g, h, S;
2652
2675
  if (!G.value) return;
2653
- b.preventDefault(), b.stopPropagation(), (p = b.stopImmediatePropagation) == null || p.call(b);
2654
- const C = ne(b);
2655
- C && ((x = (_ = r.gridRef) == null ? void 0 : _.onGridPaste) == null || x.call(_, C));
2656
- }, window.addEventListener("paste", q, !0));
2676
+ y.preventDefault(), y.stopPropagation(), (g = y.stopImmediatePropagation) == null || g.call(y);
2677
+ const x = ne(y);
2678
+ x && ((S = (h = r.gridRef) == null ? void 0 : h.onGridPaste) == null || S.call(h, x));
2679
+ }, window.addEventListener("paste", L, !0));
2657
2680
  }
2658
2681
  function Q() {
2659
- q && (window.removeEventListener("paste", q, !0), q = null);
2682
+ L && (window.removeEventListener("paste", L, !0), L = null);
2660
2683
  }
2661
2684
  const ie = {
2662
2685
  //设置表头右键 存储当前列信息
2663
- headerCellMenu({ column: b }) {
2664
- f = b;
2686
+ headerCellMenu({ column: y }) {
2687
+ d = y;
2665
2688
  },
2666
- cellMenu({ row: b }) {
2667
- const C = o.value;
2668
- C && C.setCurrentRow(b);
2689
+ cellMenu({ row: y }) {
2690
+ const x = o.value;
2691
+ x && x.setCurrentRow(y);
2669
2692
  },
2670
2693
  //单击事件 设置选中行和选择单元格
2671
- cellClick({ row: b, column: C }) {
2672
- var _, x;
2673
- const p = o.value;
2674
- p && ((_ = p.setCurrentCell) == null || _.call(p, b, C.field), p.currentCell = C, (x = p.setCurrentRow) == null || x.call(p, b));
2694
+ cellClick({ row: y, column: x }) {
2695
+ var h, S;
2696
+ const g = o.value;
2697
+ g && ((h = g.setCurrentCell) == null || h.call(g, y, x.field), g.currentCell = x, (S = g.setCurrentRow) == null || S.call(g, y));
2675
2698
  },
2676
2699
  //双击事件 设置选中行和选择单元格
2677
- cellDblclick({ row: b, column: C }) {
2678
- var _, x;
2679
- const p = o.value;
2680
- p && ((_ = p.setCurrentCell) == null || _.call(p, b, C.field), (x = p.setCurrentRow) == null || x.call(p, b));
2700
+ cellDblclick({ row: y, column: x }) {
2701
+ var h, S;
2702
+ const g = o.value;
2703
+ g && ((h = g.setCurrentCell) == null || h.call(g, y, x.field), (S = g.setCurrentRow) == null || S.call(g, y));
2681
2704
  },
2682
- async menuClick({ menu: b }) {
2683
- const C = o.value;
2684
- if (C)
2685
- switch (b.code) {
2705
+ async menuClick({ menu: y }) {
2706
+ const x = o.value;
2707
+ if (x)
2708
+ switch (y.code) {
2686
2709
  case "reload":
2687
- const p = layer.load(2, { shade: [0.5, "#fff"] });
2688
- r.gridRef.echoData(), layer.close(p);
2710
+ const g = layer.load(2, { shade: [0.5, "#fff"] });
2711
+ r.gridRef.echoData(), layer.close(g);
2689
2712
  break;
2690
2713
  case "Print":
2691
- C.print({
2692
- columns: C.getColumns().filter((E) => E.type !== "action" && E.type !== "checkbox"),
2714
+ x.print({
2715
+ columns: x.getColumns().filter((j) => j.type !== "action" && j.type !== "checkbox"),
2693
2716
  pageHeader: [{ text: r.config.PageName, align: "center" }],
2694
2717
  // 目前无效
2695
2718
  pageFooter: [{ text: "第 {pageNum} 页 共 {totalPage} 页", align: "center" }]
@@ -2697,33 +2720,33 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2697
2720
  });
2698
2721
  break;
2699
2722
  case "exportCurrent":
2700
- let _ = (C == null ? void 0 : C.getTableData().tableData) || [];
2701
- _ = _.map((E) => {
2702
- const { children: O, ...F } = E;
2723
+ let h = (x == null ? void 0 : x.getTableData().tableData) || [];
2724
+ h = h.map((j) => {
2725
+ const { children: O, ...F } = j;
2703
2726
  return F;
2704
- }), C.exportData({
2727
+ }), x.exportData({
2705
2728
  type: "csv",
2706
2729
  isHeader: !0,
2707
2730
  isFooter: !1,
2708
- columns: C.getColumns().filter((E) => E.type !== "action" && E.type !== "checkbox"),
2731
+ columns: x.getColumns().filter((j) => j.type !== "action" && j.type !== "checkbox"),
2709
2732
  // 过滤出不需要导出的列
2710
2733
  filename: `${r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
2711
2734
  // 文件名
2712
- data: _
2735
+ data: h
2713
2736
  // 当前页数据
2714
2737
  });
2715
2738
  break;
2716
2739
  case "exportAll":
2717
- let x = await r.gridRef.handleExport();
2718
- C.exportData({
2740
+ let S = await r.gridRef.handleExport();
2741
+ x.exportData({
2719
2742
  type: "csv",
2720
2743
  isHeader: !0,
2721
2744
  isFooter: !0,
2722
- columns: C.getColumns().filter((E) => E.type !== "action" && E.type !== "checkbox" && E.type !== "seq"),
2745
+ columns: x.getColumns().filter((j) => j.type !== "action" && j.type !== "checkbox" && j.type !== "seq"),
2723
2746
  // 过滤出不需要导出的列
2724
2747
  filename: `${r.config.PageName == "" ? "导出" : r.config.PageName}(${H_getISODate(/* @__PURE__ */ new Date())})`,
2725
2748
  // 文件名
2726
- data: x
2749
+ data: S
2727
2750
  });
2728
2751
  break;
2729
2752
  case "OpenCopy":
@@ -2739,110 +2762,110 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2739
2762
  i();
2740
2763
  break;
2741
2764
  case "freezeLeftTo":
2742
- d(f);
2765
+ m(d);
2743
2766
  break;
2744
2767
  case "freezeRightTo":
2745
- c(f);
2768
+ c(d);
2746
2769
  break;
2747
2770
  }
2748
2771
  }
2749
2772
  };
2750
- function ue(b) {
2751
- a("ActionClick", b);
2773
+ function ue(y) {
2774
+ a("ActionClick", y);
2752
2775
  }
2753
- function ce(...b) {
2754
- a("PageChange", ...b);
2776
+ function ce(...y) {
2777
+ a("PageChange", ...y);
2755
2778
  }
2756
- function se(...b) {
2757
- a("Refresh", ...b);
2779
+ function se(...y) {
2780
+ a("Refresh", ...y);
2758
2781
  }
2759
- function de(...b) {
2760
- a("FilterSearch", ...b);
2782
+ function de(...y) {
2783
+ a("FilterSearch", ...y);
2761
2784
  }
2762
- function fe(...b) {
2763
- a("SortChange", ...b);
2785
+ function fe(...y) {
2786
+ a("SortChange", ...y);
2764
2787
  }
2765
- function me(...b) {
2766
- a("ActionRenderBefore", ...b);
2788
+ function me(...y) {
2789
+ a("ActionRenderBefore", ...y);
2767
2790
  }
2768
- function pe(...b) {
2769
- a("FileClick", ...b);
2791
+ function pe(...y) {
2792
+ a("FileClick", ...y);
2770
2793
  }
2771
- function ge(b, C, p) {
2772
- b.column = C, b.row = p, a("tableSelectRemote", b);
2794
+ function ge(y, x, g) {
2795
+ y.column = x, y.row = g, a("tableSelectRemote", y);
2773
2796
  }
2774
- function _e(...b) {
2775
- a("tableSelectChange", ...b);
2797
+ function _e(...y) {
2798
+ a("tableSelectChange", ...y);
2776
2799
  }
2777
- function ve(...b) {
2778
- a("RemoteMethod", ...b);
2800
+ function he(...y) {
2801
+ a("RemoteMethod", ...y);
2779
2802
  }
2780
- function he(...b) {
2781
- a("ChooseBefor", ...b);
2803
+ function ve(...y) {
2804
+ a("ChooseBefor", ...y);
2782
2805
  }
2783
- function be(...b) {
2784
- a("PickPeople", ...b);
2806
+ function be(...y) {
2807
+ a("PickPeople", ...y);
2785
2808
  }
2786
- function ye(...b) {
2787
- a("CheckboxChange", ...b);
2809
+ function ye(...y) {
2810
+ a("CheckboxChange", ...y);
2788
2811
  }
2789
- function X(b, C = "children", p = []) {
2790
- return b.forEach((_) => {
2791
- p.push(_), _[C] && _[C].length > 0 && X(_[C], C, p);
2792
- }), p;
2812
+ function X(y, x = "children", g = []) {
2813
+ return y.forEach((h) => {
2814
+ g.push(h), h[x] && h[x].length > 0 && X(h[x], x, g);
2815
+ }), g;
2793
2816
  }
2794
- const ke = ({ menu: b }) => {
2795
- var C, p;
2796
- b.type == "print" ? (C = o.value) == null || C.openPrint() : b.type == "export" && ((p = o.value) == null || p.openExport());
2797
- }, we = (b) => {
2798
- g.value = !0;
2799
- let C = u.columns.splice(b._index.oldIndex, 1)[0];
2800
- u.columns.splice((b._index.newIndex || 1) - 1, 0, C);
2817
+ const ke = ({ menu: y }) => {
2818
+ var x, g;
2819
+ y.type == "print" ? (x = o.value) == null || x.openPrint() : y.type == "export" && ((g = o.value) == null || g.openExport());
2820
+ }, we = (y) => {
2821
+ _.value = !0;
2822
+ let x = u.columns.splice(y._index.oldIndex, 1)[0];
2823
+ u.columns.splice((y._index.newIndex || 1) - 1, 0, x);
2801
2824
  };
2802
- function Z(b) {
2803
- const C = b.target.closest("tr.vxe-body--row");
2804
- if (!C || !(o != null && o.value)) return;
2805
- const p = C.getAttribute("rowid");
2806
- if (!p) return;
2807
- const _ = o.value.getRowById(p);
2808
- _ && o.value.setCurrentRow(_);
2809
- }
2810
- function ee(b, C) {
2811
- if (!(b instanceof Array)) return 0;
2812
- function p(_, x) {
2813
- let E = 0;
2825
+ function Z(y) {
2826
+ const x = y.target.closest("tr.vxe-body--row");
2827
+ if (!x || !(o != null && o.value)) return;
2828
+ const g = x.getAttribute("rowid");
2829
+ if (!g) return;
2830
+ const h = o.value.getRowById(g);
2831
+ h && o.value.setCurrentRow(h);
2832
+ }
2833
+ function ee(y, x) {
2834
+ if (!(y instanceof Array)) return 0;
2835
+ function g(h, S) {
2836
+ let j = 0;
2814
2837
  function O(F) {
2815
2838
  var I;
2816
2839
  if (((I = F.children) == null ? void 0 : I.length) > 0)
2817
2840
  for (const z of F.children)
2818
2841
  O(z);
2819
2842
  else
2820
- E = H_calculate(`${E}+${F[x] || 0}`);
2843
+ j = H_calculate(`${j}+${F[S] || 0}`);
2821
2844
  }
2822
- return O(_), E;
2845
+ return O(h), j;
2823
2846
  }
2824
- return b.reduce((_, x) => {
2825
- var E, O;
2826
- if (!(x != null && x.children))
2827
- return H_calculate(`${_}+${Number(x[C]) || 0}`);
2828
- if (((E = x.children) == null ? void 0 : E.length) === 0 && (x.ParentOID === "00000000-0000-0000-0000-000000000000" || x.ParentOID === null))
2829
- return H_calculate(`${_}+${Number(x[C]) || 0}`);
2830
- if (((O = x.children) == null ? void 0 : O.length) > 0 && (x.ParentOID === "00000000-0000-0000-0000-000000000000" || x.ParentOID === null)) {
2831
- let F = p(x, C);
2832
- return H_calculate(`${_}+${F}`);
2847
+ return y.reduce((h, S) => {
2848
+ var j, O;
2849
+ if (!(S != null && S.children))
2850
+ return H_calculate(`${h}+${Number(S[x]) || 0}`);
2851
+ if (((j = S.children) == null ? void 0 : j.length) === 0 && (S.ParentOID === "00000000-0000-0000-0000-000000000000" || S.ParentOID === null))
2852
+ return H_calculate(`${h}+${Number(S[x]) || 0}`);
2853
+ if (((O = S.children) == null ? void 0 : O.length) > 0 && (S.ParentOID === "00000000-0000-0000-0000-000000000000" || S.ParentOID === null)) {
2854
+ let F = g(S, x);
2855
+ return H_calculate(`${h}+${F}`);
2833
2856
  }
2834
- return _;
2857
+ return h;
2835
2858
  }, 0);
2836
2859
  }
2837
2860
  return watch(
2838
2861
  () => r.dblEditEnabled,
2839
- async (b) => {
2840
- var C, p, _;
2841
- if (!b) {
2862
+ async (y) => {
2863
+ var x, g, h;
2864
+ if (!y) {
2842
2865
  await nextTick();
2843
- const x = o.value;
2844
- if (!x) return;
2845
- (C = x.clearEdit) == null || C.call(x), (p = x.clearSelected) == null || p.call(x), (_ = x.clearCurrentRow) == null || _.call(x);
2866
+ const S = o.value;
2867
+ if (!S) return;
2868
+ (x = S.clearEdit) == null || x.call(S), (g = S.clearSelected) == null || g.call(S), (h = S.clearCurrentRow) == null || h.call(S);
2846
2869
  }
2847
2870
  },
2848
2871
  { immediate: !0 }
@@ -2850,215 +2873,215 @@ const _hoisted_1$2 = { class: "h-full w-full" }, _hoisted_2$2 = { style: { "padd
2850
2873
  gridRef: o,
2851
2874
  getFieldTotal: ee,
2852
2875
  gridOptions: J
2853
- }), (b, C) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
2876
+ }), (y, x) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
2854
2877
  createVNode(unref(VxeGrid), mergeProps({
2855
2878
  class: ["grid-table", { "dbl-edit-on": r.dblEditEnabled }],
2856
2879
  ref_key: "gridRef",
2857
2880
  ref: o
2858
- }, { ...J.value, ...b.$attrs }, toHandlers(ie), {
2881
+ }, { ...J.value, ...y.$attrs }, toHandlers(ie), {
2859
2882
  onMenuClick: ke,
2860
2883
  onColumnDragend: we,
2861
2884
  "show-overflow": "tooltip",
2862
2885
  onCheckboxChange: ye
2863
2886
  }), {
2864
- FilterRows: withCtx(({ column: p }) => [
2887
+ FilterRows: withCtx(({ column: g }) => [
2865
2888
  createVNode(_sfc_main$t, {
2866
- column: p,
2889
+ column: g,
2867
2890
  "grid-ref": o.value,
2868
2891
  onFilterSearch: de,
2869
2892
  onSortChange: fe
2870
2893
  }, null, 8, ["column", "grid-ref"])
2871
2894
  ]),
2872
- ActionRender: withCtx(({ row: p, column: _ }) => [
2873
- createVNode(unref(S), {
2874
- row: p,
2875
- column: _,
2895
+ ActionRender: withCtx(({ row: g, column: h }) => [
2896
+ createVNode(unref(C), {
2897
+ row: g,
2898
+ column: h,
2876
2899
  "grid-ref": o.value,
2877
2900
  onActionClick: ue,
2878
2901
  onActionRenderBefore: me
2879
2902
  }, null, 8, ["row", "column", "grid-ref"])
2880
2903
  ]),
2881
- RadioRender: withCtx(({ row: p, column: _ }) => [
2882
- createVNode(unref(y), {
2883
- row: p,
2884
- column: _,
2904
+ RadioRender: withCtx(({ row: g, column: h }) => [
2905
+ createVNode(unref(f), {
2906
+ row: g,
2907
+ column: h,
2885
2908
  "grid-ref": o.value
2886
2909
  }, null, 8, ["row", "column", "grid-ref"])
2887
2910
  ]),
2888
- CheckboxRender: withCtx(({ row: p, column: _ }) => [
2889
- createVNode(unref(m), {
2890
- row: p,
2891
- column: _,
2911
+ CheckboxRender: withCtx(({ row: g, column: h }) => [
2912
+ createVNode(unref(k), {
2913
+ row: g,
2914
+ column: h,
2892
2915
  "grid-ref": o.value
2893
2916
  }, null, 8, ["row", "column", "grid-ref"])
2894
2917
  ]),
2895
- ColorPickerRender: withCtx(({ row: p, column: _ }) => [
2896
- createVNode(unref(v), {
2897
- row: p,
2898
- column: _,
2918
+ ColorPickerRender: withCtx(({ row: g, column: h }) => [
2919
+ createVNode(unref(p), {
2920
+ row: g,
2921
+ column: h,
2899
2922
  "grid-ref": o.value
2900
2923
  }, null, 8, ["row", "column", "grid-ref"])
2901
2924
  ]),
2902
- IconPickerRender: withCtx(({ row: p, column: _ }) => [
2925
+ IconPickerRender: withCtx(({ row: g, column: h }) => [
2903
2926
  createVNode(unref(s), {
2904
- row: p,
2905
- column: _,
2927
+ row: g,
2928
+ column: h,
2906
2929
  "grid-ref": o.value
2907
2930
  }, null, 8, ["row", "column", "grid-ref"])
2908
2931
  ]),
2909
- ProgressRender: withCtx(({ row: p, column: _ }) => [
2910
- createVNode(unref(w), {
2911
- row: p,
2912
- column: _,
2932
+ ProgressRender: withCtx(({ row: g, column: h }) => [
2933
+ createVNode(unref(b), {
2934
+ row: g,
2935
+ column: h,
2913
2936
  "grid-ref": o.value
2914
2937
  }, null, 8, ["row", "column", "grid-ref"])
2915
2938
  ]),
2916
- SelectRender: withCtx(({ row: p, column: _ }) => [
2917
- createVNode(unref(j), {
2918
- row: p,
2919
- column: _,
2939
+ SelectRender: withCtx(({ row: g, column: h }) => [
2940
+ createVNode(unref(V), {
2941
+ row: g,
2942
+ column: h,
2920
2943
  "grid-ref": o.value
2921
2944
  }, null, 8, ["row", "column", "grid-ref"])
2922
2945
  ]),
2923
- SelectMultipleRender: withCtx(({ row: p, column: _ }) => [
2924
- createVNode(unref(V), {
2925
- row: p,
2926
- column: _,
2946
+ SelectMultipleRender: withCtx(({ row: g, column: h }) => [
2947
+ createVNode(unref(E), {
2948
+ row: g,
2949
+ column: h,
2927
2950
  "grid-ref": o.value
2928
2951
  }, null, 8, ["row", "column", "grid-ref"])
2929
2952
  ]),
2930
- TreeSelectRender: withCtx(({ row: p, column: _ }) => [
2931
- createVNode(unref($), {
2932
- row: p,
2933
- column: _,
2953
+ TreeSelectRender: withCtx(({ row: g, column: h }) => [
2954
+ createVNode(unref(D), {
2955
+ row: g,
2956
+ column: h,
2934
2957
  "grid-ref": o.value
2935
2958
  }, null, 8, ["row", "column", "grid-ref"])
2936
2959
  ]),
2937
- TreeMultipleSelectRender: withCtx(({ row: p, column: _ }) => [
2960
+ TreeMultipleSelectRender: withCtx(({ row: g, column: h }) => [
2938
2961
  createVNode(unref(B), {
2939
- row: p,
2940
- column: _,
2962
+ row: g,
2963
+ column: h,
2941
2964
  "grid-ref": o.value
2942
2965
  }, null, 8, ["row", "column", "grid-ref"])
2943
2966
  ]),
2944
- ChooseFrameRender: withCtx(({ row: p, column: _ }) => [
2945
- createVNode(unref(M), {
2946
- row: p,
2947
- column: _,
2967
+ ChooseFrameRender: withCtx(({ row: g, column: h }) => [
2968
+ createVNode(unref(N), {
2969
+ row: g,
2970
+ column: h,
2948
2971
  "grid-ref": r.gridRef,
2949
- onOnChooseBeforClick: he
2972
+ onOnChooseBeforClick: ve
2950
2973
  }, null, 8, ["row", "column", "grid-ref"])
2951
2974
  ]),
2952
- PickPeopleRender: withCtx(({ row: p, column: _ }) => [
2953
- createVNode(unref(N), {
2954
- row: p,
2955
- column: _,
2975
+ PickPeopleRender: withCtx(({ row: g, column: h }) => [
2976
+ createVNode(unref($), {
2977
+ row: g,
2978
+ column: h,
2956
2979
  "grid-ref": o.value,
2957
2980
  onChange: be
2958
2981
  }, null, 8, ["row", "column", "grid-ref"])
2959
2982
  ]),
2960
- FileRender: withCtx(({ row: p, column: _ }) => [
2983
+ FileRender: withCtx(({ row: g, column: h }) => [
2961
2984
  createVNode(unref(K), {
2962
- row: p,
2963
- column: _,
2985
+ row: g,
2986
+ column: h,
2964
2987
  "grid-ref": o.value,
2965
2988
  onFileClick: pe
2966
2989
  }, null, 8, ["row", "column", "grid-ref"])
2967
2990
  ]),
2968
- CustomRender: withCtx(({ row: p, column: _ }) => [
2969
- createVNode(unref(h), {
2970
- row: p,
2971
- column: _,
2991
+ CustomRender: withCtx(({ row: g, column: h }) => [
2992
+ createVNode(unref(v), {
2993
+ row: g,
2994
+ column: h,
2972
2995
  "grid-ref": o.value
2973
2996
  }, null, 8, ["row", "column", "grid-ref"])
2974
2997
  ]),
2975
- DatePickerRender: withCtx(({ row: p, column: _ }) => [
2976
- createVNode(unref(k), {
2977
- row: p,
2978
- column: _,
2998
+ DatePickerRender: withCtx(({ row: g, column: h }) => [
2999
+ createVNode(unref(w), {
3000
+ row: g,
3001
+ column: h,
2979
3002
  "grid-ref": o.value
2980
3003
  }, null, 8, ["row", "column", "grid-ref"])
2981
3004
  ]),
2982
- LabelRender: withCtx(({ row: p, column: _ }) => [
3005
+ LabelRender: withCtx(({ row: g, column: h }) => [
2983
3006
  createVNode(unref(R), {
2984
- row: p,
2985
- column: _,
3007
+ row: g,
3008
+ column: h,
2986
3009
  "grid-ref": o.value
2987
3010
  }, null, 8, ["row", "column", "grid-ref"])
2988
3011
  ]),
2989
- InputEditor: withCtx(({ row: p, column: _ }) => [
2990
- createVNode(unref(D), {
2991
- row: p,
2992
- column: _,
3012
+ InputEditor: withCtx(({ row: g, column: h }) => [
3013
+ createVNode(unref(Y), {
3014
+ row: g,
3015
+ column: h,
2993
3016
  "grid-ref": o.value
2994
3017
  }, null, 8, ["row", "column", "grid-ref"])
2995
3018
  ]),
2996
- TextareaEditor: withCtx(({ row: p, column: _ }) => [
2997
- createVNode(unref(P), {
2998
- row: p,
2999
- column: _,
3019
+ TextareaEditor: withCtx(({ row: g, column: h }) => [
3020
+ createVNode(unref(M), {
3021
+ row: g,
3022
+ column: h,
3000
3023
  "grid-ref": o.value
3001
3024
  }, null, 8, ["row", "column", "grid-ref"])
3002
3025
  ]),
3003
- SelectEditor: withCtx(({ row: p, column: _ }) => [
3004
- createVNode(unref(Y), {
3005
- row: p,
3006
- column: _,
3026
+ SelectEditor: withCtx(({ row: g, column: h }) => [
3027
+ createVNode(unref(P), {
3028
+ row: g,
3029
+ column: h,
3007
3030
  "grid-ref": o.value
3008
3031
  }, null, 8, ["row", "column", "grid-ref"])
3009
3032
  ]),
3010
- SelectMultipleEditor: withCtx(({ row: p, column: _ }) => [
3011
- createVNode(unref(L), {
3012
- row: p,
3013
- column: _,
3033
+ SelectMultipleEditor: withCtx(({ row: g, column: h }) => [
3034
+ createVNode(unref(q), {
3035
+ row: g,
3036
+ column: h,
3014
3037
  "grid-ref": o.value
3015
3038
  }, null, 8, ["row", "column", "grid-ref"])
3016
3039
  ]),
3017
- TreeSelectEditor: withCtx(({ row: p, column: _ }) => [
3040
+ TreeSelectEditor: withCtx(({ row: g, column: h }) => [
3018
3041
  createVNode(unref(T), {
3019
- row: p,
3020
- column: _,
3042
+ row: g,
3043
+ column: h,
3021
3044
  "grid-ref": o.value
3022
3045
  }, null, 8, ["row", "column", "grid-ref"])
3023
3046
  ]),
3024
- TreeMultipleSelectEditor: withCtx(({ row: p, column: _ }) => [
3047
+ TreeMultipleSelectEditor: withCtx(({ row: g, column: h }) => [
3025
3048
  createVNode(unref(te), {
3026
- row: p,
3027
- column: _,
3049
+ row: g,
3050
+ column: h,
3028
3051
  "grid-ref": o.value
3029
3052
  }, null, 8, ["row", "column", "grid-ref"])
3030
3053
  ]),
3031
- DatePickerEditor: withCtx(({ row: p, column: _ }) => [
3054
+ DatePickerEditor: withCtx(({ row: g, column: h }) => [
3032
3055
  createVNode(unref(H), {
3033
- row: p,
3034
- column: _,
3056
+ row: g,
3057
+ column: h,
3035
3058
  "grid-ref": o.value
3036
3059
  }, null, 8, ["row", "column", "grid-ref"])
3037
3060
  ]),
3038
- InputNumberEditor: withCtx(({ row: p, column: _ }) => [
3061
+ InputNumberEditor: withCtx(({ row: g, column: h }) => [
3039
3062
  createVNode(unref(le), {
3040
- row: p,
3041
- column: _,
3063
+ row: g,
3064
+ column: h,
3042
3065
  "grid-ref": o.value
3043
3066
  }, null, 8, ["row", "column", "grid-ref"])
3044
3067
  ]),
3045
- SelectRemoteEditor: withCtx(({ row: p, column: _ }) => [
3068
+ SelectRemoteEditor: withCtx(({ row: g, column: h }) => [
3046
3069
  createVNode(unref(oe), {
3047
- row: p,
3048
- column: _,
3070
+ row: g,
3071
+ column: h,
3049
3072
  "grid-ref": o.value,
3050
- onRemoteMethod: ve
3073
+ onRemoteMethod: he
3051
3074
  }, null, 8, ["row", "column", "grid-ref"])
3052
3075
  ]),
3053
- tableSelect: withCtx(({ row: p, column: _ }) => [
3076
+ tableSelect: withCtx(({ row: g, column: h }) => [
3054
3077
  createElementVNode("div", _hoisted_2$2, [
3055
3078
  createVNode(unref(HrTableSelect), {
3056
- modelValue: p[_.field],
3057
- "onUpdate:modelValue": (x) => p[_.field] = x,
3058
- columns: _.params.tableSelectColumns || [],
3059
- onRemoteMethod: (x) => ge(x, _, p),
3060
- onChange: (x) => _e({ change: x, row: p, column: _ }),
3061
- width: _.params.tableSelectWidth
3079
+ modelValue: g[h.field],
3080
+ "onUpdate:modelValue": (S) => g[h.field] = S,
3081
+ columns: h.params.tableSelectColumns || [],
3082
+ onRemoteMethod: (S) => ge(S, h, g),
3083
+ onChange: (S) => _e({ change: S, row: g, column: h }),
3084
+ width: h.params.tableSelectWidth
3062
3085
  }, null, 8, ["modelValue", "onUpdate:modelValue", "columns", "onRemoteMethod", "onChange", "width"])
3063
3086
  ])
3064
3087
  ]),
@@ -3122,22 +3145,22 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
3122
3145
  createElementVNode("thead", null, [
3123
3146
  createElementVNode("tr", null, [
3124
3147
  i[0] || (i[0] = createElementVNode("th", { class: "w[50px]" }, "序号", -1)),
3125
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (d) => (openBlock(), createElementBlock("th", {
3126
- style: normalizeStyle({ width: o(d.width) })
3127
- }, toDisplayString(d.title), 5))), 256))
3148
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (m) => (openBlock(), createElementBlock("th", {
3149
+ style: normalizeStyle({ width: o(m.width) })
3150
+ }, toDisplayString(m.title), 5))), 256))
3128
3151
  ])
3129
3152
  ]),
3130
3153
  createElementVNode("tbody", {
3131
3154
  ref_key: "tbody",
3132
3155
  ref: r
3133
3156
  }, [
3134
- (openBlock(!0), createElementBlock(Fragment, null, renderList(e.value, (d, c) => (openBlock(), createElementBlock("tr", {
3157
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(e.value, (m, c) => (openBlock(), createElementBlock("tr", {
3135
3158
  class: normalizeClass({ zebra: c % 2 != 0, highlight: l.highlight === c }),
3136
- onClick: (u) => a("change", d),
3159
+ onClick: (u) => a("change", m),
3137
3160
  index: c
3138
3161
  }, [
3139
3162
  createElementVNode("td", _hoisted_3, toDisplayString(c + 1), 1),
3140
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (u) => (openBlock(), createElementBlock("td", null, toDisplayString(d[u.field]), 1))), 256))
3163
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.columns, (u) => (openBlock(), createElementBlock("td", null, toDisplayString(m[u.field]), 1))), 256))
3141
3164
  ], 10, _hoisted_2$1))), 256))
3142
3165
  ], 512)
3143
3166
  ]),
@@ -3165,41 +3188,41 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
3165
3188
  query: "",
3166
3189
  tableData: [],
3167
3190
  loading: !1
3168
- }), r = ref(), a = ref(), o = ref(!1), l = ref(-1), i = reactive({ x: 0, y: 0, w: 0 }), d = useModel(n, "modelValue"), c = t, u = () => c("remote-method", e), g = () => {
3169
- o.value = !0, c("remote-method", e), f();
3170
- }, f = async () => {
3191
+ }), r = ref(), a = ref(), o = ref(!1), l = ref(-1), i = reactive({ x: 0, y: 0, w: 0 }), m = useModel(n, "modelValue"), c = t, u = () => c("remote-method", e), _ = () => {
3192
+ o.value = !0, c("remote-method", e), d();
3193
+ }, d = async () => {
3171
3194
  if (!o.value) return;
3172
- const V = (N) => Number(N) ? N + "px" : N, B = r.value.getBoundingClientRect();
3173
- i.y = innerHeight - B.y < B.y ? B.y - B.height - 280 : B.y + B.height + 5, i.w = n.width ? V(n.width) : B.width < 300 ? "300px" : B.width + "px", await nextTick();
3174
- const M = a.value.$el.offsetWidth;
3175
- i.x = innerWidth - B.x > M ? B.x : B.x + B.width - M;
3195
+ const E = ($) => Number($) ? $ + "px" : $, B = r.value.getBoundingClientRect();
3196
+ i.y = innerHeight - B.y < B.y ? B.y - B.height - 280 : B.y + B.height + 5, i.w = n.width ? E(n.width) : B.width < 300 ? "300px" : B.width + "px", await nextTick();
3197
+ const N = a.value.$el.offsetWidth;
3198
+ i.x = innerWidth - B.x > N ? B.x : B.x + B.width - N;
3176
3199
  };
3177
- let m = !0;
3178
- const v = () => m && (o.value = !1), s = () => (m = !1, setTimeout(() => m = !0, 16)), y = () => m && r.value.focus(), w = (V) => {
3179
- s(), c("change", V), o.value = !1;
3180
- }, S = () => l.value !== -1 && l.value--, j = () => l.value < e.tableData.length && l.value++, $ = () => {
3200
+ let k = !0;
3201
+ const p = () => k && (o.value = !1), s = () => (k = !1, setTimeout(() => k = !0, 16)), f = () => k && r.value.focus(), b = (E) => {
3202
+ s(), c("change", E), o.value = !1;
3203
+ }, C = () => l.value !== -1 && l.value--, V = () => l.value < e.tableData.length && l.value++, D = () => {
3181
3204
  if (l.value == -1) return;
3182
- const V = e.tableData[l.value];
3183
- c("change", V), r.value.blur();
3205
+ const E = e.tableData[l.value];
3206
+ c("change", E), r.value.blur();
3184
3207
  };
3185
- return watch(() => e.query, (V) => {
3186
- V !== d.value && (d.value = V);
3187
- }), watch(() => d.value, (V) => {
3188
- V !== e.query && (e.query = V);
3208
+ return watch(() => e.query, (E) => {
3209
+ E !== m.value && (m.value = E);
3210
+ }), watch(() => m.value, (E) => {
3211
+ E !== e.query && (e.query = E);
3189
3212
  }), effect(() => {
3190
3213
  e.query, o.value, l.value = -1;
3191
- }), effect(() => !o.value && (e.tableData = [])), document.addEventListener("scroll", f), (V, B) => (openBlock(), createElementBlock("div", _hoisted_1, [
3214
+ }), effect(() => !o.value && (e.tableData = [])), document.addEventListener("scroll", d), (E, B) => (openBlock(), createElementBlock("div", _hoisted_1, [
3192
3215
  withDirectives(createElementVNode("input", {
3193
3216
  ref_key: "input",
3194
3217
  ref: r,
3195
- "onUpdate:modelValue": B[0] || (B[0] = (M) => e.query = M),
3218
+ "onUpdate:modelValue": B[0] || (B[0] = (N) => e.query = N),
3196
3219
  onInput: u,
3197
- onFocus: g,
3198
- onBlur: v,
3220
+ onFocus: _,
3221
+ onBlur: p,
3199
3222
  onKeydown: [
3200
- withKeys(S, ["up"]),
3201
- withKeys(j, ["down"]),
3202
- withKeys(withModifiers($, ["prevent"]), ["enter"])
3223
+ withKeys(C, ["up"]),
3224
+ withKeys(V, ["down"]),
3225
+ withKeys(withModifiers(D, ["prevent"]), ["enter"])
3203
3226
  ]
3204
3227
  }, null, 40, _hoisted_2), [
3205
3228
  [vModelText, e.query]
@@ -3209,13 +3232,13 @@ const HrTable = withInstall(Table), _hoisted_1$1 = { class: "remote-table" }, _h
3209
3232
  ref_key: "table",
3210
3233
  ref: a,
3211
3234
  modelValue: e.tableData,
3212
- "onUpdate:modelValue": B[1] || (B[1] = (M) => e.tableData = M),
3235
+ "onUpdate:modelValue": B[1] || (B[1] = (N) => e.tableData = N),
3213
3236
  loading: e.loading,
3214
3237
  highlight: l.value,
3215
- columns: V.columns,
3238
+ columns: E.columns,
3216
3239
  onMousedown: s,
3217
- onClick: y,
3218
- onChange: w,
3240
+ onClick: f,
3241
+ onChange: b,
3219
3242
  style: normalizeStyle({ top: i.y + "px", left: i.x + "px", width: i.w })
3220
3243
  }, null, 8, ["modelValue", "loading", "highlight", "columns", "style"])) : createCommentVNode("", !0)
3221
3244
  ]));